Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Webprocafe.com - Latest posts in html site Details »»
Webprocafe.com - Latest posts in html site
Version: 1.00, by saltedm8 saltedm8 is offline
Developer Last Online: Feb 2013 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 3.8.2 Rating:
Released: 06-27-2009 Last Update: Never Installs: 17
Re-useable Code  
No support by the author.

If you are running a static site with vbulletin, this will pull the last 15 post titles from vbulletin using javascript and display the linked titles on your normal html site or any other page you want it to.. here it is working http://webprocafe.com/latest.html

Please feel free to adjust the styles and play with it how you like, but the result will be a list of your latest titles posted



Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Latest Posts</title>
<style type="text/css">
<!--
* { margin: 0; padding: 0; }

body { background-color: #E5DCC0; }

#list {
    
	width:90%;
	background-color:#E5DCC0;
	padding:10px;
}

a {  color:#524125;
	font-weight:bold;
	text-decoration: none; }
	
a:hover {  color:#524125;
	font-weight:bold;
	text-decoration:underline; }
-->
</style>
</head>

<body>
<div id="list">
<script type="text/javascript" src="external.php?type=js"></script> 
<script type="text/javascript">
<!--
for (var x in threads)
{
document.writeln("<a href=\"showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a><br />");
}
//-->
</script>

</div>
</body>
</html>

Screenshots

File Type: jpg latest.jpg (100.5 KB, 0 views)

Show Your Support

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

Comments
  #12  
Old 07-06-2009, 11:42 AM
saltedm8 saltedm8 is offline
 
Join Date: May 2008
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

your welcome
Reply With Quote
  #13  
Old 08-11-2009, 11:48 AM
genesisdnb's Avatar
genesisdnb genesisdnb is offline
 
Join Date: Mar 2009
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this work on different domains?
Reply With Quote
  #14  
Old 08-12-2009, 10:33 PM
saltedm8 saltedm8 is offline
 
Join Date: May 2008
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it would, but you need to change the address in the javascript to the address you require
Reply With Quote
  #15  
Old 08-13-2009, 07:26 AM
genesisdnb's Avatar
genesisdnb genesisdnb is offline
 
Join Date: Mar 2009
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I done that but it didnt work.... Basically my site is www.xboxer360.com/forum and we just merged forums with www.gameshare.co.uk so I tryed to install that code on GameShare but it doesnt display any information?
Reply With Quote
  #16  
Old 08-13-2009, 08:22 AM
saltedm8 saltedm8 is offline
 
Join Date: May 2008
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

because its javascript, you need to change the address to be javascript based.. i think this is it

change
Code:
document.writeln("<a href=\"showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a><br />");
to this
Code:
document.writeln("<a href=\"http:\/\/www.gameshare.co.uk\/showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a><br />");
you just need to change the url to whichever you want to use

if it dont work, i guess its not possible to do
Reply With Quote
  #17  
Old 08-13-2009, 09:07 AM
genesisdnb's Avatar
genesisdnb genesisdnb is offline
 
Join Date: Mar 2009
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

got an error now saying 'threads' is undefined
Reply With Quote
  #18  
Old 08-13-2009, 02:22 PM
saltedm8 saltedm8 is offline
 
Join Date: May 2008
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

where is your rss feed located ?
Reply With Quote
  #19  
Old 08-13-2009, 07:59 PM
genesisdnb's Avatar
genesisdnb genesisdnb is offline
 
Join Date: Mar 2009
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I dont know if I have one?
Reply With Quote
  #20  
Old 08-13-2009, 08:18 PM
saltedm8 saltedm8 is offline
 
Join Date: May 2008
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you will have, but the question is, is it switched on, if you find it, it will look like this http://webprocafe.com/external.php.. i have re-written the url for that, you will have to either activate your or find it... the javascript wont work without it and having an rss feed is a good thing..
Reply With Quote
  #21  
Old 08-14-2009, 06:17 AM
genesisdnb's Avatar
genesisdnb genesisdnb is offline
 
Join Date: Mar 2009
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok well I fixed it, thanks but the url's are wrong... the urls point to http://www.xboxer360.com/showthread.php?t=1889 and not http://www.xboxer360.com/forum/showthread.php?t=1889
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 01:50 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.04669 seconds
  • Memory Usage 2,324KB
  • Queries Executed 26 (?)
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
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete