MyBB Hacks

Full Version: Template Conditionals
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11
Okey, I see. Thanks for the reply
I can't active the plugin Frown
That must suck.
Is there any way to get the URL of the current page with this (e.g. <?php get_current_url(); ?>) or should I use PHP in Templates?
You were close.
Haven't tried, so see if this works:

Code:
<?=get_current_location()?>

It works! Thank you!

Will make defining og:url much easier.
is there any way to add a button on a template file?
what i push this button i want to check the value of a $GLOBALS['threadfields']['test'] field and if the value is 'true' execute codeA and if the value is 'false' execute codeB.

is it possible?
hello,

I am thinking of moving to MyBB 1.8 , but I use template conditionals a great deal in my themes.

Does this plugin "work" in MyBB 1.8 ? I ask because the compatibility is stated as 1.2, 1.4, 1.6.
It should work fine with 1.8.
I'm using it in 1.8 with no apparent issues yet.
Pages: 1 2 3 4 5 6 7 8 9 10 11
Reference URL's