News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Share This Topic

Started by All Colours Sam, September 06, 2009, 05:09:23 AM

Previous topic - Next topic

FlatFX

#280
Quote from: 130860 on April 17, 2010, 09:53:39 PM
mmm, is this vkontakte some sort of social network?    oh, I see it now, thanks, I will added on the next release ;)
Yes, of course! More than seventy million users :D
It's largest social network in Russia  :)

Thank you for this mod!  ;)
Simple and effective! 8)

mirahalo



Now support Facebook Like button!

you can enable the facebook like button and it will appear inside the first post of every thread.
-This mod uses the new JavaScript SDK.
-automatically sets all the necessary for the button to work.
-you can specify the with and the image for the button to use when someone share content of your forum.
-you only need to enter the ID of your Facebook application,  to create a new application follow this steps:
Go to: http://www.facebook.com/developers
2. Click on the + Set Up New Application button (at the top right of the page)
3. Type your Application Name (example: Mysite-Name Likes) > select Agree > click on Create Application
4. Go to the Connect tab (on the left tabs-list)
5. Enter your site url with an ending slash in Connect URL and click on Save Changes (for example: http://oharascans.com/ )  the /  is very important so don't forget it!
6. You will see your Application ID number (below your app API & Secret)
7. It will take between 2 to 20 minutes until it will be ready to use with.



For SMF 1.1.x and 2.0 RC3 versions





Demo

a working demo can be found here





Changelog

1.5
-Added support for the Facebook like button.

1.4
-Added support for 20 more social networks
-Smaller icons
-Added support for 2.0RC3


1.3
Added support for the following sites:
-Google
-Yahoo
-Technorati
-Ma.gnolia
Added spanish language
Moved the icons above the title of the topic

1.2 - November 1, 2009
Added support for MySpace
Added support for 2.0 RC2
Added Arabic translation

1.1 - September 10, 2009
Added support for Twitter and StumbleUpon

1.0 - August 27, 2009
Initial release

fals

Excellent ! Works perfect - and you can put it where ever fits best  :)





Only 1 bug or error:
When someone share a link on facebook, theres no image or icon - shouldn't there be ?











500fan.dk - SMF 2.0 ~ custom theme
ls-forum.dk - SMF 2.0.2 ~ custom theme and custom iPhone theme

mirahalo

Quote from: fals on May 13, 2010, 02:21:09 PM

Only 1 bug or error:
When someone share a link on facebook, theres no image or icon - shouldn't there be ?







its up to facebook, sometimes works, sometimes doesn't,  facebook tries to get the title of the page you share and the images on that page,    sadly not always works,   sometimes even the title of the page doesn't work.

Quote from: fals on May 13, 2010, 02:21:09 PM
Excellent ! Works perfect - and you can put it where ever fits best  :)


glad you like it ;)   Im thinking to offer some more places to put the button on, I just don't know where :P 


any suggestions?

giveaway365.com

In your demo link http://dev.oharascans.com/index.php?topic=1.0 once you click on like a box is shown to write something. In my forum it does not show that box.

Also what to write in these boxes?
The URL of the best picture for this page. The image must be at least 50px by 50px and have a maximum aspect ratio of 3:1.
cebook Like Button with. example: 200px


mirahalo

can I have a link where the like button is show?
by default the box must appears.


on the image, you put a url of and image, perhaps the banner of your forum,  when a user like a thread and post a comment, the comment will be show on his/her wall  next to the image, will be the ttle of the page a link and the name of your forum, heres an example:





I enter h**p//oharascans.com/oharateam.gif   in that field ;)

giveaway365.com

#286
In first box i have put this:
http://www.giveaway365.com/Themes/default/images/giveaway365.png
What to put in seconf box?

Other thing is that in the demo link when u click on like the color changes and then if you do mouse over it shows a text area to write comments. In my forum ir does not happen. what is the problem?

My forum like is http://www.giveaway365.com

mirahalo

did you just create the application?   give it some time to work properly, it appears that the new  JavaScript SDK have som problems,   the box for comments doesn't always shows,   your button seems to work fine, give it a couple of days for the application work properly.

azhriel

Hi guys,

Can i request for a help..

I can't patch the code in my index.template.php & display.template.php

Coz its been modified by other mod

Attached is my copy of the 2 files

giveaway365.com

lets see after 2 days!!

PurpleCrow

Quote from: 130860 on May 14, 2010, 10:49:51 AM


glad you like it ;)   Im thinking to offer some more places to put the button on, I just don't know where :P 


any suggestions?

Stupid question - how do you move it to a different place other than the default?

(Fantastic Mod btw)
SMF 2.0 RC3

Looking for staff!

Forums Galore, a brand new Admin Forum is looking for staff to help with the launch. Send me a PM or sign up to Forums Galore if you're interested!

Add your forum to the Forums Galore Community Showcase

mirahalo

@azhriel   try this two, install the mod, even with the rror show, then replace the files with the ones attached,  you have the SA facebook connect mod and theres a big chance the like button wont work properly because incompatibilities beteween facebook old code and the new javascriptSDK


@PurpleCrow   there´s no such thing as a stupid question ;)  where exactly do you want it?

azhriel

Quote from: 130860 on May 15, 2010, 08:04:54 PM
@azhriel   try this two, install the mod, even with the rror show, then replace the files with the ones attached,  you have the SA facebook connect mod and theres a big chance the like button wont work properly because incompatibilities beteween facebook old code and the new javascriptSDK


Thanks i'll try it

PurpleCrow

Quote from: 130860 on May 15, 2010, 08:04:54 PM
@PurpleCrow   there´s no such thing as a stupid question ;)  where exactly do you want it?

I'm not sure   ;D Was just wondering what other places it could be put in  :)
SMF 2.0 RC3

Looking for staff!

Forums Galore, a brand new Admin Forum is looking for staff to help with the launch. Send me a PM or sign up to Forums Galore if you're interested!

Add your forum to the Forums Galore Community Showcase

mirahalo

well   it could be anywhere really,  its just a simple code: 

<fb:like href="', urlencode($page_url) ,'"  width="', $modSettings['share_likebutton_with'] ,'"></fb:like>


you could even put it on index.template  and have it on all your pages ;)

PurpleCrow

Ooo I like the idea of having it on the main index...

What about the icons? Is it possible to change those, the new ones being bigger?
SMF 2.0 RC3

Looking for staff!

Forums Galore, a brand new Admin Forum is looking for staff to help with the launch. Send me a PM or sign up to Forums Galore if you're interested!

Add your forum to the Forums Galore Community Showcase

mirahalo

yes, you can use your own icons if you want, I've been looking for new ones  unfortunately I didn't find icons for all the social networks the mod use who where the same size and style. 

just replace the images in /Themes/your_theme/images/share  folder  with your own, just make sure you keep the file name

the icons can also be moved anywhere you want ;)

Arantor

Well the original ones I added... I made those with GIMP from the original logos.

Try http://www.komodomedia.com/blog/2009/06/social-network-icon-pack/
Holder of controversial views, all of which my own.


PurpleCrow

Quote from: Arantor on May 17, 2010, 09:39:16 AM
Well the original ones I added... I made those with GIMP from the original logos.

Try http://www.komodomedia.com/blog/2009/06/social-network-icon-pack/

I like the ones used but what I would prefer to do is use larger ones and center them.
SMF 2.0 RC3

Looking for staff!

Forums Galore, a brand new Admin Forum is looking for staff to help with the launch. Send me a PM or sign up to Forums Galore if you're interested!

Add your forum to the Forums Galore Community Showcase

mirahalo

to center the icons on your display.template search for this:

<div class="plainbox" style="text-align: left;">', $social_icons, '</div>

and change the style="text-align: left  for style="text-align: center

@Arantor, thanks,  i downloaded those icons, pretty good ones ;) unfortunately I still  missing a few, but thats a start  ;)


Advertisement: