View Full Version : New threads in non-vB page
rooban12
10-16-2008, 06:20 AM
Hii Friends !!!
Anyone knows how to show the new threads in non-vB page?
please help me:)
Thanks in advance:up:
Lynne
10-16-2008, 03:35 PM
I think there are some articles on how to do this in the Articles forums. Over on vb.com, there are several threads about it in the Tips forum, including this one - [HowTo] Display your latest threads on an external page using an RSS feed (http://www.vbulletin.com/forum/showthread.php?t=158916)
rooban12
10-17-2008, 04:29 AM
Thanks a lot Lynne
I have installed this script ..... working perfectly
and one more request
how can we set them .. like 2 threads in one raw
and I want to place a imagehttp://www.lovetack.com/new_1.gif after every thread
please help me
Thanks
Lynne
10-17-2008, 02:39 PM
If you are using the code I linked to, I'm sure you can add the image into the $rss_output variable.
$rss_output .= "<dt><strong><a href='" . trim($link) . "'>" . htmlspecialchars(trim($title)) . "</a></strong> <img src='path/to/image.jpg'></dt><dd>" . htmlspecialchars(trim($description)) . "</dd>";
I don't know how to modify that to put two threads in a row. I suppose you can introduce a counting variable and when odd, you do one thing, when even you do another, and you can play around with it that way.
rooban12
10-17-2008, 02:59 PM
Thanks for the reply
im using this script
<!-- show latest active threads -->
<div class="style27">
<table cellpadding="6" cellspacing="0" colspan="0" border="0" width="100%" align="center">
<tbody>
</tbody>
<tbody>
<tr>
<td width="50%" height="31" align="center" valign="top">
<div>
<div align="center" >
<p align="left">
<script type="text/javascript" src="home/external.php?forumids=625&type=js"></script>
<script language="" type="text/javascript">
<!--
for (x = 0; x < 10; x++)
{
document.writeln("<a href=\"home/showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a>(By: "+threads[x].poster+")<br />");
}
//-->
</script></p>
</div>
</div></td>
</tr>
</tbody>
<!-- show latest active threads -->
Could you tell me where Do I put the code, which you give me
Thanks in advance:):)
Lynne
10-17-2008, 03:02 PM
I would guess right here:
document.writeln("<a href=\"home/showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a>(By: "+threads[x].poster+") <img src=\"path/to/image.jpg\"><br />");
rooban12
10-17-2008, 03:11 PM
wowwwwwwwwwwwww
g8888888888
Im really Happy
Thanks a lot for your help Lynne
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.