The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Using VB as a feed for html
Hi Guys
I have a friend who wants to be able to use his website to display information on his website regarding his club. The problem is he knows nothing about HTML or any other programming language. Is it possible for me to give him a dedicated area on my forum for him to do his news pages, and get his website to pick up automatically his forum posts and display them on his webpage. Just the info though. Preferably not any other forum information, barring maybe a link back. Cheers |
#2
|
|||
|
|||
You might be able to use the external data provider. There's an example in the vbulletin manual here: https://www.vbulletin.com/docs/html/...r_implementing
|
#3
|
|||
|
|||
i dont suppose you have an example of that working as I just tried it on a test page and nothing shows
trying to get this page .. http://www.parafly.co.uk/forumdisplay.php/44-Site-News to show on this page as a test http://www.parafly.co.uk/testhac.html anyone steer me right here please cheers |
#4
|
|||
|
|||
Sorry, I guess that particular manual page doesn't mention that you need to set "Enable External Javascript" to Yes (in the adminCP, Settings -> Options -> External Data Provider).
|
#5
|
||||
|
||||
I don't understand very well what do you try to do but:
Create a own test.php page => https://vborg.vbsupport.ru/showthread.php?t=228112 If you want to export your thread to a another website, you need to use RSS FEED and the another website process that information Code:
youwebsite/external.php?type=RSS2&forumids=1,2,etc |
#6
|
|||
|
|||
at the moment the page is
Code:
<body> <script src="http://www.parafly.co.uk/external.php?type=xml&forumids=44" type="text/javascript"></script> <script type="text/javascript"> <!-- for (i in threads) { document.writeln(threads[i].title + " (" + threads[i].poster + ")<br />"); } //--> </script> </body> what do i need to change to add the threads in this forum http://www.parafly.co.uk/forumdisplay.php/44-Site-News cheers |
#7
|
||||
|
||||
Ahh, you need to use PHP for do that...
If the test page is in the same website, you can do a SQL sentence and process the last thread, else (external website), with RSS you need to read the XML and process to show in that page. I do that for some clients, I write some tutoriales (first case) but is in spanish and to vb3.x post #3 explaint to vb4 |
#8
|
|||
|
|||
i dont know spanish, but thanks all the same
that looks a little too complex for me |
#9
|
|||
|
|||
If you change it to external.php?type=JS&forumids=4, then make sure Enable External Javascript is set to yes as I posted above, then it should work, although I'm not sure if it will be exactly what you want. Of course you could use php to generate the page and/or use xml, but the js example in the manual is an easy way to get thread titles with links into a static html page. |
Благодарность от: | ||
Jhonnyf |
#10
|
||||
|
||||
Quote:
Thank you |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|