HelpHelpSearchSearchMembersMembersCalendarCalendar
Welcome, Guest. Please login or register.

Login with username, password and session length
November 20, 2008, 12:13:22 PM
Please use the support forum for support issues instead of sending me pm's. Thanks.
I will not reply to support issues via pm.
« previous next »
Pages: [1]   Go Down
0 Members and 1 Guest are viewing this topic. Topic Tools  
Read June 20, 2008, 11:47:20 AM #0
Maelstrom

Problem with PHP Website NavButton in AA_New_Damage

First, note that PHP isn't my forte at all.

First, I've added a Website button to our forum. And while the CSS modifications I've done to the stylesheet works fine, I have a problem with the PHP code I've added to the theme's index.template.php file so that clicking that button links you to our site.

Here is the PHP code I've added before the [Home] button's one:

Code:
// Show the [website] button.
echo ($current_action=='website' || $context['browser']['is_ie4']) ? '' : '' , '
<li class="mainNav-website"><a href="www.westcottinstitute.org">' , $txt['website'] , '</a></li>' , $current_action == 'website' ? '' : '';

However it wants to lead you to http://westcottinstitute.org/forums/www.westcottinstitute.org
In other words, it keeps adding our forum URL before our website's one. Naturally I get a 404.

And, so far, I don't seem to figure out how to correct this...  Confused

Could anyone get me a solution to fix that?

*saves cookies for the first to help me fix it*  Grin

P.S.: You did one great theme there, m3talc0re!  Cool

« Last Edit: June 26, 2008, 08:10:43 PM by m3talc0re »
Offline  
Read June 20, 2008, 03:02:45 PM #1
m3talc0re

Re: Problem with PHP Website NavButton in AA_New_Damage

Put http:// in front of the www. That should fix it.


The real hell is your life gone wrong.
Offline  
Read June 20, 2008, 07:55:09 PM #2
Maelstrom

Re: Problem with PHP Website NavButton in AA_New_Damage

I guess I was a bit tired when I did this. Silly me!

Thanks, m3talc0re... Smiley
Offline  
Pages: [1]   Go Up
Jump to:  

Theme by Webtechnica.net
MySQL PHP Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC XHTML 1.0 CSS