Icy Phoenix

     
 


This forum is locked: you cannot post, reply or edit topics.  This topic is locked: you cannot edit posts or make replies. 
Page 1 of 1
 
 
Reply with quote Download Post 
Post FAP SUPPORT - Guest Rating 
 
Hello, i have a problem with my personal album. Guests are rating pictures and is screwing up and cheats the ratings!
I dont have FAP but the "old" versjon of smartors gallery(FAP is an addon to this) and I dont (yet) want to upgrade to FAP since my album is very custom modded.
I need to stop guests from rating on album_page.php(album_showpage in FAP) and album_rate.php. I have searched alot and only found some code for FAP that i tried to adapt. But it dont work.   I have also tried to use some code from the FAP but no luck.

Can someone please help me "hard-code" an simple fix for blocking out guests from rating anything? I want to allow guest to watch pictures but not rate. I saw MightyGordon wrote somewhere that this is fixed in the latest version of FAP so hope somebody knows what to do. I can send or post my files if needed!
Thank you very much for support!
 



 
thomastogetSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Guest Rating 
 
I don't have Smartor installed to check this, but see if this will do what you want

OPEN album_page.php
FIND
Code: [Download] [Hide] [Select]
if ($album_config['rate'])
{
    $template->assign_block_vars('rate_switch', array());
}

REPLACE WITH
Code: [Download] [Hide] [Select]
if ($album_config['rate'] && $userdata['session_logged_in'])
{
    $template->assign_block_vars('rate_switch', array());
}


OPEN album_rate.php
FIND
Code: [Download] [Hide] [Select]
if( $album_config['rate'] == 0 )
{
    message_die(GENERAL_MESSAGE, $lang['Not_Authorised']);
}

REPLACE WITH
Code: [Download] [Hide] [Select]
if( ($album_config['rate'] == 0) || (!$userdata['session_logged_in']) )
{
    message_die(GENERAL_MESSAGE, $lang['Not_Authorised']);
}

 



 
ArtieSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Guest Rating 
 
That did work! Perfect    Minc over at Smartors made another mod on album_page so it has an extra rating field. I can remove that again from the template      . This did the trick! Thank you very much for help.  
 



 
thomastogetSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Guest Rating 
 
Your Welcome

Glad it work for you.
 



 
ArtieSend private message  
Back to topPage bottom
This forum is locked: you cannot post, reply or edit topics.  This topic is locked: you cannot edit posts or make replies.  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events


  

 

  cron