Bruno barros

Forum Replies Created

Viewing 10 posts - 1 through 10 (of 10 total)
Feb 24, 2017 at 6:59 pm
#54311
Member
Bruno barros
OP

OK, but is not the file. The hole site is behind a login page.

Would be very helpful if there is an option do return the file path instead of /?wpdmdl=ID, otherwise as users we haven’t any choise.

Feb 15, 2017 at 3:23 am
#53726
Member
Bruno barros
OP

Yeah is still doesn’t work, but there is another way.

add_filter(“wpdm_after_fetch_template”, function ($template){
$template = str_replace(‘[btnclass]’, ‘btn btn-default’, $template);
return $template;
});

Nov 28, 2016 at 9:18 pm
#51451
Member
Bruno barros
OP

Just for your know.
I made my own fix in the shorcode template.


$userNotAllowed = false; // default
if(isset($_GET['wpdmc'])){
    $categoryId = get_term_by('slug', $_GET['wpdmc'], 'wpdmcategory')->term_id;

    $permittedFor = WPDM\libs\CategoryHandler::GetAllowedRoles($categoryId);
    $userNotAllowed = true;// block for now
    foreach($permittedFor as $roleWhoCan)
    {
        if($roleWhoCan == 'guest' || current_user_can($roleWhoCan)){
            $userNotAllowed = false;
        }
    }
}

Than a wrapped the ‘while’ statement with if(! $userNotAllowed) and blocked the query is not allowed.

BUT, as the control is made by file level, the category restriction seems without purpose.
What context the category restriction works?

Nov 21, 2016 at 6:18 pm
#51283
Member
Bruno barros
OP

Sorry!

/wp-content/languages/plugins/

Nov 21, 2016 at 5:14 pm
#51280
Member
Bruno barros
OP

Put it on your /themes/languages/plugins/

Nov 21, 2016 at 12:07 am
#51262
Member
Bruno barros
OP

Tradução português brasileiro.
Portuguese brazilian translation.

Aproveite (enjoy)!

Nov 17, 2016 at 3:37 pm
#51193
Member
Bruno barros
OP

Shahriar, I’m not having any issue for now.
I just wondering if it could be a problem, because, as I sad, I already had a huge problem with flat folder to store a big number of files.

Thanks

Nov 14, 2016 at 12:11 pm
#51021
Member
Bruno barros
OP

ok, thankyou.

Dispite some bugs like this, the way you allow developers to overwrite the templates is very handy.
Keep the good work!

Nov 13, 2016 at 3:27 pm
#50999
Member
Bruno barros
OP

Shaon, this works. It could be an option on settings panel.

Thanks

Nov 11, 2016 at 12:08 pm
#50950
Member
Bruno barros
OP

OK, Nora.

I’ll try this later.

Beside that, do you know if there is a shortcode to show only the form to add new package? I don’t want the complete menu bar, because there is no reason to show a logout button.

Thnks

Viewing 10 posts - 1 through 10 (of 10 total)