![]() |
Calling all PHP pros...
hello :-)
I was just wondering if there is anyway to use a conditional such as the 'if' one in actual vB php files? I want to install a hack which makes some changes to the php files but I only want it to effect guests (non-loggeg in users)... any ideas what to use? Any help much appreciated! I know it can be done with phpbb and I think with this line: if ( !$userdata['session_logged_in'] ) But would that work with vB? (sorry if its a dumb question!) |
PHP Code:
|
thanks your a star!!!!!!! :-)
actually sorry... come to think of it - i would need the 'code its replacing' to not be shown to the guest... so I'd need an 'else' option? any ideas? sorry to be a pain! |
well either you'd want
PHP Code:
PHP Code:
|
So would this work? :
PHP Code:
Thank you both for your help!! :-) |
All times are GMT. The time now is 02:09 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:
|