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

grafitus

Quote from: erorcun on July 29, 2010, 07:17:26 AM
Ben modun 2. yazarıyım.

Şunu türkçe anlatırsan dediğin şeyi yapabilirim, ingilizceyi çok iyi bilmiyorum da. :D
You should speak English on here. Especially when second mod author. ;)

UltraEffect

Quote from: erorcun on July 29, 2010, 07:17:26 AM
Ben modun 2. yazarıyım.

Şunu türkçe anlatırsan dediğin şeyi yapabilirim, ingilizceyi çok iyi bilmiyorum da. :D

Mukemmel, tesekkurler erorcun!

forumum sag ust kisminda sabit olan login (Giris Yap) kismi war.

Modification kurduktan sonra otamatik olarak ustteki "giris yap" kisminin yaninada facebookla baglan tusu koydu.
http://www.californiaturkleri.com/ gidersen goruceksindir..

bese "facebook girisi yap" sadece ana giris yap (yani menunun icinde olan "giris yap"in icinde) ve ana sayfadaki "user info" nun icinde cikmasini istiyorum..


uzun sozun kisasi, sadece her sayfanin ust kisminda olan "giris yap" tan "facebook giris yapi" cikarmak istiyorum

simdiden tskler!!



UltraEffect

#622
Quote from: grafitus on July 29, 2010, 07:28:35 AM
Quote from: erorcun on July 29, 2010, 07:17:26 AM
Ben modun 2. yazarıyım.

Şunu türkçe anlatırsan dediğin şeyi yapabilirim, ingilizceyi çok iyi bilmiyorum da. :D
You should speak English on here. Especially when second mod author. ;)

grafitus, u understand Turkish. he mentioned that he didnt understand my issue clearly, i'll write everything in English ones we solve it.

erorcun

@grafitus Normally i don't speak turkish on here.

But he is turkish and i don't know english very good.

I do not think will be anything, I've only done once. ;)

@UltraEffect You must remove "show_facebook();" in your theme's index.template.php :)
-Yemeklerin niye bu kadar lezzetli?
-Sana koyuyorum.
-Hmm ben diğer ustalara söyliyim onlar da sana koysun.

UltraEffect

#624
Quote from: erorcun on July 29, 2010, 07:48:49 AM
@grafitus Normally i don't speak turkish on here.

But he is turkish and i don't know english very good.

I do not think will be anything, I've only done once. ;)

@UltraEffect You must remove "show_facebook();" in your theme's index.template.php :)

Thank you for the reply!!

there are 3 show_facebook() in the theme's index.template.php

1.
function show_facebook()
{
         global $settings, $user.....


2.

if(empty($modeSettings['fb_enable_fbc_menu']))
{
      show_facebook();
}


3.

<input type="hidden" name+"hash_passwrd" value"" />
</form>';

show_facebook();
}





P.S i attached the index.template.php of my theme

UltraEffect

well, figured it out :D

u gotta keep the function.

deleting the if clause with show_facebook(); and the other show_facebook(); will do the trick!!

Perfect!! Thank you Erorcun!!

MATTEK

I'm still wondering why my buttons have disappeared.
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

UltraEffect

Quote from: MATTEK on July 29, 2010, 03:10:37 PM
I'm still wondering why my buttons have disappeared.

If you are using v2.0 RC3 follow this

http://custom.simplemachines.org/mods/index.php?action=parse

to update your
./Themes/default/index.template.php

, it works like a charm.

MATTEK

Quote from: UltraEffect on July 29, 2010, 05:35:59 PM
Quote from: MATTEK on July 29, 2010, 03:10:37 PM
I'm still wondering why my buttons have disappeared.

If you are using v2.0 RC3 follow this

http://custom.simplemachines.org/mods/index.php?action=parse

to update your
./Themes/default/index.template.php

, it works like a charm.

When I click your link I get
Quote
An Error Has Occurred!
Sorry, but the modification could not be parsed.
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

UltraEffect

Quote from: MATTEK on July 29, 2010, 06:08:40 PM

When I click your link I get
Quote
An Error Has Occurred!
Sorry, but the modification could not be parsed.

Ahh i see, go to http://custom.simplemachines.org/mods/index.php?mod=2322

on the right section under "Download this mod"
from drop down choose 2.0 RC3 (if that is what u have) click "parse" button

find ./Themes/default/index.template.php in the page, and start modifing your theme's index.template.php

make sure to backup your own  index.template.php before starting.

I hope this help, good luck!

dsanchez

Quote from: vomega on May 20, 2010, 06:18:16 PM
API Error Code: 100
API Error Description: Invalid parameter
Error Message: Invalid parameter

I had the same problem and I noticed the error was that in my facebook application the URL was http://www.curefans.com and the error appeared when I was accesing throught http://curefans.com

Is there any that it can work for bot with "www." or without?

Thanks again for this awesome mod!

MATTEK

Quote from: MATTEK on July 29, 2010, 12:44:22 AM
Actually, scratch that. I didn't follow through with the integration myself, because I hate Facebook, so I stopped. Now I can't see any of the buttons the mod includes such as share, login in, integrate, etc.,
Looking for assistance please.
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

Hj Ahmad Rasyid Hj Ismail

Mattek, have you uninstalled the mod in full and reinstall (upgrade) it or can you explain your problem further?

MATTEK

Well, I made the edits that Sleepy told me to make. IT seemed like it worked. I went to integrate my FB account with the forum and then poof. All of the FB buttons that the mod installs are gone. It also took away my Custom Top Menu Tabs.
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

Hj Ahmad Rasyid Hj Ismail

Quote from: Sleepy Arcade on July 27, 2010, 11:54:39 PM
public static $DOMAIN_MAP = array(
    'api'      => 'https://api.facebook.com/',
    'api_read' => 'https://api-read.facebook.com/',
    'graph'    => 'https://graph.facebook.com/',
    'www'      => 'https://www.facebook.com/',
  );


and replace with

public static $DOMAIN_MAP = array(
    'api'      => 'https://api.facebook.com/',
    'api_read' => 'https://api.facebook.com/',
    'graph'    => 'https://graph.facebook.com/',
    'www'      => 'https://www.facebook.com/',
  );

Is this the edit that you are doing? And to which file have you did this?

MATTEK

SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

Hj Ahmad Rasyid Hj Ismail

Hmmm... That shouldn't touch anything on your site at all.

Hj Ahmad Rasyid Hj Ismail

@ Mattek, you shouldn't be using this mod together with Twitter & Facebook Mod. I guess this is the cause of your problem and my advise is stated here: http://www.simplemachines.org/community/index.php?topic=227599.msg2726844#msg2726844

~DS~

"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

HuwB

still having trouble integrating this into my theme, I followed all the manual set up and copied in the code

the mod works, but when you go to the live stream it is blank,
it works fine if I use the default theme

can anyone help

Advertisement: