Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > vBadvanced CMPS
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Recent Threads is displaying something strange... Details »»
Recent Threads is displaying something strange...
Version: , by Warrior Warrior is offline
Developer Last Online: Feb 2013 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 09-22-2005 Last Update: Never Installs: 0
 
No support by the author.

What is all this on top of the recent threads table? It looks like either a misalligned table tag or code that was meant to be deleted? I am assuming it is an error in recentthreads.php ... :ermm:

http://www.warriorfx.com/forums/cmps_index.php

BTW, this is vBadvanced 2 for 3.0.x

Can someone please tell me how to fix the latesttopics.php file to display everything in the table???

This is what it looks like now:

PHP Code:
<?php
// ++=========================================================================++
// || vBadvanced CMPS v2.0.0 (vB 3.0.x) - 18870
// || ? 2003-2004 vBadvanced.com & PlurPlanet, LLC - All Rights Reserved
// || This file may not be redistributed in whole or significant part.
// || http://vbadvanced.com
// || Downloaded 20:45, Wed Sep 21st 2005
// || 
// ++ ========================================================================++

if ($mod_options['portal_threads_maxthreads'])
{
    if (
$mods['modcol'] == 1)
    {
        eval(
'$home["$mods[modid]"][\'content\'] = "' fetch_template('adv_portal_latestthreads_head') . '";');

        
$mods['colspan'] = 4;

        if (
$mod_options['portal_threads_lastpost'])
        {
            
$mods['colspan']++;
        }

        if (
$mod_options['portal_threads_showforum'])
        {
            
$mods['colspan']++;
        }
    }

    
$mod_options['portal_threadids'] = unserialize($mod_options['portal_threadids']);

    if (!empty(
$mod_options['portal_threadids']))
    {
        
$mods['threadids'] = 'AND thread.threadid IN(' implode(','array_keys($mod_options['portal_threadids'])) . ')';
    }
    else if (
$mod_options['portal_threads_forumids'])
    {
        
$mods['inforums'] = explode(','$mod_options['portal_threads_forumids']);

        if (
$mod_options['portal_applypermissions'])
        {
            
$mods['inforums'] = array_diff($mods['inforums'], $adv_forumperms);
        }
        if (empty(
$mods['inforums']))
        {
            
$mods['nodisplay'] = true;
        }
        else
        {
            
$mods['inforums'] = 'AND thread.forumid IN(' implode(','$mods['inforums']) . ')';
        }
    }

    if (!
$mods['inforums'] AND !empty($adv_forumperms) AND $mod_options['portal_applypermissions'])
    {
        
$mods['exforums'] = 'AND thread.forumid NOT IN(' implode(','$adv_forumperms) . ')';
    }

    
$show['lastpost'] = $mod_options['portal_threads_lastpost'];

    if (!
$mods['nodisplay'])
    {
        if (
$mod_options['portal_threads_orderby'] == 'dateline')
        {
            
$mod_options['portal_threads_orderby'] = 'thread.dateline';
        }

        if (!
$mod_options['portal_threads_orderby'])
        {
            
$mod_options['portal_threads_orderby'] = 'lastpost';
        }
        if (!
$mod_options['portal_threads_direction'])
        {
            
$mod_options['portal_threads_direction'] = 'DESC';
        }

        
$threads $DB_site->query("
                SELECT
                " 
iif($mod_options['portal_threads_showrating'], 'IF(votenum >= ' $vboptions['showvotes'] . ', votenum, 0) AS numbvote, IF(votenum >= ' $vboptions['showvotes'] . ' AND votenum != 0, votetotal / votenum, 0) AS voteavg,') . "
                thread.threadid, thread.title, thread.replycount, postusername, postuserid, thread.dateline AS postdateline, IF(views <= thread.replycount, thread.replycount+1, views) AS views, thread.lastposter, thread.lastpost, pollid
                " 
iif($mod_options['portal_threads_showsubscribed'] AND $bbuserinfo['userid'], ', NOT ISNULL(subscribethread.subscribethreadid) AS subscribed') .
                
iif($mod_options['portal_threads_showicon'], ', thread.iconid AS threadiconid, iconpath AS threadiconpath') .
                
iif($mod_options['portal_threads_showforum'], ',thread.forumid, forum.title AS forumtitle') .
                
iif ($mod_options['portal_threads_showpreview'] AND $vboptions['threadpreview'], ', post.pagetext AS preview') . "
                FROM " 
TABLE_PREFIX "thread as thread
                " 
iif($mod_options['portal_threads_showicon'], ' LEFT JOIN ' TABLE_PREFIX 'icon USING (iconid)') .
                
iif($mod_options['portal_threads_showforum'], ' LEFT JOIN ' TABLE_PREFIX 'forum AS forum ON (thread.forumid = forum.forumid)') .
                
iif($mod_options['portal_threads_showpreview'] AND $vboptions['threadpreview'], ' LEFT JOIN ' TABLE_PREFIX 'post AS post ON (post.postid = thread.firstpostid)') .
                
$deljoin .
                
iif ($mod_options['portal_threads_showsubscribed'] AND $bbuserinfo['userid'], ' LEFT JOIN ' TABLE_PREFIX 'subscribethread AS subscribethread ON (subscribethread.threadid = thread.threadid AND subscribethread.userid = ' $bbuserinfo['userid'] . ')') . "
                WHERE open != 10 AND thread.visible = 1
                
$mods[threadids]
                
$mods[inforums]
                
$mods[exforums]
                
$notdeleted
                ORDER BY 
$mod_options[portal_threads_orderby] $mod_options[portal_threads_direction]
                LIMIT 
$mod_options[portal_threads_maxthreads]
        "
);
        
$mods['threadcount'] = $DB_site->num_rows($threads);
        while (
$thread $DB_site->fetch_array($threads))
        {
            
$bgclass exec_switch_bg();

            if (
strlen($thread['title']) > $mod_options['portal_threads_maxchars'] AND $mod_options['portal_threads_maxchars'])
            {
                
$thread['title'] = fetch_trimmed_title($thread['title'], $mod_options['portal_threads_maxchars']);
            }

            if (
$mod_options['portal_threads_maxwordchars'])
            {
                
$thread['titlecheck'] = explode(' '$thread['title']);
    
                if (!empty(
$thread['titlecheck']))
                {
                    foreach (
$thread['titlecheck'] AS $key => $word)
                    {
                        if (
strlen($word) > $mod_options['portal_threads_maxwordchars'])
                        {
                            
$thread['title'] = fetch_trimmed_title($thread['title'], $mod_options['portal_threads_maxwordchars']);
                            
$thread['titletrimmed'] = true;
                        }
                    }
                }
            }

            
$thread process_thread_array($thread''$mod_options['portal_threads_showicon']);

            
// Rating
            
$thread['votenum'] = $thread['numbvote'];
            if (
$mod_options['portal_threads_showrating'])
            {
                
$thread['rating'] = intval(round($thread['voteavg']));
            }

            eval(
'$home["$mods[modid]"][\'content\'] .= "' fetch_template('adv_portal_latesttopicbits') . '";');
         }
    }

    if (!
$mods['threadcount'] OR $mods['nodisplay'])
    {
        if (
$mods['modcol'] == 1)
        {
            
$home["$mods[modid]"]['content'] .= '<tr><td colspan="' $mods['colspan'] . '" class="' $bgclass '">' construct_phrase($vbphrase['no_x_to_display'], $vbphrase['threads']) . '</td></tr>';
        }
        else
        {
            
$show['tablerow'] = true;
            
$home["$mods[modid]"]['content'] .= construct_phrase($vbphrase['no_x_to_display'], $vbphrase['threads']);
        }
    }

    
$DB_site->free_result($threads);
    unset(
$thread);

}

?>
bump

Quote:
Originally Posted by Brian
I discovered the problem while working on a support ticket earlier and updated the package here a few hours ago. If you'll download it again, upload the install file, and select the option to reinstall your templates then that should take care of the problem.
FYI - got it at vbadvanced.com

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:13 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.05412 seconds
  • Memory Usage 2,264KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete