Thread: Forum Display Enhancements - vB Enterprise Translator
View Single Post
  #441  
Old 08-30-2009, 04:44 PM
LoveStream LoveStream is offline
 
Join Date: Jan 2009
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dear.

I notice that I set the latest version but this conflict with photopost.

I didn't see the code of photopost what is the reason.

Here, I got the error message from the photopost header. I use the same template in the gallery with forum.

HTML Code:
Fatal error: [] operator not supported for strings in /home/hosting_users/wavero/www/gallery/index.php on line 187

I quoted the portion of error from index.php and marked with red color.
PHP Code:
    if ( $Globals['undercat'] == "yes" ) {
        
// Lets get the Recent Comments
        
$numcompal = ($Globals['numcompal'] + 5);
        
$queryz ppmysql_query("SELECT c.username,c.userid,c.cat,c.photo,c.comment,p.bigimage,p.cat,p.storecat,p.userid,p.width,p.height
                                  FROM 
{$Globals['pp_db_prefix']}comments c
                                  LEFT JOIN 
{$Globals['pp_db_prefix']}photos p ON p.id=c.photo
                                  WHERE comment != '' ORDER BY c.date DESC LIMIT 
$numcompal"$link);
        
$numfound 0;
    
        while ( list(
$cache['comments']['username'][$numfound], $cache['comments']['userid'][$numfound], $cache['comments']['cat'][$numfound], $cache['comments']['lcphoto'][$numfound], $comcomment$thumbimg$thumbcat$storecat$thumbuid$thumbw$thumbh ) = mysql_fetch_row($queryz)) {
            if ( 
$storecat != $thumbcat $storecat;
            
            
// Clean up html conversions
            
$comcomment un_htmlspecialchars($comcomment);        
            
            
// Strip out BB codes
/* --------------- this error line ---------------            
            $find[] = '#\[.*/
?\]#siU';  $replace[] = '';
--------------------------------------------------------------- end of error line */            

             
$comcomment preg_replace($find$replace$comcomment);

            
$cache['comments']['cat'][$numfound] = $thumbcat;
            
$cache['comments']['comment'][$numfound] = ( strlen($comcomment) > 100 substr($comcomment,0,100)."..." $comcomment );
            
$cache['comments']['thumblink'][$numfound] = get_imagethumb$thumbimg$thumbcat$thumbuid101$thumbw$thumbh );
            
            
// Rotated? We need unrotated...
            
if ( $Globals['rotatel'] > || $Globals['rotatep'] > )
                
$cache['comments']['thumblink'][$numfound] = str_replace("/thumbs/""/mini/"$cache['comments']['thumblink'][$numfound]);

            if ( 
$Globals['spider'] == "yes" $cache['comments']['link'][$numfound] = "{$Globals['maindir']}/showphoto.php/photo/{$cache['comments']['lcphoto'][$numfound]}/cat/{$cache['comments']['cat'][$numfound]}";
            else 
$cache['comments']['link'][$numfound] = "{$Globals['maindir']}/showphoto.php?photo={$cache['comments']['lcphoto'][$numfound]}&cat={$cache['comments']['cat'][$numfound]}";

            if ( 
$numfound == $Globals['numcompal'] ) break;
            
$numfound++;
        }
    } 
Yours.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01201 seconds
  • Memory Usage 1,823KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html
  • (1)bbcode_php
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)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
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete