Customizing SMF > Mod Requests
[Free] Friends
ninja111:
Message:
Adding Friends on Profile.
Version
2.0.2
Description
I have been on many vBulletin forums, and have seen friends added on each other's accounts. I have NEVER seen such a thing on a smf's before. I was wondering if this mod can be tackled because it's a great thing to have. Friends on your account is a amazing thing for anyone's forum no matter what it is based on.
I'll explain what i mean. The member would view the persons "Profile" And send a request. Then that member would see that he has a new "message". It ends up being a "request", and he accepts it". After he accepts it that member is on his list on his "profile", and is displayed with his other friends on his "profile".
I hope you understand what i mean.
Permissions
Anyone can "view" the friends, just like they can view the member's profile. It's just you have to be a member to add and request.
Feature Set
Make it to where it is option-able to put a box image around the friends display image. Reason: If a Friend/Member gets banned, then you can put a image around the display picture showing he is banned.
Thanks for reading this. And if you thank about tackling this mod, then thank-you even more.
Suki:
I implemented this very own thing for Breeze, by default you can make anyone be your friend and this person won't even know about it. And yes, a block where all your friends get listed is going to be included.
I intercepted the buddyrequest action and added a notification system, wasn't as hard as I think it would be.
ninja111:
Is this mod a good suggestion? Or is it So easy to do on my own, that i made myself look foolish.
Suki:
It is easy if you are familiar with the code.
Basically, there is an action that gets called every time some users marks another user as his/her buddy:
'buddy' => array('Subs-Members.php', 'BuddyListToggle'),
function BuddyListToggle() handles all the request, the adds and the removals, you can insert some code there to notify the user about the buddy request.
As for the block to list all your buddies in your profile, a query should be enough, there is two options, you can list all your buddies without actually checking if they have you as their buddy too or list only those buddies that have you as their buddy too.
ninja111:
???
Lol,
"Your to smart for me". Man i can't wait till i go to college. Then i can tell people how to do stuff like this. I'm Just sitting here laughing at how confused i am.
Navigation
[0] Message Index
[#] Next page
Go to full version