Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-07-2003, 02:58 AM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default forumlist on non vb page

is there an up to date hack for it

one that displays the forums bullet pointed with the forum description too?
Reply With Quote
  #2  
Old 10-07-2003, 08:32 AM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*bump hoping a euro hacker will help*
Reply With Quote
  #3  
Old 10-07-2003, 06:12 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*bumpety bump for the americas*
Reply With Quote
  #4  
Old 10-16-2003, 05:14 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

managed to do this on my own
Reply With Quote
  #5  
Old 10-16-2003, 05:43 PM
Sylvus Sylvus is offline
 
Join Date: Apr 2003
Location: Toronto
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Don't forget to post the code for the rest of us!

Syl...
Reply With Quote
  #6  
Old 10-16-2003, 05:55 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i should really get to release stuff like this and have an actual hack to my name lol

PHP Code:
<?php
// credit to tudedogg, this was based off of his hack, well actually i just changed 1 or 2 things, cleaned the code and that's about it but meh, it didn't work before and i got it working (sabret00the)
 
                    
$db=mysql_connect($host,$user,$password); 
                    
mysql_select_db($database); 
                    
$query "SELECT * FROM forum WHERE threadcount > 0 AND forumid NOT IN (XX,XX,XX) AND parentid NOT IN (XX,XX,XX) ORDER BY parentid, displayorder, parentlist ASC"
                    
$resultlatest mysql_query($query,$db); 
                    while (
$latest_array mysql_fetch_array($resultlatest)) { 
                    echo 
"? <a href=\"[url="http://www.yourdomain.com/forums/forumdisplay.php?forumid=$latest_array"]http://www.yourdomain.com/forums/forumdisplay.php?forumid=$latest_array[/url][forumid]\" class=\"css_class\">$latest_array[title]</a><br>$latest_array[description]<br /><br />"; 
                    

                  
?>
anyway make a php file with that in it, and make sure to include that file into your non-vB page
[php]<?php include(where_ever/whatever.php); ?>

and then make sure you've defined this info at the top of your non-vB page
PHP Code:
 $host "localhost";        //DB-Servername
 
$user"XXXXXXXXX";          //DB-Username
 
$password"XXXXXXXXX";      //DB-Password
 
$database="XXXXXXXXX";       //vbulletin database name 
if you've got more php integration going on in the same file chances are you would've defined all this info, in that case, just edit the forumlist file to get the info using those variables instead

this is very much customised to my needs a working example can be found at www.ebslive.com/index.php

*mods if this qualifies as a hack, please split it and put it in the proper forum
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 12:30 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.05349 seconds
  • Memory Usage 2,219KB
  • Queries Executed 13 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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_postinfo_query
  • fetch_postinfo
  • 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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete