Jump to content

quickstream

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Everything posted by quickstream

  1. look at screenshot and for some reason your code dnt work i can try again with it, but all i simple want is the just the tags gone, and disbaling the code is simple but removing the tags is harder
  2. non of these work without some kind of unwanted effect after a second try the array does the best it only leave the bbcode id but also had a side effect which pretty much makes all the messege spam such as "gfhjkdfshjkfhds", i can remove bbcode id and here is the unwanted effect its not made it spam just removed the letters and spaces
  3. Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/suddende/public_html/plugins/p407_forum_news/phpbb.php on line 129
  4. iv got time to try more then one if it wont work then fine but he made the time to post so il make the time to try it
  5. ok both code lines work the problem is with what im trying to exclude, the square brackets may be having a problem right in the code? is there a strip_something() varible i can use? which has been brought up in the new post, so il try that code it looks very interesting and iv only just gone past that chapter in the book im reading to get a grasp of php keke il let you know of the result if positive il resolve this thread
  6. soo $post['message'] = preg_replace('[b], [/b], [i], [/i], etc?', '', $post['message']); yes?, il try now but its a whole lot more simpler then my version, though i may add a new expression after this format has taken place so i can add a function in the admin panel to turn it on and off
  7. sorry to bump but im in need of help
  8. erm how about admin aproval and all forums private thus you need people to be invited into a group to view them
  9. ok im working with subdreamer and installed a mod which interacts with a forum on my host so that news is shown on the front page, but i have a 20word limit so the bbcode is usually cut short which in turn messeges the whole row of news up (beyond the one article it is in) soo i have tried to remove it i can eaily deactive the bbcode but i cannot remove the tags thus i introduce this code $no_bbcode = explode(bbencode_second_pass($post['message'], $post['bbcode_uid'])); foreach ($no_bbcode as $nobbcode) { $post['message'] = eregi_replace($nobbcode, "", $post['message']); } i have tried a few variations of this including $no_bbcode = explode($post['bbcode_uid']); foreach ($no_bbcode as $nobbcode) { $post['message'] = eregi_replace($nobbcode, "", $post['message']); } & $no_bbcode = explode('|','[b]|[/b]|[i]|[/i]|[u]|[/u]|[quote]|[/quote]|[code]| ||]|[list=]| |'); foreach ($no_bbcode as $nobbcode) { $post['message'] = eregi_replace($nobbcode, "", $post['message']); } [/code] non work as they should, i would have tried something like mysql_escape_string() but that wont effect bbcode will it? lil help please im non a very good php code junky and im stil teaching myself but im genuinly stuck
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.