Jump to content

Welcome to DevFuse Forums

Sign In  Log in with Facebook

Create Account
Welcome to DevFuse Forums, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of DevFuse Forums by signing in or creating an account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get email updates
  • Get your own profile page and make new friends
  • Send personal messages to other members.
Guest Message by DevFuse

Tutorial info Visit support topic

  • Added on: Aug 18 2013 06:05 AM
  • Views: 4136
  • IPB Version: 2.3.x

Give iPoints to RSS import user

Posted by AndyF on Aug 18 2013 06:05 AM

Tested with iPoints 241, may work on other versions.


This small change gives iPoints bank account points to the account you may use for RSS importing of topics.



1. Decide how many points you are going to award the 'rss' member for each topic.

2. Open /sources/action_admin/rssimport.php - Take a backup of this file before editing it!

Around line 859, find...

$this->ipsclass->DB->simple_update( 'members', 'posts=posts+'.intval($inc), 'id='.intval($mid) );

Add below...

// Update the RSS Bot's points...
$this->ipsclass->DB->simple_update( 'members', 'deposited_points=deposited_points+'.intval($inc)*5, 'id='.intval($mid) );
// End

Replace the *5 with the number of points.


3. Save /upload rssimport.php


4. If you wanted them gain normal points rather than their bank account points, simply change deposited_points to points twice in the code like this:

$this->ipsclass->DB->simple_update( 'members', 'points=points+'.intval($inc)*5, 'id='.intval($mid) );

5. Test it by setting up a temporary feed or emptying the imported data and reimporting and confirm the rss poster member gains points as indicated. Note due to the way the topics are imported it may not always add the correct number, although it should not be too far off in 99% cases.

Powered by Tutorials 1.5.1 © 2017, by Michael McCune