The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
![]()
yes, can be used easily, but you have to take care when using strings in conditions
![]() there are no securitychecks in, so parse errors can occur very easy ![]() maybe i'm telling you tommorro, i'll go now ![]() |
#12
|
||||
|
||||
![]()
Heh...
I think I know how, but I'll wait till Master Xenon tells us ![]() Satan |
#13
|
||||
|
||||
![]()
ok, well here it is, as i said, it's not a released hack, no support is given
![]() open admin functions.php in function gettemplate find this: PHP Code:
PHP Code:
Example: Code:
Hello <if>$bbuserinfo[userid]>0<then>$bbuserinfo[username]<else>Guest, please register</if> ![]() It just fits my needs, not any checks ![]() |
#14
|
||||
|
||||
![]() Quote:
Code:
if ($bbuserinfo['userid']!=0) { echo "member"; } else { echo "guest"; } ![]() |
#15
|
||||
|
||||
![]()
@sebastian: look my post 8 posts above of yours, there's described how he can use full php-code in the templates also (but not HTML anymore
![]() The conditional thing i just posted, because boofo wnated it ![]() |
#16
|
||||
|
||||
![]()
now we're talking, i didn't see that
![]() |
#17
|
||||
|
||||
![]()
Xenon, that conditional code looks interesting. Right now, I am using Logicians hack for this (which I thank you for pointing me in that direction
![]() |
#18
|
||||
|
||||
![]()
@Xenon - Those conditions rock
![]() Is there an <elseif> one? Satan |
#19
|
||||
|
||||
![]()
@boofo: yes, normally you can use the ismoderator() function.
you should be able to use every php function in the conditions by me ![]() @satan: you can build it so by nested if's: Code:
<if>$a==1<then>Hello<else><if>$a==2<then>Hello 2<else>Hello 3</if></if> you cannot use it without the else ![]() it just uses the iif-function from vb, so you are limited to this limits |
#20
|
||||
|
||||
![]()
I see...
![]() Thanks for sharing ![]() Satan |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|