Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Details »»

Version: 1.00, by dabean dabean is offline
Developer Last Online: Dec 2003 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 02-06-2002 Last Update: Never Installs: 12
 
No support by the author.

This hack allows you to add dmoz.org / Open Directory Project live data to your site.

Requirements:
- PHP4.0.0+
- vBulletin 2.2.x (the hack has not been tested on vBulletin 2.0.x)

Recommended
- PHP 4.0.5+

For a demo go and look @dmoz.org you get a customised version of that

The included readme.html outlines installation instructions.
The hack features high level customisation, no database changes are required.

Updated 08/02/2002 08:23PM GMT
- Version 1.2
- Added PHP 4.0.0+ support
- Better documentation
- "Entrypoint" support. Entrypoint allows you to open the ODP at any particullar category by default.
- Experimental Category blocking. (read php-odp.include.php to discover how to enable this feature)

Updated 08/02/2002 4:47AM GMT.
- fixed Typo

Updated 08/02/2002 4:13AM GMT.
- Improved documentation
- Corrected url bug
- Improved caching

Updated 07/02/2002 9:56PM GMT.
- Added caching support
- By default the main page is cached however it is possible to cache categories and to cache descriptions.
- Cache time can be set

Show Your Support

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

Comments
  #2  
Old 02-07-2002, 05:09 AM
Dade's Avatar
Dade Dade is offline
 
Join Date: Jan 2002
Location: California
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome hack, thanks!
Reply With Quote
  #3  
Old 02-07-2002, 06:50 AM
Ninth Dimension's Avatar
Ninth Dimension Ninth Dimension is offline
 
Join Date: Oct 2001
Location: London, England.
Posts: 739
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is cool, i'll be installing it later today.
Reply With Quote
  #4  
Old 02-07-2002, 07:19 AM
Lesane's Avatar
Lesane Lesane is offline
 
Join Date: Oct 2001
Location: The Netherlands
Posts: 1,149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great, gonna install this one later. Thanks
Reply With Quote
  #5  
Old 02-07-2002, 11:44 AM
Ninth Dimension's Avatar
Ninth Dimension Ninth Dimension is offline
 
Join Date: Oct 2001
Location: London, England.
Posts: 739
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, i've just installed this hack http://bbs.ofdan.net/php-odp.php it was nice and easy to install, and run, the only problem I find with it is that it takes a while for the front page to load up, which is a shame because I should image that it's going to be the most used page...

If you can find a way of speeding this up (even if you just use static html for the front page) I would apprechate it.
Reply With Quote
  #6  
Old 02-07-2002, 08:02 PM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hack has been updated to include caching.

To upgrade just replace the new versions of php-odp.php and php-odp.include.php

To configure the caching support please study the new vars contained inside php-odp.include.php, by default only the main page will be cached for 1 day this maybe altered however.
Reply With Quote
  #7  
Old 02-07-2002, 10:01 PM
DarkReaper DarkReaper is offline
 
Join Date: Oct 2001
Posts: 429
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Warning: stat failed for ./default (errno=2 - No such file or directory) in /home/serioussam/cgi-bin/odp/php-odp.php on line 144

Warning: fopen("./default", "w") - Permission denied in /home/serioussam/cgi-bin/odp/php-odp.php on line 318

Warning: Supplied argument is not a valid File-Handle resource in /home/serioussam/cgi-bin/odp/php-odp.php on line 319

Warning: Supplied argument is not a valid File-Handle resource in /home/serioussam/cgi-bin/odp/php-odp.php on line 320

http://dynamic3.gamespy.com/~serioussam/odp/php-odp.php
Reply With Quote
  #8  
Old 02-07-2002, 10:09 PM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by DarkReaper
Warning: stat failed for ./default (errno=2 - No such file or directory) in /home/serioussam/cgi-bin/odp/php-odp.php on line 144

Warning: fopen("./default", "w") - Permission denied in /home/serioussam/cgi-bin/odp/php-odp.php on line 318

Warning: Supplied argument is not a valid File-Handle resource in /home/serioussam/cgi-bin/odp/php-odp.php on line 319

Warning: Supplied argument is not a valid File-Handle resource in /home/serioussam/cgi-bin/odp/php-odp.php on line 320

http://dynamic3.gamespy.com/~serioussam/odp/php-odp.php
Change
$odp['cache']['base_dir'] = "./";
to contain the path to the directory you want to use to hold the cached files
eg
$odp['cache']['base_dir'] = "/home/<blah>/cache";
Reply With Quote
  #9  
Old 02-07-2002, 10:37 PM
fonzerelli_79's Avatar
fonzerelli_79 fonzerelli_79 is offline
 
Join Date: Nov 2001
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

im getting this error

Warning: ChDir: No such file or directory (errno 2) in /home/sites/site193/web/forums/odp/php-odp.include.php on line 11

what could this be
Reply With Quote
  #10  
Old 02-07-2002, 10:38 PM
fonzerelli_79's Avatar
fonzerelli_79 fonzerelli_79 is offline
 
Join Date: Nov 2001
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh and great hack
i requested this hack last week on phpportals
good timing
Reply With Quote
Reply

Thread Tools

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 08:52 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05946 seconds
  • Memory Usage 2,285KB
  • 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_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_onlinestatus
  • (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
  • postbit_imicons
  • 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