View Full Version : vB, vBa, links integration
Giray
09-24-2004, 09:00 AM
Hi.
Running vB 3.0.3.
Installed CMPS.
Bought Links Directory.
All installed fine. All seem to be working fine.
How do I link them all together?
Found, on the forum, how to install the Home << >> Forum combo in the navbar.
Have not found how to:
Incorporate the Links (as a module) into CMPS.
Place a link from Links back to the Forum
Place a link from the Forum to Links
But so far, I love what I see.
http://i-citizen.org
Giray
09-24-2004, 10:49 AM
Me again.
What would actually be great, I think, is if we could replace this section of the navbar:
<td class="vbmenu_control"><if condition="THIS_SCRIPT == 'adv_index'"><a href="$vboptions[bburl]?$session[sessionurl]"> Forums <else /> <a href="$vboptions[homeurl]?$session[sessionurl]"> Home </if></a></td> ...with a pull down menu like "Quick Links". In that menu, one would find a link, in my case, to:
Home (the portal)
Forums
Links
Is this an easy write? I'll try, while waiting for a response. If you hear someone sobbing, it's me. :eek:
Brian
09-24-2004, 12:03 PM
Replace the code you just posted above with this:
<td id="navbar_mainlinks" class="vbmenu_control"><a href="#top">Site Links</a> <script type="text/javascript"> vbmenu_register("navbar_mainlinks"); </script></td>
Then look for:
<!-- NAVBAR POPUP MENUS -->
And right below that, add this:
<div class="vbmenu_popup" id="navbar_mainlinks_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead">Site Links</td></tr>
<tr><td class="vbmenu_option"><a href="$vboptions[homeurl]">Home</a></td></tr>
<tr><td class="vbmenu_option"><a href="$vboptions[bburl]">Forum</a></td></tr>
<tr><td class="vbmenu_option"><a href="/links/">Links</a></td></tr>
</table>
</div>
And that should do the trick. :)
Giray
09-24-2004, 12:19 PM
Brian,
Very elegant solution, thank you.
Quick question. Considering you author both links and advanced, why is there no evident integration between the two (or the three with vB)? Or did I miss it somewhere?
Also, how difficult is it to include top links (as with forums) into advanced as a module?
Thanks
Giray
Brian
09-24-2004, 12:25 PM
Check the hacks sub-forum under the Links Directory forums. ;)
KW802
09-24-2004, 12:36 PM
Replace the code you just posted above with this ...
And that should do the trick. :)
:cool: I think I have a use for that also (not necessarily the same links, but the concept at least).
Thanks
Giray
09-24-2004, 12:41 PM
Brian.
Which is the right procedure?
http://www.vbadvanced.com/forum/showthread.php?t=1714&highlight=links+module
or
http://www.vbadvanced.com/forum/showthread.php?t=1977&highlight=links+module
Thanks.
Brian
09-24-2004, 12:45 PM
The first will integrate the CMPS with your links directory (see http://edmplanet.com/links for an example). The second will add a module to your CMPS pages.
Giray
09-24-2004, 12:47 PM
Thanks. Trying it now.
Giray
09-24-2004, 01:13 PM
Done, thanks.
Any idea why I have the space above the first link? Tried to look at the code but could not see an extra <br> or anything?
See attached file or go to http://i-citizen.org/iscc.php
Thanks Brian and the rest of you...
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.