MyBB Community Forums

Full Version: Change the "sub-forum" to another word, in a certain area.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
So I'm running a clan and we have divisions. The divisions have squads in them so I wanted to replace the part where it says "sub forums" to "squads". But I just want it in a that specific forum, for the divisions. I'd like it to say "sub forums" should I create them in other forums.

[Image: 914b6839033b5723ea60f8500c52df11.png]
you have to use template conditionals plugin and add required condition in forumbit_subforums template

replace {$lang->subforums} with a condition like below ( X is the parent forum ID )
<if $forum['fid'] == X  then><strong>Squads:</strong> <else> {$lang->subforums} </if>

(edited)
Ok I downloaded the plugin but it's just a file. Would i put the file into my root folder? Please bear with me, I'm not very good at coding haha
^ you can add that php file to plugins folder (~/inc/plugins) and activate it from plugins page of admin panel
Template conditionals is two files I think - the txt file is part of the plugin and should also be uploaded to the server.
(2015-02-09, 02:26 AM).m. Wrote: [ -> ]^ you can add that php file to plugins folder (~/inc/plugins) and activate it from plugins page of admin panel
Ok thank you, I'll upload it now.
(2015-02-09, 02:38 AM)Leefish Wrote: [ -> ]Template conditionals is two files I think - the txt file is part of the plugin and should also be uploaded to the server.

I only got a .php


<- snip ->

in the global, default, or my skin's template?
I looked in my skin and there was only one line of code so i'm guessing it's not that one haha.
Edit: I guess it is that one, cuz it didn't work in default template. I'll get back to you.
so, you downloaded this one : http://mybbhacks.zingaburga.com/showthread.php?tid=260

NOT this one : http://mybbhacks.zingaburga.com/showthread.php?tid=464

Be aware that if you allow other admins access to the templates then they can use the Php in templates plugin to do almost anything if their php is good enough. Just an FYI. That is why m suggested Template Conditionals.
(2015-02-09, 03:05 AM)Leefish Wrote: [ -> ]so, you downloaded this one : http://mybbhacks.zingaburga.com/showthread.php?tid=260

NOT this one : http://mybbhacks.zingaburga.com/showthread.php?tid=464

Be aware that if you allow other admins access to the templates then they can use the Php in templates plugin to do almost anything if their php is good enough. Just an FYI. That is why m suggested Template Conditionals.

I used the second link which is the one m provided me with....was I not supposed to? Will I have to remove the
First one and do it all over again?
There two files in the 7zip of template conditionals. I know this because I just downloaded it and checked. They are 2 files in a folder called inc/plugins - you need to make sure you upload them both to your server.

You don't need to uninstall anything - you just need to make sure BOTH files are uploaded or some conditionals wont work.
(2015-02-09, 03:11 AM)Leefish Wrote: [ -> ]There two files in the 7zip of template conditionals. I know this because I just downloaded it and checked. They are 2 files in a folder called inc/plugins - you need to make sure you upload them both to your server.

You don't need to uninstall anything - you just need to make sure BOTH files are uploaded or some conditionals wont work.

Ok.
Also It changed it but it just looks like part of the description, it deleted the sub-forums and such. Maybe cuz of i didn't upload both files..


EDIT: I downloaded it again using this link: http://mybbhacks.zingaburga.com/showthread.php?tid=464
and is till only see one file called : phptpl.php
Pages: 1 2