Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Vertical SubForums
Avatar
Anne Schmidt
Member
sp_UserOfflineSmall Offline
Nov 7, 2015 - 6:09 pm

Is there anyway to get our subforum topics to display vertically instead of horizontally under the main forum topic?

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Nov 7, 2015 - 6:24 pm

Sure, you can do this by changing the value of the 'stack' argument to 1 in the function sp_ForumIndexSubForums in your group view template.

For this you would need to create a child theme. Nice and easy to do - the frameworks are available from our store for free.

Download the correct framework for the theme you're using and then copy over the spGroupView.php template from the parent theme's template folder to to your child themes templates folder, or if using reboot theme copy over spGroupViewDesktop.php from the parent theme to your child themes templates > desktop folder.

Then locate the function:

sp_ForumIndexSubForums('unreadIcon=sp_SubForumUnreadIcon.png', __sp('Sub-Forums'), __sp('Browse topics in %NAME%'));

And add the 'stack' argument so it would then appear:

sp_ForumIndexSubForums('unreadIcon=sp_SubForumUnreadIcon.png&stack=1', __sp('Sub-Forums'), __sp('Browse topics in %NAME%'));

And you should then have a vertically running list.

I know it might seem like quite a lot to do one little change but it shouldn't take more than 15 minutes, plus having a child theme in place can be very useful for the odd minor change!

Avatar
Anne Schmidt
Member
sp_UserOfflineSmall Offline
Nov 9, 2015 - 9:03 am

AWESOME! Thanks so much. That was really easy. I already had a custom child theme created, so this worked out perfectly.

Thanks!!

Anne!

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Nov 9, 2015 - 9:07 am

Good stuff! No problem, happy to help.

Avatar
Anne Schmidt
Member
sp_UserOfflineSmall Offline
Nov 11, 2015 - 11:15 am

When I click into a forum right now, it's blank. Any ideas what I could ahve done/

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Nov 11, 2015 - 11:31 am

Are we talking about all forums or just sub forums?

If you get a blank page, do you still get your WP theme and just a blank forum? If so it would be my guess that something in the forum view template could be causing an error maybe?

If it is a PHP error somewhere then it should show up in your PHP error log as one of the latest if not last entry.

If none of the above, have you got a link we could take a look at?

Avatar
Anne Schmidt
Member
sp_UserOfflineSmall Offline
Nov 11, 2015 - 12:46 pm

Ahhh, yes. Thanks! There was definitely an error in the forum view template. Thanks again!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 11, 2015 - 12:48 pm

Glad it was that easy to fix. Thanks for the update.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Seth
Member
Free Members
sp_UserOfflineSmall Offline
Nov 11, 2015 - 3:22 pm

Hello Guys,

I would like to arrange my subforum under group forum VERTICALLY instead of been Horizontal but as explained above, i didn't understand it. Could you guys please split as step by step for me?

i am using reboot them and i can see ''spGroupViewDesktop.php'' and i didn't know what you guys refering to parent theme. Although i had downloaded stacked.zip and had uploaded it as well but it looked exactly as theme too. Are you guys saying its has to be activated? or is reboot theme the parent theme and which one is the childtheme and do i create child theme?

 

Thanks

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Nov 11, 2015 - 3:39 pm

Hey Seth,

I'm not sure how I can explain it any differently really as I've laid it out in a step by step guide there.. But I will try and clear up a couple of things.

By parent theme we mean the original Reboot theme. As every time an update is released to one of our themes when you update it removes and replaces the entire theme. This means that any small changes you make are then lost when you update.

Child theme's aren't ever updated by us, so the changes last forever. They are basically empty copies or shells of a parent which you can put your own small changes in. If your change is CSS it can have a stylesheet that only contains the changes you want to make - whatever rules you put in there will override the corresponding rules in the parent theme and not touch anything else. If your change is to a template you copy the whole template into the right folder and make your change, but no other templates need to be included. So when the parent theme is updated the child theme changes still exist.

The child theme frameworks are available from the store for free. I've put all the links up there in post #2 so I won't add them all again here.

But I will add, if you are not sure where to start or don't have much experience with CSS or PHP, it really pays to read the child theme link up there in post #2. It has all the information you need in a step by step guide.

And of course if you don't want to tackle it yourself, we offer a custom theme service.

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625