Welcome to Geeklog, Anonymous Friday, November 29 2024 @ 01:06 pm EST

Geeklog Forums

Changing your rdf output.


Status: offline

ronack

Forum User
Full Member
Registered: 05/27/03
Posts: 612
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.
 Quote

All times are EST. The time is now 01:06 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content