Bruno barros

Forum Replies Created

Viewing 10 posts - 1 through 10 (of 10 total)
in reply to: Preview problems #54311

Bruno barros
Member

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.

in reply to: [btnclass] not working – btn classes not generated #53726

Bruno barros
Member

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;
});

in reply to: Restrict access to categories #51451

Bruno barros
Member

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?


Bruno barros
Member

Sorry!

/wp-content/languages/plugins/


Bruno barros
Member

Put it on your /themes/languages/plugins/


Bruno barros
Member

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

Aproveite (enjoy)!

in reply to: Upload folder structure and limits #51193

Bruno barros
Member

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

in reply to: jQuery('select').chosen(); Really! #51021

Bruno barros
Member

ok, thankyou.

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

in reply to: Bug frontend shortcode #50999

Bruno barros
Member

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

Thanks

in reply to: Bug frontend shortcode #50950

Bruno barros
Member

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)