Not Solved PHP in Templates and Template Conditionals
#11
Not Solved
(2008-11-01, 01:22 AM)Hime Wrote: How to put specific chunk of code....say "Test:Test" using gid & conditionals!?

Can I actually use GID in templates?
Sorry, I really don't know what you're trying to say there... :/
Reply
#12
Not Solved
(2008-11-01, 04:24 AM)ZiNgA BuRgA Wrote:
(2008-11-01, 01:22 AM)Hime Wrote: How to put specific chunk of code....say "Test:Test" using gid & conditionals!?

Can I actually use GID in templates?
Sorry, I really don't know what you're trying to say there... :/

Is there any way to put Group Specific code in the postbit with conditionals?

I meant group id by "gid" in my previous post....but somehow vbulletin codes messes with my mybb experiences, so please take my apology for not being clear Smile
Reply
#13
Not Solved
It depends on where you put it, but you could try something like this:
<if $GLOBALS['mybb']->user['usergroup'] == 4 then> stuff for usergroup 4</if>
Reply
#14
Not Solved
Quote:Is there any way to put Group Specific code in the postbit with conditionals?

I want to put it in postbit & the code didn't work when I tried Sad

Edit 1:Well it worked....I tried with additional usergroups earlier...Smile I will give more feedbacks soon Smile

Edit 2: naah, when I put the exact code from you, all usergroup got same thing! Sad
Reply
#15
Not Solved
Can you give the HTML output of what is being generated?
Reply
#16
Not Solved
Is this plugin compatible with 1.4?
My Company - I am Microsoft Certified in HTML5, CSS3 and JS
Reply
#17
Not Solved
Yes, it should be.
Reply
#18
Not Solved
Okay, thank you!
My Company - I am Microsoft Certified in HTML5, CSS3 and JS
Reply
#19
Not Solved
Is there are way I could use this in showthread to say:

IF attachment type = X
do something
ELSE
normal attachment display

I would like to use different styling based on attachment type if possible.
Reply
#20
Not Solved
Try something like this in postbit_attachments_attachment:
<if $ext == 'zip' then>
blah
<else>
bleh
</if>
Reply


Forum Jump:


Users browsing this thread: 40 Guest(s)