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 02-04-2002, 10:36 AM
Ninth Dimension's Avatar
Ninth Dimension Ninth Dimension is offline
 
Join Date: Oct 2001
Location: London, England.
Posts: 739
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, I was wondering if anyone fancied trying to make a DMOZ hack?

The idea would be that it uses the dmoz database to pull information and display an open directory portal that uses the vB templates (i.e., header, footer, maybe some custom templates to control the way the data is presented).

Now I think that this would be quite an easy hack to make, needing only one file and maybe a few custom templates.

In fact it should be super simple for most of your hackers here because you can get the DMOZ code from places like Hotscripts and just add the template support.

Come on guys, I know you can do it
Reply With Quote
  #2  
Old 02-05-2002, 01:22 AM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Those classes all work by quering dmoz then reparsing the html returned before displaying it. The advantage is you get "live" data.

However the disadvantage is that using a fetch > reparse system to completely remove all the formating nessasary to use the raw data inside a vb template is extremely complex and would place a high load on your server. However parsing off the header and footer is relatively simple as long as you leave the copyright credit alone which those classes do.

A simpler method is the use the RDF dumps which weigh in at a few hundred mb's with a cron job to periodically refresh them.
The advantage of using the RDF dump is it is possible to parse the data using the xml module provided with php and that the data contains no formating elements so complete stylistic control is possible.

For example yahoo and google use the later method so they can reformat the data to suit their requirements.
Whilst it is more common for sites that do not wish to completely alter the layout to choose the first method.
Reply With Quote
  #3  
Old 02-05-2002, 07:14 AM
Ninth Dimension's Avatar
Ninth Dimension Ninth Dimension is offline
 
Join Date: Oct 2001
Location: London, England.
Posts: 739
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah, well the problem that I've got is that I don't have enough space on my server to do the dumps, so the first option is better for me.

However i've been trying to get any of the 4 scripts provided at hotscripts to work, and so far i've had no luck at all, maybe you might be able to help me out with this? i mean, as you say, the header's and footers are going to be quite easy to copy and use use the HTML from them.

So far as extra formatting is concirned, the only real formatting that I want to do is be able to change the fon't, I hate Times new Roman, and would want to change it to Verdana.

do you think you might be able to help me out setting this up, without the vB templates?
Reply With Quote
  #4  
Old 02-07-2002, 04:43 AM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="https://vborg.vbsupport.ru/showthread.php?threadid=34855" target="_blank">https://vborg.vbsupport.ru/showt...threadid=34855</a>

Complete addon hack based on a ODP script I wrote a while back, style is customisable.
Reply With Quote
  #5  
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

Fantastic, thank you
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 07:05 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.06473 seconds
  • Memory Usage 2,199KB
  • 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
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)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