vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   New threads in non-vB page (https://vborg.vbsupport.ru/showthread.php?t=193753)

rooban12 10-16-2008 05:20 AM

New threads in non-vB page
 
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 02: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

rooban12 10-17-2008 03: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 01:39 PM

If you are using the code I linked to, I'm sure you can add the image into the $rss_output variable.
HTML Code:

$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 01: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 02:02 PM

I would guess right here:

HTML Code:

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 02:11 PM

wowwwwwwwwwwwww
g8888888888
Im really Happy

Thanks a lot for your help Lynne


All times are GMT. The time now is 07:03 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02147 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete