vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=263)
-   -   Adding a vB5 Site-Builder Module to Display Certain Forums? (https://vborg.vbsupport.ru/showthread.php?t=328382)

Pitman 11-30-2020 06:35 AM

Adding a vB5 Site-Builder Module to Display Certain Forums?
 
I love vBulletin 5, but it has a lot of downfalls...

I want to create a "New Page" in the Site Builder and use a module to display specific forums.

I know this can be done by simply linking to a category forum, but the display on the FORUM page does not work for me like I need for it to by default.

By default, I would need to do the following:
Main Category (link I would need by default for a new page)
Sub Category
Sub Forum (Shown as a "Sub Forum")
Sub Category2
Sub Forum2 (Shown as a "Sub Forum")
But I want the Forum page to show
Sub Category
Sub Forum
Sub Category2
Sub Forum2
AND the NEW page to show:
Sub Category
Sub Forum
Sub Category2
Sub Forum2
I would rather be able to create a new page and display a certain group of forums to display as a new forum page without using display order of 0 to hide the forums.

If that doesn't make sense, please let me know and I'll try to make a few screenshot examples.

delicjous 11-30-2020 06:58 AM

That needs a little custom coding to tell the forums-template which templates you want to show.

Some new mods here use only sql to fetch stuff, without any permissions or caches been used. That will also show admin- / mod-stuff (like posts in a not user-permitted channel) and do not use cache so performance will decrease.

You could look into display_Forums_tab -> display_Forums -> display_Forums_list

And please do not change one of that templates... if you know what you could change, create your own tmeplates and show them with template-widget.

Pitman 11-30-2020 07:10 AM

Nice, you give me something to work on... I might be able to figure that out with a bit of work. I've not used vBulletin in 5-6 years, so I'm rusty on things. I just wish there was a better way, but I'll attempt what you suggested and try to get it to work :D

I'll definitely need some help getting started though :\

--------------- Added [DATE]1606729963[/DATE] at [TIME]1606729963[/TIME] ---------------

If I do it that way, how could I pull $channesl?

delicjous 11-30-2020 08:54 AM

Depends and I have not the time to explain that fully. You could create an array by doing search for the needed channels or use your own api-class.

Pitman 12-02-2020 03:32 AM

I've been able to only pull the display of categories using those templates. I've not yet figured out how to display the forums I want or the regular forum display of any forums.

In Omnibus 12-02-2020 10:06 AM

It seems to me you're overcomplicating things.

Construct a JSON search string:

https://forum.vbulletin.com/articles...he-search-json

yilmaz 12-02-2020 06:20 PM

1 Attachment(s)
The area marked in the Forum Home Module edit adjusts the depth of the forum.


All times are GMT. The time now is 11:06 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02396 seconds
  • Memory Usage 1,722KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete