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 Threads From A Particular Forum On Non-VB Page (https://vborg.vbsupport.ru/showthread.php?t=62823)

AnhTuanCool 08-22-2004 02:10 AM

Nothing but a blank page :\

SVTBlackLight01 08-27-2004 11:16 PM

The Author(s) agreed to give support for this modification!

I haven't seen anything from the author in here since the first post 5 months ago.

I'm looking for a way to display more than one forums as well.

Anne Lise 09-07-2004 03:06 PM

Anyone solved the problem?

ipgn 09-13-2004 02:10 AM

Quote:

Originally Posted by Mark.B
This has the serious problem of showing threads from private forums, as I just found out to my cost!

It'd be nice to see this fixed also... major issue for some...

dfmafia 09-13-2004 06:48 AM

what version of vB3 does it work on and which versions does it not work on

im using vB3.0.3 and it dont work

what version are u guys using that its working on?

dfmafia 09-13-2004 07:09 AM

well looky there...

at:
PHP Code:

$forum_id "3"// If you wish to display the posts from a specific forum, enter the forum id here. Otherwise, leave it blank. 

it will only work out correctly if u input 1 forum_id - when i entered in only the forums i wanted t show up (about 20 of them) i get:

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/xxx/public_html/lastthreads3.php on line 41

if i just enter in 1 forum id it works great

this is fior both the scripts the author made

lastposts3.php and lastthreads3.php

James T Brock 10-28-2004 05:26 PM

Can someone update this so that it will show multiple forums and not just one?

I know you can use external.php to do the same thing, but it's much more convenient to use this script and it's easier to customize the colors and look. I'm using it now and like it, but would prefer it if I could show threads from several different forums.

lancepoint 11-20-2004 05:16 AM

can you just double up the row?



PHP Code:

$forum_id "3"// If you wish to display the posts from a specific forum, enter the forum id here. Otherwise, leave it blank. 
$forum_id "4"// If you wish to display the posts from a specific forum, enter the forum id here. Otherwise, leave it blank. 
$forum_id "5"// If you wish to display the posts from a specific forum, enter the forum id here. Otherwise, leave it blank. 


xeonkiller711 03-31-2005 12:15 AM

Quote:

Originally Posted by lancepoint
can you just double up the row?



PHP Code:

$forum_id "3"// If you wish to display the posts from a specific forum, enter the forum id here. Otherwise, leave it blank. 
$forum_id "4"// If you wish to display the posts from a specific forum, enter the forum id here. Otherwise, leave it blank. 
$forum_id "5"// If you wish to display the posts from a specific forum, enter the forum id here. Otherwise, leave it blank. 



Nope it picks the last number... I dont think you can use more then one forum on this script... Its a wonderful script but thats the problem...

Wistow 04-04-2005 10:51 AM

Easy - find the following code:
Code:

if ($forum_id) {
        $forumid = "AND forumid=$forum_id";
}

and replace it with
Code:

if ($forum_id) {
        $forumid = "AND forumid!=$forum_id AND forumid!=$forum_id2";
}

Now below the $forum_id variable at the top of the script, add
Code:

$forum_id2 = "FORUM YOU WANT POSTS FROM";
You can repeat this for more forums, adding an extra variable and SQL statement for each. Quite an untidy compromise, but it works!

Craig


All times are GMT. The time now is 04:54 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.02698 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
  • (3)bbcode_code_printable
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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