PHP in Templates and Template Conditionals - Printable Version +- MyBB Community Forums (https://community.mybb.com) +-- Forum: Extensions (https://community.mybb.com/forum-201.html) +--- Forum: Plugins (https://community.mybb.com/forum-73.html) +---- Forum: Plugin Support (https://community.mybb.com/forum-72.html) +---- Thread: PHP in Templates and Template Conditionals (/thread-31860.html) |
RE: PHP in Templates and Template Conditionals - Destroy666 - 2013-09-23 You can only use variables available in certain scripts, in which the templates are called, and functions listed in .txt file. I don't think any of tem makes it possible to get last post from database. RE: PHP in Templates and Template Conditionals - WitherBones - 2013-09-26 Is there a way for us to select a specific category then, in the post bit, using an if...else conditional? For instance, if category number is 1, display this style, else if category number is 2, display this other style? RE: PHP in Templates and Template Conditionals - Glandus - 2013-09-29 I have 2 custom profile fields and here is what I wish to do: 1. If both are filled in the UCP, show them both in the postbit. 2. If only one is filled in, then show only that one in the post bit. I also want it to be wrapped in a <div> tag which is styled to have those fields in a small box on the postbit, how I would I make it so if the custom profile fields aren't filled in, then the small box also won't show? I have tried all the <if> statements I could find. RE: PHP in Templates and Template Conditionals - Destroy666 - 2013-09-29
Of course change X and Y to your profile field numbers. RE: PHP in Templates and Template Conditionals - WitherBones - 2013-09-29 this is exactly what i need to do for my forumbit! How do I change this to work in the index for the forum bit? basically it would work the same except the forum display would be different depending on the forum's id. RE: PHP in Templates and Template Conditionals - marcus123 - 2014-01-30 One of the best MYBB plugins I mean it allows you to do amazing stuff, Very Big thanks RE: PHP in Templates and Template Conditionals - ttersu - 2014-03-30 Hi, can I use this to Hide the internal standard moderation tools?...And, if yes, how? RE: PHP in Templates and Template Conditionals - codetr - 2014-08-22 It looks at both show1-2 so not working.
RE: PHP in Templates and Template Conditionals - Omar G. - 2014-08-22 It is not possible to be showing both. Unless you are not using the Template Conditionals plugins. RE: PHP in Templates and Template Conditionals - Lu5ck - 2014-09-09 does this still works for 1.8? |