News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

Is this possible in SMF?

Started by brettuk, January 03, 2016, 03:55:09 PM

Previous topic - Next topic

brettuk

Hey, I just ran across a forum which has a heading tag and a description within a category page.

As an example, this is their SEO category;
https://www.warriorforum.com/search-engine-optimization/

It has a nice description along with a heading.

Any mod which supports this currently?

Thanks!

JBlaze

It's possible, yes. It would require a modification to the boards table in the database, along with options in the modify boards page and template edits.
Jason Clemons
Former Team Member 2009 - 2012

brettuk

Quote from: JBlaze on January 03, 2016, 04:22:23 PM
It's possible, yes. It would require a modification to the boards table in the database, along with options in the modify boards page and template edits.

Does a mod exist for this currently?  ;D

margarett

If you define a board description it can be shown above the topics list more or less like you have in that example. The looks can be changed with CSS ;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

brettuk

Quote from: margarett on January 04, 2016, 01:25:24 PM
If you define a board description it can be shown above the topics list more or less like you have in that example. The looks can be changed with CSS ;)

Can't seem to find the setting, board description is the description of the category on the homepage?

Illori

Quote from: margarett on January 04, 2016, 01:25:24 PM
If you define a board description it can be shown above the topics list more or less like you have in that example. The looks can be changed with CSS ;)

having it show there is not a default feature. you have to add it manually.

Illori

if (!empty($options['show_board_desc']) && $context['description'] != '')
echo '
<p class="description_board">', $context['description'], '</p>';
is what has to be added to show the description, it would have to go in MessageIndex.template.php

i put mine above

// Create the button set...
$normal_buttons = array(

margarett

It is supposed to be there already, I didn't add anything :P

The option to show the description is a user setting, not an admin setting. You can set it to everyone by going to ACP --> Configuration --> Themes and Layout --> Member options.
There you can set every current member to have the descriptions shown in "Change current options for all members using this theme" --> Show board descriptions inside boards (you have to do it for every theme you use)
Then you can go to "Configure guest and new user options for this theme" and activate the same option, which will set it for guests and for new registrations.
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Illori

ah... i was not looking at the per member options that is a dumb place to put it.

brettuk

Quote from: margarett on January 04, 2016, 05:18:58 PM
It is supposed to be there already, I didn't add anything :P

The option to show the description is a user setting, not an admin setting. You can set it to everyone by going to ACP --> Configuration --> Themes and Layout --> Member options.
There you can set every current member to have the descriptions shown in "Change current options for all members using this theme" --> Show board descriptions inside boards (you have to do it for every theme you use)
Then you can go to "Configure guest and new user options for this theme" and activate the same option, which will set it for guests and for new registrations.

Got it - it's working thanks.
Anyway I can make the baord description different to what is stated on the Homepage?

I want to add a H1 to the board decription, along with a nice lengthy paragraph - but I don't want it appearing on the homepage.

Kindred

be aware -- the H1 is already defined on every page...   and you should never have more than one H1 tag on any page.

check out the optimus brace mod...

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: