vb.org Archive

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

Martin9887 01-21-2009 04:22 PM

Community Link
 
Hi All,

I updated my forum to vb 3.8 last night with the style, however the style doesn't show the new community link.

I was wondering how I can change the Members List link into the new community link, I think it's probably just change in the header template but I'm not sure.

http://i312.photobucket.com/albums/l...wood/bfnav.png

The header section of the template looks like this:

Code:

<!-- header -->
<a name="top"></a>
<div id="header">
<div id="header_left">
<div id="header_right">
<div id="header_middle">
<img src="$stylevar[imgdir_misc]/skin/header.png" alt="$vboptions[bbtitle]" /></div></div></div></div>

<div id="main_menu"><a href="/forum/index.php"><img src="$stylevar[imgdir_button]/menu_home.jpg" alt="Home" />

<a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[imgdir_button]/menu_forum.png" alt="Forum" />

<a href="/forum/arcade.php"><img src="$stylevar[imgdir_button]/menu_arcade.png" alt="Arcade" />

<a href="/forum/misc.php?do=donate"><img src="$stylevar[imgdir_button]/menu_donate.png" alt="Donate" />



</a><if condition="$show['member']"><a href="usercp.php$session[sessionurl_q]"><img src="$stylevar[imgdir_button]/menu_usercp.jpg" alt="$vbphrase[user_cp]" /></a><else /><a href="register.php$session[sessionurl_q]" rel="nofollow"><img src="$stylevar[imgdir_button]/menu_register.jpg" alt="$vbphrase[register]" /></a></if><if condition="$show['popups'] && $show['member']"><a id="usercptools.header" href="$show[nojs_link]#usercptools"><img src="$stylevar[imgdir_button]/menu_quicklinks.jpg" alt="$vbphrase[quick_links]" /></a><script type="text/javascript"> vbmenu_register("usercptools.header", true); </script><else /><if condition="$show['member']"><a href="search.php?$session[sessionurl]do=getnew"><img src="$stylevar[imgdir_button]/menu_newposts.jpg" alt="$vbphrase[new_posts_nav]" /></a><else /><a href="search.php?$session[sessionurl]do=getdaily"><img src="$stylevar[imgdir_button]/menu_todaysposts.jpg" alt="$vbphrase[todays_posts]" /></a></if></if><a href="memberlist.php$session[sessionurl_q]"><img src="$stylevar[imgdir_button]/menu_members.jpg" alt="$vbphrase[members_list]" /></a><a href="calendar.php$session[sessionurl_q]"><img src="$stylevar[imgdir_button]/menu_calendar.jpg" alt="$vbphrase[calendar]" /></a><a href="faq.php$session[sessionurl_q]"><img src="$stylevar[imgdir_button]/menu_faq.jpg" alt="$vbphrase[faq]" /></a><if condition="$show['popups']"><a id="navbar_search.header" href="search.php$session[sessionurl_q]" rel="nofollow"><img src="$stylevar[imgdir_button]/menu_search.jpg" alt="$vbphrase[search]" /></a><script type="text/javascript"> vbmenu_register("navbar_search.header", true); </script><else /><a href="search.php$session[sessionurl_q]"><img src="$stylevar[imgdir_button]/menu_search.jpg" alt="$vbphrase[search]" /></a></if><if condition="$show['member']"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')"><img src="$stylevar[imgdir_button]/menu_logout.jpg" alt="$vbphrase[log_out]" /></a></if></div>
<!-- /header -->

Any help would be greatly appreciated, Thanks.

Lynne 01-21-2009 05:01 PM

It would normally show up in your navbar. You just need to grab the code (both the link and the pop-up code) from the navbar and add it in.

Martin9887 01-21-2009 05:31 PM

Getting somewhere now, thanks.

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></if>

In that where would I add my code to make the link an image?

<img src="$stylevar[imgdir_button]/menu_community.png" alt="" />

I tried but it went funny, and without the image it's just text and looks silly.

Lynne 01-21-2009 07:25 PM

That looks like the line, yes.

Martin9887 01-21-2009 08:12 PM

I put the button image in, now it looks like this:

http://i312.photobucket.com/albums/l...ommlinkkks.png

Code is:

Code:

<if condition="$show['communitylink'] AND $show['popups']">
                <td class="vbmenu_control"><a id="community" href="$show[nojs_link]#community" rel="nofollow" accesskey="6"><img src="$stylevar[imgdir_button]/menu_community.png" alt="$vbphrase[community]"</a> <script type="text/javascript"> vbmenu_register("community"); </script></td></if>

I just want to get rid of the white arrow next to it, any ideas anyone?

Thanks for the help so far, Lynne.

Lynne 01-21-2009 10:21 PM

HTML Code:

<if condition="$show['communitylink'] AND $show['popups']">
                <td class="vbmenu_control"><a id="community" href="$show[nojs_link]#community" rel="nofollow" accesskey="6"><img src="$stylevar[imgdir_button]/menu_community.png" alt="$vbphrase[community]"</a> <script type="text/javascript"> vbmenu_register("community", true); </script></td></if>


Dismounted 01-22-2009 03:01 AM

Make sure you've also created the image fore the link, as it looks like your navbar buttons are created from images.

Martin9887 01-22-2009 04:55 AM

Quote:

Originally Posted by Lynne (Post 1720594)
HTML Code:

<if condition="$show['communitylink'] AND $show['popups']">
                <td class="vbmenu_control"><a id="community" href="$show[nojs_link]#community" rel="nofollow" accesskey="6"><img src="$stylevar[imgdir_button]/menu_community.png" alt="$vbphrase[community]"</a> <script type="text/javascript"> vbmenu_register("community", true); </script></td></if>


Thank you very much, works perfectly.

Quote:

Originally Posted by Dismounted (Post 1720809)
Make sure you've also created the image fore the link, as it looks like your navbar buttons are created from images.

Yeah they are, I've done that.

Thank all the help, much appreciated.


All times are GMT. The time now is 09:15 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.02007 seconds
  • Memory Usage 1,747KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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