Forum
Welcome, Guest
Please Login to access forum.
Refer user to the page where he came from (1 viewing) 
Go to bottom
TOPIC: Refer user to the page where he came from
#3902
Samira
Fresh Boarder
Posts: 4
User Offline
Refer user to the page where he came from Karma: 0  
Hi there,

I added the link of facebook login also to the core joomla login (elements/login.thtml) forms that are used for restricted pages with the code below. For the restricted pages, it works fine. But I can't manage to refer the user back to the same page as where he clicked on the page for pages where guests need to login (i.e. writing a comment). For those pages, also the same code does not work for the FB login. The below code for guest login works, but the user is sent back to the previous page before the current page instead of the current page.
Can you please advice?


For restricted pages:
<a href="'.$return_url.'" onclick="fblogin();return false;" class="ifbl_fbloginbutton"><img border="0" src="/modules/mod_instantfblogin/assets/images/fbk_tpl_comic.png" /></a>'

For pages where guests need to login:
<a href="'.$return_url_encoded.'" onclick="fblogin();return false;" class="ifbl_fbloginbutton"><img border="0" src="/modules/mod_instantfblogin/assets/images/fbk_tpl_comic.png" /></a>

Cheers,
Samira
 
Logged Logged  
  The administrator has disabled public write access.
Go to top