vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   limit uno (one) (https://vborg.vbsupport.ru/showthread.php?t=122505)

nhatrang 07-29-2006 08:36 PM

limit uno (one)
 
Hi guys,

I'm using the external code, and I need help for it to display only one portion/thread with attachment only. Please help:

PHP Code:

<script type="text/javascript">
    <!--
    var 
js2count 0;
    for (var 
0js2threads.lengthi++)

    {
        if (
js2threads[i].attachmentid != && (js2threads[i].forumid == 4))
        {
            if (
js2count == 0)
            {
                
document.writeln('<a href="http://community.vbulletin.com/showthread.php?t=' js2threads[i].threadid '"><div style="padding-left:13px "><font size="4" color="#598c29"><b>'  js2threads[i].threadtitle '</a></b></font></div>');
                
            }
            else if (
js2threads[i].threadid != js2threads[i-1].threadid)
            {
                
document.writeln('<hr style="height: 1px; width: 100%; border-style: dashed; border-color: #FFFFFF;" /><a href="http://community.vbulletin.com/showthread.php?t=' js2threads[i].threadid '">'  js2threads[i].threadtitle '</a><br />');
                
document.writeln('<br /><a href="http://community.vbulletin.com/showpost.php?p=' js2threads[i].firstpostid '"><span class="smallfont">test'  js2threads[i].firstpostpreview '</span></a><br /><br />');
            }
            
document.writeln('<a href="http://community.vbulletin.com/attachment.php?attachmentid=' js2threads[i].attachmentid '&amp;d=' js2threads[i].attachmentdateline '"><img width=380 height=200 src="http://community.vbulletin.com/attachment.php?attachmentid=' js2threads[i].attachmentid '&amp;thumb=0&amp;d=' js2threads[i].attachmentdateline '" border="0"></a>&nbsp;');
            
            
document.writeln('<br /><span class="smallfont"><strong>'  js2threads[i].firstpostpreview '</span></strong><a href="http://community.vbulletin.com/showpost.php?p=' js2threads[i].firstpostid '" class="light">Read more...</a> <br /><br />');
            
js2count 0;
        }
    }
    
//-->
    
</script>
    <
noscript>
    
JavaScript is not detectedSet your browser to allow JavaScript or try another browser with JavaScript support.
    </
noscript



All times are GMT. The time now is 01:04 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.01409 seconds
  • Memory Usage 1,732KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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