Advertisement:

Author Topic: Different theme config, different forum?  (Read 1336 times)

Offline njtweb

  • Sr. Member
  • ****
  • Posts: 901
Different theme config, different forum?
« on: November 09, 2018, 04:17:12 PM »
Can you change the colors of each of your forums and maybe have a logo or different name for each? I remember you could do that with old versions of vBulletin.

Thanks to all in advance for any info.

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,400
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Different theme config, different forum?
« Reply #1 on: November 09, 2018, 04:31:14 PM »
Yup when you edit your board you cand o
"
Board Theme:
This allows you to change the look of your forum inside only this board."
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Online SychO

  • Lead Customizer
  • SMF Hero
  • *
  • Posts: 1,419
  • Gender: Male
    • SychO9 on GitHub
    • SychO
Re: Different theme config, different forum?
« Reply #2 on: November 09, 2018, 04:51:36 PM »
Yup when you edit your board you cand o
"
Board Theme:
This allows you to change the look of your forum inside only this board."

I don't think he means different theme for each board, rather just a slightly different style with the board's title as forum title(or logo)

well you could use $context['current_board'] in the index template, check if it's not empty and then load a special CSS file ( board_{ID}.css ) if it exists & change colors for the board in question.

Code: [Select]
if(!empty($context['current_board']) && file_exists($settings['theme_dir'].'/css/board_'.$context['current_board'].'.css'))
echo '<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/css/board_', $context['current_board'], '.css?fin20" />';

Same for the logo except you change from .css to .png or something else and /css/ to /images/


Imazighen

Offline njtweb

  • Sr. Member
  • ****
  • Posts: 901
Re: Different theme config, different forum?
« Reply #3 on: November 09, 2018, 08:19:19 PM »
Thank you both.

To answer, I am currently using default theme 2.0.15 and have no interest in using a custom theme. Lets say I have 30 forums, I want to customize the color scheme of just one forum and maybe put a logo at the top instead of text like I currently have for the entire board. And if it works I might want to do the same for a few other forums.

My entire board is all hockey teams, I'd like to customize a few of the hockey team forums to set them aside, (differently from the others).

Thank you!

Offline lurkalot

  • Sophist Member
  • *****
  • Posts: 1,331
  • Gender: Male
  • Tinyportal Support
    • guitaristguild on Facebook
    • Tinyportal on GitHub
    • @GuitaristGuild on Twitter
    • Guitarist Guild
Re: Different theme config, different forum?
« Reply #4 on: November 10, 2018, 05:07:52 AM »
Thank you both.

To answer, I am currently using default theme 2.0.15 and have no interest in using a custom theme. Lets say I have 30 forums, I want to customize the color scheme of just one forum and maybe put a logo at the top instead of text like I currently have for the entire board. And if it works I might want to do the same for a few other forums.

My entire board is all hockey teams, I'd like to customize a few of the hockey team forums to set them aside, (differently from the others).

Thank you!

As you use TinyPortal, you could add a logo (and or) custom info above each board, in a Top, or Upper block.  You can set individual blocks to only show on a particular board.  If that's any help.

Online Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 18,476
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • There's No Place Like 127.0.0.1
Re: Different theme config, different forum?
« Reply #5 on: November 10, 2018, 08:27:10 AM »
Just from the admin panel, create a copy of the default theme for each board you want to customize, then set the board to use that copytheme, and then customize the way you like. Doable with no code edits.
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.
  Fooling around with an i7 990X @ 3,47Ghz / 12Gb / Win 10 x64 / 3840x2160


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline njtweb

  • Sr. Member
  • ****
  • Posts: 901
Re: Different theme config, different forum?
« Reply #6 on: November 10, 2018, 09:03:19 AM »
You guys are the best! Thanks for the info guys.

Offline njtweb

  • Sr. Member
  • ****
  • Posts: 901
Re: Different theme config, different forum?
« Reply #7 on: November 10, 2018, 03:09:54 PM »
Just from the admin panel, create a copy of the default theme for each board you want to customize, then set the board to use that copytheme, and then customize the way you like. Doable with no code edits.

Where do you copy in the admin panel?

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,246
    • StoryBB/StoryBB on GitHub
Re: Different theme config, different forum?
« Reply #8 on: November 10, 2018, 03:22:13 PM »
From Themes > Manage and Install, where it says to create a copy of a theme...
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline njtweb

  • Sr. Member
  • ****
  • Posts: 901
Re: Different theme config, different forum?
« Reply #9 on: November 10, 2018, 11:01:51 PM »
From Themes > Manage and Install, where it says to create a copy of a theme...

Great, got it. Thank you very much.

Offline njtweb

  • Sr. Member
  • ****
  • Posts: 901
Re: Different theme config, different forum?
« Reply #10 on: November 12, 2018, 09:38:07 AM »
Weird, I made a copy of the default curve, and made 2 color changes to the body in index.css. Wasn't much just wanted to see what it would look like. Looked fine on a computer but responsiveness no longer works on hand helds or iPads.

Online SychO

  • Lead Customizer
  • SMF Hero
  • *
  • Posts: 1,419
  • Gender: Male
    • SychO9 on GitHub
    • SychO
Re: Different theme config, different forum?
« Reply #11 on: November 12, 2018, 11:07:48 AM »
It probably didn't copy the "responsive.css" file so you have to do it manually

Imazighen