vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Latest Threads from a Certain Forum to Display on ForumHome? (https://vborg.vbsupport.ru/showthread.php?t=101359)

Death Star 11-22-2005 09:46 PM

Latest Threads from a Certain Forum to Display on ForumHome?
 
Is there a way to display the latest threads from only a certain forum in a table on the homepage?

I have a news table in a left column that I would like to have automatically update with the latest threads in the news section, and only the news section.

http://www.overclockstop.com

Thanks :)

bump

Death Star 11-24-2005 07:58 AM

bump***

Anybody? :surprised:

Vierie 11-24-2005 09:17 AM

You could try this hack: https://vborg.vbsupport.ru/showthread.php?t=83230

You would have to change the xml-file a bit.

Find:
PHP Code:

 // fetch the permissions for each forum
     
global $vbulletin;
     
$forumperms = array(); 

Below add:

PHP Code:

   $limitfids x

x would be the ID of the forum, from which you want to have the threads displayed.

Find:
PHP Code:

// ## HIDE FORUMS WITHOUT THE CANVIEW PERMISSION ##
      
if (!($forumperms[$forum["forumid"]] & $vbulletin->bf_ugp_forumpermissions['canview']) AND !$vbulletin->options['showprivateforums']) {
          
$limitfids .= ','.$forum['forumid'];
      } 

Remove it.

Find:
PHP Code:

AND forumid NOT IN (0$limitfids

Change to:
PHP Code:

AND forumid IN (0$limitfids

If I didn't forget something critical that should work, but give me some feedback.

Death Star 11-24-2005 06:25 PM

Thank you so much :D Works like a charm!


All times are GMT. The time now is 06:06 AM.

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.02906 seconds
  • Memory Usage 1,719KB
  • 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
  • (5)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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