Support Forum

Need suggestion

29 Answers

New Answer

MP Mr Papa
Mr Papa
Member

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…

MI mikedizor
mikedizor
Member

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..

 

MP Mr Papa
Mr Papa
Member

'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…

MI mikedizor
mikedizor
Member

 

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.

MP Mr Papa
Mr Papa
Member

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);
                    }
MI mikedizor
mikedizor
Member

Thanks for your reply.

 

I'm sorry if l ask and nobody ask yet. So then give me a suggestion. If I have too many sub categories like for example. If I have 5 or 6 sub-forums under a parent folder so they will be shown like in the subforum line like in the picture.

or like this;

 

Parent Forum: Cars

Subforums: Honda, Toyota, Benz, 4th, 5th, 6th

 

So they are always be showing in the line which will look very ugly not manageable to me i'm not confirm about others.

 

Or if you can suggest me, if i can break them in 2 columns that you should also solve my problem.

 

MP Mr Papa
Mr Papa
Member

2 columns?  where would you want the column break to be??

still, that would take you modifying the core code to accomplish…

MI mikedizor
mikedizor
Member

 

2 columns is right, but again coding is not possible for me.

MP Mr Papa
Mr Papa
Member

I dont understand the 2 column part… its already two columns… one for the icon and one for the subforums…

MI mikedizor
mikedizor
Member

 

Might this will explain well.

 

Parent forum Cars                (Not a group a parent forum)

Subforums or child forums    (All of these are subforums in 2
columns)

Toyota       5th  

Honda        6th

3rd                 7th        

4th                 8th

MP Mr Papa
Mr Papa
Member

I previously pointed you to the code where the subforum display code is located.  you can change it up however you want. Something like you request is not currently available in the codebase (nor will we be adding it – because of next paragraph)

in v5.0, we will be introducing themes.  you will have much more ability within your theme to arrange various items and layouts as you desire.

MI mikedizor
mikedizor
Member

Ok i got it. I think i can live with this.

 

Any update on v5.0 when it should be available.

 

MP Mr Papa
Mr Papa
Member

np. It cannot come soon enough for us! great things in store!