Hello There, Guest! › Register

MySubscriptions 2.2 released.
Looking for a custom plugin for your site? Ask here for a quote.

[Release] MyPlaza [code] Thanks 1.0
#31

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?
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
#32

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 .
#33

Oh so it subtracts unhide_cost_minus * unhide_cost_post to unhide_cost ?
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
#34

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;

#35

unhide_cost = global cost for unhiding the content?
unhide_cost_post = ?
unhide_cost_minus = ?
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
#36

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

But what's the point of "unhide_cost_minus" and "unhide_cost_post". Are they calculated based on something?
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
#38

Yes

$cost=floatval($mybb->settings['unhide_cost'])-intval($mybb->user['postnum']/$mybb->settings['unhide_cost_post'])*floatval($mybb->settings['unhide_cost_minus']);
#39

ok, anyway I don't know what I'd call them in the lang files Tongue
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
#40

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";




Users browsing this thread: 1 Guest(s)