Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-07-2005, 05:31 PM
Sleepyk Sleepyk is offline
 
Join Date: Dec 2004
Location: CT
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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!
Reply With Quote
  #2  
Old 08-07-2005, 05:34 PM
vBintense's Avatar
vBintense vBintense is offline
 
Join Date: May 2005
Location: Omnipresent
Posts: 233
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Find line 1363 , and check the code or post the code from that line.
Reply With Quote
  #3  
Old 08-07-2005, 05:55 PM
Sleepyk Sleepyk is offline
 
Join Date: Dec 2004
Location: CT
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1362 }

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

its on new 3.0.8 never had this problem before..
Reply With Quote
  #4  
Old 08-07-2005, 08:02 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please also post the 20 lines before.
Reply With Quote
  #5  
Old 08-07-2005, 09:57 PM
Jako Jako is offline
 
Join Date: Sep 2004
Location: Michigan
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You may want to just reupload the origional admincp/usergroup.php file and overwrite the current one.
Reply With Quote
  #6  
Old 08-07-2005, 10:52 PM
Sleepyk Sleepyk is offline
 
Join Date: Dec 2004
Location: CT
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is original

one i got with vb 3.0.8
Reply With Quote
  #7  
Old 08-14-2005, 01:38 AM
Sleepyk Sleepyk is offline
 
Join Date: Dec 2004
Location: CT
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 08-15-2005, 10:21 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 08-15-2005, 10:05 PM
Sleepyk Sleepyk is offline
 
Join Date: Dec 2004
Location: CT
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^did that now it works

thats odd...
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:04 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.04438 seconds
  • Memory Usage 2,258KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete