Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Friends 1.0 Extension

y2kbgy2kbg New
edited March 2007 in Vanilla 1.0 Help
Friends Extension 1

Friends Extension 1.7

Friends 1.7 Download

-I have fixed a great number of things for this release.

Finished:

- Makes new table called LUM_Friends with 2 columns UserID & Friends
- Adds a "Add as Friend" link to the profile page.
- Use "Members Page Extension" to create another tab named People
- under "People" make 3 separate sections for:
        - People you have added as a friend but not added you
        - Mutual Friendships
        - People that have added you but you haven't added them
        - All Members
- Create an Admin environment to control:
        - Which columns appear
        - Which tabs appear under the "People" tab
- Optimized some code ( I had to make a pretty sloppy and temporary
        workaround and copy and paste the same code 4 times (about 27 lines))


In Progress:

- Add a link to profiles so that other people can view their friends list.
- Possibly change entire {add as friend/mutual/people that added you} system
        into one that requires a friend request before "Friend" status is
        acknowledged (selectable via possible admin area)
- Create an Admin environment to control:
        - Which columns appear
        - Which style of friends system (requests (not made yet) or add anyone)
        - Which tabs appear under the "People" tab
- Optimize some code ( I had to make a pretty sloppy and temporary
        workaround and copy and paste the same code 4 times (about 27 lines))


Known Fatal Extension Collisions

- Wall
        In IE only the wall becomes invisible when a profile is viewed and
        reappears when "Add as Friend" is clicked (Friends still works but it kills the wall)
- Delete users  FIXED In Version 1.5
        If you delete a user with this extension it will completely screw up this
        extension. If you really want email me and I will type up the work
        around that I used.

Updates

Updated Version 1.5
- Admin area
- Increased code efficiency
- Fixed Collision With 'Deleted' Extension (not a work around, actually made code work faster)

Updated Version 1.6
-Fixes all bugs in 1.5 This is a mandatory upgrade if you use 1.5!!!
-Now shows users which tab under the the peoples tab is selected

Updated Version 1.7
- Fix The big bug in 1.6 that cause it not to work at all.

My email: y2kbugger at gmail dot com
        If anyone {adds to this}/{fixes anything} send it to me, I appreciate it. : )

Thanks To:

NameAliasWhy they deserve thanks
 silent1643Original Idea (Via AddOn request in forum)
Joe Clarejoefor code to display user information in an orderly fashion (members page extension)
Adam AtlasPolfor code to diplay link and write to data base (based on pol's userWallextension)
Gerrard CowburnMiniSweeperfor idea on how to store friend data in userbase (via forum) also conformation that each user has a userID (lol)
Alex MarshalliambigredLearn how to make settings page from annoucement extension.

Friends 1.7 Download

«13

Comments

  • Looks great y2kbg, now if only I had some friends...
  • man this is a great idea however it doesn't work on my setup i'm using walls as a major part so i guess that's why but i get a white screen & an error at the top when clicking the people tab
  • hmm well it doesn't (Hasn't for me) collide with the 'wall" on the peoples page, only on the profile page In ie.

    So may i ask what this error was? Did u delete the file members.php?
  • In less than a week, hopefully, I will release the next version of 'Friends' which will add:
    -Admin environment
    -A Greatly more efficient code
    -Neater code layout and properly whitespaced
    -More comments in the code
    -Many added definitions to change the text throughout the entire extension
    -Hopefully fixing the incompatibility with the deleted user extension.

    Hoping for feedback/bug reports/suggestions
    ~Zak
  • OK version 1.5 is out with a couple things not working:
    - people tab setting does nothing yet
    - need to add some
    to the settings panel to make it look right.

    Will fixed these both tomorrow.

    Friends 1.5 Download
  • Yesterday:
    Updated Version 1.5
    - Admin area
    - Increased code efficiency
    - Fixed Collision With 'Deleted' Extension (not a work around, actually made code work faster)

    Right now:
    Updated Version 1.6
    -Fixes all bugs in 1.5 This is a mandatory upgrade if you use 1.5!!!
    -Now shows users which tab under the the peoples tab is selected.
  • hi i love this extension, but im facing some errors after activating it. I activated the "Friends" extension first, then "Member List". I received the following errors: when i click on the "Members" tab, I get the following error: Fatal error: Cannot redeclare class memberlist in /home/webspeek/public_html/smkbs/v2/extensions/members_page/default.php on line 59 when I click on the "People" tab, I get the same message. However, when I activated the "Member List" extension first, then "Friends", I received the following errors on both "Members" and "People" tabs: Fatal error: Cannot redeclare class memberlist in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 11 I'm running Member list 1.2 and Friends 1.6. However, in the list of extensions in the settings tab, it displays "Friends 1.0".
  • ohh there is no need to install the members extension
  • "Friends 1.0". typo
  • all right, i disabled members extension and reactivated friends extension.

    when i go to the "People" tab, i get the following error on the right panel of the forum:

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 17

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80

    Notice: Undefined index: ppage in /home/webspeek/public_html/smkbs/v2/extensions/Friends/members.php on line 80
  • Upgrade to 1.7

    Sorry about this everyone i was using page manger and added &ppage=myfriends Manually to the url. I forgot about that & now have added a default page, MyFriends
  • Ok i tried to install this but it doesn't create the tables in the mysql file. Do we have to create it ourselves?
  • y2kbgy2kbg New
    edited January 2007
    It should make the tables.... Does it give an error? You are sure that the tables were created? Did you upload all files? What Version of SQL? Did You enable it? You may need to edit the file "friends-mysql.sql" to comply with the version of SQL you are using.
  • y2kbgy2kbg New
    edited January 2007
    Ok i have been working on v 2.0 already, It will give you the option to send friend request and select which tabs appear on the people page. Some things to look forward to: -Requesting friends -choose exactly which pages to show in each mode -I have written functions to help you guy out and make my code run better. EX: CheckFriendship(ForceIncomingInt('u', $this->Context->Session->UserID) will allow you do control what people can do and or view on a persons profile based on they friend ship status. There are 7 statuses: 0 = none (No request sent to or from this person) 1 = Sent request to this person but no answer 2 = Sent request to this person and it was accepted 3 = Sent request to this person and was declined 4 = Received from this person but no answer 5 = Received from this person and it was accepted 6 = Received from this person and was declined -Also There is a function to get the list of Friends and Friend Requests in a multi dimension array. This is mosty for my use but i gues someone may find a use for this. Tell me if there is anything else that should be added to The next version. If nothing else comes up it should be done within a week, hopeflly.
  • sorry i never replied before man just been really busy - this is the error i get when hitting the people tab : Fatal error: Cannot redeclare class memberlist in /home/content/D/e/a/Deadsy/html/forum/extensions/Friends/members.php on line 14 i still get it even though i've upgraded to 1.7 now. hope that helps. maybe you've already fixed it.
  • uninstall members extension, to make it work, try it to tell me if it works, but hold off as i will be releasing friends 2.0 that has a request sys and the table has to be deleted for Friends 2.0 to work.
  • okay, thanks man i'll hold till 2.0 & by members extension, do you mean 'member list' ? because i do have that installed
  • yes thats exactly what I mean. My extension is based on it and it give you the option to to show all members, basiclly it is the members extension + an Admin area + friends + Friends requests.
  • got a question. after installing friends 1.7 I go to the peoples tab and click on "all members". This brings me to another vanilla forum login with the url starting with http://zfiles.110mb.com.... What is the meaning of that? I didnt sign up there again and was wondering if I did something wrong.
  • y2kbgy2kbg New
    edited January 2007
    ohh jeeze... i cant believe i did that! so that means no one has been able to use this correctly yet? ok well anyway it will be fixed in v. 2.0

    If only someone had told me sooner.....
This discussion has been closed.