Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-20-2012, 07:07 AM
amaarvell amaarvell is offline
 
Join Date: Nov 2006
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 05-20-2012, 02:09 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 05-20-2012, 03:40 PM
amaarvell amaarvell is offline
 
Join Date: Nov 2006
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 05-20-2012, 03:44 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
  #5  
Old 05-20-2012, 04:42 PM
Jhonnyf's Avatar
Jhonnyf Jhonnyf is offline
 
Join Date: Nov 2007
Location: In my mind
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 05-20-2012, 04:59 PM
amaarvell amaarvell is offline
 
Join Date: Nov 2006
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 05-20-2012, 05:12 PM
Jhonnyf's Avatar
Jhonnyf Jhonnyf is offline
 
Join Date: Nov 2007
Location: In my mind
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 05-20-2012, 05:46 PM
amaarvell amaarvell is offline
 
Join Date: Nov 2006
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i dont know spanish, but thanks all the same

that looks a little too complex for me
Reply With Quote
  #9  
Old 05-20-2012, 06:22 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by amaarvell View Post
at the moment the page is ...

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.
Reply With Quote
Благодарность от:
Jhonnyf
  #10  
Old 05-20-2012, 06:46 PM
Jhonnyf's Avatar
Jhonnyf Jhonnyf is offline
 
Join Date: Nov 2007
Location: In my mind
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
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.
I did not know that the EXTERNAL.PHP can be give data as Javascript...

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 03:02 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.04286 seconds
  • Memory Usage 2,255KB
  • 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
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)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_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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete