Well, as the title says..
I want the user to be redirected to the login page if he's trying to post an article without being logged in instead of displaying the : You do not have permission message.
Thanks for you help,
Math
Well, as the title says..
I want the user to be redirected to the login page if he's trying to post an article without being logged in instead of displaying the : You do not have permission message.
Thanks for you help,
Math
But the "Submit" link only shows if he's logged in.
If you've got a custom Submit button, maybe do something like this:
PHP Code:<?php if ($h->currentUser->loggedIn) {
$submit_url = $h->url(array('page'=>'submit')); /* logged in so send to submit page */
} else {
$submit_url = $h->url(array('page'=>'login')); /* logged out so send to login page */
}
?>
<a href="<?php echo $submit_url; ?>">SUBMIT</a>
Search the Forums | Read the Documentation
I should have precised that this issue is when someone post a link from an external site. If hes not already logged in on MY website, he's going to be redirected to the "You cannot submit" message, which i think, should be the message + logging or registration form.
What you think?
After the user log in, he should be redirected to the submit page with the url field filled in.
Is it complicated to do?
I see. Okay, I've opened a ticket for it so it will be addressed eventually.
Search the Forums | Read the Documentation
Added in Submit 3.0: http://forums.hotarucms.org/showthre...?54-Submit-3.0
Thanks for bringing it up.
Search the Forums | Read the Documentation
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks