Simple Machines Community Forum

Customizing SMF => Bridges and Integrations => Topic started by: checkmater on April 09, 2011, 02:14:28 PM

Title: SMF as Facebook APP
Post by: checkmater on April 09, 2011, 02:14:28 PM
Someone got it?, I'm moding a SMF 2.0 RC5 forum to work as a Facebook APP, using the SA Facebook Integration Im getting it to work as an APP, but Im getting problems coz I need that whe the links are clicked then it changes the Top url and not the iframe url because it does the forum to be faster, that thing is that I know basics about SMF modding and I dont know where the links are created.. to add a Javascript function...

For example I have the links...
<a href = "forumurl/board/topic-whateverthing"">anchor</a>

And i want to add a function.. so all links should look like

<a href = "forumurl/board/topic-whateverthing"" onClick="change_top(this)">anchor</a>

Can be it done?.. Thanks in advance!

I dunno if this thread goes here.. so excuse me if not.
Title: Re: SMF as Facebook APP
Post by: Kindred on April 09, 2011, 09:36:27 PM
SMF will not work well, if at aall, in an iframe.

Title: Re: SMF as Facebook APP
Post by: checkmater on April 17, 2011, 07:02:30 PM
Yes, I finally decided to maintain the main domain name.. anyway now Im getting problems when reading the cookies from the iFrame... the site is working fine at IE.. but not at FF and Chrome
Title: Re: SMF as Facebook APP
Post by: Kindred on April 17, 2011, 07:15:20 PM
Quote from: Kindred on April 09, 2011, 09:36:27 PM
SMF will not work well, if at all, in an iframe.


Title: Re: SMF as Facebook APP
Post by: Neol on October 29, 2011, 11:15:45 AM
vBulletin did it, and very well: https://www.vbulletin.com/index.php?do=facebookapp
Title: Re: SMF as Facebook APP
Post by: Antes on October 29, 2011, 11:29:33 AM
vBulletin did another *thing* for money... 100$ for stupid (sorry) application? No thx bye.

I have active vBulletin license i used it, it's not that good... You can't use AdSense in it. So if your forum based on ADs, fail :P
Title: Re: SMF as Facebook APP
Post by: Neol on November 10, 2011, 06:21:16 PM
Quote from: Antes on October 29, 2011, 11:29:33 AM
vBulletin did another *thing* for money... 100$ for stupid (sorry) application? No thx bye.

I have active vBulletin license i used it, it's not that good... You can't use AdSense in it. So if your forum based on ADs, fail :P

Why stupid? It looks pretty good. And is very well integrated.
Title: Re: SMF as Facebook APP
Post by: Oldiesmann on November 11, 2011, 11:01:37 AM
Quote from: Zeri YT! on October 29, 2011, 11:15:45 AM
vBulletin did it, and very well: https://www.vbulletin.com/index.php?do=facebookapp

Good for them. They do things for a profit, so they can easily hire people to do stuff like that, and pass the costs (and then some) on to the customers.

Why would you want to pay $99 to turn your forum into a fancy Facebook app after having already paid almost $200 for the forum software? $300 can get you a really cool custom theme...
Title: Re: SMF as Facebook APP
Post by: checkmater on April 29, 2012, 11:52:03 PM
Well, I forgot to do an update, but here is the final product, I do not touched the forum since the owner tried to scam me lol, but I get it to work (Anyway I was an ultra noob modding smf).

apps.facebook.com/soccertalk (Copy-paste, I do not want to do any spam)

Greetings!
Title: Re: SMF as Facebook APP
Post by: Norv on April 30, 2012, 12:27:55 AM
Thanks for the work on it, checkmater. However, it doesn't seem to work at all: for a new user, upon acceptance of the app from facebook, it displays a registration successful message. After which it does nothing else - no redirect to the forum.
Using Iceweasel on Linux (FF-based): Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20120421 Iceweasel/3.5.16 (like Firefox/3.5.16). The problem is likely with the app.

I'm not sure what you mean by "not touching the forum"?
Title: Re: SMF as Facebook APP
Post by: checkmater on May 23, 2012, 11:46:42 AM
Hi, I had a problem with FireFox (and some other web-browser versions) the app was working well with FireFox 4.0 or superior but I had problems with cookies/redirections and registration with versions prior to the 4.0, I remember it was working well, but the forum owner wanted it to work on 3.6 and I was forced to avoid the last redirection. (But the app works well if modified to work with the 4 versions or superior).

Quote from: N. N. on April 30, 2012, 12:27:55 AM
I'm not sure what you mean by "not touching the forum"?

Not modifying or editing, since it was a paid work and the employer tried to scam me.

Sorry for my bad english!
Title: Re: SMF as Facebook APP
Post by: ssullivan on May 24, 2012, 07:33:33 AM
Quote from: checkmater on May 23, 2012, 11:46:42 AM
Hi, I had a problem with FireFox (and some other web-browser versions) the app was working well with FireFox 4.0 or superior but I had problems with cookies/redirections and registration with versions prior to the 4.0, I remember it was working well, but the forum owner wanted it to work on 3.6 and I was forced to avoid the last redirection. (But the app works well if modified to work with the 4 versions or superior).

Quote from: N. N. on April 30, 2012, 12:27:55 AM
I'm not sure what you mean by "not touching the forum"?

Not modifying or editing, since it was a paid work and the employer tried to scam me.

Sorry for my bad english!
You're using cookies with 3rd party domains on iframes?
You're going to have problems in there for some browser or another, or with some user or another. Better use query strings for the data you need IMHO.