Cronwerks MCCode/MCCodes Forums

Please login or register.

Login with username, password and session length

News:

After purchasing with us the download link will be delivered to your forum message box.


This forum is now closed and has moved to a new location! Click here to find out why.

AuthorTopic: [MCCode] Friend Request Approval  (Read 2900 times)

Cronus

  • Administrator
  • Senior Member
  • *****
  • Reputation Power: 2901
  • Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!
  • Offline Offline
  • Posts: 550
    • MSN Messenger - preston__08@hotmail.com
    • View Profile
    • WWW
[MCCode] Friend Request Approval
« on: February 06, 2009, 02:33:41 AM »
Friend Request Approval

When a user is added as a friend to someones list, the person added must approve the add.
This lets users know who considers them a friend, and also could prevent someone they don't like from adding them.
This mod is available in Version 1 and Version 2.

The file is attached in .rar form.
You will need to be registered and logged in to access it.
« Last Edit: June 12, 2009, 07:16:21 AM by Cronus »
Logged
My msn is preston__08@hotmail.com if anyone is interested, I am online frequently.

Redsnake420

  • Active Member
  • **
  • Reputation Power: 41
  • Redsnake420 has no influence.
  • Offline Offline
  • Posts: 115
    • View Profile
    • WWW
Re: [MCCode] Friend Request Approval
« Reply #1 on: March 30, 2009, 12:57:31 AM »
works great thanks :)
Logged

Karlos

  • Basic Member
  • *
  • Reputation Power: 0
  • Karlos is looked down upon.
  • Offline Offline
  • Posts: 9
    • View Profile
Re: [MCCode] Friend Request Approval
« Reply #2 on: March 30, 2009, 11:27:43 AM »
May I ask you to put the verison it works for Cronus? Saves me downloading every file.
Logged

Redsnake420

  • Active Member
  • **
  • Reputation Power: 41
  • Redsnake420 has no influence.
  • Offline Offline
  • Posts: 115
    • View Profile
    • WWW
Re: [MCCode] Friend Request Approval
« Reply #3 on: March 30, 2009, 05:19:02 PM »
its for v1 but i converted it to v2 and i can post it you want
Logged

Cyanide

  • Global Moderator
  • Basic Member
  • *****
  • Reputation Power: 38
  • Cyanide has no influence.
  • Offline Offline
  • Posts: 55
    • MSN Messenger - xcyanide187x@live.com
    • View Profile
Re: [MCCode] Friend Request Approval
« Reply #4 on: March 31, 2009, 06:23:03 PM »
Nice addition, I'm using it on CrimeandChaos.com
Logged

Arson

  • Global Moderator
  • Basic Member
  • *****
  • Reputation Power: 98
  • Arson barely matters.Arson barely matters.
  • Offline Offline
  • Posts: 74
    • View Profile
Re: [MCCode] Friend Request Approval
« Reply #5 on: April 16, 2009, 08:40:44 PM »
Nice addition, I'm using it on CrimeandChaos.com

Plugger!
Logged
List of the Best Text Games on the Interwebs!
If you own a game, you need to list it on BestTextGames.com

strats

  • Active Member
  • **
  • Reputation Power: 13
  • strats has no influence.
  • Offline Offline
  • Posts: 109
    • View Profile
Re: [MCCode] Friend Request Approval
« Reply #6 on: April 22, 2009, 05:40:24 AM »
its for v1 but i converted it to v2 and i can post it you want


Yes post it please :)
Logged

Cronus

  • Administrator
  • Senior Member
  • *****
  • Reputation Power: 2901
  • Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!
  • Offline Offline
  • Posts: 550
    • MSN Messenger - preston__08@hotmail.com
    • View Profile
    • WWW
Re: [MCCode] Friend Request Approval
« Reply #7 on: June 12, 2009, 07:15:21 AM »
This thread has been updated.
Thanks to lumpy for providing a v2 of this script, it is now attached. =)
Logged
My msn is preston__08@hotmail.com if anyone is interested, I am online frequently.

strats

  • Active Member
  • **
  • Reputation Power: 13
  • strats has no influence.
  • Offline Offline
  • Posts: 109
    • View Profile
Re: [MCCode] Friend Request Approval
« Reply #8 on: June 13, 2009, 07:00:24 PM »
Sweet, Thanks!
Logged

secret_life

  • Basic Member
  • *
  • Reputation Power: 12
  • secret_life has no influence.
  • Offline Offline
  • Posts: 2
    • View Profile
Re: [MCCode] Friend Request Approval
« Reply #9 on: December 07, 2010, 02:54:24 AM »
you can send many request to the same person

exemple:

if user1 send two request at user2

user 2 receive two request and click accept for both

user1 have user2 two time in this friendlist

an idee ??
Logged

Cronus

  • Administrator
  • Senior Member
  • *****
  • Reputation Power: 2901
  • Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!
  • Offline Offline
  • Posts: 550
    • MSN Messenger - preston__08@hotmail.com
    • View Profile
    • WWW
Re: [MCCode] Friend Request Approval
« Reply #10 on: December 11, 2010, 10:52:01 AM »
I am honestly not sure, it has been a while since I've looked at this mod you would have to test it yourself.
If it does, you should be able to easily fix it
Logged
My msn is preston__08@hotmail.com if anyone is interested, I am online frequently.

dominion

  • Active Member
  • **
  • Reputation Power: 89
  • dominion barely matters.dominion barely matters.
  • Offline Offline
  • Posts: 129
    • View Profile
    • Email
Re: [MCCode] Friend Request Approval
« Reply #11 on: December 11, 2010, 12:08:32 PM »
you can send many request to the same person

exemple:

if user1 send two request at user2

user 2 receive two request and click accept for both

user1 have user2 two time in this friendlist

an idee ??
Change the query that deletes the request so it deletes all requests sent to user1 by user2.
« Last Edit: December 11, 2010, 02:43:02 PM by dominion »
Logged

secret_life

  • Basic Member
  • *
  • Reputation Power: 12
  • secret_life has no influence.
  • Offline Offline
  • Posts: 2
    • View Profile
Re: [MCCode] Friend Request Approval
« Reply #12 on: January 07, 2011, 06:43:25 AM »
thanks for reply i dont know how

i know is this line but how i can do that ?

mysql_query("DELETE FROM friendaccept WHERE reqID={$_GET['ID']}",
Logged

muthchris

  • Basic Member
  • *
  • Reputation Power: 20
  • muthchris has no influence.
  • Offline Offline
  • Posts: 14
    • View Profile
Re: [MCCode] Friend Request Approval
« Reply #13 on: January 17, 2011, 06:42:56 AM »
Very nice, I like it. However, how can you make it so that if the friendship is approved user1 is on user2's friendslist and user2 is also on user1's?
Logged

Cronus

  • Administrator
  • Senior Member
  • *****
  • Reputation Power: 2901
  • Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!
  • Offline Offline
  • Posts: 550
    • MSN Messenger - preston__08@hotmail.com
    • View Profile
    • WWW
Re: [MCCode] Friend Request Approval
« Reply #14 on: January 17, 2011, 11:12:55 AM »
Very nice, I like it. However, how can you make it so that if the friendship is approved user1 is on user2's friendslist and user2 is also on user1's?

Find:
Code: [Select]
mysql_query("INSERT INTO friendslist VALUES('', {$request['reqFROM']}, {$request['reqTO']}, '{$request['reqCOMMENT']}')",$c) or die(mysql_error());
Add this after:
Code: [Select]
mysql_query("INSERT INTO friendslist VALUES('', {$request['reqTO']}, {$request['reqFROM']}, '{$request['reqCOMMENT']}')",$c) or die(mysql_error());
Logged
My msn is preston__08@hotmail.com if anyone is interested, I am online frequently.
 


This forum is now closed and has moved to a new location! Click here to find out why.