This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Rate Downloads


avatar
Swarmer 0
From: -
Rate Downloads

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!

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Rate Downloads
avatar
OP 0
From: -
Rate Downloads

Excellent, thanks!!! Grinning Face
1 Re: Rate Downloads
avatar
Administrator
1342
From: 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:

        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();

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.