vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Latest Threads On Forum Home (https://vborg.vbsupport.ru/showthread.php?t=83230)

Chris M 07-23-2005 03:32 PM

Quote:

Originally Posted by albarq
ya, i have the last plug-in

see this example for your code

PHP Code:

## GET LATEST THREADS ## 
    
SELECT thread.*,thread.iconid AS threadiconid $previewfield 
    FROM 
".TABLE_PREFIX."thread AS thread 
    LEFT JOIN 
".TABLE_PREFIX."deletionlog AS deletionlog ON(thread.threadid deletionlog.primaryid AND type 'thread'
    
$previewjoin 
    WHERE open 
<> 10 
    
AND forumid NOT IN (0$limitfids
    AND 
thread.visible '1' 
    
AND deletionlog.primaryid IS NULL 
    ORDER BY lastpost 
    DESC LIMIT 10
"); 


The only reason I can see for it showing the threads to people who aren't allowed to see them is that you have not got the latest plugin running :ermm:

Satan

Chris M 07-26-2005 11:23 PM

[high]Update[/high]
RC1: Update to confirm that this plugin works with vBulletin 3.5.0 RC 1:)

Satan

TTG 07-26-2005 11:39 PM

What do I need to edit to not show the post icons on the latest threads list ?

Chris M 07-26-2005 11:57 PM

There are two ways:

One way disables it (in case you want to enable it in the future), and another completely removes it...

To disable it, alter your plugin, and find:
PHP Code:

  if (is_array($icon)) {
      
$show['icon'] = true;
      
$thread['threadiconpath'] = $icon['iconpath'];
      
$thread['threadicontitle'] = $icon['title'];
  } 

Replace with:
PHP Code:

  if (is_array($icon)) {
      
$show['icon'] = false;
      
$thread['threadiconpath'] = $icon['iconpath'];
      
$thread['threadicontitle'] = $icon['title'];
  } 

:)

To remove it completely;
In the forumhome_latestthreadbit template, remove:
HTML Code:

        <if condition="$show['icon'] && !$show['firstnew']">
                <img src="$vboptions[bburl]/$thread[threadiconpath]" border="0" alt="$thread[threadicontitle]" title="$thread[threadicontitle]" style="vertical-align: text-middle" />
        </if>

Now edit the Plugin:
Remove:
PHP Code:

    // thread icon
    
$show['icon'] = false;
  
$icon fetch_iconinfo($thread['iconid']);

  if (
is_array($icon)) {
      
$show['icon'] = true;
      
$thread['threadiconpath'] = $icon['iconpath'];
      
$thread['threadicontitle'] = $icon['title'];
  } 

You may also want to consider altering the query :)

Satan

TTG 07-27-2005 08:56 AM

Quote:

Originally Posted by hellsatan
There are two ways:

One way disables it (in case you want to enable it in the future), and another completely removes it...

Satan

Thanks Satan .. that worked :)

Chris M 07-27-2005 11:02 AM

Quote:

Originally Posted by TTG
Thanks Satan .. that worked :)

Your welcome :)

Satan

chikkoo 08-01-2005 06:21 AM

Nice Mod.
But, I've Two Questions.

1) Will it work in Beta 3? as I didn't upgrade to RC1, I'm waiting for final.

2) If I don't want all the threads to appear, can I specify only a specific forum or forums?

Chris M 08-01-2005 12:30 PM

Quote:

Originally Posted by chikkoo
Nice Mod.
But, I've Two Questions.

1) Will it work in Beta 3? as I didn't upgrade to RC1, I'm waiting for final.

2) If I don't want all the threads to appear, can I specify only a specific forum or forums?

1) Yes - The version only indicates that it will work with the latest version but it does work with Betas 1 - 4 :)

2) I have explained how to do this earlier on in the thread :)

Satan

mcyates 08-16-2005 01:35 PM

i've installed this but nothing shows?

Chris M 08-16-2005 02:21 PM

Make sure you have added both the forumhome_latestthreadbit template and made the modification to the FORUMHOME template :)

Satan


All times are GMT. The time now is 08:14 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.01389 seconds
  • Memory Usage 1,758KB
  • 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_html_printable
  • (4)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete