Forum Moderators: coopster
$attachimage ="<img src=\"viewthread.php?action=attachment&tid=$tid&pid=$post[pid]\" title=\"$post[filename] - $attachsize\" alt=\"$post[filename] - $attachsize\"/>";
This works perfectly well, but I am having a problem with some sites hotlinkng to direct them.
To stop this all i have to do is take out the action=attachment part, which will make it show the thread instead of the image.
How can I do a str_replace like this
$attachimage = str_replace("action=attachment","",$attachimage);
after generatiing the image so that the hyperlink is changed that people right click on to copy the location?