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

Reply
 
Thread Tools
Additional external.php feed format Details »»
Additional external.php feed format
Version: 1.00, by okrogius okrogius is offline
Developer Last Online: Dec 2005 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 01-02-2004 Last Update: Never Installs: 10
 
No support by the author.

Those of you who integrate your feed in a PHP page will appreciate the simplicity of working with this .

Once installed you can just include your therads on your site's pages (example) via simply reading contents of external.php?type=php (be it via fopen, etc), and then processing the results through an unserialize() call.

Show Your Support

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

Comments
  #2  
Old 01-06-2004, 02:19 PM
gldtn gldtn is offline
 
Join Date: Apr 2003
Location: US
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you saying we can use php instead of JS, XML, etc..? Very cool if you are
Reply With Quote
  #3  
Old 01-06-2004, 02:22 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

im not sure but couldnt this lead to some security risks? such as grabbing important varibles?
Reply With Quote
  #4  
Old 01-06-2004, 02:29 PM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not really important variables, and even the ones they can grab are pretty pointless to them, unless there is a security risk elsewhere in vB3 that is related to variables whose names they can figure out due to this ($threadcache).

Not much of a concern if you ask me.
Reply With Quote
  #5  
Old 01-06-2004, 07:40 PM
okrogius okrogius is offline
 
Join Date: Dec 2001
Location: USA
Posts: 264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Faranth
im not sure but couldnt this lead to some security risks? such as grabbing important varibles?
No external information is passed via this, composed to using rss/xml/etc. Prime benefit is easyness of use; say you have a PHP page which should display latest threads.

Would it be easier to just open a file, unserailize its contents, and use the array (around 3 lines of code); or, open a file, create your own array parsing xml data (30+ lines)? You decide for yourself, personally I find the previous option a lot easier.
Reply With Quote
  #6  
Old 01-19-2004, 01:47 PM
Detomah's Avatar
Detomah Detomah is offline
 
Join Date: Sep 2003
Location: South Shields UK
Posts: 217
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could you possibly explain this a litte more please.

I would really like to be able to do this, but am not sure of the exact processes and what exactly I would have to do to get certain threads showing on my home page with this...

Could you possibly give an example of the code that would be needed to grab and display the thread please.

I'm learning fast, but still need guidance now and then.
Reply With Quote
  #7  
Old 01-19-2004, 06:00 PM
okrogius okrogius is offline
 
Join Date: Dec 2001
Location: USA
Posts: 264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sure, using this getitng yoru threads can be as simple as:

PHP Code:
<?php

$threads 
unserialize(file_get_contents('http://www.example.com/external.php?type=php'));

for (
$i=0; $<count($threads); $i++) {
 echo 
'thread: '.$threads[$i]['title'].'<br />';
}

?>
Reply With Quote
  #8  
Old 01-20-2004, 02:45 AM
firenuts firenuts is offline
 
Join Date: Aug 2002
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry, what does this add-on do exactly? Can I specify a thread ID and allow it to export all content to XML?
Reply With Quote
  #9  
Old 01-29-2004, 09:00 PM
Detomah's Avatar
Detomah Detomah is offline
 
Join Date: Sep 2003
Location: South Shields UK
Posts: 217
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by okrogius
sure, using this getitng yoru threads can be as simple as:

PHP Code:
<?php

$threads 
unserialize(file_get_contents('http://www.example.com/external.php?type=php'));

for (
$i=0; $<count($threads); $i++) {
 echo 
'thread: '.$threads[$i]['title'].'<br />';
}

?>
That's what I was hoping to see.

I'll give it a go and see how the results turn out.

Thanks.
Reply With Quote
  #10  
Old 01-31-2004, 06:11 PM
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Location: Mocsow
Posts: 1,288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what is the difference between the RSS hack and this?
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 04:44 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.07438 seconds
  • Memory Usage 2,300KB
  • 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
  • (2)bbcode_php
  • (2)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
  • (1)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