Hide [code] and [quotes] from Guests?...

Gunner

New Member
would like to get a mod that will hide the CODE and QUOTE tags with whatever is wrapped in them from Guests...

Maybe leaving a comment like: "register to see contents" or something like that :)

I am using 3.7.2 if that helps.

Many Thanks

Gunner
 
This would do for the HTML TAG... will figure out how to to the quoute and code tag :)


Don't you just hate it when thread previews show HTMl tags even though browsers don't interprete those tags in popup menus? Well then this hack is just right for you!

This hack will remove all HTML tags such as <b>, <i>, <strong> and even closing tags like </b>, </i>, and </strong> so that they don't show up in the thread preview. It's genius they say!

Anyways here we go:

open up forumdisplay.php and find
PHP Code:
Code:
                eval('$threadbit .= "' . fetch_template('threadbit') . '";');
Above, add


PHP Code:
Code:
                $thread[preview] = eregi_replace('(")','',strip_tags(unhtmlspecialchars($thread[preview]))); // solution #2
If the above code doesn't show some thread previews properly, try the one below:

PHP Code:
Code:
                $thread[preview] = eregi_replace('(&[a-z]+;|<[a-zA-Z]+>[a-zA-Z]+</[a-zA-Z]+>)','',strip_tags($thread[preview]));
All done
 
Back
Top