vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Last Shout on Header (https://vborg.vbsupport.ru/showthread.php?t=123023)

Renmiri 08-03-2006 09:00 PM

Last Shout on Header
 
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:

<!-- content table -->
$spacer_open

BELOW that, add this code
Code:

<table align="center" width="100%"><tr>
<td align="right" class="smallfont"><a href='vbshout.php?{$session['sessionurl_q']}do=archive'>Last Shout by: $GLOBALS[thelastshout]</a></td>
</tr></table>

3 - You can add $thelastshout to any other templates where you want the last shout to show but you must install this mod 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 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 08-05-2006 03:36 PM

Thanks!

mrmike 11-12-2006 06:50 AM

Great work! ;)

tirol07 11-08-2007 11:50 AM

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 11-28-2007 01:24 PM

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 ?


All times are GMT. The time now is 11:08 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01491 seconds
  • Memory Usage 1,717KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete