The Arcive of vBulletin Modifications Site. |
|
Gah! Hacking woes... Details »»
|
|||||||||||||||||||||||||
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? ![]() ![]() Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Can members change this value?
|
|
#3
|
||||
|
||||
|
They will be able to yes.
|
|
#4
|
||||
|
||||
|
Edit that - they cant edit it directly - it will either be "0" or "1"
|
|
#5
|
||||
|
||||
|
Like I said, see if
changing PHP Code:
PHP Code:
Knowing me, it probably won't lol |
|
#6
|
||||
|
||||
|
Shouldn't that be?
PHP Code:
|
|
#7
|
||||
|
||||
|
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? |
|
#8
|
||||
|
||||
|
Did you try the code I posted above?
|
|
#9
|
||||
|
||||
|
PHP Code:
|
|
#10
|
||||
|
||||
|
Quote:
|
![]() |
|
|