HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Subforums problem

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#78123 (In Topic #16024)
Avatar

Well-settled

Recently I've noticed that subforums are not displayed anymore below parent forum on main forum page (subforums are still listed and can be accessed entering the parent forum)

Now I am trying to find an option(s) in settings to re-enable the feature but I can't find it at all.

Does anybody know what option should be enabled in order to display subforums? Thank you.


Last edit: by MitraX

FeminaPortal - Female Internet Portal (powered by ocPortal)
INFORBIRO - Information Technology Agency
BlicKlik - Internet Marketing and Advertising
Back to the top
 
Posted
Rating:
#78125
Avatar

Well-settled

New information.

It seems that this issue exists only if new forums and sub-forums are added to General forum group (?!)

Try adding a couple of forums and sub-forums refresh Forum page and sub-forums are not visible on main page. After that remove newly added forums and sub-forums and everything will work fine again. Tested on two different OCPortal v7.1.5 instances.

Should I enter this as a bug or this is a standard behavior, from some reason?


Last edit: by MitraX

FeminaPortal - Female Internet Portal (powered by ocPortal)
INFORBIRO - Information Technology Agency
BlicKlik - Internet Marketing and Advertising
Back to the top
 
Posted
Rating:
#78126
Avatar

Well-settled

In addition to the previous post.

It seems that number of forums and subforums caused the issue, not adding new forums into any particular group.

I currently have 40 main forums and 58 subforums and if I want to add a new one into any forum group or forum sub-forums are not displayed anymore on main forum page.

Is there any limitation in number of forums in ocPortal?

FeminaPortal - Female Internet Portal (powered by ocPortal)
INFORBIRO - Information Technology Agency
BlicKlik - Internet Marketing and Advertising
Back to the top
 
Posted
Rating:
#78127
Avatar

ocPortal probably made a decision to protect performance/layout. 58 is an unusually huge number.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#78128
Avatar

Well-settled

Chris,

Thank you for the response.

Of course, there isn't 58 sub-forums under a single one parent, but all over the forum. And it is necessary to have so many sub-forums, maybe even more in later phase. And I would like to have them listed under their parents on main forum page.

Chris Graham said

ocPortal probably made a decision to protect performance/layout. 58 is an unusually huge number.

Is there any way to configure this "decision making", somewhere to change it's behavior?

Or at least let visitors know that there are sub-forums under parent. For example, all other forum scripts have at least option how many subforums to show for parent on main forum page followed with dotts in order to let user know that there are more:

- Main forum
   - Parent 1
      - Subforum 1, Subforum 2, Subforum 3…
   - Parent 2
      - Subforum 1, Subforum 2, Subforum 3…
   - Parent 3


Last edit: by MitraX

FeminaPortal - Female Internet Portal (powered by ocPortal)
INFORBIRO - Information Technology Agency
BlicKlik - Internet Marketing and Advertising
Back to the top
 
Posted
Rating:
#78129
Avatar

Will get back to you :).


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#78130
Avatar

sources/ocf_forumview.php, change:

Code

$huge_forums=$GLOBALS['FORUM_DB']->query_value('f_forums','COUNT(*)')>100;
to a higher number than 100 if you like.

What is happening is ocPortal won't use separate queries to find subforums of each forum there (would be performance issue). It'll read in all forums and then in memory it will work out what to show where. But it won't do that if there are more than 100 total forums it won't do this either because as that would be a separate kind of performance issue.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#78139
Avatar

Well-settled

It sounds logical! Thank you.

I copied the file into source_custom, made the change and it works.

However, it would be nice if this is documented anywhere or even better that number of "huge forums" is not hard-coded but actually a global parameter, e.g. HUGE_FORUMS_NUMBER.

FeminaPortal - Female Internet Portal (powered by ocPortal)
INFORBIRO - Information Technology Agency
BlicKlik - Internet Marketing and Advertising
Back to the top
 
Posted
Rating:
#78140
Avatar

Added a note to this tracker topic:
0000094: 'max' options - ocPortal feature tracker

Originally ocP was unlimited, but we saw the light in v6 (IIRC) and ensured that even if there are millons of everything it can't grind to a halt. There are quite a few hard-coded thingies as a result but I take your point.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#78146
Avatar

Well-settled

Great!

In the meantime, I wrote an article describing the issue and detailed steps for changing "huge forums" value in Englishand Serbian (a way of ocPortal promotion).

FeminaPortal - Female Internet Portal (powered by ocPortal)
INFORBIRO - Information Technology Agency
BlicKlik - Internet Marketing and Advertising
Back to the top
 
Posted
Rating:
#78147
Avatar

:thumbs:


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#78148
Avatar

Community saint

MitraX said

In the meantime, I wrote an article describing the issue
But you didn't mention THIS article. It is truly the most comprehensive and easy-to-read description (or review) of ocPortal that I have ever seen outside the developers' website.

Well done Nenad. Indeed, VERY WELL DONE!

 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#78149
Avatar

Community saint

Great article !!!!!


http://digiflash.nl Photo community  (dutch)
Back to the top
 
Posted
Rating:
#78154
Avatar

Community saint

Fletch said

MitraX said

In the meantime, I wrote an article describing the issue
But you didn't mention THIS article. It is truly the most comprehensive and easy-to-read description (or review) of ocPortal that I have ever seen outside the developers' website.

Well done Nenad. Indeed, VERY WELL DONE!

 :thumbs:
If I may join with Fletch to praise your efforts as a great ocPortal ambassador!
Well Done! :thumbs:
Jean
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: