The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
ok am trying to get my head around php, and to be honest am finding it ok.
i've made this php script to use on my forum/vbportal. For test purposes i've used echo "????" just to see where am at ( trying to do thing methodical ) : PHP Code:
the above code works fine..... but you have probably spotted what am going to ask. When you not logged in and try and access the php, it does include the bottom part of the script, Code:
CloseTable(); include("footer.php"); ?> I understand that is will happen because the way i have wrote the php. Correct me if am wrong, when it comes to 'if (!$bbuserinfo[userid] || $bbuserinfo[usergroupid]==1 || ' if you dont have the cridentials it stops and displays : 'echo "premission denied";' on the other hand if you do , then it continues, hence the '} else {' part. This is part of my learning curve. So anyways, back to my point, how to i alter it, so that ' CloseTable(); include("footer.php"); ' is inculded in both instances ?? - what do i need to do? i know i could use templates using : eval("dooutput(\"".gettemplate('blah blah')."\");"); but i want to learn to hard code stuff, other than rely on templates. thanks for you time,...... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|