vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Last X Posts Titles on Non-VB page (https://vborg.vbsupport.ru/showthread.php?t=62624)

DPtheGod 03-24-2008 08:19 AM

I love your hack, it's wonderful! I have a question, though.

Is it possible to restrict the hack from getting latest posts in boards only certain usergroups can see, such as staff boards?

CEO TaYloR? 08-08-2008 04:52 PM

Where do you upload the script?

dragoncub 11-01-2008 02:36 AM

Quote:

Originally Posted by Oblivion Knight (Post 494977)
Here's an addon to exclude forums that I've quickly thrown together.. :)

Find:
Code:

$limit = "10"; // Number of posts displayed.
Add below:
Code:

$excludeforums = ""; // The forums you want to exclude from being displayed, put their ID here.
Find:
Code:

if ($limit) {
        $limited = "LIMIT $limit";
}

Add below:
Code:

if ($excludeforums == "" or $excludeforums <= "0") {
        $quarter = "no";
} else {
        $excfid = explode(",",$excludeforums); $i = 0; $a = count($excfid);
        while ($i < $a) {
                $wheresql .= " AND thread.forumid!='$excfid[$i]'";        ++$i;
        }
}

Find:
Code:

SELECT threadid,title,lastpost,lastposter
Add on the same line:
Code:

,forumid
Find:
Code:

WHERE visible=1
Add on the same line:
Code:

$wheresql
All done.. :)

I followed these instructions to exclude a private forum, but its not working, its still showing the post on the homepage. Any ideas why?
BTW, I'm running 3.7.3

dragoncub 11-01-2008 11:12 PM

Another thing, the list of the recent post does not automatically update when I load my homepage, I have to press the refress button in order to update the list. Is there a fix for this?

dragoncub 11-02-2008 12:24 AM

Quote:

Originally Posted by dragoncub (Post 1656930)
I followed these instructions to exclude a private forum, but its not working, its still showing the post on the homepage. Any ideas why?
BTW, I'm running 3.7.3

nevermind, I figure it out, I was putting the wrong forum id number, I was putting the id of the parent forum not the actual child forum.


All times are GMT. The time now is 03:19 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.01244 seconds
  • Memory Usage 1,727KB
  • 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
  • (8)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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