vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Recent threads outisde of forum (https://vborg.vbsupport.ru/showthread.php?t=162356)

JamesN 11-10-2007 10:08 AM

Recent threads outisde of forum
 
I've noticed a lot of sites have sections like this on pages outside of their forum:

http://www.files2net.com/files/60408...ivethreads.jpg

What's the mod that is needed to do this? I've spent the past 20 minutes trying to find it and I can't :confused:

Would appreciate some help - thanks :)

Jason Black 11-10-2007 10:18 AM

sections like what?

JamesN 11-10-2007 11:01 AM

See the screen-print.

A list of recent threads with the Last Post, Replies, Views, etc?

WhaLberg 11-10-2007 04:04 PM

Maybe they are using portals?

Check out www.vbadvanced.com

JamesN 11-10-2007 07:28 PM

Yeah, I think they are, but I was wondering if it was possible to do something like that without using portals?

WhaLberg 11-11-2007 11:21 AM

Dear James,

Ofcourse it is possible without using any portal system. All you need is a query that will read the threads and order them by dateline. Here is a simple example for you:
PHP Code:

<?php

chdir
(path/to/your/forums);
require_once(
'./global.php');

$threads $db->query_read("
SELECT title FROM " 
TABLE_PREFIX "thread
ORDER by dateline DESC
LIMIT 0,5
"
);
while (
$thread $db->fetch_array($threads))
{
echo 
$thread['title'] . "<br />";
}
?>

The codes above will simply show you the recent 5 threads.

Jason Black 11-11-2007 12:58 PM

<a href="http://www.phpportals.com" target="_blank">www.phpportals.com</a>

JamesN 11-12-2007 09:32 AM

Thanks for that WhaLberg :)

DrussRob 01-13-2008 10:22 PM

WhaLberg, you are my hero.

ArnyVee 08-29-2008 03:17 PM

I tried this and it didn't work when I tried to paste the info that WhaLberg provided above. Any idea how I can display it on my page in the place of the bulleted list under the left most section?

http://www.waltdisneyboards.com/view.php?pg=wdbhub


All times are GMT. The time now is 07:08 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.00999 seconds
  • Memory Usage 1,725KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete