The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
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!) |
#2
|
|||
|
|||
![]() PHP Code:
|
#3
|
||||
|
||||
![]()
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! |
#4
|
||||
|
||||
![]()
well either you'd want
PHP Code:
PHP Code:
|
#5
|
||||
|
||||
![]()
So would this work? :
PHP Code:
Thank you both for your help!! :-) |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|