Rate Downloads
Swarmer 0
From: -
From: -
Notice
This topic is archived. New comments cannot be posted and votes cannot be cast.Responses to this topic
1 Re: Rate Downloads
Swarmer
OP
0
From: -
From: -
Rate Downloads
Excellent, thanks!!!
Excellent, thanks!!!
1 Re: Rate Downloads
Philipp
From: Austria
Administrator
1342From: Austria
Rate Downloads
The sites in question have modified download.php to allow anonymous rating.
Here a basic way to doing this. Open download.php and replace:
with:
The sites in question have modified download.php to allow anonymous rating.
Here a basic way to doing this. Open download.php and replace:
if ($lcookie)
{
$ldata = addslashes(base64_decode($lcookie));
$ldata = explode (":!:", $ldata);
if (!file_exists("bbwrapper.php"))
{
dbconnect();
$query = DBQuery("SELECT * FROM esselbach_st_users WHERE user_name = '$ldata[0]' AND user_banned = '0'");
$userd = mysql_fetch_array($query);
}
}
if (!file_exists("bbwrapper.php"))
{
if (($ldata[1] != $userd[user_password]) or (!$lcookie))
{
echo GetTemplate("download_error_notlogged");
FooterBlock();
exit;
}
}
else
{
if ((!BBGetUser($ldata[0], $ldata[1])) or (!$lcookie))
{
echo GetTemplate("download_error_notlogged");
FooterBlock();
exit;
}
dbconnect();
}
with:
$ldata[0] = GetIP();
Hello, I've noticed that on some of the sites i've looked at that are running storyteller you don't have to be registered in order to rate downloads etc... i don't need registration on the site i am building but i can't figure out how to disable it.... sorry if it's obvious, but i've looked for days and can't seem to find it.... thanks for your time!