View Full Version : Additional external.php feed format
okrogius
03 Jan 2004, 18:21
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.
Are you saying we can use php instead of JS, XML, etc..? Very cool if you are :)
Zachery
06 Jan 2004, 16:22
im not sure but couldnt this lead to some security risks? such as grabbing important varibles?
KuraFire
06 Jan 2004, 16:29
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.
okrogius
06 Jan 2004, 21:40
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.
Detomah
19 Jan 2004, 15:47
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. ;)
okrogius
19 Jan 2004, 20:00
sure, using this getitng yoru threads can be as simple as:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
firenuts
20 Jan 2004, 04:45
Sorry, what does this add-on do exactly? Can I specify a thread ID and allow it to export all content to XML?
Detomah
29 Jan 2004, 23:00
sure, using this getitng yoru threads can be as simple as:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
That's what I was hoping to see. :)
I'll give it a go and see how the results turn out. :)
Thanks. :)
what is the difference between the RSS hack and this?
sure, using this getitng yoru threads can be as simple as:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
its not as simple as that other wise i wouldn't get this error message:
Parse error: parse error, unexpected '<', expecting T_VARIABLE or '$' in G:\wampp2\htdocs\mnracing\index.php on line 230
Mr. Brian
04 Mar 2004, 00:42
Did you change the URL to your's instead??
its not as simple as that other wise i wouldn't get this error message:
Parse error: parse error, unexpected '<', expecting T_VARIABLE or '$' in G:\wampp2\htdocs\mnracing\index.php on line 230
Geographic2
05 Mar 2004, 00:31
Same error here:
on this line:
for ($i=0; $<count($threads); $i++) {
Are you sure that is right?
ok now I see it needs to be
for ($i=0; $i<count($threads); $i++) {
I see the application of this, very nice. Quick way to flip things across. Damn I love this external.php :)
Hey, this is a great simple mod - love it. Thanks!
To get this Mod to work with KW802's replacement for external.php in this thread "FPS_EXTERNAL.PHP -- New options added & RSS compliant version of external.php" - http://www.vbulletin.org/forum/showthread.php?t=69834, use the following instructions instead of the ones attached here:
Open fps_external.php (or whatever you renamed it to).
Find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Under it add:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Above it add:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Hope this helps,
jd :)
If there are no objections I'll incorporate that into the next round of changes I'm working on. :)
To get this Mod to work with KW802's replacement for external.php in this thread "FPS_EXTERNAL.PHP -- New options added & RSS compliant version of external.php" - http://www.vbulletin.org/forum/showthread.php?t=69834, use the following instructions instead of the ones attached here:
Open fps_external.php (or whatever you renamed it to).
Find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Under it add:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Above it add:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Hope this helps,
jd :)
If there are no objections I'll incorporate that into the next round of changes I'm working on. :)
Sorry it took so long to respond, I have only just rechecked this thread. I have no probs you using my instructions, it was just to get okrogius's code to work with your version instead of the original external.php.
The only problem I see with okrogius's code is that there is no mechanism to turn off the php feed in the ACP (whereas you can switch off the others), that needs to be factored in when adding the php feed if okrogius gives permission to use his code.
jd :)
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.