The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi all,
I would like the tread list on this page to display a preview of the thread text under the thread title. So basically, right now under the thread title is the username of the user who posted the thread. Instead of having the username there I would like to have some text. Like when you hover your mouse over the thread link it shows a preview of the beginning of the post. This is what I would want to show up under the thread title instead of showing the username. Is there any way for me to accomplish this? Thank you, JPetrillo |
#2
|
||||
|
||||
![]()
You may edit the threadbit template to show the text instead of just having it as title text for the hover. And, since you only want it on one forum, put a condition around it <if condition="$forumid == xx">your text</if>
|
#3
|
|||
|
|||
![]()
Okay, so what do I add/change in the threadbit template to get it to show the text?
|
#4
|
||||
|
||||
![]()
Well, the variable is already available to you - $thread[preview] - so find where you want the preview text to display and insert it there. If it's in the correct place, then go about formatting it how you want. (You said you wanted to replace the username, so just search for "username" in the template and put the condition around it - if $forumid == x, then $thread[preview], else all the username stuff.
|
#5
|
|||
|
|||
![]()
Thanks! I'll try this. It brings up another question. The first content in those posts are usually a picture, and so the preview text always starts with the image directory. Is there a way to remove that so it won't display the image on that preview?
|
#6
|
||||
|
||||
![]()
You'd have to write some custom code to remove any image tags in the preview. That's not something I'm real good at doing (I'm a trial and error coder).
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|