vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Adding Link to Community Links Menu (https://vborg.vbsupport.ru/showthread.php?t=227128)

medicalforums 10-31-2009 05:44 AM

Adding Link to Community Links Menu
 
How do I add a link to community links drop down menu
I tried tweaking the navbar template but it didn't work
Any ideas!

medicalforums 11-09-2009 03:30 AM

I am trying this but it's not working
Code:

<if condition="$show['communitylink'] AND $show['popups']">
                        <td class="vbmenu_control"><a id="community" href="$show[nojs_link]#community" rel="nofollow" accesskey="6">$vbphrase[community]</a> <script type="text/javascript"> vbmenu_register("community"); </script></td>
                <else />
                        <if condition="$show['memberslist']">
                                <td class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
                        </if>
                        <if condition="$show['quick_links_groups']">
                                <td class="vbmenu_control"><a href="group.php?$session[sessionurl]">$vbphrase[social_groups]</a></td>
                        </if>
<td class="vbmenu_control"><a href="Link URL">Link Text</a></td>

                </if>

Any idea how to insert the link?

Lynne 11-09-2009 03:34 AM

Is anything showing up? Is anything showing up in the source code? What you wrote should work if you are in the <else /> condition which means you would also see the Members List and Social Groups links.

medicalforums 11-09-2009 03:43 AM

Nothing is showing up
the members list, the contacts and friends, the social groups are there but the added code is not showing?

Also the code is not showing up in the source code!

ShawneyJ 11-09-2009 05:12 AM

medicalforums, you are trying to add your link in the wrong place, the link does not go in the nav buttons bar code.

in your navbar find:
Code:

                        <tr><td class="vbmenu_option"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td></tr>
                </if>

and put your new link under that eg:
you could add:
Code:

<if condition="$show['memberslist']">
                        <tr><td class="vbmenu_option"><a href="LINK URL">LINK NAME</a></td></tr>
                </if>


medicalforums 11-09-2009 05:55 AM

Quote:

Originally Posted by jaycob (Post 1911855)
medicalforums, you are trying to add your link in the wrong place, the link does not go in the nav buttons bar code.

in your navbar find:
Code:

                        <tr><td class="vbmenu_option"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td></tr>
                </if>

and put your new link under that eg:
you could add:
Code:

<if condition="$show['memberslist']">
                        <tr><td class="vbmenu_option"><a href="LINK URL">LINK NAME</a></td></tr>
                </if>


Thank you very much!
Finally I added my link :)


All times are GMT. The time now is 08:08 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.01446 seconds
  • Memory Usage 1,728KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete