HI humour
--------------- Added [DATE]1302252988[/DATE] at [TIME]1302252988[/TIME] ---------------
Edit - Sorry I told you wrong there
That was part of the mod I used to stop usernames showing to guests during display of forum thread lists - not forum threads
I did something similar to stop attachments from showing to guests within threads
The file you want to look at is showthread.php and the thread text is stored in $post['pagetest_html']
I just had a look to see how I did this on my site
I actually put the mod into the file includes/class_postbit.php which contains code that is called from showthread for each post, parses any bbcode and returns the html for the post text.
There is a hook in this file called postbit_display_complete
You could use that hook however my mod was put inline directly after the hook call
Code:
($hook =& vBulletinHook::fetch_hook('postbit_display_complete')) ? eval($hook) : false;
$hidemessage = "Only registered users can view images";
if($show['guest'])
{
$this->post['message'] = preg_replace("/<img.+?\>/i", $hidemessage, $this->post['message']);
}
That replaces any image tag in the thread post with the $hidemessage
You should be able to very easily change my mod to do exactly what you need just by changing the preg_replace
Rich