Favorites Sharing Configuration

Have a good idea ? Want to suggest something ? Have a couple of lines of code to back it up ?
Post it here !

Favorites Sharing Configuration

Postby dcavalier on 10-04-2010 15:53

Hi again, Micheal:

Sorry for all the posts but just working through this.

Is there a way to turn on/off the favorites sharing feature? Not talking about displaying shared favorites from within the users' settings options, but in the admin's configuration option.

Let me know. As well, I turned off sharing in the admin settings and the files are still showing in the favorites list of the users I had previously given permission to share.

Thanks.
Darlene
dcavalier
AmpJuke addict
AmpJuke addict
 
Posts: 45
Joined: 31-03-2009 18:37

Re: Favorites Sharing Configuration

Postby Michael on 14-04-2010 14:24

Hi Darlene,

Turning shared favorites on/off completely (from the admin page) isn't an option in the current version (0.8.2).

If you don't want your users to see the option, locate line 202-205 in "disp_settings.php".
The lines currently says:
Code: Select all
   // Show/hide shared favorites:
   fancy_tr($tmpcount,$tdnorm,$tdalt,$tdhighlight);
   echo "<td>".xlate("Display shared favorites").":".add_faq(29)."</td>";
   echo '<td align="left">'.add_checkbox('disp_fav_shares',$_SESSION['disp_fav_shares']).'</td></tr>';


...just delete them or - even better - comment out the three lines.


You might also want to run this simple SQL-query (f.ex. using PhpMyAdmin) against your user-table, so the option is hidden at login time:
Code: Select all
UPDATE user SET disp_fav_shares = '0'

...this example assumes you're not using a prefix for your AmpJuke tables.
If you do have a prefix - f.ex. "ampjuke_", the query should be stated as:
Code: Select all
UPDATE ampjuke_user SET disp_fav_shares = '0'


//Michael.
User avatar
Michael
Site Admin
Site Admin
 
Posts: 449
Joined: 03-07-2007 13:46
Location: Denmark

Re: Favorites Sharing Configuration

Postby Michael on 05-08-2010 18:19

Hi darlene,

Just FYI, there will be a new, global setting available in 0.8.3: Allow shared favorites.
If turned off, no shared favorite lists will be shown and the option to share favorite lists will be hidden for all registered users.

//Michael.
User avatar
Michael
Site Admin
Site Admin
 
Posts: 449
Joined: 03-07-2007 13:46
Location: Denmark

Re: Favorites Sharing Configuration

Postby dcavalier on 05-08-2010 18:51

Yes, I'm aware of that. This issue has been long resolved and now I don't even remember what I did to fix it. I think it was something silly like I had the path wrong - I'm pretty sure I posted it.
dcavalier
AmpJuke addict
AmpJuke addict
 
Posts: 45
Joined: 31-03-2009 18:37


Return to Requests / suggestions

Who is online

Users browsing this forum: No registered users and 2 guests

cron