12-13-2010, 06:54 PM
12-14-2010, 05:10 AM
wow, that's interesting.
12-16-2010, 10:54 AM
Updated to v1.8:
- adds the <?= ... ?> construct from Template Conditionals plugin; conditional isn't checked for safety
- adds <setvar ..>...</setvar> construct from Templates Conditionals plugin; these will still assign to the $GLOBALS['tplvars'] array
- adds phptpl_eval_expr and phptpl_eval_text from Template Conditionals; conditional isn't checked for safety
- adds the <?= ... ?> construct from Template Conditionals plugin; conditional isn't checked for safety
- adds <setvar ..>...</setvar> construct from Templates Conditionals plugin; these will still assign to the $GLOBALS['tplvars'] array
- adds phptpl_eval_expr and phptpl_eval_text from Template Conditionals; conditional isn't checked for safety
12-18-2010, 04:03 AM
Upgraded.
Thank you very much, Yumi
Thank you very much, Yumi

12-18-2010, 04:17 AM
Brilliant. Thanks Yumi 

12-19-2010, 08:00 PM
Heya! I'm a bit of a lurker and first time poster.
This plugin's awesome and I'd really like to use it but I'm having a bit problem.
Alright, so I uploaded the plugin to where plugins usually get uploaded (inc/plugins) and activated it. So far so good. Then I took the plugin for a test spin and inserted <?php echo "Test"; ?> in a few templates. For some weird reason "Test" isn't being displayed.
I did a fresh install of MyBB (1.6.1) in another location, uploaded the plugin, activated it, inserted <?php echo "Test"; ?> in the header template and took the plugin for a test run and "Test" gets displayed.
My problem's basically this: the plugin parses <?php echo "Test"; ?> in a clean install of MyBB but doesn't display anything in the... not so clean MyBB and I'm not sure why. XD
This plugin's awesome and I'd really like to use it but I'm having a bit problem.Alright, so I uploaded the plugin to where plugins usually get uploaded (inc/plugins) and activated it. So far so good. Then I took the plugin for a test spin and inserted <?php echo "Test"; ?> in a few templates. For some weird reason "Test" isn't being displayed.

I did a fresh install of MyBB (1.6.1) in another location, uploaded the plugin, activated it, inserted <?php echo "Test"; ?> in the header template and took the plugin for a test run and "Test" gets displayed.
My problem's basically this: the plugin parses <?php echo "Test"; ?> in a clean install of MyBB but doesn't display anything in the... not so clean MyBB and I'm not sure why. XD
12-19-2010, 08:26 PM
It does sound like you may have a plugin conflict. What you can do is upload your forum plugins one by one to the alternative location and see which one causes the "Test" to disappear. I realise that might be a bit faint-making if you have a lot of plugins, but that is a way to go.
12-20-2010, 05:09 PM
(12-19-2010 08:26 PM)leefish Wrote: [ -> ]It does sound like you may have a plugin conflict. What you can do is upload your forum plugins one by one to the alternative location and see which one causes the "Test" to disappear. I realise that might be a bit faint-making if you have a lot of plugins, but that is a way to go.Sorry for not responding sooner but thanks for the reply.

I uploaded most of the plugins to the new location, activated them and not a single one managed to make the echoed "Test" disappear. I then decided to go compare the board settings between the two locations to see if there was a setting that was causing it. After a few minutes of comparing settings, I found what was causing the "Test" to not be displayed.
Turns out I had the Output template start/end comments? setting in the Server and Optimization Options setting group set to "No". I felt kind of dumbfounded after finding that out. XD
Thanks for the help, man. I can't wait to start making use of this plugin, thanks Zinga!
12-20-2010, 05:26 PM
Hmm, it _should_ work with HTML comments turned off though. I wonder if MyBB changed something.
Thanks for finding that one and reporting, I'll take a look.
Thanks for finding that one and reporting, I'll take a look.
02-15-2011, 01:45 AM
thanks for your plugin ...
I need to put an image with a link next to a forum ...
In forumbit_depth2_forum with the code <if ..... then>, how can I intercept the forum id 14 ? (or by forum name)
I need to put an image with a link next to a forum ...
In forumbit_depth2_forum with the code <if ..... then>, how can I intercept the forum id 14 ? (or by forum name)