vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Some Java Help please (https://vborg.vbsupport.ru/showthread.php?t=194724)

357Magnum 10-27-2008 06:16 PM

Some Java Help please
 
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

Code:

<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:

HTML Code:

external.php?forumids=x,y,z&type=js
where 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!!


All times are GMT. The time now is 11:35 AM.

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.04139 seconds
  • Memory Usage 1,715KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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