MyBB Community Forums

Full Version: PHP in Templates and 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 12 13 14 15 16 17 18 19 20 21 22
(2014-09-09, 11:25 AM)Lu5ck Wrote: [ -> ]does this still works for 1.8?

Yes
What file type is this plugin? I can't seem to open it after I download it.
phptpl-2.0.7z - any known software similar to 7-zip and WinRAR should open it.
I'm on a mac... just d/l The Unarchiver and got it. Thanks!
SO how can I check for the NULL condition of a custom field and then display an error msg ?
Any idea how to make something like this OP?

<if last post in thread older than one month then>
Some random message here 
</if>
(2015-05-22, 12:43 PM)holyshit Wrote: [ -> ]Any idea how to make something like this OP?


<if last post in thread older than one month then>
Some random message here 
</if>


I need that too, to prevent grave digging. Not sure what the variable is tho.
<if TIME_NOW - $thread['lastpost'] > 60*60*24*31 then>
Last post in this thread older than 31 days
</if>
I want to hide the language and theme selectors from bots. What would be the conditional to check for a spider session?
Hmmm... MyBB hacks seems to be offline. Anybody has a mirror? Thanks.

EDIT: I got the file from MyBB hacks using the WayBackMachine. And I have reuploaded the file here: http://www.mediafire.com/download/3321ym...tpl-2.0.7z
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22