vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   uCash & uShop (https://vborg.vbsupport.ru/forumdisplay.php?f=100)
-   -   Action not found after upgrading to 3.0.7 (https://vborg.vbsupport.ru/showthread.php?t=76671)

MissKalunji 02-20-2005 06:16 AM

Action not found after upgrading to 3.0.7
 
I just uploaded to 3.0.7 and now im getting this erro when i got o my ucash

http://www.dancehallareaz.com/forum/ushop.php

IT tells me that : no action was found what do i do to fix that?

Quote:

Originally Posted by MissKalunji
I just uploaded to 3.0.7 and now im getting this erro when i got o my ucash

http://www.dancehallareaz.com/forum/ushop.php

IT tells me that : no action was found what do i do to fix that?


ok i was able to fix it now my next question how can i mass give points?

between worlds 02-20-2005 01:27 PM

How did you fix it? I just upgraded to 3.0.7 and there's no Ushop menu in my admincp and I keep getting the No Actions found message.

When I tried to direct link to the /uttstoreadmin.php file this is the message I got:

Warning: Invalid argument supplied for foreach() in /admincp/uttstoreadmin.php on line 492

Anybody able to give any help?

Viktor Kraft 02-20-2005 02:17 PM

Quote:

Originally Posted by between worlds
How did you fix it? I just upgraded to 3.0.7 and there's no Ushop menu in my admincp and I keep getting the No Actions found message.

When I tried to direct link to the /uttstoreadmin.php file this is the message I got:

Warning: Invalid argument supplied for foreach() in /admincp/uttstoreadmin.php on line 492

Anybody able to give any help?

Looks like you haven't rehacked your files after the upgrade. This may be the problem.

between worlds 02-20-2005 02:20 PM

I'll give that a try. I'm a complete ditz with php. Thanks Viktor.

MissKalunji 02-20-2005 02:52 PM

Quote:

Originally Posted by between worlds
How did you fix it? I just upgraded to 3.0.7 and there's no Ushop menu in my admincp and I keep getting the No Actions found message.

When I tried to direct link to the /uttstoreadmin.php file this is the message I got:

Warning: Invalid argument supplied for foreach() in /admincp/uttstoreadmin.php on line 492

Anybody able to give any help?


all i did i was missing this and i saved

Find:

PHP Code:

 (THIS IS LOCATED NEAR THE VERY BOTTOM OF GLOBAL.PHP.)if (DB_QUERIES)
{
    
$pageendtime microtime();
    
$starttime explode(' '$pagestarttime);
    
$endtime explode(' '$pageendtime);
    
$aftertime $endtime[0] - $starttime[0] + $endtime[1] - $starttime[1];
    echo 
"End call of global.php: $aftertime\n";
    echo 
"\n<hr />\n\n";


PHP Code:

Add Above:// ## 
 
<ucs>
// Unserialize uShop Actions.
$storeactions unserialize($datastore['utt_store_act']);
 
// Make a list of the all the actions...
foreach ($storeactions as $actionid => $theaction) {
    if (
$theaction['active'] == "1") {
        
$allowed explode(","$theaction['allowedgroups']);
        foreach (
$allowed as $allow) {
            if (
is_member_of(array('userid'=>$bbuserinfo['userid'], 'usergroupid'=>$bbuserinfo['usergroupid'], 'membergroupids'=>$bbuserinfo['membergroupids']), $allow)) {
                
$canenter "1";
            }
        }
        
$denied explode(","$theaction['deniedgroups']);
        foreach (
$denied as $deny) {
            if (
is_member_of(array('userid'=>$bbuserinfo['userid'], 'usergroupid'=>$bbuserinfo['usergroupid'], 'membergroupids'=>$bbuserinfo['membergroupids']), $deny)) {
                unset(
$canenter);
            }
        }
        if (!isset(
$canenter)) {
            
$canenter "0";
        }
        if (
THIS_SCRIPT == 'ushop') {
            if (
$canenter == 1) {
                
$action1[$actionid] = $theaction;
            }
            if (
$theaction['showinstore'] == 1) {
                (isset(
$actioncount) ? $actioncount++ : $actioncount "1");
            }
        }
        if (
$canenter == && $theaction['showinstore'] == 1) {
            eval(
'$ushop_navbar .= "' fetch_template('navbar_uttstore_actions') . '";');
        }
    }
}
// The end all solution.
unset($theaction);
unset(
$storeactions);
if (
THIS_SCRIPT == 'ushop') {
    
$storeactions $action1;
}
unset(
$action1);
// ## </ucs> 

and as for the admin part redo the admin part from the installation menue

Link14716 02-22-2005 09:20 PM

For mass giving points, there should be an addon if you just want to give it to a few users in the full releases forum. If you want to give points to all users, use this query:
[sql]UPDATE user SET uttpoints=uttpoints+X;[/sql]
where X is the amount of points to give. If you want to give points based on their postcount, open admincp/uttstoreadmin.php?do=giveoldpointsl in your browser.


All times are GMT. The time now is 07:58 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.01013 seconds
  • Memory Usage 1,753KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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