Recent Topics

1 Sep 27, 2006 02:49    

SO, when a user clicks on the "subscribe" link on any blog on my site, there are checkboxes there so that they can subscribe to EVERY blog on my site. Now, I don't want users from certain blogs to be able to access other blogs... so it's really not good that they can subscibe to every blog on my site.

How do I change it so that each blog's subscribe link only allows the user to suscribe to that blog?

3 Oct 17, 2006 19:15

Change the SQL in /skins/_subscriptions.php (around line 58) to:


		$sql = 'SELECT blog_ID, blog_shortname, sub_items, sub_comments
		          FROM T_blogs LEFT JOIN T_subscriptions ON ( blog_ID = sub_coll_ID AND sub_user_ID = '.$current_User->ID.' )
		         WHERE blog_in_bloglist <> 0
                            AND blog = '.$Blog->ID;


(adding the last line)


Form is loading...