MyBB Community Forums

Full Version: Add a class to forum tag
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I need to add class to the forum but I am unsure an how to do this

I need
<forum class="myclass">

And I am unsure where to find or add this templates or core files or with a line of code some where
If you understand HTML just review the HTML SOURCE of the page you want the class to be in. Look for the tags labeling which template it's in.

<!-- TEMPLATE BEGIN -->

Something like that. It will tell you which template to edit in admincp.
(2013-01-11, 09:28 PM)labrocca Wrote: [ -> ]If you understand HTML just review the HTML SOURCE of the page you want the class to be in. Look for the tags labeling which template it's in.

<!-- TEMPLATE BEGIN -->

Something like that. It will tell you which template to edit in admincp.

Thank you for your reply labrocca
but I know the template but there is no forum tag
New Thread Templates
newthread_postpoll
tring to add this
http://www.emblematiq.com/lab/niceforms/
and I class to forum tage
Wait...so you want a separate class for each forum? You'll need to be more creative in that case.

I think class="{$fid}_myclass" or something like that will work.
(2013-01-11, 10:34 PM)labrocca Wrote: [ -> ]Wait...so you want a separate class for each forum? You'll need to be more creative in that case.

I think class="{$fid}_myclass" or something like that will work.

well what am trying to do is change all the check and radio buttons but I need class="niceform" to be in forum tag then class="NFCheck" to the <input > tag where the check box is but I can not get it to work.

Thank you labrocca for your time and help.
I found something different and was easier to get working.