The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I've been porting vBMS to vB3 and am working on the navbar. Previously it took me a ton of regular expressions and multiple templates, but check it out:
Code:
<if condition="$iscurrentscript"><b><else /><a href="$filename?$session[sessionurl]"></if> $title<if condition="$iscurrentscript"></b><else /></a></if> <if condition="$isinbox and $unreadcount > 0"> (<span style="color:{vbms_unreadtext}">$unreadcount</span>) </if> <if condition="!$islast"> {vbms_navbar_delimiter} </if> Only problem is that it doesn't let you use custom functions. You can only use built-in ones like empty(), isset(), etc. ![]() |
#2
|
||||
|
||||
![]()
wait a min... didnt we talk about a hack like this once O_O?
I could make something like this pretty easy if you wanted it..or do you have it already? Adding functions wouldnt be that hard, just list the ones you think would be useful. |
#3
|
|||
|
|||
![]()
I know a hack like this exists for vB2, but vB3's are already painless.
![]() Also, IIRC the validation is only done when you make the template from the admin CP. Directly in the database, it won't be validating anything ![]() |
#4
|
||||
|
||||
![]()
in template.php there is a list of all allowed functions in template conditionals.
as for vb.org's vb3 i was already forced to add some functions to the list. it's just as a security issue, if you'd allow DB changing functions the admin securitysystem would be useless... |
#5
|
|||
|
|||
![]()
Well I'm assuming that phpinclude is disabled in such a case as well...
|
#6
|
||||
|
||||
![]()
soon you wont even need to learn PHP to make fuull web applications. @_@
|
#7
|
||||
|
||||
![]()
Mmmm conditionals.
![]() |
#8
|
||||
|
||||
![]()
Conditionals are great. In fact, what took multiple custom templates now all resides in the templates "memberinfo" or in "modify" using simple REQUEST variables.
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|