News:

Wondering if this will always be free?  See why free is better.

Main Menu

Share This Topic

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

Previous topic - Next topic

Leszko

I'd like to add button for very popular (in Poland) community WYKOP
h**p://www.wykop.pl/
1. Is it possible?
2. Where should I add and what to have it on my SMF 1.1.12?

I suppose it is not enough to add:
'wykop' => 'h**p://www.wykop.pl/dodaj?url=   
to sources/share this and to add the picture of it to images in my blueskies style.

So, anybody can help?


SMF 2.0.15

All Colours Sam

heres what you need to do to add another icon:

on your Sources/ModSettings.php


find:

$sites = array('ask', 'blinklist', 'bmarks', 'dzone', 'feedmelinks', 'furl',  'gbuzz',  'live', 'netvouz', 'newsvine',  'oneview', 'slashdot', 'spurl', 'squidoo',  'tipd', 'facebook', 'myspace', 'delicious', 'digg', 'reddit', 'stumbleupon', 'twitter', 'technorati', 'magnolia', 'google', 'yahoo', 'printfriendly', 'meneame', 'friendfeed',);


replace with:

$sites = array('ask', 'blinklist', 'bmarks', 'dzone', 'feedmelinks', 'furl',  'gbuzz',  'live', 'netvouz', 'newsvine',  'oneview', 'slashdot', 'spurl', 'squidoo',  'tipd', 'facebook', 'myspace', 'delicious', 'digg', 'reddit', 'stumbleupon', 'twitter', 'technorati', 'magnolia', 'google', 'yahoo', 'printfriendly', 'meneame', 'friendfeed','wykop',);


on your Sources/ShareThis.php   find:

'gbuzz' => 'http://www.google.com/reader/link?url=%s',


and below add:

'wykop' => 'http://www.wykop.pl/dodaj?url=%s',



and finally, create an icon name  wykop.gif  and upload it to your Theme's  images/share/     folder
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

jamin84

I love the mod! I am having trouble as well though with the tweet count not showing up and the facebook action only liking the main url.

Also, I wanted to see if we could customize the tweet with our own url shortener, like bit.ly [nofollow].

Thanks and keep up the good work!

ysNoi

Any reply for my previous post?

TYIA
"Don't fix it if it ain't broken, don't break it if you can't fix it."

mirahalo

@jamin84   are yo using the latest verison of the mod?  can we have a link to your forum?

I'll see about including the bit.ly API to this mod, I already have a mod that uses it to short all the posting links,  the bad side will be having to register an account in bit.ly to be able to use their API.


@ysNoi     you can change the way the buttons and icons are showed in your /Sources/Display.php file

if you want to show the buttons below the icons, find:


  // :)
  $suki =  share_this($parameters, $return_parameters = false);
  $mirahalo = share_icons($parameters, $return_parameters = false);

if (!empty($modSettings['share_all_messages']) &&  !in_array($board_info['id'], $share_denied_boards))
$message['body'] = ($suki.$message['body']);

if (empty($modSettings['share_all_messages']) && $counter == 0 &&  !in_array($board_info['id'], $share_denied_boards))
$message['body'] = ($suki.$message['body']);

if (empty($modSettings['share_all_messages']) && $counter == 0 && !empty($modSettings['share_icons_enable']) && !in_array($board_info['id'], $share_denied_boards))
$message['body'] = ($message['body'].$mirahalo);

if (!empty($modSettings['share_all_messages'])  && !in_array($board_info['id'], $share_denied_boards))
$message['body'] = ($message['body'].$mirahalo);

    // Share this topic mod end



and replace with:


  // :)
  $suki =  share_this($parameters, $return_parameters = false);
  $mirahalo = share_icons($parameters, $return_parameters = false);

if (empty($modSettings['share_all_messages']) && $counter == 0 && !empty($modSettings['share_icons_enable']) && !in_array($board_info['id'], $share_denied_boards))
$message['body'] = ($message['body'].$mirahalo.$suki);

if (!empty($modSettings['share_all_messages'])  && !in_array($board_info['id'], $share_denied_boards))
$message['body'] = ($message['body'].$mirahalo.$suki);

    // Share this topic mod end



make sure to back up your file before any changes.

jamin84

I installed the mod this past week, pretty sure it is the latest!

The forum is mmaturf.com/forum [nofollow]

Thanks!

ysNoi

Quote from: Mr. 0 on January 12, 2011, 10:22:28 AM
@ysNoi you can change the way the buttons and icons are showed in your /Sources/Display.php file

if you want to show the buttons below the icons, find:

  //
        $suki =  share_this($parameters, $return_parameters = false);
        $mirahalo = share_icons($parameters, $return_parameters = false);
         
      if (!empty($modSettings['share_all_messages']) &&  !in_array($board_info['id'], $share_denied_boards))
         $message['body'] = ($suki.$message['body']);
   
      if (empty($modSettings['share_all_messages']) && $counter == 0 &&  !in_array($board_info['id'], $share_denied_boards))
         $message['body'] = ($suki.$message['body']);
         
      if (empty($modSettings['share_all_messages']) && $counter == 0 && !empty($modSettings['share_icons_enable']) && !in_array($board_info['id'], $share_denied_boards))
         $message['body'] = ($message['body'].$mirahalo);

      if (!empty($modSettings['share_all_messages'])  && !in_array($board_info['id'], $share_denied_boards))
         $message['body'] = ($message['body'].$mirahalo);

    // Share this topic mod end


and replace with:

  //
        $suki =  share_this($parameters, $return_parameters = false);
        $mirahalo = share_icons($parameters, $return_parameters = false);
         
      if (empty($modSettings['share_all_messages']) && $counter == 0 && !empty($modSettings['share_icons_enable']) && !in_array($board_info['id'], $share_denied_boards))
         $message['body'] = ($message['body'].$mirahalo.$suki);

      if (!empty($modSettings['share_all_messages'])  && !in_array($board_info['id'], $share_denied_boards))
         $message['body'] = ($message['body'].$mirahalo.$suki);

    // Share this topic mod end


make sure to back up your file before any changes.

Thanks for the update Mr. 0... This solved my problem...

One more please...

How can I adjust the space illustrated on the file I attached. Please see..

I already enabled show button and the icons...

Thanks for this mod...Nice One..
"Don't fix it if it ain't broken, don't break it if you can't fix it."

mirahalo

#947
theres a setting in the mod's settigns that let you specify the height of the facebook button,  set a low value like 100, this was made to show the avatars below the button, if you don't set that value facebook will set it automatically.


@jamin84   I didn't notice any code error on your forum,  since this mod relies on external services, sometimes the buttons may act estrange cause their server been too busy,  please give it a few days and see if everything goes back to normal.

use the bit.ly API isn't necessary for the tweet button since twitter already use their own url shortener everytime you tweet a post.

ysNoi

Quote from: Mr. 0 on January 13, 2011, 10:41:31 AM
theres a setting in the mod's settigns that let you specify the height of the facebook button,  set a low value like 100, this was made to show the avatars below the button, if you don't set that value facebook will set it automatically.

OMG...I didn't noticed that one...
It's already done...Thanks again..
"Don't fix it if it ain't broken, don't break it if you can't fix it."

steveraven

I'm using this mod and its a really nice addition, but I have one niggling comment-

I'm using the mod to appear above every post so that each individual post can be shared, and have the Facebook and Twitter buttons enabled. The problem I'm having is that there is a huge gap between the buttons at the top of the post, and the text of the post itself. Is there a way to reduce this blank space?

mirahalo

@steveraven   see two post above:

Quote from: Mr. 0 on January 13, 2011, 10:41:31 AM
theres a setting in the mod's settigns that let you specify the height of the facebook button,  set a low value like 100, this was made to show the avatars below the button, if you don't set that value facebook will set it automatically.


steveraven

Quote from: Mr. 0 on January 14, 2011, 09:10:19 AM
@steveraven   see two post above:

Quote from: Mr. 0 on January 13, 2011, 10:41:31 AM
theres a setting in the mod's settigns that let you specify the height of the facebook button,  set a low value like 100, this was made to show the avatars below the button, if you don't set that value facebook will set it automatically.


Stunning - thanks mate!


jamin84

I did notice I am still using the meta tags for Facebook, is that still the way to do this?

For the Twitter, I've concluded that it has something to do with the actual url (/forum/index.php?topic=12270) being different than the pretty url (/forum/the-seo-friendly-version/). I've removed the data-url from the ShareThis.php file. What happens now is the count is still 0, but when I click it, there is a search result for the tweet, whereas before the search was actually empty. I might have to refine with the data-counturl.

I am guessing it might take some time to propagate (hopefully) and will let everyone know!

mirahalo

ok, I'm afraid  this mod is not compatible with pretty urls,  it is, however, compatible with simplesef

digitalmabuhay

very nice mod. i installed it smoothly. is there a way the user can see who are the FaceBook users who have liked the post? the numbers is i think also not accurate as i made some liking experiment with two different accounts. Thanks.

All Colours Sam

when a user "likes"  a post in your firum, his/her  faceboook avatar will appear below the bitton,  this avatr will only be visible for friends of that person.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

mirahalo

a new version has been released, this version includes some fixes as well as new 16x16 icons, this new version also include support for 9 new sites and for 2.0 RC4, a new hook is used to minimize file edits.

changelog:

-Fixed height of the facebook button.
-Added support for orkut, web 2 pdf, linked in, bebo, diigio, fark, iwiw, mr wong and stylehive.
-New icons 16x16
-Added a class for easy manipulation by css of the icons class="share_icons"
-Moved the language strings on its own file.
-Removed some file edits, less edits means less headaches :)
-The mod now uses a new RC4 hook add_integration_function.


to upgrade just uninstall the old version and install the new one, hope you like the mod,  if you have suggestions for more social bookmarks sites  or translations for this mod, please posted on this topic.

marianolozano

Thanks for the new release, Mr. 0.

However, I´ve deleted the last version to install this one but an error message comes up: it looks like the new version is not compatible with 2.0 RC3. Does that make any sense?

If I can´t fix it, is there a way to get the prior version?

Thanks a lot!

http://www.marianolozano.com/foro/index.php [nofollow]

marianolozano

Double checking the installation file on package-info.xml I realized about the code:

Quote<install for="2.0 RC4"">
   <readme parsebbc="true">readme.txt</readme>
      <code>database.php</code>
      <modification type="file">install.xml</modification>
      <require-file name="ShareThis.php" destination="$sourcedir" />
      <require-dir name="languages" destination="$themedir" />
      <require-dir name="share" destination="$imagesdir" />
      <redirect url="$scripturl?action=admin;area=featuresettings;sa=sharetopic;" timeout="4000">redirect.txt</redirect>
   </install>

Does it means that I can only install it if I´m running 2.4?

Bugo


Advertisement: