PDA

View Full Version : Add-On Releases - Facebook Connect: View "mapped" users


wolfstream
07-25-2009, 10:00 PM
This mod is a very simplistic hack that will allow you to view the users that have connected to your forum via facebook, and, if necessary, edit those users. It's a very quick and easy hack, no major credit needed. Since the author's pretty much not handling public support, I figured I'd throw it into it's own mod for now.

Requirements:
You must have the facebook connect (https://vborg.vbsupport.ru/showthread.php?t=203064) mod installed.

Caveats:
This mod will take time to load up, because it has to query facebook and see who's who. I did this deliberately, so you can get a real name for those users.

This mod will REALLY take a while to load up if you have a lot of fb users on your forum, because it was a very simple mod to put together (ie: I didn't add any paging, that I may consider doing in a future version). This throws all your fb users together on one page.

Install Instructions:

Uncompress the zip file
Upload everything in the upload folder to your forum directory. Make SURE to overwrite the cpnav file.
NO xml to import, you're done.


Support will be provided only to those with the mod installed.

Version History:
1.01 : 07-26-09
Fixed bug here (https://vborg.vbsupport.ru/showpost.php?p=1856054&postcount=5)
1.03 : 08-05-09
Fixed bug here (https://vborg.vbsupport.ru/showpost.php?p=1861715&postcount=16)

wolfstream
07-25-2009, 11:01 PM
Reserved

m2006
07-26-2009, 04:01 AM
Nice mods thank somuch

Brandon Sheley
07-26-2009, 04:08 AM
interesting
will check it out

janslu
07-26-2009, 07:37 PM
Thanks for sharing! It really helps :-)
I've had some problems:

1. There's an error in line #52 of fbconnect_users.php:
There's a space before "user" in table name. It should be
" . TABLE_PREFIX . "user

2. It works slow on my 50.000+ userbase, but works.

wolfstream
07-26-2009, 07:57 PM
Thanks for sharing! It really helps :-)
I've had some problems:

1. There's an error in line #52 of fbconnect_users.php:
There's a space before "user" in table name. It should be
" . TABLE_PREFIX . "user
Thanks for pointing that out, I have fixed the file. I could have sworn I got all that, but apparently not ;)


2. It works slow on my 50.000+ userbase, but works.
Yikes!!! I'll say it'd be slow. I'll see what I can do about paging, but it'll be a bit difficult to do right now.

erel34
07-26-2009, 09:16 PM
Thanks

zajmal
07-29-2009, 03:11 PM
I am getting this error:

Fatal error: Uncaught exception 'FacebookRestClientException' with message 'Session key invalid or no longer valid' in /home/mehfil/includes/facebook/facebookapi_php5_restlib.php:2403 Stack trace: #0 /home/mehfil/includes/facebook/facebookapi_php5_restlib.php(1184): FacebookRestClient->call_method('facebook.users....', Array) #1 /home/mehfil/admincp/fbconnect_users.php(33): FacebookRestClient->users_getInfo('718255428', Array) #2 {main} thrown in /home/mehfil/includes/facebook/facebookapi_php5_restlib.php on line 2403

wolfstream
07-29-2009, 03:21 PM
How many facebook users do you have in your usergroup?

zajmal
07-29-2009, 03:35 PM
Only 2.

PS. I have figured it out. I get the error if I am not logged in using FB connect.

wolfstream
07-29-2009, 03:52 PM
That error has nothing to do with you being logged in using FB Connect at all, it is a session error, which is not script related, but server related.

Either the script was timing out getting the information from facebook (check the connection from your server to facebook), your server lost the session data somehow (someone removed session files), or your session cookie got destroyed somehow.

None of those have anything to do with the plugin itself.

I just tested to be absolutely positive that this didn't require fbconnect login, and it doesn't. Not sure what's causing your problem, but it's not the plugin.

Blacura
08-04-2009, 02:17 AM
When i click on edit i get this error????


Not Found
The requested URL /moderator.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


--------------------------------------------------------------------------------

Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8k DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.ladiesletsride.com Port 80

wolfstream
08-04-2009, 07:48 AM
Re-download the plugin, because you did something wrong.
This plugin does not care about moderator functions, or moderator.php.

The 'settings' link should take you somewhere in admincp (I think options.php, but don't recall right off hand).

Blacura
08-05-2009, 12:01 AM
I re-uploaded it and i still get this error when i click on Edit user

What is there that i can be doing wrong. it's a simple upload

wolfstream
08-05-2009, 05:38 AM
Sorry, got my mods confused for a second, thought you were referring to the facebook app itself and replied a bit early in the day (for me ;)).

This didn't occur on my forums (any of them), but if you have a custom modcpdir setup, it could occur on yours. Try downloading the mod now, this problem SHOULD be resolved now, as I made an adjustment to how that's called.

matthewhotdude
08-05-2009, 08:54 AM
installed but a problem. when I click to edit a user get the following error

Not Found
The requested URL /admincp/modcp/moderator.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

the moderator.php on my server is in the folder /admincp/moderator.php Thats the way it's always been I have not changed any folder structures at all since I set up this board. So is that the problem?

wolfstream
08-05-2009, 12:49 PM
If you want help, make sure that you have "installed" the app. It's not really that much to ask for.

matthewhotdude
08-05-2009, 12:51 PM
Done, I don't normally do it till they are working sorry

wolfstream
08-05-2009, 01:15 PM
moderator.php is actually in the forumroot and in the admincp directory. The one that should be called is the one in the forum root. I have no clue where I got a link to the other (modcpdir), but this should be resolved in the latest update.

As far as the mod working, it was, of course, working, otherwise you wouldn't have seen the users and the link to edit them. Just because a link doesn't work doesn't mean the whole thing is broken ;)

matthewhotdude
08-05-2009, 01:23 PM
Thanks for the update :) Working fine

Blacura
08-05-2009, 06:24 PM
Cool that fixed it.. if you know of any other mods that are cool please let me know Tom. your the best

masterwebguy
08-05-2009, 08:18 PM
Must have.

thanks.

Julie
08-06-2009, 06:10 AM
Very nice! Makes it easier to find mapped users, works like a charm! :)

Wakey
09-07-2009, 12:10 PM
Are you ever going to add paging to this? Or if not can you or anyone else give me a hint on how I may go about adding paging. Id like to install this but its whats holding me back from doing so as I have like 9000 facebook connect users

wolfstream
09-07-2009, 04:10 PM
You're more than welcome to look at adding paging to this yourself, but since I no longer use (or support) the product it was written for, it's highly doubtful that I'll advance this any further. There's no problem with how it is right now, though

FitgirlWorld
09-29-2009, 02:40 AM
where do you go to view the list of "mapped" users?

joyboy2001
10-02-2009, 03:51 PM
where do you go to view the list of "mapped" users?

I accessed the list at :
http://example.com/forum/admincp/fbconnect_users.php

Crude way, if you ask me ...

The mod still leaves a lot to be desired :

Link from within admincp
Link to each member's profile and another to their Facebook profile
Pagination optionsStill, it's good to see this in place ...

BucWiLd
10-06-2009, 05:25 PM
Very very nice i love it. look forward to updates

Skydiver10
11-20-2009, 06:47 PM
This is great..thank you!! :)

Milez
12-07-2009, 11:10 AM
Can anyone explain why the creator of this useful mod is now Banned?

Skydiver10
12-07-2009, 12:20 PM
Was not aware, what do you mean?

vbreal
12-10-2009, 03:27 AM
*edit*