View Full Version : Links!
Whiteyez
07-02-2007, 08:43 PM
Hi i have a problem after i installed the CMPS my links arent working anymore cause they are point for example the register button www.myexample321.com/register.php but this one must be in /forum/register/php.
Also after install the CPMS all my links in the forum and in the CMPS turn into like this:
http://img404.imageshack.us/img404/1093/untitled1fq6.gif (http://imageshack.us)
Blue.
I dont know why. Any help? Im not using the default theme.
Brian
07-03-2007, 09:41 AM
Did you try the suggestions in the FAQ forum regarding broken navbar links?
Whiteyez
07-03-2007, 09:42 AM
Yes i tried that too..
Brian
07-03-2007, 09:59 AM
Can you post a link to your site, and what you currently have for your Header and Navbar Replacements settings?
Whiteyez
07-03-2007, 12:57 PM
Here is my site, its locked for now..
Whiteyez
07-03-2007, 01:10 PM
The problem with the color of links is fixed.
Only the paths is the problem...
towermatt
07-03-2007, 03:14 PM
Looks like those links just need to be recreated as an absolute reference.
Whiteyez
07-03-2007, 03:16 PM
And how can i do that? I noob in Vb, i just got my license..
Thanks.
towermatt
07-03-2007, 06:51 PM
Same here so take my advice with a grain of salt, I am still very much a novice.
This is an example of my header
<table border="0" cellspacing="0" cellpadding="0" style="margin: 0px auto; width: 100%;">
<tr valign="top">
<td width="63" height="175" style="background: url('http://www.thedarktower.com/palaver/images/wow/misc/bkg_left.gif') top right repeat-y;"><img src="http://www.thedarktower.com/palaver/images/wow/misc/top_left.gif" alt="top left" /></td>
<td>
<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="center" style="background: url('http://www.thedarktower.com/palaver/images/wow/misc/header_bkg.gif') repeat-x;"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="http://www.thedarktower.com/palaver/images/wow/misc/header1.gif" border="0" alt="$vboptions[bbtitle]" /></a></td>
</tr>
</table>
<!-- /logo -->
<!-- nav buttons bar -->
<div align="center">
<table cellpadding="0" cellspacing="0" border="0" width="$stylevar[outertablewidth]" align="center" id="navbar">
<tr align="center">
<td>
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center" id="navnav">
<tr align="center">
<if condition="$show['member']">
<td style="border-left-width: 0px;"><a href="$vboptions[bburl]/usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
</if>
<if condition="$show['registerbutton']">
<td style="border-left-width: 0px;"><a href="$vboptions[bburl]/register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
</if>
<td><a href="http://www.thedarktower.com/gallery/index.php">Gallery</a></td>
<td><a href="$vboptions[bburl]/faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
<td><a href="$vboptions[bburl]/memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
<td><a href="$vboptions[bburl]/calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
<if condition="$show['popups']">
<if condition="$show['searchbuttons']">
<if condition="$show['member']">
<td><a href="$vboptions[bburl]/search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td><a href="$vboptions[bburl]/search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
<td id="navbar_search"<if condition="$show['guest']"> style="border-right-width: 0px;"</if>><a href="$vboptions[bburl]/search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <script type="text/javascript"> vbmenu_register("navbar_search", true); </script></td>
</if>
<if condition="$show['member']">
<td id="usercptools"><a href="$vboptions[bburl]/$show[nojs_link]#usercptools">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools", true); </script></td>
</if>
<else />
<if condition="$show['searchbuttons']">
<td><a href="$vboptions[bburl]/search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
<if condition="$show['member']">
<td><a href="$vboptions[bburl]/search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td><a href="$vboptions[bburl]/search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
</if>
<td<if condition="$show['guest']"> style="border-right-width: 0px;"</if>><a href="$vboptions[bburl]/forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
<if condition="$show['member']">
<td><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars =yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td>
</if>
</if>
<if condition="$show['member']">
<td style="border-right-width: 0px;"><a href="$vboptions[bburl]/login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" onclick="return log_out()">$vbphrase[log_out]</a></td>
</if>
</tr>
</table>
</td></tr></table>
</div>
<!-- / nav buttons bar -->
<!-- second nav button row -->
<div align="center">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
<tr align="center">
<td class="vbmenu_control"><a href="$vboptions[bburl]/$vboptions[forumhome].php?$session[sessionurl]"> Forums ></a></td>
<td class="vbmenu_control"><a href="http://www.thedarktower.com/doorportal1">Door Portal</a></td> <td class="vbmenu_control"><a
href="http://www.thedarktower.com/collectors">Collectors</a></td> <td class="vbmenu_control"><a href="$vboptions[bburl]/arcade.php?$session[sessionurl_q]">Arcade</a></td>
<td class="vbmenu_control"><a
href="http://www.thedarktower.com/palaver/vbgooglemaphse.php">Member Map</a></td>
<td class="vbmenu_control"><a href="http://www.thedarktower.com/news">Current News</a></td>
<td class="vbmenu_control"><a
href="http://www.afternet.org/chat/full?channel=towertalk">Chat</a></td> </tr>
</table>
</div>
<!-- / second nav button row -->
<!-- content table -->
$spacer_open
$_phpinclude_output
I bolded the first two but see how all of my "pathways" to images and links are absolute? Meaning the entire file pathway for the item.
Again, I am not sure if this will help as I may not totally understand your problem but I believe it is a great start
I also have a special skin on so this header appears under style options>common templates
Whiteyez
07-03-2007, 06:56 PM
Ok fixed all the links! i made a new button to the navbar, i managed to make the button "home" to link from the forum and from the portal to the portal,
i managed to make the button "forum" ( that i create) to link from the forum to the forum but
i CANT MAKE THIS DAMN BUTTON TO LINK FROM THE PORTAL TO THE FORUM!
pls help.. :)
towermatt
07-03-2007, 07:11 PM
Which one are we talking about here and...is your CMPS loaded in your forums folder or elsewhere on your server?
My forums button is in the "second nav bar" in the header up there, its the first one. That link shows on every page that I use the CMPS for
http://www.thedarktower.com/palaver <---forums
http://www.thedarktower.com/news <---example of a portal page for news on Stephen King
I just changed it today, but I had a little code in there that made it say "home" when you were on the forum page and "forum" when you were anywhere else, it was quite slick. I am sure I got it from here but can't remember where.
I changed it today because I have photopost loaded elsewhere on my server and it uses the forumhome template. Because of that, there was no link to the forum, I changed it to always link to the forum even when I am on the forum home page. Just because I couldn't figure it out :lol:
That may seem confusing--hopefully I helped your question a bit
EDIT--I found that code I believe, check this out
http://www.vbadvanced.com/forum/showthread.php?t=22810
Whiteyez
07-03-2007, 08:42 PM
My CMPS is on www.examplepage.com2/index.php
and my forum www.examplepage.com2/forum/index.php
From the CMPS i cant make the button "forum" to link into the forum, its link into
www.examplepage.com2/index.php.
I dont know what to do..
towermatt
07-03-2007, 08:51 PM
You have to figure out where your header information is and change that link to
http://www.yourpage.com/forums/index.php
mine where I stated above because I have a custom skin.
Whiteyez
07-04-2007, 05:30 AM
This is the code from the button in the navbar.
href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="{IF}/navigation_forum.gif" alt="" border="0" /></a>
How can i change the url?
Whiteyez
07-04-2007, 07:01 AM
Done! i found it! Thanks
towermatt
07-04-2007, 10:58 AM
Yay!!
Glad you got it worked out
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.