Quote:
Originally Posted by Lonely Heart
Wonderful 
need to fix:
* after reply or click on Thank You, STILL (This post contains hidden content) on Topic Review.
* after reply or click on Thank You, STILL can't quoted ( Empty where the hidden content) Or in lolo? Code (Hidden text can't be quoted)
 Thanx for this useful hack and it'll be M.o.t.M cuz we got your back 
|
Hi Lonely Heart, I wont fix that.. simple reason:
to just hide hidden content in quotes or on topic review is more or less ONE single line
to show up (or not) what's hidden is about 200 lines of code.
well, save resources
ociosos, what module of cmps? latesttopics, news?
cmps doesn't include any hooks to let me step into,
so if you want to get rid of hidden content in the latesttopics module, you will have to take care on your $thread['preview'] in there.
if you find a place where to put something like
PHP Code:
$thread['preview'] =preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', $vbphrase['sid_hide_has_hidden'] , $thread['preview'])
I think it'll do (line 111 seems to be a nice place) ... but: I didn't try
And I don't guarantee for anything neither that it works nor that is isn't scrambling your portal

take it as it is: A hint
so, as a sneak preview (still without ajax)
check out the latest version
(better handling of post_thanks_settings // thanks to abe1's kind permission)
and some minor improvements