![]() |
How can we move the text to a different place? I'd prefer it under the "Private Messages: Unread/Total"
|
Brilliant mod, i used it on 3.5 and will use it on 3.6 so handy , although i do hate coming back online and seeing something like 4578 unread posts ;P
|
Quote:
|
Quote:
|
You would have to edit the plugin to disable the auto template update of the navbar, and then manually edit your navbar to put $unread where you want it.
|
Thx Paul - very useful. :rolleyes:
|
great hack big thx form me :)
|
Quote:
Code:
$search_text = '</strong><br />'; Code:
$search_text = '\$vbphrase[last_visited_x_at_y]</phrase>'; Code:
$unread = construct_phrase('<a href=\"search.php?do=getnew\">'.$vbphrase['unread_posts'].'</a><br />',$postcount['unread']); Code:
$unread = construct_phrase('<br /><a href=\"search.php?do=getnew\">'.$vbphrase['unread_posts'].'</a><br />',$postcount['unread']); |
Quote:
Step 1: Open Paul's XML-File with Notepad Step 2: Search for: Code:
$vbulletin->templatecache['navbar'] = str_replace($search_text,$search_text.$unread,$vbulletin->templatecache['navbar']); Code:
$vbulletin->templatecache['navbar'] = str_replace("\$vbphrase[new_posts_nav]</a>","\$vbphrase[new_posts_nav] (".$postcount['unread'].")</a>",$vbulletin->templatecache['navbar']); And don't forget to refresh your Browser :p |
Quote:
Find this in Paul's XML-Product-File: Code:
$search_text = '</strong><br />'; Code:
$search_text = '\$vbphrase[private_messages_nav]</phrase></if>'; Code:
$unread = construct_phrase('<a href=\"search.php?do=getnew\">'.$vbphrase['unread_posts'].'</a><br />',$postcount['unread']); Code:
$unread = construct_phrase('<br /><a href=\"search.php?do=getnew\">'.$vbphrase['unread_posts'].'</a><br />',$postcount['unread']); Save with Notepad - Re-Import Hack, Allow overwrite 'yes', refresh Browser :) |
All times are GMT. The time now is 04:07 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|