AUTHENTICATION WHILE DOWNLOADING
-----------------------------------------------------------
CODE FOR GETTING THE LOGIN INFORMATION:
$jAp= & JFactory::getApplication();
$user =& JFactory::getUser();
$user_id=$user->get('id');//variable $user_id hold user login_id
$user_username=$user->get('username');variable $user_username hold user login_username
VERIFICATION WHETHER THE USER IS AUTHORIZED PERSON OR NOT:
$refer_variable//may be $user_id or $user_username
$result=mysql_query("select * from jos_users where id='$refer_variable'");
PLUGIN NAME::::::::::josdewplayer_plugin.zip
FILE TO BE EDIT::::::josdewplayer.php
PATH FOR THE FILE:”\joomla\plugins\content\”
-------------Put onclick() event in the file josdewplayer.php
Line::::::4th line from bottom
$text = '{ type="application/x-shockwave-flash" data="'. $LiveSite .'plugins/content/'.$player. $path .'&autoplay='.$autoplay.'&autoreplay='.$autoreplay.'&showtime=1" onclick="test()" width="'.$width.'" height="20">
">
test(){
var id="{php echo $user_id;}";
if(id=="") window.location ="";////path to regiteration login form
alert("U must register or login before accessing it");
}
else
{
alert("Authorized user");
alert("U may now acess it");
}
}
{/script}
LOGIN-MODULE DATABASE NAME::::::: jos_users
LOGIN-MODULE DATABASE NAME::::::: jos_users
LOGIN-MODULE DATABASE NAME::::::: jos_users
SHORT PROCEDURE:::
---------->PUT onclick() event .Because while user try to dowload it will invoke
--------->In onclick() function. Redirect the page to registeration form page for registeration
---------->Get the User_login_id.It may be new user or old-user logination
--------->So for old-user.. U must check his availabilty by SELECT sql function.
---------->After registeration...permitt the user to download the desire content
JWallpapers
ReplyDeleteHi,
ReplyDeleteI just wanted to say that I really enjoyed your blog and this post. You make some very informative points. Keep up the great work!
-
Joomla module
Joomla is open source web application to manage content it is know ha the best CMS which is user friendly which provides better and simple user interface.
ReplyDeleteShopping Cart Solutions