vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   external.php quick question - latest replies, not newest threads? (https://vborg.vbsupport.ru/showthread.php?t=96248)

psoexplorer 09-14-2005 09:56 AM

external.php quick question - latest replies, not newest threads?
 
I'm currently using the following code to show the latest threads from my forum on my main site.

Code:

<script type="text/javascript" src="http://www.mysite.com/forum/external.php?type=js"></script>

<script type="text/javascript">
<!--
CutOff = 16 // Number of maximum chars to cut off before adding '...'

        function cutOffTitle(title)
        {
                if (title.length > CutOff)
                {
                        title = title.substring(0, 16) + '..'
                }
               
                return title
        }

        for (var i = 0; i < 7; i++)
        {
                document.write('<a href="http://www.mysite.com/forum/showthread.php?t=' + threads[i]['threadid'] + '">' + cutOffTitle(threads[i]['title']) + '</a><br />');
        }
//-->
</script>


My question is - what do I need to change/add to make the listings show the most recently updated threads? For example, if a thread is made, and then a week later somebody posts a new reply, it will show up in the list as the latest change to that thread. Because right now it merely shows the latest NEW threads.

psoexplorer 09-15-2005 12:15 PM

If nobody really knows, could you direct me to a site/manual that shows all the options for external.php? I cant seem to find anything on it..

psoexplorer 09-17-2005 05:36 PM

Bump....

Marco van Herwaarden 09-17-2005 06:19 PM

There should be info on this in the vB manual and at vbulletin.com

psoexplorer 09-17-2005 09:25 PM

Vbulletin.com admins told me to come here. There's nothing in the manual about changing what it shows...

Marco van Herwaarden 09-18-2005 04:46 AM

Are you using 3.0 or 3.5?

psoexplorer 09-18-2005 02:06 PM

3.0.7 .......there's a 3.5???


All times are GMT. The time now is 12:30 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.01069 seconds
  • Memory Usage 1,717KB
  • 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)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