Not Solved PHP in Templates and Template Conditionals
#21
Not Solved
Thanks that worked perfectly.
Reply
#22
Not Solved
very good zinga,
it provides more flexibility in teplates
great work
Reply
#23
Not Solved
Thanks.

I thing, only Template Conditionals is really needed.

run PHP in template is shouldn't for security reasons.
http://hoiquantinhoc.com
Vietnamese vBulletin Board Customizer

http://mybbvn.com
Vietnamese MyBBoard Customizer
Reply
#24
Not Solved
(2009-04-15, 03:24 AM)ChangUonDyU Wrote: Thanks.

I thing, only Template Conditionals is really needed.

run PHP in template is shouldn't for security reasons.
You can still actually run PHP from within the template conditionals, so it really isn't much more secure. The system would require some way of detecting "dangerous" conditionals which can be potentially problematic...
Reply
#25
Not Solved
I cant get this plugin to work.
I activated the plugin and added this line to a template:

<?php
echo "code runned.";
?>

But I just see the full PHP-code in the source of my website.
Any idea why?
Reply
#26
Not Solved
Can you reproduce this on a clean board? If so, can you give step by step instructions on how to reproduce your issue? Thanks.
Reply
#27
Not Solved
Is there a list of available conditions somewhere?
Reply
#28
Not Solved
Hi Yumy thanks for the great plugin!

I'm using it for not to see as admin my google adsense ads and accidentally click on them.

<if $GLOBALS['mybb']->user['usergroup'] == 4 then>Hello juliusb!<else>
ADSENSE CODE
</if>

I put this in my header and showthread templates. Do you think it slows down my forum?

Thanks
juliusb
Reply
#29
Not Solved
(2009-05-19, 09:09 AM)juliusb Wrote: I put this in my header and showthread templates. Do you think it slows down my forum?
The majority of plugins will slow down your forums. As to what extent really depends.
Reply
#30
Not Solved
From what I read, this allows me to use other stuff like {$header} or {$forums} and so on. Is it? And also run PHP codes in templates right?
But where do I upload this? /inc/plugins/? And then, I upload it.. and.. it's done? Am I ready to use it or do I have to do something else?
Reply


Forum Jump:


Users browsing this thread: 102 Guest(s)