vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   DMOZ / ODP addon (https://vborg.vbsupport.ru/showthread.php?t=34855)

dabean 02-06-2002 10:00 PM

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

Dade 02-07-2002 05:09 AM

Awesome hack, thanks! :)

Ninth Dimension 02-07-2002 06:50 AM

This is cool, i'll be installing it later today.

Lesane 02-07-2002 07:19 AM

Great, gonna install this one later. Thanks

Ninth Dimension 02-07-2002 11:44 AM

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.

dabean 02-07-2002 08:02 PM

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.

DarkReaper 02-07-2002 10:01 PM

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

dabean 02-07-2002 10:09 PM

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";

fonzerelli_79 02-07-2002 10:37 PM

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

fonzerelli_79 02-07-2002 10:38 PM

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


All times are GMT. The time now is 01:42 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.01011 seconds
  • Memory Usage 1,738KB
  • 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