PDA


View Full Version : Links meny


Mikaelweb
07-31-2005, 06:59 AM
here is navigation to Links at navbar

In the Navbar template find:
<if condition="$show['member']">
Above that add:
<td id="link" class="vbmenu_control"><a href="$vboptions[bburl]/#link" accesskey="4" rel="nofollow">Links</a> <script type="text/javascript"> vbmenu_register("link"); </script></td>
In the Navbar template find:
<!-- / PAGENAV POPUP -->
Under that add:
<!-- link menu -->
<div class="vbmenu_popup" id="link_menu" style="display:none">

<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">Links Directory</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="$vboptions[homeurl]/links">Links&nbsp;Directory</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="$vboptions[bburl]/misc.php?do=linktous">Link
To Us</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="$vboptions[homeurl]/links/addlink.php?c=">Submit
a Link</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="$vboptions[homeurl]/links/browselinks.php?do=newlinks">What's
New</a></td>
</tr>
<tr>
<td class="vbmenu_option"><a href="$vboptions[homeurl]/links/search.php?">Search</a></td>
</tr>
</table>
</div>
<!-- / link menu -->
There you have it.

Mikaelweb
07-31-2005, 08:36 AM
This is better templates to this tread (http://www.vbadvanced.com/forum/showthread.php?t=3304&highlight=linktous)
Open template "ADV_LINKS_LINKTOUS"
and replace all contet whit this one
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[hometitle] - $vba_options[links_title] - $vbphrase[link_to_us]</title>
$headinclude
</head>
<body>

$header
$navbar

$linksnav

<!--// Link to us content-->
<br>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat"><strong>Link To Us</strong></td>
</tr>
<tr>
<td class="alt1"><div class="smallfont">The codes below Will Make a text link
or graphic with them. Don't forget to save the graphic (gif or .jpg) your
directory. Right click on the graphic and choose "save image as". Remember
to upload the graphic when you upload your page.<BR>
If You need my help to add the Link, please feel free to ask..... We will
gladly help!!!!!! <BR>
<BR>
Thanks, <BR>
<B>Your-Site.com</B></div></td>
</tr>
<tr>
<td align="center" class="tcat"><span class="smallfont"><a href="mailto:webmaster@Your-Site.com?subject=Link%20To%20Us%20Help"><strong>Contact
Us</strong></a></span></td>
</tr>
</table>
<br/>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat"><strong>$vboptions[hometitle], Text Link</strong></td>
</tr>
<tr>
<td class="alt1"><div class="smallfont">
<textarea name="textlink" cols="60" rows="2">
<a href="http://www.Your-Site.com" target="_top"> Your-Site.Com</a> Short description of your site!
</textarea>
</div></td>
</tr>
</table>
<br/>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat"><strong>$vboptions[hometitle], button</strong></td>
</tr>
<tr>
<td class="alt1"><div class="smallfont">
<textarea name="buttonlink" cols="60" rows="3">
<a href="http://www.Your-Site.com"><img border="0" src="http://www.Your-Site.Com/files/banner01.gif" width="88" height="31" alt="Your-Site.Com"></a>
</textarea>
<br/>
<a href="http://www.Your-Site.Com"><br/><img border="0" src="http://www.Your-Site.Com/files/banner01.gif" width="88" height="31" alt="Your-Site.Com"></a>
</div></td>
</tr>
</table>
<br>
<!--// End Link to us content-->
$footer

</body>
</html>

here is demo of this template
http://www.coderslabz.com/testbord/demo.gif

interfx
09-09-2005, 10:37 PM
I did this, but got a very strange error

http://www.domain.com/forums/misc.php?do=linktous

it brings up my FAQ - Smilie List page instead???

Am I missing something basic here????

Mikaelweb
10-11-2005, 04:46 PM
find this
<td class="vbmenu_option"><a href="$vboptions[bburl]/misc.php?do=linktous">Link
To Us</a></td>

chance it to
<td class="vbmenu_option"><a href="$vboptions[homeurl]/misc.php?do=linktous">Link
To Us</a></td>

xjuliox
10-29-2005, 06:46 PM
find this
<td class="vbmenu_option"><a href="$vboptions[bburl]/misc.php?do=linktous">Link
To Us</a></td>

chance it to
<td class="vbmenu_option"><a href="$vboptions[homeurl]/links/misc.php?do=linktous">Link
To Us</a></td>


add /links will take you to Link to us page.

Quarterbore
01-15-2006, 08:28 AM
I am new here but it also depends on what you have your Home URL defined as. I use my VBA page as my HOME (mydomain.com/main.php) so I went into the code and just changed the links to absolute paths to where my links were located. I also moved the button as in the description above my new link didn't show up in the navbar.

You can see it in use on my site here:

http://www.timeshareforums.com/main.php?

Mine is called "Resorts Database" As you can see I also killed the "Link To Us" as I have that taken care of elsewhere!

Thanks for posting this hack as it saved me a lot of time!

mrderanged
09-13-2006, 01:08 AM
I added the following to the menu to get a "My Links" page:

<if condition="$bbuserinfo['userid']">
<tr>
<td class="vbmenu_option"><a href="$vboptions[homeurl]/links/browselinks.php?$session[sessionurl_q]do=member&amp;imageuser=$bbuserinfo[userid]">My Links</a></td>
</tr>
</if>

For some reason, the breadcrumb is just coming up as " 's " without the username behind it. The same code works fine for my gallery. Any ideas?

Thanks for the informative post on setting up this menu

Regards,

Scott

mrderanged
09-13-2006, 03:23 PM
Nevermind, figured it out from another post. Wrong link...