vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Thread Reply Problem.. HELP! (https://vborg.vbsupport.ru/showthread.php?t=238961)

Thr33 03-24-2010 12:16 AM

Thread Reply Problem.. HELP!
 
1 Attachment(s)
Hey guys ive been having this problem for a couple of weeks and ive looked into it and still i can amend it. Please can anyone help me see whats erroring here and why.

The enclosed screenshot happens when i post a reply in the shares section. Now the shares section has had a little modding with MARCO's Hide BBCode, plus my own postbit editing and reputation system PHP mod.

The error is:
(header)
Warning: Cannot use a scalar value as an array in [path]/includes/class_postbit.php(314) : eval()'d code on line 122
- which is odd because there is no data on like 122

(VBulletin Message)
Unable to add cookies, header already sent.
File: /home/lazyreco/public_html/network/includes/class_core.php
Line: 4372
- which is just the error script

As mentioned i have modded the postbit_legacy (to better allign/display the postbit stats) & the functions_newpost.php (to enable a custom built reputation system for share ratio purposes)

(postbit_legacy)
PHP Code:

<vb:if condition="$show['reputation']"><dt>Reputation</dt> <dd>{vb:raw post.reputation} <class="popupctrl reputation" title="{vb:rawphrase reputation}" href="reputation.php?{vb:raw session.sessionurl}do=addreputation&amp;p={vb:raw post.postid}" rel="nofollow" id="reputation_{vb:raw post.postid}"><img src="http://lazyrecords.net/network/images/rep-plu.gif" alt="{vb:rawphrase reputation}" /></a></dd></vb:if> 

- added under usertitle & rank

(functions_newpost.php)
PHP Code:

if ($foruminfo[forumid]>AND $foruminfo[forumid]<OR $foruminfo[forumid]==10 OR $foruminfo[forumid]==11)
{
    if (
$type == 'thread')
    {
    
$result $vbulletin->db->query_first("SELECT reputation FROM user WHERE userid =".$vbulletin->userinfo['userid']." ORDER BY userid ASC");
    
$punkty=$result['reputation']+1;
    
$vbulletin->db->query_write("UPDATE user SET reputation=".$punkty." WHERE userid=".$vbulletin->userinfo['userid']);
    
$senderpermissions=0;
    
$registry =& $vbulletin;
    }
    if (
$type == 'reply')
    {
    
$result $vbulletin->db->query_first("SELECT reputation FROM user WHERE userid =".$vbulletin->userinfo['userid']." ORDER BY userid ASC");
    
$punkty=$result['reputation']-1;
    
$vbulletin->db->query_write("UPDATE user SET reputation=".$punkty." WHERE userid=".$vbulletin->userinfo['userid']);
    
$senderpermissions=0;
    
$registry =& $vbulletin;
    }


- added after

PHP Code:

                    eval(print_standard_redirect('redirect_duplicatepost'truetrue));
                }
            }
        }
    } 

Can anyone help in seeing where ive made a mistake or how to correct it?? Ive uploaded all files mentioned incase you need a deeper look into it. Thanks in advance.


All times are GMT. The time now is 12:19 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.00967 seconds
  • Memory Usage 1,731KB
  • 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
  • (3)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