Forum Replies Created
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.
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;
});
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?
Sorry!
/wp-content/languages/plugins/
Put it on your /themes/languages/plugins/
Tradução português brasileiro.
Portuguese brazilian translation.
Aproveite (enjoy)!
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
ok, thankyou.
Dispite some bugs like this, the way you allow developers to overwrite the templates is very handy.
Keep the good work!
Shaon, this works. It could be an option on settings panel.
Thanks
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