![]() |
Gah! Hacking woes...
Ok, I have myself stuck again, here is what I have:
In functions.php PHP Code:
Then I have added a new template called petbit and posted what was previously in the postbit tempate into it. Then I have added $post[showpet] into the postbit. I also have a new field in the user CP called showpet and in that I have "0".... What should happen is it should see that showpet is set to 0 and then show the petbit... but it doesnt, it shows nothing. Then if I change whats in the showpet field to 1 - it shows the one (when its set to 0 it shows nothing) Any ideas what the problem is? :D:D |
Can members change this value?
|
They will be able to yes.
|
Edit that - they cant edit it directly - it will either be "0" or "1"
|
Like I said, see if
changing PHP Code:
PHP Code:
Knowing me, it probably won't lol |
Shouldn't that be?
PHP Code:
|
ok, here's an update on the problem...
I have it storing a 0 or a 1 into the database now, which is good.. then i use $post[petbit] it should show the template called petbit - thats goin on this bit of code: PHP Code:
Any ideas? |
Did you try the code I posted above?
|
PHP Code:
|
Quote:
|
All times are GMT. The time now is 11:44 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|