The Arcive of vBulletin Modifications Site. |
|
Webprocafe.com - Latest posts in html site Details »»
|
|||||||||||||||||||||||||||||
|
Webprocafe.com - Latest posts in html site
Developer Last Online: Feb 2013
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
Show Your Support
|
|||||||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
this is nice..
can i add this code just under my domain.. not under forum.. i tried but itz not working but when i added like forum/text.html /// itz working..
|
|
#3
|
||||
|
||||
|
Hello!
how and where adjust numbers of threads - i get 15 threads with names and 45 - named - undefined - reg macc |
|
#4
|
|||
|
|||
|
Nice, thanks.
|
|
#5
|
|||
|
|||
|
|
|
#6
|
|||
|
|||
|
Nice, thanks!
|
|
#7
|
|||
|
|||
|
|
|
#8
|
|||
|
|||
|
Installed mate, thanks
|
|
#9
|
|||
|
|||
|
Quote:
Quote:
Code:
src="external.php?type=js"> Code:
src="/forums/external.php?type=js"> also, you need to change this Code:
document.writeln("<a href=\"showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a><br />");
Code:
document.writeln("<a href=\"forums\showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+" </a><br />");
|
|
#10
|
|||
|
|||
|
thanks,,
|
![]() |
|
|