![]() |
N9ne - its called a ternary operator i believe ;)
I'm very interested to see how this develops as IMO i think we'll see a lot of PHP errors popping up now on vBulletin.org due to poor PHP coding in the templates :) - miSt |
Quote:
|
awesome! will install! i've been wanting this for awhile now!
|
nice work
:) All-the-vb click install |
Pseudo-code of what it does:
1. Find every occurance of <? and ?> (and what's inbetween them) 2. For each occurance, make every variable within in the global scope, and then eval what's in the occurance 3. Remove the original occurances from the template. |
And so, no need to modify PHP files to create new hack (even if I'll continue to modify the php files for my new hack, but this can be usefull for some modifications ;) )
[high]* grog6 cliks install too :) [/high] Thx for it Filburt |
Very nice filby;):)
Satna |
Very nice, thanks! :bunny: :banana:
|
nice hack, I fixed it slightly though to suit my needs:
PHP Code:
<? ?> <?php php?> <php></php> and any combinations of them, such as: <?php ?> and so on. Also now if you use return(stuff here); in the php script, it returns the data straight to the template itself. Like: <? $stuff = "stuff"; return $stuff; ?> would return the $stuff varible right into the template for you. |
Odd... the following code doesn't seem to work:
Code:
<? |
All times are GMT. The time now is 11:54 PM. |
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:
|