petermoyle
Forum Replies Created
-
Forum: Plugins
In reply to: [Media Vault] redirect to custom log in pageIf you are comfortable updating the code you can change the following.
Go to Plugin Editor. Select “Media Vault”. Select mv-file-handler.php
On Line 123 replace the code with:
if ( $permissions[$permission][‘logged_in’] )
{
if(!is_user_logged_in()) // checks if user is logged in
{
wp_redirect( ‘/’ ); // if not logged in then redirect to this url
}
}Another option for you would be to use the plugin editor to tweak the code.
Select the formulator plugin then edit the following php file.
/library/modules/quizzes/front/front-action.php
after line 149 $result_url = ! $is_preview ? $result->build_permalink() : ”;
add the line $result_url = ”;This will mean that the url will not be amended and when the retake button is pressed it just refreshes the current page.
Don’t worry.
I have found the retake button in the code and added it for failed knowledge quiz results.
Also I have blanked the $result_url so it doesn’t add the /entries/[no.] which would refresh a page that causes a redirect to full blog list.
Regards,