View Full Version : Code to quick links
Jason2
Tue 29th Jan '08, 12:15pm
Hello, I'm trying to add the calendar, member links to the quick links, I added this code for members list, and it shows, but it shows in a darker colour and doesn't blend in with the rest:
<if condition="$vboptions['enablememberlist']">
<td class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
</if>
What could be wrong?
And finally, how do I get the today's posts from the quick links to the navbar?
Regards Jason :)
Jose Amaral Rego
Tue 29th Jan '08, 3:22pm
You are using $css vbmenu_control when you should be using $css vbmenu_option for quick_links and opposite for navbar.
<!-- nav buttons bar -->
<table>
<tr>
Your Code
</tr>
</table>
<!-- / nav buttons bar -->
<if condition="$vboptions['enablesearches']">
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily">$vbphrase[todays_posts]</a></td>
</if>
Jason2
Tue 29th Jan '08, 3:42pm
Ok, thanks. The today's posts link is on the navbar.
But how do I get the Members list and Calendar link on the 'quick links'?
Regards Jason :)
Jose Amaral Rego
Tue 29th Jan '08, 3:56pm
Example: take a look at links under quick_links and you will see that each have table row <tr> elements and in the navbar only shows table data <td>
<if condition="$show['siglink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td></tr></if>
<!-- nav buttons bar -->
<table>
<tr>
Cut & Copy navbar link
</tr>
</table>
<!-- / nav buttons bar -->
end result
Note: You are using $css vbmenu_control when you should be using $css vbmenu_option for quick_links and opposite for navbar.
<if condition="$vboptions['enablememberlist']">
<tr><td class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td></tr>
</if>
# find in template: navbar
<!-- user cp tools menu -->
<div class="vbmenu_popup" id="usercptools_menu" style="display:none" align="$stylevar[left]">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead">$vbphrase[quick_links]</td></tr>
# add under next empty line code
<if condition="$vboptions['enablememberlist']">
<tr><td class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td></tr>
</if>
Jason2
Tue 29th Jan '08, 4:05pm
I see, thanks.
But I'm getting the problem I indicated earlier, it goes to the 'quick links' and works, however the colour is different, see image below:
http://i234.photobucket.com/albums/ee123/Jason_scfc/memberslist.jpg
Any ideas why?
Regards Jason :)
Jose Amaral Rego
Tue 29th Jan '08, 4:28pm
You did not follow instruction for one. Other then that it should work. :)
You are using $css vbmenu_control when you should be using $css vbmenu_option for quick_links and opposite for navbar.
Jason2
Tue 29th Jan '08, 4:38pm
Problem fixed, thanks. :)
Regards Jason :)
vBulletin® v3.8.0 Beta 4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.