Author Topic: RSS Feed Poster  (Read 2708 times)

Offline Earache

RSS Feed Poster
« on: June 28, 2007, 06:05:52 am »
I have both rss feed poster and smfshop installed.
Now I setup a "fake" user for the RSS poster to create the forum posts, BUT it doesn't update the credits earned through SMFShop.  It doesn't increase it's total at all or anything.  Is there anyway I can make it work?

Offline Daniel15

Re: RSS Feed Poster
« Reply #1 on: June 30, 2007, 04:30:52 pm »
Could you please provide a link to this RSS Feed Poster? You'll probably need to edit its code.

Offline Earache


Offline feeble

Re: RSS Feed Poster
« Reply #3 on: July 01, 2007, 07:36:26 am »
Not entirely sure why you would want a BOT to obtain store credit

but anyways,
open up Sources/Subs-RSS.php
Code: [Select]
createPost($msgOptions, $topicOptions, $posterOptions);
replace with
Code: [Select]
createPost($msgOptions, $topicOptions, $posterOptions);

db_query("UPDATE {$db_prefix}members
  SET money = money + {$modSettings['shopPointsPerPost']}
  WHERE ID_MEMBER = {$feed['ID_MEMBER']}
  LIMIT 1", __FILE__, __LINE__);