The code you mentioned displayed;
$onclick = "openMyModal('0', '0', '".JURI::root()."index.php?option=com_guru&view=guruLogin&tmpl=component&Itemid=".intval($itemid)."&returnpage=open_lesson&lesson_id=".intval($lesson["id"])."'); return false;";
}
I then changed it to;
$onclick = "location.href='https://website.com/community'";
}
It worked great for all users that have not already logged onto our website.
Now, it directs them to where they need to go login.
Thank you so much manhta & @Ninja
There is another last question/help needed.
It is with regards to this adjustment, but I think I will create a new ticket.
In order simplify the process and just refer to this ticket as reference.
Thanks Again..