Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-10-2005, 12:33 AM
Biker_GA Biker_GA is offline
 
Join Date: Oct 2004
Location: Where my hat is
Posts: 829
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Adding another link to the Quick Links button

I'm using the Aria Chlorophyll Open style on 3.06 (yes, it's patched), and I'm having a devil of a time trying to figure out how to add a link to the Quick Links button. I'd like to add the arcade to it, but am not sure where I'd add that code. I would assume that it would go in the navbar template, however, I can't find the appropriate section where this additional link would go. Some hints please?

If you want to take a peek at the site, it's Global Affairs. (Get your minds out of the gutter. It's a current events discussion site. )
Reply With Quote
  #2  
Old 07-10-2005, 12:40 AM
Christine's Avatar
Christine Christine is offline
 
Join Date: Oct 2001
Location: PA
Posts: 472
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You have a beautiful skin on there.

The Quick Links isn't enabled for visitors. Do you have a test account?

Or -- if you can say where in relation to the default you want the link, I can get you the code from the navbar template to find and add under.
Reply With Quote
  #3  
Old 07-10-2005, 12:40 AM
Biker_GA Biker_GA is offline
 
Join Date: Oct 2004
Location: Where my hat is
Posts: 829
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hold on and I'll activate the test account.

Vanutu
123456

Quote:
Originally Posted by Christine
You have a beautiful skin on there.
Yeah, I like it as well, but I'm getting complaints from the "older" folks who state there isn't enough contrast, and makes long term viewing difficult. I'm using Whitescale on our test bed and it seems to be more agreeable with those that are testing. I'll probably load something similar when we upgrade Global Affairs with 3.5.
Reply With Quote
  #4  
Old 07-10-2005, 01:05 AM
Christine's Avatar
Christine Christine is offline
 
Join Date: Oct 2001
Location: PA
Posts: 472
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Gotcha.

Looks stock?

In the navbar template, find this:
Quote:
<if condition="$bbuserinfo['userid']">
<td id="usercptools" class="vbmenu_control"><a href="$show[nojs_link]#usercptools">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>
</if>
Below it will be the listing of items like these:
Quote:
<td class="vbmenu_control"><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
To add in your new link, figure out where you want it and add like this:
Quote:
<td class="vbmenu_control"><a href="URL" rel="nofollow">$vbphrase[your_phrase]</a></td>
... where URL = the link and your_phrase = the title you want displayed - you need to add this in the phrases (or you can forego the $vbphrase[whatever] and just call it what you want in plain text).

The rel="nofollow" is a search engine thing telling spiders not to follow the link. Use as appropriate.

There are other conditionals you can add (like admin, member) -- but this will display the link for anyone who has rights to the quicklinks.



Edit to add: The second skin is nice too, but I really like the extra touches on the design on the first one. When I get older, I will start complaining about stuff.
Reply With Quote
  #5  
Old 07-10-2005, 01:25 AM
Biker_GA Biker_GA is offline
 
Join Date: Oct 2004
Location: Where my hat is
Posts: 829
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ugh! I added:

PHP Code:
<tr><td class="vbmenu_control"><a href="arcade.php" rel="nofollow">$vbphrase[play_arcade]</a></td></tr
and then added the phrase:

play_arcade

Arcade

Not showing on the Quick Link pulldown.
Reply With Quote
  #6  
Old 07-10-2005, 01:53 AM
Biker_GA Biker_GA is offline
 
Join Date: Oct 2004
Location: Where my hat is
Posts: 829
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Whups! Found a boo-boo? Shouldn't vbmenu_control be vbmenu_option? Changed it, still no workie.

The <tr> tags are in all the other menu options, so I would assume it's needed there as well.

This is the appropriate section I've added this to:

PHP Code:
<tr><td class="thead">$vbphrase[quick_links]</td></tr>
<
tr><td class="vbmenu_option"><a href="arcade.php" rel="nofollow">$vbphrase[play_arcade]</a></td></tr>
        <if 
condition="$vboptions['enablesearches']"><tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getnew">$vbphrase[new_posts_nav]</a></td></tr></if>
        <
tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td></tr>
        <
tr><td class="vbmenu_option"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td></tr
Reply With Quote
  #7  
Old 07-10-2005, 03:00 AM
Christine's Avatar
Christine Christine is offline
 
Join Date: Oct 2001
Location: PA
Posts: 472
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Blah -- I shouldn't be typing when there is a perfetly good c/p function. *tsk*

I just added
Quote:
<tr><td class="vbmenu_option"><a href="arcade.php" rel="nofollow">$vbphrase[play_arcade]</a></td></tr>
And it worked in my navbar (with a blank space in display (phrase not loaded) but loading to a 404 page as it should).

What errors are you getting?
Reply With Quote
  #8  
Old 07-10-2005, 01:07 PM
Biker_GA Biker_GA is offline
 
Join Date: Oct 2004
Location: Where my hat is
Posts: 829
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No errors at all. Just isn't showing in the drop down menu.
Reply With Quote
  #9  
Old 07-10-2005, 01:30 PM
Christine's Avatar
Christine Christine is offline
 
Join Date: Oct 2001
Location: PA
Posts: 472
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am trying to look, but getting permission errors this morning?
Reply With Quote
  #10  
Old 07-10-2005, 01:32 PM
Biker_GA Biker_GA is offline
 
Join Date: Oct 2004
Location: Where my hat is
Posts: 829
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Christine
I am trying to look, but getting permission errors this morning?
Oh! That's you? I'll go reactivate. Read your PMs.

Quote:
Originally Posted by Biker_GA
Oh! That's you? I'll go reactivate. Read your PMs.
I've done a search through all the other templates that may call Quick Links. The header template does. I'm wondering if there needs to be an addition to it as well.
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:32 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.09312 seconds
  • Memory Usage 2,293KB
  • Queries Executed 12 (?)
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
  • (2)bbcode_php
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete