https://www.icyphoenix.com/viewtopic.php?f=35&t=7432 ----------------------------------- paramine-gx Tue 02 Nov, 2010 01:13 Facebook Connect MOD V1.0 ----------------------------------- Hey guys, long time since I bring something useful. This time I bring a small mod to add the facebook "I like" button to your site. I intend to continue doing the integration to also add a function to login to the forum with the facebook "Login" button. Here is the first step. =) [size=14][b][color=seagreen]A.-) Getting the code...[/color][/b][/size] There is two ways to add the button. With iFrames and With XMFBL. This time we use the iFrame Version This is the code you will add [img]http://www.icyphoenix.com/files/images/3407/sin_t_tulo_2.jpg[/img] [b][color=crimson]NOTE:[/color][/b] Please sorry for post the code like this, but when i try to preview the page next characters doesn't appear ";""&". 1.-) Well, You should replace "YOU_SITE_URL" with... your site url root xD 2.-) In Layout=[b]Standard[/b] You can change to Layout=[b]box_count[/b] or Layout=[b]button_count[/b] to change the button style =). Or... you can leave it in standad to have the default facebook button style =). [b][size=14][color=seagreen]B.-) Insert the code[/color][/size][/b] Well the easiest way to integrate this, is putting the code in [b][color=crimson]./templates/YOUR_CURRENT_THEME/index_body.tpl[/color][/b]. [b][color=crimson]In index_body.tlp find[/color][/b] [spoiler] tag you can ad the code... in my case was like this[/b][/color] [spoiler] [/spoiler] The like button will appear in the header always =) beside the sitelogo... You can have a look in [url=http://ittg.260mb.com/]my site [size=14][b][color=seagreen]C.-) Adding to all post =)[/color][/b][/size] You can add the button to all principal post... you can have a look in my site too, in anytopic. I have installed two buttons. One below the title topic and another at the end of the post =). Have a look [url=http://ittg.260mb.com/foro/viewtopic.php?f=1&t=5]here In this case we need to get the xfbml code [code] [/code] In this example /es_LA/ -> You can change to en_US if you speak english =) FORUM_ROOT -> You MUST change this to your root url (http://ittg.260mb.com/foro/ in my case) example [code] [/code] This code will be inserted in [b][color=crimson]./templates/YOUR_CURRENT_THEME/viewtopic_body.tpl[/color][/b] . To insert this code below the topic title you can add your code after this code [code]

{TOPIC_TITLE}

[/code] And to add this code at the end of the principal posts you can add the code ABOVE this [code]
[/code] Well, this is the first step to add facebook to your site... I hope integrate several facebook things to icy =) NOTE : If you want add the button in a block in index... you can add the iFrame version in a HTML block =) NOTE2 : If you like this little add please go to the site and click the "I like" button =) NOTE 3: Somebody knows a good free hosting icyphoenix features compatible?... (without adds if possible xD) NOTE 4: If someone want edit the post in order to understand it better (for my poor english) please do it =) If you have questions you can post it here =) Greetz and i hope see you soon!!! ----------------------------------- Filato Fri 12 Aug, 2011 15:47 Re: Facebook Connect MOD V1.0 ----------------------------------- "This code will be inserted in ./templates/YOUR_CURRENT_THEME/viewtopic_body.tpl . To insert this code below the topic title you can add your code after this code." Is this code okey? Mine is not running. Hm, some misunderstanding, probably. p.s. Nice english :)