News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

SA Facebook Integration

Started by SMFHacks.com Team, February 12, 2010, 01:36:11 PM

Previous topic - Next topic

vbgamer45

Possible yes most things can be done if you can code it.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

samborabora

Quote from: vbgamer45 on July 30, 2014, 08:46:27 AM
Possible yes most things can be done if you can code it.

Er, okay, do you know how to do this?

vbgamer45

No sorry it involves moving php code.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

samborabora

Quote from: vbgamer45 on July 30, 2014, 09:36:54 AM
No sorry it involves moving php code.

Could you elaborate as to what 'moving php code' means in the context of this mod, please?

vbgamer45

I am not sure I just know it uses php.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

JOSHSKORN

#3805
I kinda wish the disclaimer on the mod page tells you that this mod won't work unless you had created a v1 app prior to whatever date it was that Facebook forced you to make v2 apps only, and when the mod is finally updated for v2 apps, to state so.

Edit:  Something like this:

Warning: You must create an application on facebook to use this modification.  Currently, this mod only supports Facebook Apps v1.0.  As of April 30th, 2014, Facebook has moved to v2.0 apps.  This mod will only work if you've created a v1.0 app prior to April 30th, 2014.

samborabora

Who coded this mod originally?

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro


Kindred

Quote from: samborabora on July 31, 2014, 09:47:03 AM
Quote from: vbgamer45 on July 31, 2014, 09:19:01 AM
Was coded by SA

Is SA present?

Why?  The current "owner" of the mod, and the one wgo would provide support is vbgamer.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Arantor

He probably wants to go hassle the original author for support, despite the original author having handed it over, and in all honesty this probably needs substantially more work to make it work on the newer app setup anyway

samborabora

Quote from: Kindred on July 31, 2014, 11:31:14 AM
Quote from: samborabora on July 31, 2014, 09:47:03 AM
Quote from: vbgamer45 on July 31, 2014, 09:19:01 AM
Was coded by SA

Is SA present?

Why?  The current "owner" of the mod, and the one wgo would provide support is vbgamer.
Quote from: ‽ on July 31, 2014, 11:49:23 AM
He probably wants to go hassle the original author for support, despite the original author having handed it over, and in all honesty this probably needs substantially more work to make it work on the newer app setup anyway

Wow, you two are hunting me down now to have a go. The current "owner" quite frankly doesn't seem particularly qualified to support his mods, no offence vb, so it seems useless asking for support from him, I've tried before and it's not been a helpful experience.

I don't see why your trying to be antagonistic towards me just because I'm asking for help, and not receiving it. You both had your fun in that other thread, why are you trying to turn someone else's support thread into a  s h i t   storm because you don't like me? Just be helpful or STFU and stop being so rude and inconsiderate to other peoples feelings.

Once again, I'll ask, why the hell is it supposed to be so difficult to have the link that's generated in the sub-menu put in the display.template.php page? I'm not experienced enough to know, but supposedly you, Arantor, WOULD be experienced enough, even though I've yet to see anything seriously useful or helpful come out of your fingers.

Arantor

No, Kindred just asked why it mattered who the author was. Fact is they've passed on support of the mod to someone else - and frankly, finding out who the author was won't get you anywhere.

I was just trying to answer Kindred's question. Not trying to persecute anyone.

I have the skill, but I don't have the desire or time to work on such things for people who always seem so ungrateful. I suppose the many, many bug fixes or dozens of mods I've written over the years don't count. I don't have a need to bridge to FB, so why would I invest time in something I don't use for the benefit of people who just seem to complain about things?


Kindred

and I am not chasing you anywhere.
There are certain threads many) that I have previously posted in -- often in mods that I have used.
When I get notified of a new post, I read it...  and answer or address the issue if I can.

Whether you have had success with vbgamer or not is hardly relevant.
SA handed the mod off to vbgamer because he didn't want to support it any more -- or maybe for some other reason.  That exact reason is not relevant either...
What is relevant is that vbgamer is the current author and support for this mod. Any requests should go to him.
I suspected that you asked for the original author for exactly the reason that Arantor indicated, but was giving you an out. 
Since you have proven my supposition correct, let me state this: Harassing the FORMER author of a mod is uncouth and obnoxious and, if I hear about it, I will have to give you a time out.

You have a history on this site of ignoring people because of your attitude that you "know better than the rest of us". I suggest some modification of that attitude.



Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

samborabora

Quote from: Kindred on July 31, 2014, 03:41:28 PM
and I am not chasing you anywhere.
There are certain threads many) that I have previously posted in -- often in mods that I have used.
When I get notified of a new post, I read it...  and answer or address the issue if I can.

Whether you have had success with vbgamer or not is hardly relevant.
SA handed the mod off to vbgamer because he didn't want to support it any more -- or maybe for some other reason.  That exact reason is not relevant either...
What is relevant is that vbgamer is the current author and support for this mod. Any requests should go to him.
I suspected that you asked for the original author for exactly the reason that Arantor indicated, but was giving you an out. 
Since you have proven my supposition correct, let me state this: Harassing the FORMER author of a mod is uncouth and obnoxious and, if I hear about it, I will have to give you a time out.

You have a history on this site of ignoring people because of your attitude that you "know better than the rest of us". I suggest some modification of that attitude.

I'm going to make this brief. I never insinuated I was going to 'harrass' the author, you both made that one up. I just asked. I didn't prove your supposition correct, you supposed it all by yourself. I never contacted anyone, I was just curious as to why the current 'author' has no idea how to support his own mods, no offence intended.

I do not ignore people because of my attitude, I always respond to any issues other people have with my enquiries. I cannot imagine why you would consider my conduct to fit the description of "know better than the rest of us", unless of course you assume that I consider my own personal 'taste' and 'opinions' on how this software should be manipulated and modified to be superior to the majority of users, which I do not. I clearly have special requirements for how I personally would like the software to behave, and if this isn't widely considered useful or interesting, then it's not for anyone else to tell me what to do or how to do it, all I am asking for is suggestions or help, not an on-running string of personal attacks and lectures on WHY it shouldn't be done.

Now, the solution, I worked out by myself. It was simple. The FacebookHooks.php file contains the buffer string and the replace line, just rewrite the template and rewrite the hook, there's three hooks in the mod be default, and I assume more can be added if required.

original hooks:
$buffer = preg_replace('~(' . preg_quote('<div class="info">'. $txt['guestnew']. '</div>') . ')~', '<a href="'.$loginUrl.'"><img src="'.$modSettings['fb_log_logo'].'" alt="" /></a><div class="info">'. $txt['guestnew']. '</div>', $buffer);
        $buffer = preg_replace('~(' . preg_quote($txt['forgot_your_password']. '</a></p>') . ')~', $txt['forgot_your_password']. '</a></p><div align="center"><a href="'.$loginUrl.'"><img src="'.$modSettings['fb_log_logo'].'" alt="" /></a></div>', $buffer);
        $buffer = preg_replace('~(' . preg_quote('<dt><strong><label for="smf_autov_username">'. $txt['username']. ':</label></strong></dt>') . ')~','<dt><strong>'.$txt['fb_rwf'].':</strong><div class="smalltext">'.$txt['fb_regmay'].'</div></dt><dd><a href="'.$loginUrl.'"><img src="'.$modSettings['fb_log_logo'].'" alt="" /></a></dd><dt><strong><label for="smf_autov_username">'. $txt['username']. ':</label></strong></dt>', $buffer);
    }


modified hooks that match the positions within my template:
$buffer = preg_replace('~(' . preg_quote('<div class="info">'. $txt['guestnew']. '</div>') . ')~', '<a href="'.$loginUrl.'"><img src="'.$modSettings['fb_log_logo'].'" alt="" /></a><div class="info">'. $txt['guestnew']. '</div>', $buffer);
        $buffer = preg_replace('~(' . preg_quote('<div id="loginlogo"></div>') . ')~', '<div style="float: right;
clear: both;"><a href="'.$loginUrl.'"><img src="'.$settings['theme_url']. '/images/theme/fb.png" alt="" /></a></div><div id="loginlogo"></div>', $buffer);
        $buffer = preg_replace('~(' . preg_quote('<div id="registerlogo"></div>') . ')~','<div style="float: right;
clear: both;"><a href="'.$loginUrl.'"><img src="'.$settings['theme_url']. '/images/theme/fb.png" alt="" /></a></div><div id="registerlogo"></div>', $buffer);
    }


So, that's all that's needed, and if the so-called superior and experienced members of this 'help forum' could have been useful in their responses, instead of waving their power around and being personally insulting, I might have learned that a little faster, but either way, I hope it serves of some use to others wishing to modify this in a similar manner.

Oh, and I use version 1.0 apps, so it still works for me. Probably be handy to update it for less-fortunate users, tho.

Chris Grable

Checking my logic or understanding of this mod.   If I installed this tomorrow and hooked it up to Facebook it will not work due to Facebook now using v2.0 apps while this mod still only supports v1.0- apps.  Yes?

thanks!
chris

JOSHSKORN

Quote from: Chris Grable on August 04, 2014, 10:49:49 PM
Checking my logic or understanding of this mod.   If I installed this tomorrow and hooked it up to Facebook it will not work due to Facebook now using v2.0 apps while this mod still only supports v1.0- apps.  Yes?

thanks!
chris

You are correct.  You would have had to have an existing mod, created before April 30th, 2014 in order to have a v1 app.  Unfortunately, I missed out on that, so this mod is useless to me and others in the same boat.  I wish I'd known this BEFORE I installed the mod, but unfortunately that wasn't the case.  I was able to successfully install the mod, as it does install on SMF 2.08, but again, it does not connect to Facebook with a v2 app.  Sucks, because I was drooling at the mod's features and sad when I couldn't use it.

vbgamer45

If enough people want a new version I can look into doing it as a paid modification with a v2 app and see if it is possible to do.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

JOSHSKORN

Quote from: vbgamer45 on August 05, 2014, 11:57:13 AM
If enough people want a new version I can look into doing it as a paid modification with a v2 app and see if it is possible to do.
If I was involved in the same community I was a couple months ago, I'd hop on board.  Unfortunately, some things fell through.  I have to say, those that never got the mod to work, like me, I was just looking at the features this mod provides, and it didn't compare to anything else I saw out there.  Worth a paid mod? I'd say yes.  I think at some point, it'd have to be free, though.

Advertisement: