vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   little problem (https://vborg.vbsupport.ru/showthread.php?t=93805)

Sleepyk 08-07-2005 05:31 PM

little problem
 
im not a expert coder very amature seeing i havent coded any hacks or anything in like 2 years but i went to admincp today clicked usergroups and got this error

PHP Code:

Parse errorparse errorunexpected in /home/content/k/l/e/XXXXX/html/admincp/usergroup.php on line 1363 

not sure bout it please help!

vBintense 08-07-2005 05:34 PM

Open the file that has the error admincp/usergroup.php

Find line 1363 , and check the code or post the code from that line.

Sleepyk 08-07-2005 05:55 PM

1362 }

1363 foreach($promotions AS $groupid => $promos)
1364 {

its on new 3.0.8 never had this problem before..

Marco van Herwaarden 08-07-2005 08:02 PM

Please also post the 20 lines before.

Jako 08-07-2005 09:57 PM

You may want to just reupload the origional admincp/usergroup.php file and overwrite the current one.

Sleepyk 08-07-2005 10:52 PM

this is original

one i got with vb 3.0.8

Sleepyk 08-14-2005 01:38 AM

ok quite a bit before it but i posted pretty much full section, cuz this hack i need, i need usergroup id's which i need to use this for so without further talkin lol


PHP Code:

// ###################### Start modify promotions #######################
if ($_REQUEST['do'] == 'modifypromotion')
{
    
globalize($_REQUEST, array('usergroupid' => INT));

    
$title $DB_site->query_first("SELECT title FROM " TABLE_PREFIX "usergroup WHERE usergroupid = $usergroupid");

    
$promotions = array();
    
$getpromos $DB_site->query("
        SELECT userpromotion.*, joinusergroup.title
        FROM " 
TABLE_PREFIX "userpromotion AS userpromotion
        LEFT JOIN " 
TABLE_PREFIX "usergroup AS joinusergroup ON (userpromotion.joinusergroupid = joinusergroup.usergroupid)
        " 
iif($usergroupid"WHERE userpromotion.usergroupid = $usergroupid") . "
    "
);
    while (
$promotion $DB_site->fetch_array($getpromos))
    {
        
$promotions["$promotion[usergroupid]"][] = $promotion;
    }
    unset(
$promotion);
    
$DB_site->free_result($getpromos);

    
print_form_header('usergroup''updatepromotion');
    if (isset(
$usergroupcache["$usergroupid"]))
    {
        
construct_hidden_code('usergroupid'$usergroupid);
    }

    foreach(
$promotions AS $groupid => $promos)
    {
        
print_table_header("$vbphrase[promotions]: <span style=\"font-weight:normal\">{$usergroupcache[$groupid][title]} " construct_link_code($vbphrase['add_new_promotion'], "usergroup.php?$session[sessionurl]do=updatepromotion&amp;usergroupid=$groupid") . "</span>"7);
        
print_cells_row(array(
            
$vbphrase['usergroup'],
            
$vbphrase['promotion_type'],
            
$vbphrase['promotion_strategy'],
            
$vbphrase['reputation_level'],
            
$vbphrase['days_registered'],
            
$vbphrase['posts'],
            
$vbphrase['controls']
        ), 
1);

---->
1363        foreach($promos AS $promotion)
        { 

Hope i get help by mornin

anyone?

help :)

Marco van Herwaarden 08-15-2005 10:21 AM

Sorry but i don't see any error in this part of the code. I suggest, you try again with a fresh copy, and then redo the changes.

Sleepyk 08-15-2005 10:05 PM

^did that now it works

thats odd...


All times are GMT. The time now is 05:58 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.01176 seconds
  • Memory Usage 1,746KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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