Advertisement:

Author Topic: Can someone help me with the invite mod and SMF 2.0?  (Read 1741 times)

Offline QOY

  • Semi-Newbie
  • *
  • Posts: 24
Can someone help me with the invite mod and SMF 2.0?
« on: October 17, 2008, 04:47:08 PM »
Hi I just upgraded to 2.0 beta 4 and was wanting some assistance in re-installing the invite mod.
I am unable to do it with the package manager because I get a lot of "test failed"

I am having a hard time doing it manually because when I look at certain files to modify them the code it says to look for is not there.

For example it states:
./Sources/Profile.php

find: "// This block is only concerned with email address validation.."

 Add before: " // Invite MOD. Change the number of inviter. if

(!empty($_POST['inviter']) && (int)$_POST['inviter'] != 0 && (int)$_POST['inviter'] != $memID && allowedTo('moderate_forum')) { global $sourcedir; require_once($sourcedir . '/Invite.php'); if (inviter($memID)) db_query(" UPDATE {$db_prefix}invites SET ID_MEMBER = {$_POST['inviter']} WHERE ID_REGISTRATION = $memID LIMIT 1", __FILE__, __LINE__); else db_query(" INSERT INTO {$db_prefix}invites (ID_MEMBER, ID_REGISTRATION) VALUES ({$_POST['inviter']}, $memID)", __FILE__, __LINE__); } elseif (isset($_POST['inviter']) && empty($_POST['inviter'])) { db_query(" DELETE FROM {$db_prefix}invites WHERE ID_REGISTRATION = $memID LIMIT 1", __FILE__, __LINE__); } "


Yet I can not find the part that says "// "// This block is only concerned with email address validation.."

I am having this problem with many of the files that need to be modified?
Any ideas?
Thanks.

Offline SlammedDime

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,280
  • School of Air Ride
    • matt.zuba on Facebook
    • @mattzuba on Twitter
    • ZubaFitness
Re: Can someone help me with the invite mod and SMF 2.0?
« Reply #1 on: October 17, 2008, 06:35:58 PM »
Unless the mod has been updated to work with 2.0, then most of the code will not just copy over to the 2.0 code base.  2.0 has change a lot, including the way it makes database calls.  I suggest asking the author for help or asking when he/she plans on updating it, if at all.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...