vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Adding another link to the Quick Links button (https://vborg.vbsupport.ru/showthread.php?t=91901)

Biker_GA 07-10-2005 12:33 AM

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. )

Christine 07-10-2005 12:40 AM

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.

Biker_GA 07-10-2005 12:40 AM

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.

Christine 07-10-2005 01:05 AM

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. :p

Biker_GA 07-10-2005 01:25 AM

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. :(

Biker_GA 07-10-2005 01:53 AM

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


Christine 07-10-2005 03:00 AM

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?

Biker_GA 07-10-2005 01:07 PM

No errors at all. Just isn't showing in the drop down menu.

Christine 07-10-2005 01:30 PM

I am trying to look, but getting permission errors this morning?

Biker_GA 07-10-2005 01:32 PM

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.


All times are GMT. The time now is 03:52 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.01083 seconds
  • Memory Usage 1,757KB
  • 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_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete