GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   php help plz (https://gfy.com/showthread.php?t=939744)

JD 11-21-2009 09:33 PM

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?

dozey 11-21-2009 09:46 PM

Presumably it is not in category 3 then, you should check what is_category does for category '3'

JD 11-21-2009 09:48 PM

i've double checked if the page is category 3 several times :/ it's the right category.

JD 11-21-2009 09:51 PM

fack... got it figured out.


All times are GMT -7. The time now is 11:48 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123