MyBB-Plugins Forums

Full Version: [Release] MyPlaza [code] Thanks 1.0
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7
Here's the lang file:
Code:
$l['g_description'] = "Settings For CODEthx (MyPlaza)" ;
$l['unhide_cost_t'] = "Cost" ;
$l['unhide_cost_d'] = "How many credits users must pay to unhide [Code] (Important: Enter the number)" ;
$l['unhide_cost_post_t'] = "Post Minus";
$l['unhide_cost_post_d'] = "Number of post when cost smallest";
$l['unhide_cost_minus_t'] = "Cost Minus";
$l['unhide_cost_minus_d'] = "Number of cost smallest";
$l['unhiden_bonus_t'] = "Bonus";
$l['unhiden_bonus_d'] = "How many points should be added to the post author (Important: Enter the number)" ;
$l['unhidegroups_t'] = "Unhide Usergroups" ;
$l['unhidegroups_d'] = "Please enter the IDs of the usergroups that should see [code] without paying (0 = all groups must Thanks)." ;
$l['codethx_ads_t'] = "Ads Code" ;
$l['codethx_ads_d'] = "Enter the HTML code for the ads." ;

$l['no_hln'] = "<b>You don't have enough money to unhide this content</b>" ;
$l['codethx_thank'] = "<b>Thank You</b>" ;
$l['codethx_guest'] = "<b>Guests can't see this content. Please login or register.</b>" ;

I've fixed some things Tongue But I didn't fix this part:
Code:
$l['unhide_cost_post_t'] = "Post Minus";
$l['unhide_cost_post_d'] = "Number of post when cost smallest";
$l['unhide_cost_minus_t'] = "Cost Minus";
$l['unhide_cost_minus_d'] = "Number of cost smallest";
As I don't know what you mean by Post Minus or Cost minus. Minimum?
I do not know how to call it.

Cost "unhide_cost" reduced by the "unhide_cost_minus" every "unhide_cost_post" post.

I hope that you understand my idea .
Oh so it subtracts unhide_cost_minus * unhide_cost_post to unhide_cost ?
PHP Code:
function myplazacodethx_cost() 
{
    global 
$mybb,$user;
    
    
$cost=floatval($mybb->settings['unhide_cost'])-intval($mybb->user['postnum']/$mybb->settings['unhide_cost_post'])*floatval($mybb->settings['unhide_cost_minus']);
    if(
$cost<= 0)
    {
        
$cost=$mybb->settings['unhide_cost_post'];
    }
    else
    {
    
$cost=$cost;
    }
    return 
$cost;

unhide_cost = global cost for unhiding the content?
unhide_cost_post = ?
unhide_cost_minus = ?
Cost "unhide_cost" reduced by the "unhide_cost_minus" every "unhide_cost_post" post.
But what's the point of "unhide_cost_minus" and "unhide_cost_post". Are they calculated based on something?
Yes

$cost=floatval($mybb->settings['unhide_cost'])-intval($mybb->user['postnum']/$mybb->settings['unhide_cost_post'])*floatval($mybb->settings['unhide_cost_minus']);
ok, anyway I don't know what I'd call them in the lang files Tongue
Code:
$l['unhide_cost_post_t'] = "Post cost decreases";
$l['unhide_cost_post_d'] = "The number of posts every cost decreases";
$l['unhide_cost_minus_t'] = "Reducing costs";
$l['unhide_cost_minus_d'] = "Number of cost reducing";
Pages: 1 2 3 4 5 6 7