Posted on: 06/26/03 11:21pm
By: ronack
Ok this turned out to be a simple hack.
What I wanted was for only submissions by a specific group to be sent to the backend/geeklog.rdf. First you need to figure out the Group ID of the group you want to publish to the feed in my case I am chose Story Admin which is Group ID 3 but I may decide to create a new group just for this. To figure out the Group ID look in mysql in the table gl_topics.Then in lib-common.php change (near line 1309)
$topic_anon = DB_getItem( $_TABLES['topics'], 'perm_anon', "tid='{$row['tid']}'" );
to this
$topic_anon = DB_getItem( $_TABLES['topics'], 'group_id', "tid='{$row['tid']}'" );
Depending on your particular case you may change one or both of the following numerical values
Change perm_anon to 0 if you are not allowing anonymous to read the post. Leave it at 2 if anonymous are able to read it.
Change $topic_anon to the value of Group ID (3 is Story Admin)
(near line 1313)
if( $row['perm_anon'] == 2 AND $topic_anon == 3 )
Now any submission that has acces to that group will be sent to your newsfeed rdf file.