phpFox Inc. © 2010
|
|||||||
| Register | Feedbacks | Blog | Members | Search | Today's Posts | Mark Forums Read |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
Plugin Version: 1.3
I was browsing Facebook earlier and wanted to create a quick mod for us. Thought the "Common Friends" feature would be handy. Browsed our forums and found there was already a mod similar to this which can be found here. With this version of that mod it uses the hook system introduced with v1.6.20 so in order to use this plug-in you will need that version installed. Decided to use that method to create the plug-in instead of creating it as a module so we can release an example of how to use the hook system. However if you don't have v1.6.20 installed and you are still using an older build or even v1.5.1 there is a hack to get this working on those versions as well. To view this hack check out the "Extra Hacks" section below. The "Common Friends" block will look similar to the "My Friends" block found on a users profile. For a better idea of how the mod looks check out the screen shot attached with this thread. The plug-in also includes a "View All" page where the user can view all the friends they have in common with the user they are viewing. I ran a few tests and all is working fine on my end, but I tested it locally and the best way to test this sort of plug-in is on a live community where users have a lot of different friends. So if you do install this plug-in let me know how it goes. Okay lets get to the good stuff. To install/upgrade the plug-in... 1) Download the ZIP "CommonFriends.zip" attached with this thread. 2) Unzip it and you should find the following folders: Code:
Content visible to registered users only. 3) Rename the file Code:
Content visible to registered users only. Code:
Content visible to registered users only. 4) Login into your Admin CP and navigate to: Code:
Content visible to registered users only. Code:
Content visible to registered users only. Next make sure the setting: Code:
Content visible to registered users only. Next make sure the setting: Code:
Content visible to registered users only. That's it. Visit a user you know you are friends with and might already have friends in common to test out the plug-in. By default the plug-in will list 6 common friends. To change this open the file: Code:
Content visible to registered users only. Code:
Content visible to registered users only. In that file you will also notice: Code:
Content visible to registered users only. More tests need to be done so if you do install the plug-in let me know if you run into any problems. Extra Hacks Here are some extra hacks you can do to improve or change the functionality of the plug-in. Get this plug-in working on v1.5.1 or any v1.6.x build. Follow the install steps above. When getting to step 4 just skip that step and instead open the file: /design/templates/default/public/user/index.html Look for: Code:
Content visible to registered users only. Code:
Content visible to registered users only. Add the Common Friends Block under My Friends By default I have added the Common Friends block above the My Friends block. If you would like to add it under the My Friends block instead rename the file: Code:
Content visible to registered users only. Code:
Content visible to registered users only. If your site has more then one language package installed you can do the following to make sure this plug-in can work on all language packages. 1) Open the file Code:
Content visible to registered users only. Code:
Content visible to registered users only. Code:
Content visible to registered users only. 3) Click on "Add New Phrase" 4) For the "Varname" insert: Code:
Content visible to registered users only. Code:
Content visible to registered users only. Code:
Content visible to registered users only. 6) Once you have added the phrase you should get a message simliar to this: Code:
Content visible to registered users only. Code:
Content visible to registered users only. Code:
Content visible to registered users only. Code:
Content visible to registered users only. Code:
Content visible to registered users only. Code:
Content visible to registered users only. Last edited by Raymond Benc : 05-16-2008 at 02:35 PM.
|
| The Following 34 Users Say Thank You to Raymond Benc For This Useful Post: | ||
ajmboy (04-25-2008),
Altan (06-28-2008),
azjr247 (04-25-2008),
borosound (10-05-2008),
c2play4cam (01-24-2009),
Cfriskme (01-19-2009),
chemosi (12-14-2008),
chodhry (04-25-2008),
coolwurkz (04-25-2008),
dude (04-29-2008),
forestclown (05-22-2008),
JANEMARCIA26 (07-23-2008),
knowzdamnwell (04-28-2008),
kraze2007 (04-29-2008),
Kribba (04-25-2008),
Matrix (05-20-2008),
metro (04-27-2008),
Mindsplitter (11-16-2008),
myfuecom (04-25-2008),
myonit (05-10-2008),
nemo (04-28-2008),
ourlordsfriends.com (08-12-2008),
Pdog89gt (01-19-2009),
profilebooth (07-11-2008),
RainbowWarrior (11-20-2009),
robit (08-18-2008),
rossmilne (01-03-2009),
SlideRiceFC (04-28-2008),
tenaki (01-24-2009),
thunder88 (01-24-2009),
tresavon (01-28-2010),
Vincent_C (04-25-2008),
waleric2 (04-28-2008),
zaidey (06-10-2008)
| ||
|
#2
|
||||
|
||||
|
testing now
__________________
Teamwurkz Zones - Get Your Unlimited Premium Phpfox Themes NOW! Over 50 mini mods! Plus EMAIL Templates Please contact us here for support Get the news and latest updates! follow us
|
|
#3
|
||||
|
||||
|
hook system nice :) just tested this works great so far.
__________________
Teamwurkz Zones - Get Your Unlimited Premium Phpfox Themes NOW! Over 50 mini mods! Plus EMAIL Templates Please contact us here for support Get the news and latest updates! follow us
|
|
#4
|
||||
|
||||
|
I just installed your plugin and so far working perfectly :D
__________________
running 2.0.3 Man! The only animal to fear
|
|
#5
|
|||
|
|||
|
thos mod works great, but is it possible to show a "[view all common friends]" link? i got a friend and we have like 200+ friends in common. Wanted it to have a separate page for viewing all commong friends just like "[view all my friends]".
|
|
#6
|
||||
|
||||
|
yes, agreed... the other post on the forums already has this feature which I have implemented on my site already.. does this hook version allow for this? thanks
|
|
#7
|
||||
|
||||
|
looking forward to more use of the hook system, thanks natio. hopefully soon installing a mod will be as easy as the plugin system on vbulletin
way to go :)
__________________
"Puzzled at the sheer mention of CODE"
|
|
#8
|
||||
|
||||
|
how can i make it appear below the friends list on profiles?
p.s. a view all feature would be great
__________________
Tutorials::General PHP For beginners | Learning AJAX Tutorials::phpFoX How to mod phpFoX 1.6 | phpFoX ajaxCall PHP Code:
|
|
#9
|
|||
|
|||
|
A view all friends in common would rock!
|
|
#10
|
||||
|
||||
|
I guess the hook system is only build 20..right? Still using build 19 on one of my sites...
NATIO, did you see the badge option in facebook when you were browsing there? http://forums.phpfox.com/showthread....facebook+badge Would make a great mod to promote communities on other sites! Thanks for the FREE Mod!
__________________
Running 1.6 build 21 and Version 2.01, vBulletin plugin, VBSEO, & PHPFOXSEO Using Platinum Server Management
|
| The Following User Says Thank You to ajmboy For This Useful Post: | ||
borosound (10-05-2008)
| ||
![]() |
| Thread Tools | |
| Display Modes | |
|
|