Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

problem with (IMG) (/IMG)

Asked Modified Viewed 1,563 times
C
conans2
C
  • Newbie, joined since
  • Contributed 4 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
asked
Newbie

Hello

Need help with a problem.
When a user post a link too a image by using (img-)LINK(/img.) The tread doesnt work. The thread is blank and i cant get into the thread again. I get an error message that Apache HTTP Server has a problem and needs to be closed.
Is there any way i can get in too it again and delete it ? This happens everytime someone uses (img) (/img). It been much more easyer if the thread shows that the image or the link is wrong, but it dont..its only get blank.

Is anyone has had the same problem ? is there anyway i can delete the command/ (img) (/img) in the reply or new thread in the forum?

//conans
0 replies

5 posts

K
kejonn
K
kejonn 10
  • Member, joined since
  • Contributed 160 posts on the community forums.
  • Started 16 threads in the forums
answered
Member

I'm assuming you mean [img][/img]...

You could always delete the thread/post via phpmyadmin. Just find out the offending post and search for it in the _posts table (to remove the offending post if you know the post_id) or _threads table if you want to delete the whole thread. Or you could get really fancy and just remove all of the text in the post starting and ending with the bbcode img tag.
0 replies
F
Falk
F
Falk 146
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 12 questions
answered
Super Admin

Are you running v6.00 or 6.01?
0 replies
C
conans2
C
  • Newbie, joined since
  • Contributed 4 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Newbie

I´m running
V6.00

tell me more about:
Or you could get really fancy and just remove all of the text in the post starting and ending with the bbcode img tag.

I.ve search for the post everywhere in the php files..can i get a hint where the files/post are going?
Edited by conans2 on 31-07-2006 21:03,
0 replies
K
kejonn
K
kejonn 10
  • Member, joined since
  • Contributed 160 posts on the community forums.
  • Started 16 threads in the forums
answered
Member

In order to remove just the portion of the post that contains the image link info, you'd have to know the post_id. Not very simple if you have many posts and can't get into the thread to find out the id of the post. But if you know the thread_id and the forum_id, you can get the post_id by previewing this in custom pages:

<?php
$result = dbquery("SELECT post_id FROM ".$db_prefix."posts WHERE post_message LIKE '%[IMG]%' AND thread_id='[color=red]1[/color]' AND forum_id='[color=red]3[/color]'");
while ($row=dbarray($result)) {
  echo "Post_id with [IMG] tag is ".$row['post_id']."<br />";
}
?>


This will ouput the post_id for you. Of course, you must change the numbers in red in the above code to the ones you need...then you browse the posts table, find the post, and edit the post_message to remove the offending part of the post.
0 replies
K
kejonn
K
kejonn 10
  • Member, joined since
  • Contributed 160 posts on the community forums.
  • Started 16 threads in the forums
answered
Member

Quote

This happens everytime someone uses (img) (/img).


Sorry, overlooked that little tidbit, was thinking it was a one time occurence. Since you have an older version that I no longer have, better let the "experts" help you. I would suggest updating your site whenever possible though.
0 replies

Category Forum

Bugs and Errors - 6

Labels

None yet

Statistics

  • Views 0 views
  • Posts 5 posts
  • Votes 0 votes
  • Topic users 3 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet