Jump to content

  •  

Dinze

Member Since 04 Feb 2014
Offline Last Active Feb 14 2017 05:50 AM
-----

#52651 Flux v4p problem

Posted by Dinze on 10 March 2015 - 02:44 PM

Yeah. There's an issue with hercules fluxcp-- Flux::config('ThemeName') doesn't work on addons.

Go to your modules/voteforpoints/add.php#L93 and
change:
$filepath = FLUX_THEME_DIR.'/'.Flux::config('ThemeName').'/img/'.Flux::config('ImageUploadPath').'/';
to:
$filepath = FLUX_THEME_DIR.'/default/img/'.Flux::config('ImageUploadPath').'/';
change default to whatever theme name are you using.

If still won't work just use the url option instead of uploading a picture.


#52514 Feefty's FluxCP Addons Release

Posted by Dinze on 09 March 2015 - 01:14 AM

To anyone having an [color=rgb(255,255,255);font-family:'Lucida Grande', 'Lucida Sans', Verdana, Tahoma, sans-serif;font-size:12px;font-weight:bold;background-color:rgb(255,0,0);]Unable to vote for the server. Err no. 4 [/color] error try this fix. 
/modules/voteforpoints/index.php

Change

case "cash":	// insert or update cashpoints	$cashpoints_var = "#CASHPOINTS";	$sql = "UPDATE $cp_tbl SET value = value + ? WHERE key = ? AND account_id = ?";	$sth = $server->connection->getStatement($sql);	$sth->execute(array((int) $res->votepoints, $cashpoints_var, $account_id));	// account doesn't have a record for cashpoints	// so we will add a row	if ( ! $sth->rowCount())	{		$sql = "INSERT INTO $cp_tbl VALUES (0, ?, ?, 2, ?)";		$sth = $server->connection->getStatement($sql);		$bind = array($cashpoints_var, $res->votepoints, $account_id);		$sth->execute($bind);		if ( ! $sth->rowCount())			$errorMessage = sprintf(Flux::message("UnableToVote"), 4);	}break;

to

case "cash":	// insert or update cashpoints	$cashpoints_var = "#CASHPOINTS";	$sql = "UPDATE {$server->loginDatabase}.$cp_tbl SET `value` = value + ? WHERE `key` = ? AND `account_id` = ?";	$sth = $server->connection->getStatement($sql);	$sth->execute(array($res->votepoints, $cashpoints_var, $account_id));    	// account doesn't have a record for cashpoints	// so we will add a row	if ( ! $sth->rowCount())	{	    $sql = "INSERT INTO {$server->loginDatabase}.$cp_tbl VALUES(?,?,0,?)";		$sth = $server->connection->getStatement($sql);		$sth->execute(array($account_id, $cashpoints_var, $res->votepoints));		if ( ! $sth->rowCount())			$errorMessage = sprintf(Flux::message("UnableToVote"), 4);	}break;



#29630 Can some check this script please?

Posted by Dinze on 23 February 2014 - 03:02 AM

[color=rgb(0,0,136);]if[/color] [color=rgb(102,102,0);]([/color] counti[color=#ff0000]t[/color]em[color=rgb(102,102,0);]([/color] [color=rgb(0,102,102);]501[/color] [color=rgb(102,102,0);])[/color] [color=rgb(102,102,0);]<[/color] [color=rgb(0,102,102);]10[/color] [color=rgb(102,102,0);]||[/color] [color=rgb(102,102,0);]![/color]countitem[color=rgb(102,102,0);]([/color] [color=rgb(0,102,102);]514[/color] [color=rgb(102,102,0);])[/color] [color=#ff0000])[/color][color=rgb(102,102,0);]{[/color]