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.
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.
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