PDA

View Full Version : Some Java Help please


357Magnum
10-27-2008, 06:16 PM
alright so my NSFW threads aren't indexing in the new posts anymore(thanks guys) but they still pop up in the Latest Threads listing on the sidebar.

go to www.devil-riders.com/vb to see what I am talking about.

Looked up the template and here is the code for it

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="height: 30px; background-color: #505558; border-bottom: 1px solid #3a3d41; background-image:url($stylevar[imgdir_misc]/stripebg.gif); background-position:top;"><div align="center" class="sidebarhead">Latest Threads</div></td>
</tr>
<tr>
<td><img src="$stylevar[imgdir_misc]/sidebar_spacer2.gif" width="170" height="1" alt="" /></td>
</tr>
</table>


<table width="100%" border="0" cellspacing="3" cellpadding="0">
<tr>
<td style="background-image:url($stylevar[imgdir_misc]/sidebar_bg.gif); background-repeat:repeat-x">

<div align="left" class="sidebarcontent" style="padding: 6px;">


<script type="text/javascript" src="external.php?type=js"></script>
<script language="" type="text/javascript">
<!--
for (var x in threads)
{
document.writeln("<strong>&raquo;&nbsp<a href=\"showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a></strong><br />(Posted By: "+threads[x].poster+")<br /><br />");
}
//-->
</script>

I have always wanted it to show Upcoming Events, not latest threads.

Anybody know how I would accomplish this??

Thanks fellas!

Lynne
10-27-2008, 06:52 PM
You can limit the forums the threads are pulled from by changing the link to:

external.php?forumids=x,y,z&type=jswhere x,y,z are the forumids of the forums you wish to pull threads from.


(Also, that is javascript, not java. They are two very different languages.)

357Magnum
10-27-2008, 07:55 PM
Thanks dude!!