vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBadvanced CMPS (https://vborg.vbsupport.ru/forumdisplay.php?f=101)
-   -   Recent Threads is displaying something strange... (https://vborg.vbsupport.ru/showthread.php?t=96696)

Warrior 09-22-2005 03:33 AM

Recent Threads is displaying something strange...
 
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


All times are GMT. The time now is 01:47 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.01738 seconds
  • Memory Usage 1,794KB
  • 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)bbcode_quote_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