vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Latest Threads On Forum Home (https://vborg.vbsupport.ru/showthread.php?t=83230)

RichieBoy67 12-22-2005 08:59 PM

Quote:

Originally Posted by Chris M
Hrm...

You will need to alter the query this time :p

Again, not tested, but in the plugin code, find:
PHP Code:

AND forumid NOT IN (0$limitfids

add above:
PHP Code:

AND forumid IN ($showfids

Now find:
PHP Code:

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

add below:
PHP Code:

$showfids x,y,z

Replace [high]x,y,z[/high] with the forumids you want users to be able to view :)

Satan

Just wondering, Has anyone tested this yet????



To block forums from showing I believe this will work. Place the id of the forums here.. replace the zero with the forums you want blocked..

PHP Code:

 AND forumid NOT IN (0$limitfids

I just tested this and it works. These are the same instructions as for the other latest threads hack only you edit the xml file instead of the index file...

Prince 12-22-2005 11:17 PM

I guess I am just stupid because that does not work, I get errors.

Chris M 12-22-2005 11:37 PM

Code:

$limitfids = ',x,y,z';
Chris

Prince 12-22-2005 11:40 PM

that causes errors, the only way it works is with one number in there:

$limitfids = x;

Lizard King 01-04-2006 11:51 PM

It is not getting the right threads with correct time.
The last thread time shows : 03:45
But the correct time shall be : 22.39

WoodiE 01-06-2006 11:11 PM

I'm trying to use this with the Right side menu plugin here on vb.org and when I insert the code into the menu nothing is displayed. Any ideas?

-Michael

Mathiau 01-07-2006 10:47 PM

Installed on vb 3.5.3 on 6 templates and all work perfect!

Lizard King 01-07-2006 10:54 PM

is there a way to add ajax auto refresh option to this ?

Vierie 01-08-2006 09:42 AM

Quote:

Originally Posted by WoodiE
I'm trying to use this with the Right side menu plugin here on vb.org and when I insert the code into the menu nothing is displayed. Any ideas?

-Michael

Add
PHP Code:

require_once('./includes/functions_forumlist.php'); 

once at the beginning of the php code in the xml-file and change the position of the hook to global_start.

After that you should be able to use the code in the right column.

MarsNIIT 01-09-2006 03:43 AM

Hello,

I have two forum: music and IT,

But i want display Latest Threads of two forum display On Forum Home will divide 2 part, above is latest thread of forum IT, and below is latest thread of forum Music.

How to do it. Thank you.


All times are GMT. The time now is 11:40 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.01455 seconds
  • Memory Usage 1,744KB
  • 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)bbcode_code_printable
  • (6)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete