Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-05-2012, 02:41 PM
I.G.O.T.A.'s Avatar
I.G.O.T.A. I.G.O.T.A. is offline
 
Join Date: Mar 2011
Location: USA
Posts: 262
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Add to quick links VB 4.1.8

OK I have researched and really don't understand where to modify and add to the quick links or get them from. The links I want to add to the quick links are below. Thanks for the help.

-subscribed threads (already there)
-private messages
-profile settings
-my posts
-my threads
-who's online (already there)
Reply With Quote
  #2  
Old 01-05-2012, 04:37 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You would edit the navbar template and add those links in. Or, just use the template_hooks that are there:
HTML Code:
                            {vb:raw template_hook.navbar_quick_links_menu_pos1}
                            {vb:raw template_hook.navbar_quick_links_menu_pos2}
                            {vb:raw template_hook.navbar_quick_links_menu_pos3}
Reply With Quote
  #3  
Old 01-05-2012, 05:27 PM
I.G.O.T.A.'s Avatar
I.G.O.T.A. I.G.O.T.A. is offline
 
Join Date: Mar 2011
Location: USA
Posts: 262
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, I'm still confused, lol. Can you give me a break down how to do that. Thanks JJ
Reply With Quote
  #4  
Old 01-05-2012, 06:48 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To do what?

To edit the template - Style Manager > find style > Edit templates > find navbar > add in your links

To write plugin, Plugin Manager > add new plugin > hook location is probably "process_templates_complete" and then just add in the code like this:
PHP Code:
$template_hook['navbar_quick_links_menu_pos1'] .= 'your link code here'
Reply With Quote
  #5  
Old 01-05-2012, 07:00 PM
I.G.O.T.A.'s Avatar
I.G.O.T.A. I.G.O.T.A. is offline
 
Join Date: Mar 2011
Location: USA
Posts: 262
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the help!
Reply With Quote
  #6  
Old 01-05-2012, 07:20 PM
jefferis jefferis is offline
 
Join Date: Dec 2006
Location: Butler, PA
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The problem with this solution is that the link to member profile is variable depending on the user ID, so, is there a way to add this type of code to a link:
Code:
<vb:if condition="$memberinfo['musername']">{vb:raw memberinfo.musername}<vb:else />{vb:raw memberinfo.username}</vb:if>  
	 
			<a href="{vb:link member, {vb:raw memberinfo}}">
				{vb:rawphrase view_profile}
			</a>
		</li>
		 
		</vb:if>
Not sure that is even close to being right.
Reply With Quote
  #7  
Old 01-05-2012, 07:25 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You could use a variable to define it first (I think the function is something like fetch_seo_url). It's php, so just write php to define the url and then insert it into the link.

PHP Code:
$myvar=fetch_seo_url(whatever....);
$template_hook['navbar_quick_links_menu_pos1'] .= 'htm' .$myvar'more html'
Reply With Quote
  #8  
Old 06-28-2012, 01:27 PM
kkinsey kkinsey is offline
 
Join Date: Oct 2011
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lynne --- is this still valid info?

I've added a plugin to product "vBulletin" at the "process_templates_complete" hook. The PHP code is:
PHP Code:
$template_hook['navbar_quick_links_menu_pos1'] .= '<li>My Test Menu Item</li>'
Exec. order is "5" and the plugin's marked active.

However, I can't find the text anywhere on the page or in its HTML source...

I am running 4.2.0 --- did the navigation update change this?

--------------- Added [DATE]1340893800[/DATE] at [TIME]1340893800[/TIME] ---------------

Quote:
Originally Posted by kkinsey
did the navigation update change this?
Nevermind! Apparently it did. I'll cheerfully add my links now
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:30 AM.


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.04315 seconds
  • Memory Usage 2,234KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)bbcode_html
  • (3)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete