Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 08-06-2000 Last Update: Never Installs: 0
 
No support by the author.

Here is another one. This one will display a list of categories on a non vb page;

See it in action here:
http://www.extremeforums.com/include...rylist.inc.php

Code:
<?php
require("/full/path/to/admin/config.php");
$db=mysql_connect($servername,$dbusername,$dbpassword);
mysql_select_db($dbname);
$query = "SELECT * FROM category ORDER BY title ASC";
$resultlatest = mysql_query($query,$db);
while ($latest_array = mysql_fetch_array($resultlatest)) {
echo "<FONT SIZE=\"1\" FACE=\"Verdana, Arial, Helvetica, sans-serif\">&nbsp;°
<A HREF=\"http://www.extremeforums.com/forums/index.php?categoryid=$latest_array[categoryid]\">$latest_array[title]</A></FONT><BR>";
}
 
?>
Edit the echo statement as you see fit

~Chris

[Edited by TechTalk on 08-10-2000 at 05:33 PM]

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 08-10-2000, 07:02 PM
Guest
 
Posts: n/a
Default

What code does one use to include this inside a vBulletin template. Such as a footer or header file?

How do you use this inside in vBulletin page?
Reply With Quote
  #3  
Old 08-10-2000, 07:08 PM
Guest
 
Posts: n/a
Default

what about the php code to include on a non vbulletin page ?
Reply With Quote
  #4  
Old 08-10-2000, 08:32 PM
Guest
 
Posts: n/a
Default

Well assuming you named it "categorylist.inc.php" you would call it like this:

<?php
include("/full/path/to/categorylist.inc.php");
?>

Hope this helps

~Chris
Reply With Quote
  #5  
Old 08-10-2000, 08:37 PM
Guest
 
Posts: n/a
Default

thanks gonna try it as soon as i get some sleep first hehe
Reply With Quote
  #6  
Old 08-14-2000, 08:16 PM
Guest
 
Posts: n/a
Default

i tried it and got this error

Fatal error: Failed opening required 'admin/config.php' in /home/usr1/www.animeboards.net/htdocs/forums/categorylist.inc.php on line 2
Reply With Quote
  #7  
Old 08-14-2000, 08:27 PM
Guest
 
Posts: n/a
Default

Fatal error: Failed opening required 'admin/config.php' in
/home/usr1/www.animeboards.net/htdocs/forums/categorylist.inc.php on line 2

You obviously have an error in the path you placed in the include statement. The path would not include the http://www.animeboards.net URL.

Most likely the path is something along the lines of:
/home/usr1/htdocs/forums/categorylist.inc.php

The above path is just a guess based on the error you included!
Reply With Quote
  #8  
Old 08-14-2000, 09:50 PM
Guest
 
Posts: n/a
Default

Nonono.

eva - just try putting in the full absolute path to your config.php. My guess would be at:
/home/usr1/www.animeboards.net/htdocs/forums/admin/config.php

kwakoe - The path in the error is the path of the script that was running, so it HAS to be right, unless eva was using IIS, because that generates some weird error messages occasionally. But that path is Unix...
Reply With Quote
  #9  
Old 08-14-2000, 10:30 PM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by Ed Sullivan
Nonono.

eva - just try putting in the full absolute path to your config.php. My guess would be at:
/home/usr1/www.animeboards.net/htdocs/forums/admin/config.php

i am on a linux machine....

i put in this

<?php
include("/home/user1/www.animeboards.net/htdocs/forums/categorylist.inc.php");
?>

there's no reference to config in the php code i made on the page... don't know how to

here's my url for the categorylist
http://animeboards.net/forums/categorylist.inc.php

how do i hide more than 1 private forum from the list ?
Reply With Quote
  #10  
Old 08-15-2000, 12:00 AM
Guest
 
Posts: n/a
Default

I am installing all of these non-vb page hacks.
Just need the private message and whois online for this...I am working on it, don't know if I will do it.

To you question, to hide more than one private forum I made the private forums the highest forum ids.
Like 25 and 26 then instead of having equals a number I hide it by asking for less than 25.
Do you know what I mean?

It just worked out because I had it this way and it seems to be the easiest way for me.
If I want more private forums later I will just add them after 25 and I will not have a problem.

Hope that helped at all.

Later.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:10 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.04895 seconds
  • Memory Usage 2,263KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete