View Full Version : What is this mod/code change?
93Corvette
06-22-2010, 04:25 AM
I want to change my "New Post" button on my navbar to say "Display post for previous:"
This would have a pull down that would allow you to select:
All Posts
1 Day
7 Days
2 Weeks
1 Month
3 Months
6 Months
1 Year
Here is a picture of what I want, however this one is on a phpbb website (not vbulletin).
https://vborg.vbsupport.ru/external/2010/06/19.png
Boofo
06-22-2010, 04:48 AM
I just did this for my site and took it down. After getting 135 queries to do a search for all of my own posts, I decided it wasn't worth it.
93Corvette
06-23-2010, 11:51 PM
I just did this for my site and took it down. After getting 135 queries to do a search for all of my own posts, I decided it wasn't worth it.
Thanks for the info.... Maybe that's why I can never find anything about this mod....
Boofo
06-23-2010, 11:55 PM
It's easy to do but if you get very many people using it, it will load up the server terribly.
93Corvette
06-25-2010, 01:48 AM
It's easy to do but if you get very many people using it, it will load up the server terribly.
Can you post the code you used? For some reason I can't find any info on making a pull-down....
Boofo
06-25-2010, 02:02 AM
Well, I would if I still had it. I got rid of it after I uninstalled it, sorry. But I can give you the outline code for it if that will help.
Make a template called: user_links
and add this but with your links added:
<li class="popupmenu">
<a href="javascript://" class="popupctrl">Your drop down menu name</a>
<ul class="popupbody popuphover">
<li>some link here</a></li>
<li>some link here</a></li>
<li>some link here</a></li>
<li>some link here</a></li>
</ul>
</li>
Then add a plugin to the parse_templates hook with the following code:
$newTemplate = vB_Template::create('user_links');
$template_hook[navbar_after_faq] .= $newTemplate->render();
And another plugin to the cache_templates hook with the following code:
$cache[] = 'user_links';
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.