Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
requests-topic
Need suggestion
Avatar
mikedizor
Member
Free Members
sp_UserOfflineSmall Offline
Mar 17, 2011 - 3:58 pm

 

Next Question.

 

My sub forums are showing in this position;

 

                  Cars

Sub-Forum: Toyota    Sub-Forum: Honda   Sub-Forum: Anything

 

Can I change them to look like this;

 

                  Cars

                        Toyota

                        Honda

                        Next Sub Category

 

Need your help!!!

 

 

 

 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 17, 2011 - 10:32 pm

is that group view?  no, its meant to just be a hint... on the parent forum page, they will show up at the top like you ask...

that will be possible with themes in v5.0...

Avatar
mikedizor
Member
Free Members
sp_UserOfflineSmall Offline
Mar 18, 2011 - 1:51 am

 

no it's not a group view actually it's a parent forum on the top and then all other are like sub forums.

 

 

Like

 

                                Cars      (Parent Forum)

             Sub-Forum:  Honda   (Child Forum)

             Sub-Forum: Toyota    (Child Forum)

 

Any idea how can i do it?

 

 

 

 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 18, 2011 - 8:46 pm

currently, child forums are shown at the top... and then the topics for the current forum are listed...

so not sure what you mean... the only place forums are listed is the group view...

Avatar
mikedizor
Member
Free Members
sp_UserOfflineSmall Offline
Mar 19, 2011 - 1:33 pm

Image Enlarger

This will show more clear picture. My group name is on the top and then my forums and then my child forums and sub forums. If you need more explanation, so let me know.

 

 

 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 19, 2011 - 10:49 pm

yes, that is the group view as I suspected...

and that is the proper way for subforums to be displayed...  If you displayed them just like a regular forum, what would the point in them being a subforum??

anyways, to do so, you would need to edit the core code...

Avatar
mikedizor
Member
Free Members
sp_UserOfflineSmall Offline
Mar 20, 2011 - 2:33 am

Thanks for answering.

 

I want them to look more manageable like many forums have.

 

If i can get the instruction on how to change the core code and where i need to make that change then that should be a very good for me to complete my work as soon as possible..

 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 20, 2011 - 9:14 am

'like many forums'?  all the ones I am familiar with dont show sub forums at same level as the parent…  not sure why you dont just have all parents then...  but that really doesnt matter – its your preference…

start off with simple-forum/forum/sf-group-view.php and the sf-render-group() function at the top… you will have to trace down it to where subforums are displayed and change it up as you want… you should be able to use existing routines.

cannot be very specific since we have never done… but give it a try and come on back with questions, we can keep pointing you in the right direction…

Avatar
mikedizor
Member
Free Members
sp_UserOfflineSmall Offline
Mar 22, 2011 - 2:41 pm

 

Having absolutely no experience of programming that what I can see on my sf-group-view.php file, but i'm not confirm what changing I need to make so I can display my subforums where i want.

 

function sf_render_group()

{

    global $sfvars, $current_user, $sfglobals, $session_groups, $subforums, $subforumids;

 

Your help much be appreciated in this regard.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 22, 2011 - 6:28 pm

we arent going to be able to write it for you...  too much going on and you are the only one to ask for it...

you have the correct code...  the subforum rendering is this code

# Display current forum row if not a subform
                    if (!$forum['parent'])
                    {
                        # if a new forum then there will be no stats
                        if (isset($stats[$forum['forum_id']]))
                        {
                            $forumstats = $stats[$forum['forum_id']];
                        } else {
                            $forumstats['topic_count'] = 0;
                            $forumstats['post_count'] = 0;
                        }
                        $out.= sf_render_forum_entry_row($forum, $forumstats, $alt);
                    }

                    # show subs if any to show
                    if($showsubs)
                    {
                        $out.= sf_render_sub_forum_entry_row($subforums, $alt);
                    }
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: 620
Members: 17366
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626