The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I added $thread[preview] below each thread title in my threadbit template, so the forumdisplay shows a thread preview for all threads without having to mouseover the link.
My problem is that the linebreaks are stripped, so all the paragraphs are stuck together. This doesn't happen with the mouseover preview (when title=$thread[preview]). When I mouseover a link the preview retains the proper linebreaks. Any suggestions to keep the $thread[preview] linebreaks intact when displaying outside of the link title (mouseover)? Thanks. UPDATE: Well, I got the line breaks to display correctly by adding... Code:
$thread['preview'] = nl2br($thread['preview']); I am still looking for a better way to do this the retains proper formatting for both mouseover previews and inline previews, preferably without any php code changes. |
#2
|
|||
|
|||
![]()
Just add:
PHP Code:
![]() |
#3
|
|||
|
|||
![]() Quote:
|
#4
|
|||
|
|||
![]()
Have a look if there's a hook location in the area where you need to do the current edit, then you can use the plugin system
![]() |
#5
|
||||
|
||||
![]()
Threadbit_process would probably work.
|
#6
|
|||
|
|||
![]()
Thanks to both of you! It's now working as a plugin without any file edits.
Here's the threadbit_process plugin code: PHP Code:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|