Quote:
Originally Posted by cashcash
this hack cause me a problem with the general setting in the usercp see pic attach
i also see a warning before:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in [path]/profile.php(2087) : eval()'d code on line 3
i use vb4.1.10
|
Go to admincp > Plugins & Products > Plugin Manager, open the plugin "
Recent Thanks - UserCP Field Part2" and replace its contents with:
PHP Code:
if ($vbulletin->options['recent_thanks_notif'] AND $vbulletin->options['recent_thanks_on_off']){
$quer = "SELECT recent_thankact FROM " . TABLE_PREFIX . "user WHERE userid = ".$vbulletin->userinfo['userid']." AND recent_thankact=1";
$temp = $db->query_read($quer) or die("Error: ". mysql_error(). " with query ". $quer);
$isthere = mysql_num_rows($temp);
if($isthere){
$recent_thankact_checked = 'checked="checked"';
}
else {$recent_thankact_checked='';
}
$templater = vB_Template::create('recent_thanks_ufield');
$templater->register('recent_thankact_checked', $recent_thankact_checked);
$templater->register_page_templates();
$template_hook[usercp_options_messaging] .= $templater->render();
}
.. and post here the message you receive now on the usercp.
Quote:
Originally Posted by Emeralda
|
wow you are right, this phrase in inside the file recent_thanks.php.
Open it and change the phrase
Recent Thanks on the line:
PHP Code:
$navbits = construct_navbits(array('' => 'Recent Thanks'));
with that you want.