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

Reply
 
Thread Tools Display Modes
  #1  
Old 01-21-2009, 04:22 PM
Martin9887 Martin9887 is offline
 
Join Date: Jul 2008
Location: Lincolnshire
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.



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.
Reply With Quote
  #2  
Old 01-21-2009, 05:01 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 01-21-2009, 05:31 PM
Martin9887 Martin9887 is offline
 
Join Date: Jul 2008
Location: Lincolnshire
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 01-21-2009, 07:25 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That looks like the line, yes.
Reply With Quote
  #5  
Old 01-21-2009, 08:12 PM
Martin9887 Martin9887 is offline
 
Join Date: Jul 2008
Location: Lincolnshire
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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



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.
Reply With Quote
  #6  
Old 01-21-2009, 10:21 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #7  
Old 01-22-2009, 03:01 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Make sure you've also created the image fore the link, as it looks like your navbar buttons are created from images.
Reply With Quote
  #8  
Old 01-22-2009, 04:55 AM
Martin9887 Martin9887 is offline
 
Join Date: Jul 2008
Location: Lincolnshire
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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 View Post
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.
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 01:32 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.18173 seconds
  • Memory Usage 2,244KB
  • Queries Executed 13 (?)
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
  • (3)bbcode_code
  • (2)bbcode_html
  • (2)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_postinfo_query
  • fetch_postinfo
  • 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