Log in

View Full Version : $thread[preview]


Bellardia
08-07-2008, 09:28 PM
$thread[preview] brings up a short amount of a post when you mouseover on thread links.

Is there any settings that can be modified to change these settings, or does anyone know if you could supply it with a different argument, to get the starting text of the post?

It's not valuable enough to me to grant php file uploads, but if there's a way to hack it or supply different conditions let me know!

I don't need you to explain to me how to do it, just tell me where I could find it ;)

Opserty
08-07-2008, 10:19 PM
PHP files most likely... start with forumdisplay.php and use the "find" feature. (You will need to search for $thread['preview'] most likely).

Bellardia
08-07-2008, 10:48 PM
Thanks for the advice as alwasy Opserty ;)

I searched through the templates, and the length of the preview is stored in a variable named '$vbulletin->options['threadpreview']'. Its default length is 150.

You can change this option for several specific pages actually.
One of them is 'vBulletin Options -> Forum Display Options (Forum Display)' and it's default is in fact 150.