PDA

View Full Version : Last Shout on Header


Renmiri
04 Aug 2006, 15:50
I put a shoutbox on most of my pages, at the bottom of the page. Users complained it was hard to see if there were any new shouts so I hacked up this lil' plugin to display it

1 - Import my plugin thelastshout_v11.xml (no bbcode parsing) or thelastshout_v12.xml (bbcodes parsed)

2 - On Header template
Find


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


BELOW that, add this code


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



3 - You can add $thelastshout to any other templates where you want the last shout to show but you must install this mod (http://www.vbulletin.org/forum/showthread.php?t=96158) first.
PS: You might have problems with empty values on $thelastshout. If that happens just edit my plugin and change the "hook" from "global_start" to "parse_templates"

PS: This was done here (http://sinsdawn.ffproject.net/index.php) with the latest vBShout for flatfile, but it should work with the regular vBShout.

PS: Parsing bbcodes might mess up your forum layout, as smilies and images will make the one line entry on header higher. If you use that version (thelastshout_v12.xml) I recommend installing it on navbar not on header template.

Snake
05 Aug 2006, 18:36
Thanks!

mrmike
12 Nov 2006, 08:50
Great work! ;)

tirol07
08 Nov 2007, 13:50
Installed and working.
Thank you. *clicks install*!:)

Have a question.
How can i display the last 10 shouts in marquee text on non vbpage?

Renmiri
28 Nov 2007, 15:24
Code for that wouldn't be hard as the shouts are saved already parsed to a database table. Want me to give it a try ?