PHPRetro Header

PylonHotel

New Member
Apr 11, 2011
87
1
Hi,

I was trying to make a new header with this:
<li<?php if($page['cat'] == "3/index"){ echo " class=\"selected\""; } ?>>
<?php if($page['cat'] == "3/index"){ echo "<strong>".$lang->loc['Fan Guard']." </strong>"; }else{

echo "<a href=\"".PATH."/3/index.html\">".$lang->loc['Fan Guard']."</a>"; } ?>
<span></span>
</li>

but all it made was this:
untitledjiosad.png


Is there something wrong with the code? If so, please could someone fix it. Thank you <3
 

R4ST4

New Member
May 2, 2011
11
0
Yes, you have obviously, changed things in community_header, you should copy a file from winrar of header and replace and look what you are gonna remove the next time
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,195
3,907
These guys don't know what they're talking about, ignore them, you added it as it was from the language files, which i doubt it is, you added it like this
PHP:
".$lang->loc['Fan Guard']."
Change it to,
PHP:
Fan Guard
.

Should be like this;

PHP:
		<li<?php if($page['cat'] == "3/index"){ echo " class=\"selected\""; } ?>>
<?php if($page['cat'] == "3/index"){ echo "<strong>Fan Guard']/strong>"; }else{ 

echo "<a href=\"".PATH."/3/index.html\">Fan Guard</a>"; } ?>
<span></span>
</li>
 

PylonHotel

New Member
Apr 11, 2011
87
1
These guys don't know what they're talking about, ignore them, you added it as it was from the language files, which i doubt it is, you added it like this
PHP:
".$lang->loc['Fan Guard']."
Change it to,
PHP:
Fan Guard
.

Should be like this;

PHP:
		<li<?php if($page['cat'] == "3/index"){ echo " class=\"selected\""; } ?>>
<?php if($page['cat'] == "3/index"){ echo "<strong>Fan Guard']/strong>"; }else{ 

echo "<a href=\"".PATH."/3/index.html\">Fan Guard</a>"; } ?>
<span></span>
</li>

Thank god someone knew how to do this. I thank you, but you wouldn't know how to change the color of it aswell?

Thank you for you answer.
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,195
3,907
That would be by your image file, it uses the class, so you could only make it blue/green as for default unless you changed the colours on the image your self. But if you do want to do that to make it green, then you would do;

Code:
<li id="tab-register-now">

For the tab.
 

Users who are viewing this thread

Top