vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   List Popular Threads on Another Page... (https://vborg.vbsupport.ru/showthread.php?t=4333)

11-01-2000 09:32 PM

I was just wondering if there was a way to get vB to supply the 5 or 10 (or whatever) last posted to forum topics to another page (say the site index page).

I am curious because the only part of my site that uses PHP is vB, and the rest runs on Cold Fusion and HTML.

Can anyone help explain this?

11-05-2000 02:01 AM

Code:

<?

      require("admin/config.php");


      $num_active = 10;

      $db=mysql_connect($servername,$dbusername,$dbpassword);
      mysql_select_db($dbname);

        $twentyfourhours= 24*60*60;
      $date1 = time() - $twentyfourhours * 1;


        $myselect = "select * from thread where lastpost > $date1 order by views desc limit 10";


        $result = mysql_query($myselect);

        if ($row = mysql_fetch_array($result)) {

do {
        printf("<li><a href=\"http://www.gandmasti.com/forum/showthread.php?threadid=%d\">%s</a><br>%d views - %d replies</li>", $row[threadid], $row[title], $row[views], $row[replycount]);
} while ($row = mysql_fetch_array($result));
}
?>


11-13-2000 09:42 PM

What do I modify to make it list by replies instead? I dont want it to list views at all...

This will be for http://www.athlonoc.com

11-25-2000 07:21 AM

that works for pages not on your vbulletin

how would i add something like that to my vBulletin

like in my forumhome template

11-27-2000 05:43 AM

Vbulletin is NOT wanting me to SSI the pop topics in :(

http://www.athlonoc.com/vbulletin/index.php

check it out! it's actually putting in the <!--inlcude stuff...

11-27-2000 12:19 PM

Quote:

Originally posted by krohn
Vbulletin is NOT wanting me to SSI the pop topics in :(

http://www.athlonoc.com/vbulletin/index.php

check it out! it's actually putting in the <!--inlcude stuff...


PHP != SHTML. Plain and simple.

11-27-2000 09:00 PM

so uhh... what do I do?

11-28-2000 03:25 PM

use

<?php include("http://website.com"); ?>

instead

11-30-2000 12:27 PM

Quote:

Originally posted by krohn
What do I modify to make it list by replies instead?
this would make it alot more efficient...

12-05-2000 04:43 PM

any ideas on how to list it by replies?


All times are GMT. The time now is 08:22 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.01309 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
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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