vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   mYvBindex v3.1 (https://vborg.vbsupport.ru/showthread.php?t=44691)

zeidlern 08-24-2003 04:44 AM

I know it's in here some where but I can't find it in 112 pages.

Is there a way to limit the threads that show up in the latest threads section?

For example I don't want my new forum to show up as well as some non-site realated forums.

Zachery 08-24-2003 04:56 AM

<a href="https://vborg.vbsupport.ru/showthread.php?postid=412050#post412050" target="_blank">https://vborg.vbsupport.ru/showt...050#post412050</a>

try that

Cal Poly Forum 08-24-2003 05:55 AM

<a href="https://vborg.vbsupport.ru/showthread.php?postid=412050#post412050" target="_blank">https://vborg.vbsupport.ru/showt...050#post412050</a> didn't work for me either.

mv540 08-24-2003 02:29 PM

Quote:

Today at 06:56 AM Faranth said this in Post #1672
https://vborg.vbsupport.ru/showthrea...050#post412050


try that

sorry i cant seem to find anything pertaining to the myvbindex install in your provided link.

Zachery 08-24-2003 02:32 PM

i wasnt refering to you mv540, im sorry

honestly im not sure why its doing that,

you can attemtp to reupload all your files making sure its in ASCII mode

and try to re run the installer

i just preformed an install on 2.3.0 a while ago and i didnt have any problems

zeidlern 08-24-2003 02:32 PM

Yea, that doesn't work at all. Any other thoughts? I was looking at the lastest threads part of the vbindex.php file but lack the knowledge to do anything. lol

I currently run phpbb on my site http://www.insanejustice.com

So I'm trying to make the vBulletin look similar with some updated grahpics. http://test.insanejustice.com

I need to have the ability to only show a few forums on in the latest threads. Currentally, with that I have now, when I run the fetch command I can just pass the forum numbers that I want displayed.

like: phpbb_fetchthreads(1,2,3,4,7,8,9)

It would be neat if this was incorporated in the vb control panel where we could either list teh forums we want or don't want. it wouldn't matter either would ne nice.

Zachery 08-24-2003 02:38 PM

you could probally write somthing to only include, but excluding might be ezier in some facts :\

how im not sure i dont know enuf about how vb and php works, i tired my best :(

zeidlern 08-24-2003 02:41 PM

Ok, I got it. open your index file.

Find this:
PHP Code:

// Latest Forum Topics
$threadbits '';
if (
$maxlatethreads!='') {
  
$threads=$DB_site->query("SELECT
threadid,thread.title,replycount,postusername,postuserid,dateline,views,lastposter,lastpost"
.iif($showthreadicon,',thread.iconid as iconid,icon.title as icontitle,icon.iconpath as iconpath','').
                                                        FROM thread 
                                                        "
.iif ($showthreadicon,'LEFT JOIN icon ON icon.iconid=thread.iconid','').
                                                        WHERE open<>10 
$iforumperms ORDER BY lastpost DESC LIMIT $maxlatethreads");
  while (
$thread=$DB_site->fetch_array($threads)) { 

And chagne it to this:
PHP Code:

// Latest Forum Topics
$threadbits '';
if (
$maxlatethreads!='') {
  
$threads=$DB_site->query("SELECT
threadid,thread.title,replycount,postusername,postuserid,dateline,views,lastposter,lastpost"
.iif($showthreadicon,',thread.iconid as iconid,icon.title as icontitle,icon.iconpath as iconpath','').
                                                        FROM thread 
                                                        "
.iif ($showthreadicon,'LEFT JOIN icon ON icon.iconid=thread.iconid','').
                                                        WHERE forumid != 87 AND open<>10 
$iforumperms ORDER BY lastpost DESC LIMIT $maxlatethreads");
  while (
$thread=$DB_site->fetch_array($threads)) { 

You can add forumid != XX AND as many times as you want. These are the forums you DON'T want to see.

Zachery 08-24-2003 02:42 PM

wow quick edit, well if it works good i guess :\

zeidlern 08-24-2003 02:44 PM

Quote:

Today at 04:42 PM Faranth said this in Post #1679
wow quick edit, well if it works good i guess :\

Nope, look at my test site: http://test.insanejustice.com

Notice that the news and polls don't show up in the latest forum activity now.

So it's pulling everything other than those 2.


All times are GMT. The time now is 12:46 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.02246 seconds
  • Memory Usage 1,754KB
  • 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
  • (2)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
  • (4)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