Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-21-2009, 09:33 PM   #1
JD
Too lazy to set a custom title
 
Industry Role:
Join Date: Sep 2003
Posts: 22,651
php help plz

Code:
<?php if ( is_category('6')) { ?>pstop
<?php } else if (is_category('3')) {?>brtop
<?php } else {?>top
<?php } ?>
i can't for the life of me figure out wtf the deal is with this. I'm not a coder but can plink around in php usually without any issues but this thing is driving me nuts. when in category 6 it works perfect, when not in a category at all it works but when in category 3 it thinks it should use "top" and not "brtop"

Any ideas?
JD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-21-2009, 09:46 PM   #2
dozey
Confirmed User
 
dozey's Avatar
 
Join Date: Nov 2004
Location: Moonland
Posts: 552
Presumably it is not in category 3 then, you should check what is_category does for category '3'
dozey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-21-2009, 09:48 PM   #3
JD
Too lazy to set a custom title
 
Industry Role:
Join Date: Sep 2003
Posts: 22,651
i've double checked if the page is category 3 several times :/ it's the right category.
JD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-21-2009, 09:51 PM   #4
JD
Too lazy to set a custom title
 
Industry Role:
Join Date: Sep 2003
Posts: 22,651
fack... got it figured out.
JD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.