Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by Mas*Mind Mas*Mind is offline
Developer Last Online: Sep 2003 Show Printable Version Email this Page

Version: 2.0.x Rating:
Released: 10-30-2001 Last Update: Never Installs: 5
 
No support by the author.

For those that find it usefull and like to play around with XML and that kind of cool stuff, I've made a hack that returns a threadlist in XML format, sortable by lastpost, title, postusername, views, replycount or forumid; ascending or descending and on a limit of threads to be returned.

I'll try to create an XSL stylesheet for it later on.

It's only tested in v2.0.0 since I didn't upgraded yet, but I expect it to work in all latest versions (>= 2.0.0)

If you don't know what XML is about and what you can do with this hack, don't even bother to install it or go and search on the net to find out more about this matter.

Demo

there are three variables that you can pass on in the URL: nr, sortorder and orderby

nr will specify how many threads should be returned and can contain any number between 0 and the number you specify in the $maximumThreads variable (currently 15)

orderby will specify against which database-field will be ordered and can contain: lastpost, title, postusername, views, replycount or forumid. If nothing specified or a unknown columns specified 'lastpost' will be used.

sortorder will specify if either ascending or descending will be ordered and can contain 'asc' or 'desc'

if you don't specify anything nr will default to 15 (can be changed in the variable $maximumThreads), orderby will default to 'lastpost' (can be changed in the variable $defaultOrder) and sortorder will default to 'desc'

Installation instructions:
  1. download the attached vbxmltracker.php.txt
  2. change these variables to reflect to your needs:

    $defaultOrder (the database-field against which is ordered if no orderby field is specified)
    $dateFormat (the dateformat, NOT the same as in your general settings more info)
    $forumsNotToInclude (the forumid's of the forums which you don't wanna include in the threadlist)
    $maximumThreads (the maximum number of threads that can be requested)
    $customError (a custom error-msg, on this moment not used)
    $errmsg (the xml-string to be presented when a error occurs)
    $xmlFormat (the xml-string for each thread)
    $orderByOptions (the database fields against which the threadlist can be ordered)
    $locale (the locale setting in order to change the date-format to your country's language and format, more info

    If you don't understand any of these variables, I suggest you to leave them as is
  3. rename the attached text file to a name with a .php or .php3 or any other php-executable extension and upload it to your vb root-folder
  4. Do everything I forgot to mention
  5. enjoy!

Show Your Support

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

Comments
  #12  
Old 05-20-2002, 02:08 PM
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
Location: Glasgow, Scotland
Posts: 1,199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I use XML to syndicate my site news, you just use a php script fo fetch the xml file and you can then parse it and format it the way you like.
Reply With Quote
  #13  
Old 01-16-2003, 06:36 PM
Sketch Sketch is offline
 
Join Date: Apr 2002
Location: Baltimore, Maryland
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Whoa.....oh my goodness. Great concept. I mean XML I've thought of. But a tray icon/app I haven't. I could even get my buddy to write a C# app - distributable to all our techs - to get new thread info popups, etc.

Aaron
Reply With Quote
  #14  
Old 01-16-2003, 08:08 PM
Jeremy W. Jeremy W. is offline
 
Join Date: May 2002
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, you could easily tie a C# app in to check the XML datasheet for updates... Might go well with an upcoming article I'm writing for Microsoft
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 05:28 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.03814 seconds
  • Memory Usage 2,230KB
  • Queries Executed 18 (?)
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)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
  • (1)pagenav_pagelink
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (4)postbit_onlinestatus
  • (4)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