Announcement

Collapse
No announcement yet.

little problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Steve Machol
    replied
    Then please follow step #3 to see if you can duplicate this problem on an unhacked test forum.

    Leave a comment:


  • sleepyk
    replied
    no steve this have been a problem sense i upgraded to 3.0.8 about 2 weeks ago or whenever it came out

    Leave a comment:


  • Steve Machol
    replied
    Sorry but we cannot provide support for hacked forums. Your options are:

    1. Remove the hacks (including any database changes) and restore the original vB files.

    2. Ask for help at the hacking site: www.vbulletin.org

    3. Set up a fresh test forum with all the original vB files and templates. Then if you can reproduce this problem on that forum, let me know. If not, then this will show that the problem is related to one or more changes you made.

    Leave a comment:


  • sleepyk
    replied
    cant i got lot of hacks installed including 1 custom hack i paid for, i was told by several people it has to do with usergroup file

    Leave a comment:


  • Steve Machol
    replied
    The first thing I recommend is that you reupload all the original vB non-image files (except install.php). Make sure you upload these in ASCII format and overwrite the ones on the server.

    Leave a comment:


  • sleepyk
    started a topic little problem

    little problem

    well i posted on vb.org and havent got any help yet so lets try here

    i went to admincp today clicked usergroups and got this error

    Code:
    [COLOR=#000000][COLOR=#0000bb]Parse error[/COLOR][COLOR=#007700]: [/COLOR][COLOR=#0000bb]parse error[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]unexpected [/COLOR][COLOR=#007700]$ [/COLOR][COLOR=#0000bb]in [/COLOR][COLOR=#007700]/[/COLOR][COLOR=#0000bb]home[/COLOR][COLOR=#007700]/[/COLOR][COLOR=#0000bb]content[/COLOR][COLOR=#007700]/[/COLOR][COLOR=#0000bb]k[/COLOR][COLOR=#007700]/[/COLOR][COLOR=#0000bb]l[/COLOR][COLOR=#007700]/[/COLOR][COLOR=#0000bb]e[/COLOR][COLOR=#007700]/[/COLOR][COLOR=#0000bb]XXXXX[/COLOR][COLOR=#007700]/[/COLOR][COLOR=#0000bb]html[/COLOR][COLOR=#007700]/[/COLOR][COLOR=#0000bb]admincp[/COLOR][COLOR=#007700]/[/COLOR][COLOR=#0000bb]usergroup[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]php on line 1363 [/COLOR][/COLOR]
    anyway i was told to post the line and lines above it so here it is

    line 1363 is : -> foreach($promotions AS $groupid => $promos)



    heres code for that section

    Code:
    [COLOR=#000000][COLOR=#ff8000]// ###################### Start modify promotions ####################### 
    [/COLOR][COLOR=#007700]if ([/COLOR][COLOR=#0000bb]$_REQUEST[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'do'[/COLOR][COLOR=#007700]] == [/COLOR][COLOR=#dd0000]'modifypromotion'[/COLOR][COLOR=#007700]) 
    { 
        [/COLOR][COLOR=#0000bb]globalize[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]$_REQUEST[/COLOR][COLOR=#007700], array([/COLOR][COLOR=#dd0000]'usergroupid' [/COLOR][COLOR=#007700]=> [/COLOR][COLOR=#0000bb]INT[/COLOR][COLOR=#007700])); 
    
        [/COLOR][COLOR=#0000bb]$title [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]$DB_site[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]query_first[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]"SELECT title FROM " [/COLOR][COLOR=#007700]. [/COLOR][COLOR=#0000bb]TABLE_PREFIX [/COLOR][COLOR=#007700]. [/COLOR][COLOR=#dd0000]"usergroup WHERE usergroupid = $usergroupid"[/COLOR][COLOR=#007700]); 
    
        [/COLOR][COLOR=#0000bb]$promotions [/COLOR][COLOR=#007700]= array(); 
        [/COLOR][COLOR=#0000bb]$getpromos [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]$DB_site[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]query[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]" 
            SELECT userpromotion.*, joinusergroup.title 
            FROM " [/COLOR][COLOR=#007700]. [/COLOR][COLOR=#0000bb]TABLE_PREFIX [/COLOR][COLOR=#007700]. [/COLOR][COLOR=#dd0000]"userpromotion AS userpromotion 
            LEFT JOIN " [/COLOR][COLOR=#007700]. [/COLOR][COLOR=#0000bb]TABLE_PREFIX [/COLOR][COLOR=#007700]. [/COLOR][COLOR=#dd0000]"usergroup AS joinusergroup ON (userpromotion.joinusergroupid = joinusergroup.usergroupid) 
            " [/COLOR][COLOR=#007700]. [/COLOR][COLOR=#0000bb]iif[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]$usergroupid[/COLOR][COLOR=#007700], [/COLOR][COLOR=#dd0000]"WHERE userpromotion.usergroupid = $usergroupid"[/COLOR][COLOR=#007700]) . [/COLOR][COLOR=#dd0000]" 
        "[/COLOR][COLOR=#007700]); 
        while ([/COLOR][COLOR=#0000bb]$promotion [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]$DB_site[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]fetch_array[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]$getpromos[/COLOR][COLOR=#007700])) 
        { 
            [/COLOR][COLOR=#0000bb]$promotions[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]"$promotion[usergroupid]"[/COLOR][COLOR=#007700]][] = [/COLOR][COLOR=#0000bb]$promotion[/COLOR][COLOR=#007700]; 
        } 
        unset([/COLOR][COLOR=#0000bb]$promotion[/COLOR][COLOR=#007700]); 
        [/COLOR][COLOR=#0000bb]$DB_site[/COLOR][COLOR=#007700]->[/COLOR][COLOR=#0000bb]free_result[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]$getpromos[/COLOR][COLOR=#007700]); 
    
        [/COLOR][COLOR=#0000bb]print_form_header[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'usergroup'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#dd0000]'updatepromotion'[/COLOR][COLOR=#007700]); 
        if (isset([/COLOR][COLOR=#0000bb]$usergroupcache[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]"$usergroupid"[/COLOR][COLOR=#007700]])) 
        { 
            [/COLOR][COLOR=#0000bb]construct_hidden_code[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'usergroupid'[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]$usergroupid[/COLOR][COLOR=#007700]); 
        } 
    
        foreach([/COLOR][COLOR=#0000bb]$promotions [/COLOR][COLOR=#007700]AS [/COLOR][COLOR=#0000bb]$groupid [/COLOR][COLOR=#007700]=> [/COLOR][COLOR=#0000bb]$promos[/COLOR][COLOR=#007700]) 
        { 
            [/COLOR][COLOR=#0000bb]print_table_header[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]"$vbphrase[promotions]: <span style=\"font-weight:normal\">{$usergroupcache[$groupid][title]} " [/COLOR][COLOR=#007700]. [/COLOR][COLOR=#0000bb]construct_link_code[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]$vbphrase[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'add_new_promotion'[/COLOR][COLOR=#007700]], [/COLOR][COLOR=#dd0000]"usergroup.php?$session[sessionurl]do=updatepromotion&amp;usergroupid=$groupid"[/COLOR][COLOR=#007700]) . [/COLOR][COLOR=#dd0000]"</span>"[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000bb]7[/COLOR][COLOR=#007700]); 
            [/COLOR][COLOR=#0000bb]print_cells_row[/COLOR][COLOR=#007700](array( 
                [/COLOR][COLOR=#0000bb]$vbphrase[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'usergroup'[/COLOR][COLOR=#007700]], 
                [/COLOR][COLOR=#0000bb]$vbphrase[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'promotion_type'[/COLOR][COLOR=#007700]], 
                [/COLOR][COLOR=#0000bb]$vbphrase[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'promotion_strategy'[/COLOR][COLOR=#007700]], 
                [/COLOR][COLOR=#0000bb]$vbphrase[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'reputation_level'[/COLOR][COLOR=#007700]], 
                [/COLOR][COLOR=#0000bb]$vbphrase[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'days_registered'[/COLOR][COLOR=#007700]], 
                [/COLOR][COLOR=#0000bb]$vbphrase[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'posts'[/COLOR][COLOR=#007700]], 
                [/COLOR][COLOR=#0000bb]$vbphrase[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'controls'[/COLOR][COLOR=#007700]] 
            ), [/COLOR][COLOR=#0000bb]1[/COLOR][COLOR=#007700]); 
    
    ---->[/COLOR][COLOR=#0000bb]1363        [/COLOR][COLOR=#007700]foreach([/COLOR][COLOR=#0000bb]$promos [/COLOR][COLOR=#007700]AS [/COLOR][COLOR=#0000bb]$promotion[/COLOR][COLOR=#007700]) 
            {  [/COLOR][/COLOR]

    thanks in advance for help
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X