• [MOD] Facebook Connector V1.0 & V2.0 5 0 5 1
Currently:  

Author Topic: [MOD] Facebook Connector V1.0 & V2.0  (Read 244142 times)

0 Members and 1 Guest are viewing this topic.

Offline qBass17

  • Addicted member
  • ******
  • Posts: 1.800
  • I ♥ 4I
    • View Profile
Re: [MOD] Facebook Connector V1.0
« Reply #105 on: April 25, 2011, 11:47:31 AM »
Works perfect with 4images 1.7.9

+ Manual Database (Link)
Code: [Select]
CREATE TABLE IF NOT EXISTS `4images_users` (
  `fb_userid` varchar(255) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL,
  `fl_facebook` enum('new','normal','registered') CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL DEFAULT 'registered',
  PRIMARY KEY (`user_id`),
  KEY `user_lastaction` (`user_lastaction`),
  KEY `user_name` (`user_name`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
+ PHP 5 (Link)
« Last Edit: April 25, 2011, 12:34:43 PM by Sumale.nin »

Offline qBass17

  • Addicted member
  • ******
  • Posts: 1.800
  • I ♥ 4I
    • View Profile
Re: [MOD] Facebook Connector V1.0
« Reply #106 on: April 27, 2011, 09:06:07 PM »
Costum text for the Facebook Button
Example
in the your_template_folder\user_loginform.html & your_template_folder\user_loginform.html file...
find
Code: [Select]
<fb:login-button size="small" length="long" autologoutlink="true" perms="email,user_website,publish_stream"></fb:login-button>Replace with:
Code: [Select]
<fb:login-button size="small" length="long" autologoutlink="true" perms="email,user_website,publish_stream">{lang_login}</fb:login-button>

Offline comicart

  • Full Member
  • ***
  • Posts: 150
    • View Profile
Re: [MOD] Facebook Connector V1.0
« Reply #107 on: June 19, 2011, 03:23:35 AM »
I had to uninstall this mod today.
Terry

Since uninstalling I haven't been able to Approve users who register.
When I go to the admin and try to change someone from Registered User (not active) to Registered User, I get this error in red:
Please recheck the marked fields.
*
And there's a blank field after "Last Activity".

Is there something obvious I'm missing?

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Facebook Connector V1.0
« Reply #108 on: June 19, 2011, 01:56:41 PM »
I had to uninstall this mod today.
Terry

Since uninstalling I haven't been able to Approve users who register.
When I go to the admin and try to change someone from Registered User (not active) to Registered User, I get this error in red:
Please recheck the marked fields.
*
And there's a blank field after "Last Activity".

Is there something obvious I'm missing?

If you leave the "last activity" blank, it should not error. It should use the default date. If you zip and send me the changed files, I could take a look.

If you could PM me the reason why you unistalled it, Facebook is redoing their login stuff right now. I have version 2 of the mod almost ready but waiting for facebook to update their javascript to include the new login stuff. The new mod only refreshes once and only adds .02 seconds to the page load time. If there are other issues I would love to have the fixed before publishing it.
Buddy Duke
www.budduke.com

Offline comicart

  • Full Member
  • ***
  • Posts: 150
    • View Profile
Re: [MOD] Facebook Connector V1.0
« Reply #109 on: June 19, 2011, 04:57:06 PM »
It's not the "last activity" field that's giving a problem.
It's the field *after* it where I assume the facebook name went.

Do you know what file that's in?

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Facebook Connector V1.0
« Reply #110 on: June 19, 2011, 06:25:03 PM »
It's not the "last activity" field that's giving a problem.
It's the field *after* it where I assume the facebook name went.

Do you know what file that's in?

That blank field should be the fb_userid field. Not sure why it is being registated as a required field. I can make mine blank and it still saves changes.
I never noticed anything appeared in the admin area of the edit user on this mod, will have to modify that on the new one.
You could put something like 99999999999999999 in the field to get by the error or remove the field from your database.
Version 2 will still be using that field but it will change it back to the correct # when they login with their facebook account.
Buddy Duke
www.budduke.com

Offline comicart

  • Full Member
  • ***
  • Posts: 150
    • View Profile
Re: [MOD] Facebook Connector V1.0
« Reply #111 on: June 19, 2011, 10:01:58 PM »
Thanks - removing it from the DB fixed it.
I appreciate your help. Looking forward to the next version.

Offline XIIIX

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: [MOD] Facebook Connector V1.0
« Reply #112 on: June 23, 2011, 03:10:31 AM »
I just started to add this mod but I cant seem to get around this...would you guys help me out here? What could It Be?


Code: [Select]
Parse error: syntax error, unexpected T_CONST in /home5/nonsens5/public_html/gallery/facebook/fbmain.php on line 6
I had no problem adding the code except on the header file in my templates with the area where you have to add after this:


Code: [Select]
<body bgcolor="#FFFFFF" text="#0F5475" link="#0F5475" vlink="#0F5475" alink="#0F5475">
<br />
add this
Code: [Select]
  <div id="fb-root"></div>
        <script type="text/javascript">
            window.fbAsyncInit = function() {
                FB.init({appId: '{fb_appid}', status: true, cookie: true, xfbml: true});

                /* All the events registered */
                FB.Event.subscribe('auth.login', function(response) {
                    // do something with response
                    login();
                });
                FB.Event.subscribe('auth.logout', function(response) {
                    // do something with response
                    logout();
                });
            };
            (function() {
                var e = document.createElement('script');
                e.type = 'text/javascript';
                e.src = document.location.protocol +
                    '//connect.facebook.net/{fbl_lang}/all.js';
                e.async = true;
                document.getElementById('fb-root').appendChild(e);
            }());

            function login(){
                document.location.href = '{self_full}{fb_status}';
            }
            function logout(){
                document.location.href = '{self_full}{fb_status}';
            }
</script>
Uhm Im using Iceberg's template.

btw my code on fbmain is the next:
Code: [Select]
const FBAPPID="asldkfjklñasdfjlñksdafjlñkjklñ";//facebook app id
const FBAPI="alksadjflñksadjflñksadfjñlksadjflñk"; //facebook api key
const FBSECRET="lkjlñkjñlkjñlkjñlkjñlkjñkljlñkjlñkjlk"; //facebook secret
const FBDOMAIN="www.nonsenseinc.org"; //facebook base domain

I´ve checket the FB++ are the correct ones...

I cant even acces the main site of my gallery, what could It Be?


Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Facebook Connector V1.0
« Reply #113 on: June 23, 2011, 05:39:10 PM »
@ XIIIX,
look at this reply further up this post...
http://www.4homepages.de/forum/index.php?topic=27396.msg148725;topicseen#msg148725

that should fix your error message,
The template...
You will need to insert this after the <body> tag area of the template. (I do not have that template installed to say exactly where)
Buddy Duke
www.budduke.com

Offline XIIIX

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: [MOD] Facebook Connector V1.0
« Reply #114 on: June 23, 2011, 07:02:06 PM »
Ok Im sorry to bother this much but thanks to you I can see the website again! But I've got 2 problems...
When someone tries to log in with facebook an error message is displayed.

Quote
An error occurred. Please try again later
<--NVM i think this one is because I havent submitted the application with the 10monthly active users.

And the way every box content is displayed is a little messed up, for example the footer has disappeared and a lot has moved, where can I correct this? on my templates or on the main directory of my gallery?

Here, check it out.

www.nonsenseinc.org/gallery
« Last Edit: June 23, 2011, 07:12:55 PM by XIIIX »

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Facebook Connector V1.0
« Reply #115 on: June 23, 2011, 07:18:43 PM »
@ XIIIX,

looking at your sourcecode on your pages, that template is using <div> instead of tables..
this is what I saw...
Code: [Select]
<li><a href="./register.php?sessionid=u1qrggq1uerkhe4lii54bs6ti3">Registration</a></li>
  </tr><tr><td valign="top" align="center">
  <fb:login-button size="small" length="long" autologoutlink="true" perms="email,user_website,publish_stream"></fb:login-button>
</td>
</ul>  
 
</div>

I would change it to this...
Code: [Select]
<li><a href="./register.php?sessionid=u1qrggq1uerkhe4lii54bs6ti3">Registration</a></li>
</ul>  
<fb:login-button size="small" length="long" autologoutlink="true" perms="email,user_website,publish_stream"></fb:login-button>
 </div>
Buddy Duke
www.budduke.com

Offline XIIIX

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: [MOD] Facebook Connector V1.0
« Reply #116 on: June 23, 2011, 07:25:33 PM »
Hmmm I changed it on every file I could find but its still the same...

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Facebook Connector V1.0
« Reply #117 on: June 23, 2011, 09:01:50 PM »
Hmmm I changed it on every file I could find but its still the same...

It looks like something with that template. Can you send me a link for that template so I can see what it is doing?

also the "try again later", so do not have the appid and key in correctly.
I have not seen a number like that (it is usually all numeric) and not with all the sybols in it. What language is it in?
Buddy Duke
www.budduke.com

Offline XIIIX

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: [MOD] Facebook Connector V1.0
« Reply #118 on: June 24, 2011, 01:44:05 AM »
Ok so...
The template Im using is this:

http://www.4homepages.de/forum/index.php?topic=18761.0

The appid key and connections are changed on the files because they´re supposed to be secret... Im just having this little issue that bothers me is the domain..im using my website and My website is www.nonsenseinc.org but what I want people to connect too is to nonsenseinc.org/gallery because thats where the images are :)

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Facebook Connector V1.0
« Reply #119 on: June 24, 2011, 02:23:28 AM »
Ok so...
The template Im using is this:

http://www.4homepages.de/forum/index.php?topic=18761.0

The appid key and connections are changed on the files because they´re supposed to be secret... Im just having this little issue that bothers me is the domain..im using my website and My website is www.nonsenseinc.org but what I want people to connect too is to nonsenseinc.org/gallery because thats where the images are :)

in your template folder, the user_loginform.html and user_logininfo.html files...
Place the login button AFTER the last </ul> in those files (it did not mess anything up in the template on my computer)
Code: [Select]
<fb:login-button size="small" length="long" autologoutlink="true" perms="email,user_website,publish_stream"></fb:login-button>just put in the code above and not the other tags around it in my original post.

The code that I told you to place in the header file at the end, the <div id="fb-root"> code, place that code in your header.html file after the <div id="container">

for the app stuff, yes, do not share that info, I just noticed when I click on the login, it was trying to use the garbled info for the login and not using the app-id.
You can still use and run an app of facebook, you just can not get it published in their directory of apps until you have enough people using it.
The domain for your app would be nonsenseinc.org and the connect url on your facebook app would be http://www.nonsenseinc.org/gallery/ (notice the last slash, important)
Buddy Duke
www.budduke.com

 

Post your comments here