vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   [RELEASE] Show category list on non vb pages (https://vborg.vbsupport.ru/showthread.php?t=2284)

08-15-2000 12:17 AM

eva - in your inc file, make sure you reference the full path to the config.php, not just admin/config.php

And this doesn't even use forums, so I'm not exactly sure whatcha mean... :)

08-15-2000 12:21 AM

okay i think forgot to change the path ? ...with forums i was meant to say that for this thread http://www.vbulletin.com/forum/showt...?threadid=2283

08-15-2000 12:33 AM

Somewhere in the WHERE clause, add:

AND forumid<>#

where # is the number of the forum you want to exclude.

08-15-2000 12:37 AM

thanks i will give it a try and let you everyone know :D

08-23-2000 10:51 AM

well finally got it to work... http://animeboards.net/forums/showforumlist.php3 thanks :D

08-31-2000 11:07 PM

What about showing the list on ANOTHER SERVER? :)
it will be great , I'm not an expert but I think this can be done using javascript.

09-01-2000 02:09 AM

Essam - just replace $servername with "123.456.78.90"

Where 123.456.78.90 is the IP of the server you want to connect to. (Also, note the quotes)

09-01-2000 02:13 AM

Thank you so much,

This can be done with any hack? like top xxx topics?

09-05-2000 06:49 AM

Hi!
Can you make a little bit modify to let the result with
how many threads like this:

Category xx (230)
Category yy (300)
Category zz (20)

09-05-2000 08:01 AM

Quote:

Originally posted by jameshsi
Hi!
Can you make a little bit modify to let the result with
how many threads like this:

Category xx (230)
Category yy (300)
Category zz (20)

I figure out, and paste here in case someone needs it:
<?php

require("/path/to/your/admin/config.php3");
$db=mysql_connect($servername,$dbusername,$dbpassw ord);
mysql_select_db($dbname);
$query = "SELECT * FROM category ";
$resultlatest = mysql_query($query,$db);
while ($latest_array = mysql_fetch_array($resultlatest)) {
$countid = $latest_array[categoryid] ;
$q1 = "select * from forum where categoryid=$countid";
$howmany = mysql_query($q1,$db);
$counter="0";
while ($count_array = mysql_fetch_array($howmany)) {
$counter = $counter + $count_array[threadcount];
}
echo "<FONT SIZE=\"1\" FACE=\"Arial\">??
<A HREF=\"http://yourdomain/forum/index.php3?categoryid=$latest_array[categoryid]\">$latest_array[title]</A>($counter)</FONT><BR>";
}

?>



Since I am a newbie on PHP coding, please let me know if you know there is a better way to do this.


All times are GMT. The time now is 04:39 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.01478 seconds
  • Memory Usage 1,734KB
  • 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_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
  • (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