Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Suki on September 06, 2009, 05:09:23 AM

Title: Share This Topic
Post by: Suki on September 06, 2009, 05:09:23 AM
Share this Topic

Link to mod  (http://custom.simplemachines.org/mods/index.php?mod=2111) | Comments on this Mod (http://www.simplemachines.org/community/index.php?topic=334955.0)

originally created by Arantor (http://arantor.org/)
further development by Suki (http://missallsunday.com)

This mod needs php 5.2 or greater

License

* This SMF modification is subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this SMF modification except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/

This mod uses the hoverIntent jQuery Plug-in http://cherne.net/brian/resources/jquery.hoverIntent.html


Introduction
This mod allows the admin to add one or more buttons to the bottom of a message to allow users to link the topic in social networking sites such as Twitter, Facebook and Google+.

For SMF 2.0.x only

Now support Facebook Like button, Google+, Tweet and Addthis script!

- Select which boards you DO NOT want to show the icons and the button.
- You can enable/disable every button and it will appear inside the first or every post of every topic using a nice jquery effect.
-Now there's no need to create a Facebook app!
-No theme edits, works with every theme!
-Select if you want to show the Addthis script to share an entire page with that service.


Supported Languages

o English/utf8
o British/utf8
o Spanish_es/utf8
o Spanish_latin/utf8

I welcome translations, please post it on the support post ;)


Installation

Simply install the package to install on the SMF Default Theme AND any other theme!


Changelog



[b]4.1.2[/b]
-Fixed issues with the Spanish_es/latin strings.
-Fixed the Addthis script showing on the profile editing pages.
-Moved the append after the call to parse_bbc() this should cover most of the problems with other mods.
-Added an option to separate the message from the buttons, just enter any number, the higher the number the larger will be the space between the message and the buttons.

[b]4.1.1[/b]
-Fixed bug on install, silly bug, I know I shouldn't use $boarddir... copy/paste things from old code is evil!
-Fixed bug on logic for showing the AddThis script.

[b]4.1[/b]
-Several bugs fixed
-Added the AddThis script for messages too.
-Added the forum name and the topic name in the twitter button
-Added a check to disable the jquery effect (Show the buttons all the time)
-Added an option to show the buttons above or below the messages.

[b]4.0[/b]
-Re-written code.
-Compatible with SMF 2.0.x
-Added the AddThis script to share common pages such as profile, board index and topics.
-Added a jquery effect to show the buttons by hovering the message.

[b]3.0[/b]
-Added support for SMF 2.0 only
-Added support for the google +1 button
-Fixed the "check all boxes" check on icons
-Revamp of the admin section.
-Fixed the "undefined index: view_newest_first"  error.
-Added JavaScript to show/hide the buttons/icons
-Dropped support for Simple Portal blocks

[b]2.8.2[/b]
-Fixed an issue with the "check all" option.
-Fixed a bug when the "show newer first" option was enable, thanks to HunterP for the report.
-Made the facebook like button height a little bit higher, before: 35, now 80, this will show the comment box and the avatars completely.



[b]2.8[/b]
-Fixed the Undefined errors in ShareThis.php file.
-Removed some file edits, less edits and more hooks means less headaches :)

[b]2.7[/b]
-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.


[b]2.6[/b]
-Fixed problem with multiple facebook like button.
-Fixed problem with displaying  icons and buttons on custom pages.
-Added support for SimplePortal news block and Article system.
-The mod now uses iframe for the facebook like button due to problems with SDK.
-Cleaner admin page.
-Added a "check all" option for the icons in admin.


[b]2.5.1[/b]
-fixed problem with master setting for enable/disable the icons


[b]2.5[/b]
-added support for Buzz button.
-complete rewrite.
-remove social networks no longer available.
-remove settings no longer needed.
-fixed problem with Spanish non utf8 language.
-minor bugs fixed.
-now you can include the icons and buttons on your news/articles of any portal.

[b]2.3[/b]
-added support for share multilple messages (show only on first message or all)
-moved the buttons above the text and the icons below

[b]2.2[/b]
-Added support for digg button and tweet button.
-Select the size of the 3 buttons
-Layout Style and Color scheme options fo the facebook like button
-Show faces or not on the facebook like button
-Better compatibility with themes.
-cleaner code.


[b]2.1[/b]
-Added support for meneame, print friendly and friend feed sites.
-Better compatibility with themes.
-cleaner code.


[b]2.0.1[/b]
-Added italian language.
-fixed a bug whe selected option "inside post at the end".
-cleaner code.

[b]2.0[/b]
- Cleaner install
- Select which boards you DO NOT want to show the icons
- 3 different ways to show the icons
- You can select the language for the button

[b]1.6[/b]
-Fixed some errors on 1.1.x install.

[b]1.5[/b]
-Added support for the Facebook like button.

[b]1.4[/b]
-Added support for 20 more social networks
-Smaller icons
-Added support for 2.0RC3


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

[b]1.2[/b] - November 1, 2009
Added support for MySpace
Added support for 2.0 RC2
Added Arabic translation

[b]1.1[/b] - September 10, 2009
Added support for Twitter and StumbleUpon

[b]1.0[/b] - August 27, 2009
Initial release

Title: Re: Share This Topic
Post by: Afro on September 06, 2009, 06:28:18 AM
good one
Title: Re: Share This Topic
Post by: aw06 on September 08, 2009, 12:19:35 PM
Arantor , want to try this mod .. u think it will flow well on my theme ??

Also does it place to share buttons only on the first post ? and can i add more social networks, ie twitter ?
Title: Re: Share This Topic
Post by: Arantor on September 08, 2009, 12:37:43 PM
I don't know your theme. But possibly not so well on 1.1 if you have a lot of them.

There is no facility to add others - unless I add them, though I did make it fairly easy to do so, so it's not a ton of work to add new ones.
Title: Re: Share This Topic
Post by: aw06 on September 08, 2009, 12:43:08 PM
Using 1.1.10 You just help me with my theme ...  8)

http://shopinja.com/forum/index.php?topic=3490.msg15119;topicseen#msg15119

I'm guessing the share icons would end up before the '(http://shopinja.com/forum/Themes/igoh112/images/topic/normal_post.gif) author' bit..

I'd basically want just facebook and twitter ? should be able to swap out one for twitter right ?
Title: Re: Share This Topic
Post by: Arantor on September 08, 2009, 12:49:35 PM
On the mod's own page is a set of screenshots, including one from 1.1.10 that shows where it goes.

And as per the mod page, it's configurable, meaning there is a list of sites that you can pick from - currently there are 4, not all of which have to be enabled at once.

Adding Twitter to the list shouldn't be a problem if someone can confirm what the link should be, and I can dig an icon out for it.
Title: Re: Share This Topic
Post by: aw06 on September 08, 2009, 01:01:26 PM
Try this
http://www.jhuskisson.com/code-tidbits/share-on-twitter-link
Title: Re: Share This Topic
Post by: aw06 on September 08, 2009, 01:07:43 PM
Not finding this in my themes Display.template

<td valign="middle" width="2%" style="padding-left: 6px;">
<img src="', $settings['images_url'], '/topic/', $context['class'], '.gif" align="bottom" alt="" />
</td>
<td width="13%"> ', $txt[29], '</td>
Title: Re: Share This Topic
Post by: Arantor on September 08, 2009, 01:19:44 PM
Well, I'll add Twitter to a revised 1.1 version - but in the interim you'll have to modify the existing code.

Please can you attach your Display.template.php?
Title: Re: Share This Topic
Post by: aw06 on September 08, 2009, 01:25:48 PM
Quote from: Arantor on September 08, 2009, 01:19:44 PM
Well, I'll add Twitter to a revised 1.1 version - but in the interim you'll have to modify the existing code.

Please can you attach your Display.template.php?

i would wait until you revise as i mainly need twitter :)

Also in a revision .. this might be a bit much to add, but if you could somehow show the amount of time it was shared on the various sites would be wicked  :P
Title: Re: Share This Topic
Post by: Arantor on September 08, 2009, 01:34:58 PM
Well, it was supposed to be a quick little mod just to share. It would be possible to track though, just I'm not sure of the need for it.

I'll add it to the tracker though.
Title: Re: Share This Topic
Post by: aw06 on September 08, 2009, 01:37:55 PM
Quote from: Arantor on September 08, 2009, 01:34:58 PM
Well, it was supposed to be a quick little mod just to share. It would be possible to track though, just I'm not sure of the need for it.
I'll add it to the tracker though.

kool, well tracking gives a sense of which topics are hot and being shared allot :)
Title: Re: Share This Topic
Post by: Arantor on September 08, 2009, 01:43:57 PM
It's on the to-do list. Cannot promise when it'll get done though.
Title: Re: Share This Topic
Post by: aw06 on September 08, 2009, 01:46:19 PM
Quote from: Arantor on September 08, 2009, 01:43:57 PM
It's on the to-do list. Cannot promise when it'll get done though.

no prob.. the twitter revision will be soon enough though ?
Title: Re: Share This Topic
Post by: Arantor on September 08, 2009, 02:31:02 PM
It'll be when it gets done - probably in the next day or so.
Title: Re: Share This Topic
Post by: aw06 on September 08, 2009, 02:44:13 PM
alight cool, i asked to be notified ... :)
Title: Re: Share This Topic
Post by: KensonPlays on September 08, 2009, 03:55:57 PM
what about on the EFSANE theme, my default, copied the folder "share" with the images and nothing happened after I selected all the checkboxes...
Title: Re: Share This Topic
Post by: Arantor on September 08, 2009, 04:18:03 PM
Kcmartz: So you're using 1.1, with a custom theme's Display.template.php - did you make the edits to it to have it include the new code? It only hits the default theme normally, and can't readily modify custom themes.
Title: Re: Share This Topic
Post by: KensonPlays on September 08, 2009, 04:19:29 PM
it would be nice if it could thanks, ill tell you if it works (by editing this reply)

EDIT: can't find it in default template, what code to I add and where to the efsane theme? thanks again!
Title: Re: Share This Topic
Post by: Arantor on September 08, 2009, 04:21:48 PM
It's not possible to make it edit every single custom theme's Display.template.php, I can't make it work on code I've never seen before. Remember: a custom Display.template.php may be 1 character different or entirely different. I can't write a mod against code I cannot predict, meaning it can only apply to what *is* known.
Title: Re: Share This Topic
Post by: KensonPlays on September 08, 2009, 04:23:25 PM
oh i hated the efsane theme support topic being locked! too hard now, might havta change theme!
Title: Re: Share This Topic
Post by: Arantor on September 08, 2009, 04:25:30 PM
It was obviously removed for a reason.

If you're still having trouble adding the mod, attach your Display.template.php file and I can look at it for you.
Title: Re: Share This Topic
Post by: KensonPlays on September 08, 2009, 04:29:06 PM
here it is
Title: Re: Share This Topic
Post by: Arantor on September 08, 2009, 04:53:38 PM
Here's the edited version.
Title: Re: Share This Topic
Post by: KensonPlays on September 08, 2009, 04:58:23 PM
I GET:

Template Parse Error!
It seems something has gone sour on the forum with the template system. This problem should only be temporary, so please come back later and try again. If you continue to see this message, please contact the administrator.

You can also try refreshing this page.
Title: Re: Share This Topic
Post by: KensonPlays on September 08, 2009, 04:59:44 PM
what exactly was your change?
Title: Re: Share This Topic
Post by: Arantor on September 08, 2009, 05:18:09 PM
Not entirely sure what happened but the file got corrupted by the looks of things.

Attached is a known good version.
Title: Re: Share This Topic
Post by: KensonPlays on September 08, 2009, 05:30:24 PM
thanks it works thanks!
Title: Re: Share This Topic
Post by: Arantor on September 09, 2009, 09:12:53 PM
I've added Twitter and StumbleUpon now to this in v1.1.
Title: Re: Share This Topic
Post by: aw06 on September 09, 2009, 09:21:53 PM
Thanks for the quick update. i want to install this mod now ... but i don't see this 'exact' bit of code in my themes display.template

<td valign="middle" width="2%" style="padding-left: 6px;">
<img src="', $settings['images_url'], '/topic/', $context['class'], '.gif" align="bottom" alt="" />
</td>
<td width="13%"> ', $txt[29], '</td>


It's in the default display.template so I'm guessing it's not related to another mod i have ... i attached my display.template for you to take a look
Title: Re: Share This Topic
Post by: Arantor on September 09, 2009, 09:43:33 PM
No, it's a customised theme so it won't be in there.

Edited version attached - you'll have to rename it back to Display.template.php though.
Title: Re: Share This Topic
Post by: aw06 on September 09, 2009, 09:44:39 PM
could you maybe just paste here the code to find and replace ?
Title: Re: Share This Topic
Post by: Arantor on September 09, 2009, 09:48:02 PM
*shrug* I gave you the attachment with it ready done in. Line spacing is messed up due to a known bug in the attachments system.


Code (find) Select

// Show the topic information - icon, subject, etc.


Code (add BEFORE THIS) Select

// Build list of social icons
$social_icons = '';
$sites = array(
'facebook' => 'http://www.facebook.com/share.php?u=%s',
'delicious' => 'http://del.icio.us/post?url=%s',
'digg' => 'http://digg.com/submit?phase=2&url=%s',
'reddit' => 'http://reddit.com/submit?url=%s',
'stumbleupon' => 'http://www.stumbleupon.com/submit?url=%s',
'twitter' => 'http://twitter.com/home?status=%s',
);
if(!empty($modSettings['queryless_urls']) && $modSettings['queryless_urls'])
$page_url = $scripturl . '/topic,' . $context['current_topic'] . '.0.html';
else
$page_url = $scripturl . '?topic=' . $context['current_topic'] . '.0';

foreach($sites as $site => $url) {
$entry = 'share_' . $site;
if(!empty($modSettings[$entry]) && $modSettings[$entry]) {
$social_icons .= sprintf('<a href="' . $url . '" target="_blank"><img src="' . $settings['images_url'] . '/share/' . $site . '.gif" align="bottom" title="' . $txt['share_default_tooltip'] . '" alt="' . $txt['share_default_tooltip'] . '" /></a>', urlencode($page_url), $txt[$entry], $txt[$entry]);
}
}

if($social_icons == "")
$social_icons = '<img src="' . $settings['images_url'] . '/topic/' . $context['class'] . '.gif" align="bottom" alt="" />';


Code (find) Select
<td valign="middle" align="left" width="16%" style="padding-left: 6px;" height="25">

<img src="', $settings['images_url'], '/topic/', $context['class'], '.gif" alt="" align="middle" />';



echo '

', $txt[29], '

</td>


Code (replace) Select
<td valign="middle" align="left" width="16%" style="padding-left: 6px;" height="25">

', $social_icons, '

</td>
Title: Re: Share This Topic
Post by: aw06 on September 09, 2009, 09:57:47 PM
 :P yeah, i sorry for being a drag .. but i kinda like to see and learn all the changes .... working now ...

few things .. is it possible to put a space between the icons .. they are almost touching... and the participation icons (http://shopinja.com/forum/Themes/igoh112/images/topic/normal_post.gif) no longer shows when the social icons are on .. but that's minor i guess
Title: Re: Share This Topic
Post by: plusev on September 09, 2009, 11:52:20 PM
There is a typo in stumble gif. It says stumbleuponl.gif instead of stumbleupon.gif. It breaks the image.

+EV
Title: Re: Share This Topic
Post by: aw06 on September 10, 2009, 02:53:59 AM
Quote from: plusev on September 09, 2009, 11:52:20 PM
There is a typo in stumble gif. It says stumbleuponl.gif instead of stumbleupon.gif. It breaks the image.

+EV

Good Find ...

@ Arantor with sharing to twitter it inserts the url .. would it be possible to also enter the subject title then the url ?
Title: Re: Share This Topic
Post by: aw06 on September 10, 2009, 03:15:33 AM
hmmm, scrap that idea .. as most often it would be hitting the 140max character limit on twitter, you'd have to somehow enter the topic name and shorten the url using a site like bit.ly  :-\ too much work
Title: Re: Share This Topic
Post by: Arantor on September 10, 2009, 03:21:54 AM
Quote from: aw06 on September 09, 2009, 09:57:47 PM
:P yeah, i sorry for being a drag .. but i kinda like to see and learn all the changes .... working now ...

few things .. is it possible to put a space between the icons .. they are almost touching... and the participation icons (http://shopinja.com/forum/Themes/igoh112/images/topic/normal_post.gif) no longer shows when the social icons are on .. but that's minor i guess

You could use a compare tool such as WinMerge to do the comparison, so you will be able to see what has changed - that's what I do when I'm not sure.

As for the icons, the reason they had to be removed is because the layout in 1.1 is dependent on a table and in the majority of cases adding 2+ icons pushed the table out of alignment so that the profile area got extended to be wider than it should have been. You could of course re-add the code in by looking at what was taken out and readding it - but it may break the layout of the table.

Quote from: plusev on September 09, 2009, 11:52:20 PM
There is a typo in stumble gif. It says stumbleuponl.gif instead of stumbleupon.gif. It breaks the image.

+EV

Thanks, fixed that :)

Quote from: aw06 on September 10, 2009, 02:53:59 AM
@ Arantor with sharing to twitter it inserts the url .. would it be possible to also enter the subject title then the url ?

It could be done but you have the huge risk of cutting the link in half. I'll see about it for 1.2 - which won't happen today.


Edited to add:
Quote from: aw06 on September 10, 2009, 03:15:33 AM
hmmm, scrap that idea .. as most often it would be hitting the 140max character limit on twitter, you'd have to somehow enter the topic name and shorten the url using a site like bit.ly  :-\ too much work

Yes - that's just the concern I had above. Though you could do some sanity checks to add it if it's under 140 characters.
Title: Re: Share This Topic
Post by: aw06 on September 10, 2009, 03:29:00 AM
ok .. work your magic ... will see what version 1.2 Brings :P...

This is the best twitter share app i have seen and used ...
http://tbuzz.arc90.com/

You can give it a look, basically you highlight some text, then click the share button and it uses that as the status + it automatically shortens the url using bit.ly

thinking maybe you can get some ideas from it
Title: Re: Share This Topic
Post by: Arantor on September 10, 2009, 03:55:48 AM
It means writing a LOT more code into SMF - the current code just works without anything special. To add what you're suggesting would actually mean adding new actions to SMF itself, e.g. index.php?action=share... because way more extra processing is required to catch all that.
Title: Re: Share This Topic
Post by: aw06 on September 10, 2009, 04:07:21 AM
o ok, thats kool, keep it nice and simple as it is now  8)

for now i changed your code
Quote'twitter' => 'http://twitter.com/home?status=%s',

To
Quote'twitter' => 'http://twitter.com/home?status=-Topic Shared From "Website Name"- %s',
Title: Re: Share This Topic
Post by: plusev on September 11, 2009, 02:03:03 AM
Couldnt the icons be moved to the right? Plenty of room there without having to remove anything.
Title: Re: Share This Topic
Post by: Arantor on September 11, 2009, 04:06:50 AM
I suppose they could, that would be doable and in hindsight would be preferential - just having it where it is was the mod originally requested.
Title: Re: Share This Topic
Post by: aw06 on September 11, 2009, 08:13:02 AM
i was thinking the same ... but i think to the left quickly draws attention to it
Title: Re: Share This Topic
Post by: plusev on September 14, 2009, 12:20:34 AM
Would you consider moving it to the right for me or letting me know how? Thx
Title: Re: Share This Topic
Post by: Arantor on September 14, 2009, 07:05:24 AM
Moving to the right depends very much on your theme.
Title: Re: Share This Topic
Post by: Impsat-1 on September 22, 2009, 11:58:40 PM
Wow... Arantor, GREAT MOD!!!, Excellent... tested, installed & fine working in SMF v1.1.10 Theme own... Thanks from Argentina for guy's like you man, have a great time... Regards!!! 8).-


Wow... Arantor, MOD Genial!!!, Excelente... testeado, instalado y trabajando perfecto en SMF v1.1.10 Theme propio... desde Argentina GRACIAS por tipos como tu hombre... que la pases Barbaro... Saludos Cordiales!!! 8).-
Title: Re: Share This Topic
Post by: plusev on September 23, 2009, 12:37:26 AM
Quote from: Arantor on September 14, 2009, 07:05:24 AM
Moving to the right depends very much on your theme.

http://custom.simplemachines.org/themes/index.php?lemma=1722  ?
Title: Re: Share This Topic
Post by: Arantor on September 23, 2009, 03:14:40 AM
Nahuel-1: Glad you appreciate it :)

plusev: There are two edits to be made to Themes/default/Display.template.php versus the base one.

Leave the first edit in place, it's as it should be.

The second edit needs to be reverted thus:
Code (find) Select
', $social_icons, '

Code (replace) Select
<img src="', $settings['images_url'], '/topic/', $context['class'], '.gif" align="bottom" alt="" />

This will leave you with:
<h3 class="catbg3">
<img src="', $settings['images_url'], '/topic/', $context['class'], '.gif" align="bottom" alt="" />
<span>', $txt['author'], '</span>
<span id="top_subject">', $txt['topic'], ': ', $context['subject'], ' &nbsp;(', $txt['read'], ' ', $context['num_views'], ' ', $txt['times'], ')</span>
</h3>';


which is default.

I believe you should then replace that with: (I'm not a CSS guy so this may be wrong)
<h3 class="catbg3">
<img src="', $settings['images_url'], '/topic/', $context['class'], '.gif" align="bottom" alt="" />
<span>', $txt['author'], '</span>
<span id="top_subject">', $txt['topic'], ': ', $context['subject'], ' &nbsp;(', $txt['read'], ' ', $context['num_views'], ' ', $txt['times'], ')</span>
<span align="right">', $social_icons, '</span>
</h3>';


This edit would work fine in any 2.0 installation where the custom theme doesn't replace the Display.template.php file.
Title: Re: Share This Topic
Post by: plusev on September 23, 2009, 11:14:23 PM
That worked perfectly. Thx Arantor
Title: Re: Share This Topic
Post by: Sudhakar Arjunan on September 26, 2009, 02:54:48 PM
will try to embed over my website with dziner studio theme
Title: Re: Share This Topic
Post by: jmil on September 28, 2009, 01:54:55 PM
Wow - Added this Mod with a very Custom theme - Parsed it and added the changes to the Custom Theme Template.

Works like a Champ.

Nice job  ;) to the Authors!!!!

www.forums.midatlanticxriders.com
Title: Re: Share This Topic
Post by: Arantor on September 28, 2009, 01:55:58 PM
Thanks :) Good to know it's working for you.
Title: Re: Share This Topic
Post by: jmil on September 28, 2009, 02:01:18 PM
Its nice when a plan comes together - Where is your Donation Link??
Title: Re: Share This Topic
Post by: Arantor on September 28, 2009, 02:03:56 PM
I don't think I got round to updating all my mods with my Donate button; it's on some of my other mods' pages though.
Title: Re: Share This Topic
Post by: aw06 on September 28, 2009, 02:39:07 PM
Quote from: jmil on September 28, 2009, 01:54:55 PM
Wow - Added this Mod with a very Custom theme - Parsed it and added the changes to the Custom Theme Template.

Works like a Champ.

Nice job  ;) to the Authors!!!!

www.forums.midatlanticxriders.com

Somehow the share images look smaller on your forums  :P

Quote from: Arantor on September 28, 2009, 02:03:56 PM
I don't think I got round to updating all my mods with my Donate button; it's on some of my other mods' pages though.

Add a Rate this mod link as well
Title: Re: Share This Topic
Post by: jmil on September 28, 2009, 02:48:32 PM
Yes add a Rate this Mod link would be nice!!

I do have one question though - On the Face book Link it simply says "Login" and then the Site name. Is it supposed to capture the Topic too??
Title: Re: Share This Topic
Post by: Arantor on September 28, 2009, 02:51:03 PM
As far as I know there is no current rating system in the mod site.

As for the Facebook link, it can only capture the topic if you allow access to guests (because that's how Facebook expects it)
Title: Re: Share This Topic
Post by: jmil on September 28, 2009, 03:01:44 PM
Quote
As for the Facebook link, it can only capture the topic if you allow access to guests (because that's how Facebook expects it)

Makes total sense!!! Thank you!
Title: Re: Share This Topic
Post by: aw06 on September 28, 2009, 03:05:32 PM
Quote from: Arantor on September 28, 2009, 02:51:03 PM
As far as I know there is no current rating system in the mod site.

Almost sure their was at one point in time, allot of mods have a 'rate this mod' link

http://www.simplemachines.org/community/index.php?topic=106295.0

That mod has one .. but it goes to the mod site, so i guess it was stripped out  ::)
Title: Re: Share This Topic
Post by: SAFAD on September 28, 2009, 03:15:40 PM
hey arnator
good mod here
trully i like it for 2 things
1.YOU !!
2.YOU !!
MayBe It Is 3
3.Its Just A New place not like the others all the same old place

hey take this trans for arabic

<?xml version="1.0"?>

<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification">



<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">

<id>Arantor:Share_This_Topic</id>

<version>1.1</version>



<file name="$languagedir/Modifications.arabic.php">

<operation>

<search position="end" />

<add><![CDATA[

$txt['share_default_menu'] = 'شارك هذا الموضوع';

$txt['share_default_menu_desc'] = 'هنا تختار الخدمات الإجتماعية التي يمكن المشاركة معها';

$txt['share_default_tooltip'] = 'شارك هذا الموضوع في %s';

$txt['share_facebook'] = 'Facebook';

$txt['share_delicious'] = 'Del.icio.us';

$txt['share_digg'] = 'Digg';

$txt['share_reddit'] = 'Reddit';

$txt['share_stumbleupon'] = 'StumbleUpon';

$txt['share_twitter'] = 'Twitter';

]]></add>

</operation>

</file>



<file name="$languagedir/Modifications.arabic-utf8.php" error="skip">

<operation>

<search position="end" />

<add><![CDATA[

$txt['share_default_menu'] = 'شارك هذا الموضوع';

$txt['share_default_menu_desc'] = 'هنا تختار الخدمات الإجتماعية التي يمكن المشاركة معها';

$txt['share_default_tooltip'] = 'شارك هذا الموضوع في %s';

$txt['share_facebook'] = 'Facebook';

$txt['share_delicious'] = 'Del.icio.us';

$txt['share_digg'] = 'Digg';

$txt['share_reddit'] = 'Reddit';

$txt['share_stumbleupon'] = 'StumbleUpon';

$txt['share_twitter'] = 'Twitter';

]]></add>

</operation>

</file>





</modification>
Title: Re: Share This Topic
Post by: SAFAD on September 28, 2009, 03:28:33 PM
Hey Bro BabyLon Doesn't Work In Replacement thing
i supose he doesn't find
<img src="', $settings['images_url'], '/topic/', $context['class'], '.gif" align="bottom" alt="" />

so we must replace this


<img src="', $settings['images_url'], '/topic/', $context['class'], '.gif" alt="" align="middle" />


do your hoem work ;)
if any ofcourse
Best Regards
Title: Re: Share This Topic
Post by: Arantor on September 28, 2009, 03:30:14 PM
Oh, that's correct. That's why I said no "current" system. There used to be, but it was easily abused. Many mods were down marked unfairly based on not installing properly on custom themes, so it was removed.
Title: Re: Share This Topic
Post by: SAFAD on September 28, 2009, 03:34:04 PM
and arabic trans ?
Title: Re: Share This Topic
Post by: Arantor on September 28, 2009, 03:36:30 PM
If you'd like to supply the translation please do. I only speak two languages - English/British and rubbish.
Title: Re: Share This Topic
Post by: SAFAD on September 28, 2009, 03:40:17 PM
Quote from: SAFAD on September 28, 2009, 03:15:40 PM
hey arnator
good mod here
trully i like it for 2 things
1.YOU !!
2.YOU !!
MayBe It Is 3
3.Its Just A New place not like the others all the same old place

hey take this trans for arabic

<?xml version="1.0"?>

<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification">



<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">

   <id>Arantor:Share_This_Topic</id>

   <version>1.1</version>

   

   <file name="$languagedir/Modifications.arabic.php">

      <operation>

         <search position="end" />

         <add><![CDATA[

$txt['share_default_menu'] = 'شارك هذا الموضوع';

$txt['share_default_menu_desc'] = 'هنا تختار الخدمات الإجتماعية التي يمكن المشاركة معها';

$txt['share_default_tooltip'] = 'شارك هذا الموضوع في %s';

$txt['share_facebook'] = 'Facebook';

$txt['share_delicious'] = 'Del.icio.us';

$txt['share_digg'] = 'Digg';

$txt['share_reddit'] = 'Reddit';

$txt['share_stumbleupon'] = 'StumbleUpon';

$txt['share_twitter'] = 'Twitter';

]]></add>

      </operation>

   </file>

   

   <file name="$languagedir/Modifications.arabic-utf8.php" error="skip">

      <operation>

         <search position="end" />

         <add><![CDATA[

$txt['share_default_menu'] = 'شارك هذا الموضوع';

$txt['share_default_menu_desc'] = 'هنا تختار الخدمات الإجتماعية التي يمكن المشاركة معها';

$txt['share_default_tooltip'] = 'شارك هذا الموضوع في %s';

$txt['share_facebook'] = 'Facebook';

$txt['share_delicious'] = 'Del.icio.us';

$txt['share_digg'] = 'Digg';

$txt['share_reddit'] = 'Reddit';

$txt['share_stumbleupon'] = 'StumbleUpon';

$txt['share_twitter'] = 'Twitter';

]]></add>

      </operation>

   </file>

   

   

</modification>

Title: Re: Share This Topic
Post by: Pinball Nation on September 30, 2009, 06:51:40 PM
I have the Twitter mod installed.If i install this mod.We they conflicked with each other?
Title: Re: Share This Topic
Post by: Arantor on September 30, 2009, 06:54:23 PM
I have no idea about the Twitter mod to be honest. I don't think they'd conflict though; I see no reason they would.
Title: Re: Share This Topic
Post by: ElectricSquid on October 02, 2009, 06:13:38 PM
Looks useful!!
It looks better (graphically speaking) than using addthis to achieve the share buttons.

But I think MySpace should be added to the list.
MySpace is about as popular as Twitter and Facebook.

Do you think you'll be adding support for MySpace any time soon?
Title: Re: Share This Topic
Post by: Arantor on October 02, 2009, 06:15:47 PM
I doubt I will. I looked into it, and adding MySpace would not only be a total rewrite, it's also a lot more work to actually manage since as far as I can find references for it (since I don't use MySpace myself) it can't be done as a simple link, which is why I chose to leave it out.
Title: Re: Share This Topic
Post by: ElectricSquid on October 02, 2009, 09:33:11 PM
Boo MySpace, for making it hard to do.

You have Twitter and Facebook on there though. For me, they're the important ones.
Title: Re: Share This Topic
Post by: Arantor on October 02, 2009, 11:41:52 PM
That said, I'll take another look, and if it has changed I'll consider it.
Title: Re: Share This Topic
Post by: ElectricSquid on October 03, 2009, 11:41:39 AM
Quote from: Arantor on October 02, 2009, 11:41:52 PM
That said, I'll take another look, and if it has changed I'll consider it.

Here you go, so you don't have to go searching for it.
I found their page explaining it and providing code.

http://wiki.developer.myspace.com/index.php?title=How_to_Add_Post_To_MySpace_to_Your_Site (http://wiki.developer.myspace.com/index.php?title=How_to_Add_Post_To_MySpace_to_Your_Site)
Title: Re: Share This Topic
Post by: Arantor on October 03, 2009, 04:14:10 PM
Yes, that's the code I found originally. All of the other sites can be added via a single <a href> tag as a regular link - whereas MySpace requires a full form to be sent, even if it just represents as a single button without any user options to be added.

Thus without rewriting the entire mod just to account for this one site to be supported - and it would be a rewrite - I can't add it.
Title: Re: Share This Topic
Post by: ElectricSquid on October 04, 2009, 09:58:35 AM
OK, I understand.
Looks like MySpace is letting themselves get left out by making it this way.
I notice that a lot of sites no longer have them listed these days.

That doesn't bode well for MySpace.
Title: Re: Share This Topic
Post by: Arantor on October 04, 2009, 10:36:56 AM
Indeed it isn't good for MySpace to do this; it does actively make it harder to target.

I do have some ideas for other sites to add though.
Title: Re: Share This Topic
Post by: aw06 on October 04, 2009, 11:22:40 AM
this mod is awesome it's 99.999% complete ..  ;D

All it needs as i mentioned before is a share count [Total of all Shares]

So beside the icons you will see [This topic was Shared 30 Times]
Title: Re: Share This Topic
Post by: Arantor on October 04, 2009, 11:25:41 AM
Which as I already said is a complete rewrite.

That said, were I to bother that level of rewrite, MySpace would possibly be viable to do.
Title: Re: Share This Topic
Post by: aw06 on October 04, 2009, 11:30:23 AM
Quote from: Arantor on October 04, 2009, 11:25:41 AM
Which as I already said is a complete rewrite.

That said, were I to bother that level of rewrite, MySpace would possibly be viable to do.

well technically you could maybe write a mod that will piggyback off this mod 8) so you wont have to rewrite the original ... either way both means writing lol
Title: Re: Share This Topic
Post by: Arantor on October 04, 2009, 11:32:35 AM
The ability to track means the URL has to be pushed through a URL action, e.g. index.php?action=share;site=facebook;url=http://forum.com/index.php?.....

This would track the hit, then send a redirect.

This is more complex than the existing action (to simply build a link) either way it is a lot of coding but I'll see about it after I get back.

I need to modify it for RC2 anyway...
Title: Re: Share This Topic
Post by: aw06 on October 04, 2009, 11:47:26 AM
kool, as long as it will not put a major drain on performance .. go for it 8)
Title: Re: Share This Topic
Post by: Arantor on October 04, 2009, 11:48:42 AM
Performance impact should be minimal for the most part, though there *will* be an impact.
Title: Re: Share This Topic
Post by: Kat9119 on October 05, 2009, 01:23:22 AM
I didn't see this listed anywhere...

I just installed this, and instead of images over to the left there is a lot of text as links. How do I get the images to appear? I installed via the package manager and did the edits to my custom template.

I'm thinking it has something to do with a setting in my profile, but I just want to be sure.

Any ideas?

EDIT: My bad. Had to upload the share file to my custom template directory :)
Title: Re: Share This Topic
Post by: Arantor on October 05, 2009, 06:13:45 AM
Yes, that is part of the install; good to see you got it sorted :)
Title: Re: Share This Topic
Post by: Pinball Nation on October 05, 2009, 04:24:34 PM
Hello,I did the manuel install of this mod.Everything is there in the administrator panel but when i check the boxes for share the topics an save.But when i go to the forum there's no icon images there in the post.When i go back to the administrators panel all the boxes are unchecked again?I uploaded the whole share folder but was i suppose to upload one image at a time?Also while im asking do you have to have accounts at all these sites?Thanks
Title: Re: Share This Topic
Post by: Arantor on October 05, 2009, 04:27:26 PM
So, is the share directory added to your theme's directory?

You as admin do not require accounts at these sites, but your users do in order to share the links.
Title: Re: Share This Topic
Post by: Pinball Nation on October 05, 2009, 04:34:35 PM
Yep it sure is Arantor.Any ideas what i might need to check.
Title: Re: Share This Topic
Post by: Arantor on October 05, 2009, 04:44:45 PM
/me checks the code again.

So where exactly did you add the images?
Title: Re: Share This Topic
Post by: Pinball Nation on October 05, 2009, 04:53:58 PM
Themes/Default/Images is where i uploaded the directory.The directory is there i double checked to be sure.
Title: Re: Share This Topic
Post by: Arantor on October 05, 2009, 04:54:46 PM
And is that the theme you're using?
Title: Re: Share This Topic
Post by: Pinball Nation on October 05, 2009, 04:58:37 PM
I use the smf default core theme.
Title: Re: Share This Topic
Post by: Arantor on October 05, 2009, 05:01:56 PM
So, if your forum is website.com/forum , would I be able to see an image at, say, website.com/forum/Themes/default/images/share/facebook.gif ?
Title: Re: Share This Topic
Post by: Pinball Nation on October 05, 2009, 05:06:14 PM
Im not sure im a novice at this stuff.Are you saying i need to go to that address to see?
Title: Re: Share This Topic
Post by: Arantor on October 05, 2009, 05:08:51 PM
No, substitute in your own forum's address and see if that works. This verifies that the images ended up in the right place.
Title: Re: Share This Topic
Post by: Pinball Nation on October 05, 2009, 05:09:05 PM
I just checked it says it can't be found?
Title: Re: Share This Topic
Post by: Arantor on October 05, 2009, 05:09:38 PM
So what address did you go to exactly?
Title: Re: Share This Topic
Post by: Pinball Nation on October 05, 2009, 05:14:19 PM
The one you posted but i put in my forum address.Maybe i should try to FTP it again maybe something got lost somewhere but the directory is there?
Title: Re: Share This Topic
Post by: Arantor on October 05, 2009, 05:18:03 PM
Are there several files in it?
Title: Re: Share This Topic
Post by: Pinball Nation on October 05, 2009, 05:40:58 PM
Just those 5 image files.Im using smf 1.1.10 I went back an checked the codes i added an they look good.So im at a lost.
Title: Re: Share This Topic
Post by: Arantor on October 05, 2009, 05:43:16 PM
So, in that case, can I have a link to a thread please?
Title: Re: Share This Topic
Post by: Pinball Nation on October 05, 2009, 05:55:49 PM
Ok here ya go.http://pinballcountry.com/index.php?topic=173.0
Title: Re: Share This Topic
Post by: Arantor on October 05, 2009, 05:59:27 PM
Your theme has a customised Display.template.php file. You will need to manually edit it; it is still showing the original participation icon.
Title: Re: Share This Topic
Post by: Pinball Nation on October 05, 2009, 06:03:32 PM
Thanks,Can you tell me how an what i need to do?
Title: Re: Share This Topic
Post by: Arantor on October 05, 2009, 06:06:27 PM
Edit Display.template.php; and apply the edits as shown on the mod page. Find your version in the dropdown, select Parse, and it'll tell you what edits to make to Display.template.php.
Title: Re: Share This Topic
Post by: Pinball Nation on October 05, 2009, 06:11:09 PM
I did that but i will go back an check again.I will let you know.Thanks
Title: Re: Share This Topic
Post by: Pinball Nation on October 05, 2009, 06:28:03 PM
I went back an checked an the two code edits are there in Display/template/php in the default theme.Sorry to be a bother but i must be missing something somewhere.
Title: Re: Share This Topic
Post by: Arantor on October 05, 2009, 06:30:02 PM
Did you also turn on any of the networks?
Title: Re: Share This Topic
Post by: Pinball Nation on October 05, 2009, 06:44:47 PM
I don't see anything like that.Where's it located?
Title: Re: Share This Topic
Post by: Arantor on October 05, 2009, 06:48:33 PM
As per my screenshots on http://custom.simplemachines.org/mods/area51/index.php?mod=2111, Admin > Features and Options > Share This Topic.
Title: Re: Share This Topic
Post by: Pinball Nation on October 05, 2009, 07:07:50 PM
In features an opintions i see share this topic an i see the six sites which you can check.But that's it.I don't see anything on how to enable the networks?
Title: Re: Share This Topic
Post by: Arantor on October 06, 2009, 06:34:16 AM
If you tick the boxes, the links will appear in your page, assuming the edits were made to Display.template.php

All this mod does is provide links to those six sites.
Title: Re: Share This Topic
Post by: Pinball Nation on October 06, 2009, 05:07:09 PM
Hello,I went back an checked my Themes/Default/Display.template.php an the edits are there.So im not sure.I checked to make sure all the edits for the mod were made.But still no luck.When i check the boxes for share this topic in the administrator features an configurations an click save it takes me back to the features page.When i go back to share this topic all the boxes are unchecked again an nothing was saved?So again im not sure.
Title: Re: Share This Topic
Post by: Arantor on October 06, 2009, 05:08:49 PM
Is there anything in the forum error log?
Title: Re: Share This Topic
Post by: Pinball Nation on October 06, 2009, 05:38:12 PM
Yep this one here http://pinballcountry.com/index.php?action=featuresettings2;save;sa=sharetopic 
8: Undefined index: pm_posts_per_hour
File: /home/pinballc/public_html/Sources/ModSettings.php
Line: 278
[code]
Title: Re: Share This Topic
Post by: Arantor on October 06, 2009, 05:41:28 PM
Did you install this manually?
Title: Re: Share This Topic
Post by: Pinball Nation on October 06, 2009, 05:43:58 PM
I installed it manually.That same error is why i could not use the package installer.Any idea's?
Title: Re: Share This Topic
Post by: Arantor on October 06, 2009, 05:44:49 PM
Looks to me as though the code is in the wrong place. AFAIK pm_posts_per_hour is referenced elsewhere, not around my mod's code.

I don't have a copy of the source handy though :(
Title: Re: Share This Topic
Post by: Pinball Nation on October 06, 2009, 05:52:20 PM
Im not for sure but i put the edits where it told me to.Could another mod be causing the problem. when you say the code is in the wrong place do you mean maybe a line or two off or in the wrong location all together
Title: Re: Share This Topic
Post by: Arantor on October 06, 2009, 05:55:13 PM
I really don't know without looking at the code, and I'm not in a position to do that until next week, unfortunately.
Title: Re: Share This Topic
Post by: Pinball Nation on October 06, 2009, 06:04:41 PM
That's fine.I can wait.The site still works great.Just let me know when you get a chance.Thanks
Title: Re: Share This Topic
Post by: Pinball Nation on October 16, 2009, 05:14:47 PM
Hi Arantor,I posted last week with some problems getting this mod to work.Have you had time to look at what might be the problem?
Title: Re: Share This Topic
Post by: Arantor on October 16, 2009, 06:04:30 PM
Hmm, the edit really is in the wrong place if it's touched that.

Please can you attach your ModSettings.php file?
Title: Re: Share This Topic
Post by: Pinball Nation on October 17, 2009, 03:14:27 PM
Hi Arantor sorry for the late reply.I have since removed the mod but i can attach the mod settings php file.I have since tried  to install another mod using the parser that would not install using the package manager cause i would get the mod settings php test failed.It seems that any mod that needs to add code to the mod settings file will not work.Im convinced there's a problem with it.Im hoping maybe you can see what it is.Maybe i can kill two birds with one stone.
Title: Re: Share This Topic
Post by: Arantor on October 17, 2009, 06:50:58 PM
Well, it seems that it's conflicting with one or more of the mods you already have that have messed up the layout a little bit. Not sure which ones it's affecting though :(
Title: Re: Share This Topic
Post by: Pinball Nation on October 17, 2009, 07:27:42 PM
Would a list of my mods help?I thought that you could install any mod if you installed manuel using the parser. Mod Name Version 
1. Tar Game Uploader 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
2. DisableTemplateEval 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
3. Highslide Image Viewer 1.5   [ Uninstall ] [ List Files ] [ Delete ] 
4. SMF 1.0.18 / 1.1.10 / 2.0 RC1-2 Update 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
5. Hack's Park Shoutbox 2.0.2   [ Uninstall ] [ List Files ] [ Delete ] 
6. SMF 1.0.17 / 1.1.9 / 2.0 RC1 Update 1.0   [ List Files ] [ Delete ] 
7. Limit A Guests Daily PageViews Mod 2.1   [ Uninstall ] [ List Files ] [ Delete ] 
8. RSS Feed Poster 2.0.1  [ Apply Mod ] [ List Files ] [ Delete ] 
9. New Topic Button 1.0  [ Apply Mod ] [ List Files ] [ Delete ] 
10. Custom_Greeting_Depending_on_Time 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
11. SMFShop 3.1.1   [ Uninstall ] [ List Files ] [ Delete ] 
12. Twitter mod 1.5   [ Uninstall ] [ List Files ] [ Delete ] 
13. Aeva ~ Auto-Embed Video & Audio 6.9.101   [ Uninstall ] [ List Files ] [ Delete ] 
14. SMF Arcade 2.0.18   [ Uninstall ] [ List Files ] [ Delete ] 
15. Track IP on ip-adress.com 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
16. Order by Length(code) fix 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
17. Share This Topic 1.1  [ Apply Mod ] [ List Files ] [ Delete ] 
18. OS & Browser Detection 1.4   [ Uninstall ] [ List Files ] [ Delete ] 
19. simplemp 3.2  [ Apply Mod ] [ List Files ] [ Delete ] 
20. SMFbuy 1.6   [ Uninstall ] [ List Files ] [ Delete ] 
21. Enhanced Profile Header 1.0   [ List Files ] [ Delete ] 
22. SMF 1.0.16 / 1.1.8 Update 1.0   [ List Files ] [ Delete ] 
23. SimplePortal 2.2.2   [ Uninstall ] [ List Files ] [ Delete ] 
24. SMF Gallery Lite
[code/] You can see what mods are installed if that helps.I really would like to get share this topic installed.I think it would help out my new site.
Title: Re: Share This Topic
Post by: Arantor on October 17, 2009, 08:25:14 PM
I've just got back over that file again, and looked at the 1.1 edits that should be being made (and noting the state of the file that other mods have left it in)

If the edits were carried out exactly as the manual package parser shows, they are nowhere near the area you mentioned.
Title: Re: Share This Topic
Post by: Neol on October 21, 2009, 08:32:26 AM
How to add other services and buttons?
Title: Re: Share This Topic
Post by: Arantor on October 21, 2009, 08:44:40 AM
Depends on the services and buttons. If you can let me know which services it might be easier for me to just add them in for you and release it as an updated package.
Title: Re: Share This Topic
Post by: Akyhne on November 03, 2009, 09:51:25 AM
Is this supposed to happen? Besides, I think the icons are way to big, but may that's just me.
Title: Re: Share This Topic
Post by: Arantor on November 03, 2009, 09:52:59 AM
No, that's entirely supposed to happen as per the original request I wrote this mod for, as was the icon size being the size as originally requested.
Title: Re: Share This Topic
Post by: Akyhne on November 03, 2009, 10:02:24 AM
Should really be up to the admin.
Title: Re: Share This Topic
Post by: Arantor on November 03, 2009, 10:08:18 AM
It probably should but it's not something I plan to go back and add.

/me would remind folks that this is on the list of mods I'm offering to give away though the link was broken.
Title: Re: Share This Topic
Post by: Akyhne on November 03, 2009, 10:11:08 AM
It's not only that, but also the fact that the entire layout is broken. See attachment.
The icons should be in the right side to not spoil the layout.
Title: Re: Share This Topic
Post by: Arantor on November 03, 2009, 10:12:47 AM
Did that in 2.0 RC1.2 as well, and for the same reason.

Like I said, I wrote this originally to fill a request. I'm not making any further changes to it.
Title: Re: Share This Topic
Post by: aw06 on November 03, 2009, 11:07:54 AM
You can always use your own smaller icon sizes and just replace the ones now ... mod perfect IMO
Title: Re: Share This Topic
Post by: Touti on November 04, 2009, 07:34:02 PM
Nice mod !

I had to do a little work to integrate with Bloc's Rhino theme but I like the result.

Thanks Arantor



(http://www.totalexpedition.com/MGalleryItem.php?id=1245)

Title: Re: Share This Topic
Post by: neo007 on November 04, 2009, 08:32:58 PM
i installed this mod on SMF 1.1.10 and Theam is Greenday every thing is ok just the icons are not displayed correctly on the board. Please help...
Title: Re: Share This Topic
Post by: Arantor on November 04, 2009, 08:37:22 PM
Depends what you mean by "not correctly". Can you provide a screenshot or something please?

(Basically, it's likely because you have a custom theme.)
Title: Re: Share This Topic
Post by: Akyhne on November 04, 2009, 08:42:42 PM
Quote from: aw06 on November 03, 2009, 11:07:54 AM
You can always use your own smaller icon sizes and just replace the ones now ... mod perfect IMO
It's not perfect when it's breaking the layout.

No offence Arantor, it's easy for me to solve. I just hope who ever takes over the mod, will change this.
Title: Re: Share This Topic
Post by: Arantor on November 04, 2009, 08:44:00 PM
It's probably easy for me to solve too if I had the time, energy, motivation etc to do it, unfortunately I don't.

Are you interested in taking over the mod?
Title: Re: Share This Topic
Post by: Akyhne on November 04, 2009, 08:49:40 PM
Quote from: Arantor on November 04, 2009, 08:44:00 PM
Are you interested in taking over the mod?
I have time to code more mods, I just don't have time to support them. Basically any mod I use, is modded to suit my own needs. It makes it a lot easier to install and remove them.
Title: Re: Share This Topic
Post by: Arantor on November 04, 2009, 09:02:36 PM
Whatever works for you :)
Title: Re: Share This Topic
Post by: neo007 on November 04, 2009, 09:10:49 PM
Sorry guys I mean to say that images does not even appear it shows that red small cross..
Title: Re: Share This Topic
Post by: Arantor on November 04, 2009, 09:13:05 PM
Did you install the mod manually or through the package manager?
Title: Re: Share This Topic
Post by: neo007 on November 04, 2009, 09:17:20 PM
Through package manager but checked the share folder and it is in place with all the gif files ...
Title: Re: Share This Topic
Post by: Arantor on November 04, 2009, 09:19:07 PM
Is it in the folder for your custom theme too?
Title: Re: Share This Topic
Post by: neo007 on November 04, 2009, 09:25:31 PM
No Sir it is in Themes/default/images/share ... should i copy it in the theme folder as well like Greenday/images/share
Title: Re: Share This Topic
Post by: Arantor on November 04, 2009, 09:29:29 PM
You should copy it there, then it should work.
Title: Re: Share This Topic
Post by: neo007 on November 04, 2009, 10:13:15 PM
I copied the image files in the theme image folder directly as well as in the folder names Share but stil not working ..

attached is the image of the error.
Title: Re: Share This Topic
Post by: Arantor on November 04, 2009, 10:22:55 PM
Can I have a link to your forum please?
Title: Re: Share This Topic
Post by: Arantor on November 04, 2009, 10:47:34 PM
I took a look at your forum.

Themes/Greenday/images/share/facebook.gif should exist but doesn't (it is case sensitive, by the way)
Title: Re: Share This Topic
Post by: neo007 on November 04, 2009, 11:47:19 PM
Problem solved!!!! it was case sensitive issue ... share and not Share

Thanks for your help ... :)
Title: Re: Share This Topic
Post by: mirahalo on November 13, 2009, 10:47:15 PM
well, this mod has been officially taken by me ;) heres the changelog:

Changelog
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

please tell me what other sites you will like to have included.

Title: Re: Share This Topic
Post by: Arantor on November 13, 2009, 10:48:06 PM
Looks good :)
Title: Re: Share This Topic
Post by: smldmr on December 06, 2009, 11:28:41 AM
Hey, this is a great mod. But i'm missing something. Shared links are all the standart smf links. I'm using Pretty URLs mod, and i miss the seo links. Is it possible tom make a Pretty Urls compatible version of this mod?
Title: Re: Share This Topic
Post by: mirahalo on December 07, 2009, 10:06:42 AM
Ill check that out and post a modification for it ;)
Title: Re: Share This Topic
Post by: fgoc on December 08, 2009, 07:32:47 AM
Hi,
I notice it was mentioned earlier in this topic that the link on facebook would only show as "Login" if guest access was disabled? On my forum, all links on facebook show as "login" even if the link is for a section where guests are allowed.

www.fgoc.co.uk/forum

Any help appreciated :)
Title: Re: Share This Topic
Post by: Arantor on December 08, 2009, 07:36:08 AM
You have guest access set to off to browse the forum it seems - I cannot browse any board on your forum as a guest.
Title: Re: Share This Topic
Post by: mirahalo on December 08, 2009, 10:57:28 AM
@fgoc   would you please show me a page or topic that a guest can see, as Arantor said, I also cannot see any topic in you forum,  the mod doesn't have any special permissions, so I have to see a topic with guest access to see whats going on ;)

@smldmr  after searching in pretty urls mod to find out how it do the rewrite, it appears that pretty urls don't have  any rewrite for this particular url:  $scripturl . '?topic=' . $context['current_topic'] . '.0';     witch is the one  this mod use,   I gotta find a replacement for this url.  or another solution for it.
Title: Re: Share This Topic
Post by: fgoc on December 08, 2009, 03:31:17 PM
hmmmm ... this is odd. You are correct that guests cannot see any sections of the forum, but the settings are such that they should be able to see certain sections. Thanks for pointing this out, and I'll try and correct it.
Title: Re: Share This Topic
Post by: dkharp on December 12, 2009, 05:57:54 PM
Hello, I am getting this error 
QuoteUndefined index: share_default_menu

It says

To install this mod I had to create a temp folder in my packages directory. The mod it self works fine, but I can not announce topic when I make a post and i am getting the above error. It's in admin.php line 156


Title: Re: Share This Topic
Post by: Arantor on December 12, 2009, 06:13:06 PM
Did you do as I suggested in the support topic and clear the file cache?
Title: Re: Share This Topic
Post by: dkharp on December 12, 2009, 06:22:52 PM
Yes and it still hows. So I am waiting to hear from the mod author before I manually uninstall it.
Title: Re: Share This Topic
Post by: Arantor on December 12, 2009, 06:26:41 PM
/me WAS the mod author for a while.

I'm the one that named it share_default_menu originally. I would also point out it's not a serious error.

What language are you using in your admin panel?
Title: Re: Share This Topic
Post by: dkharp on December 12, 2009, 06:28:34 PM
English. But this issue is I can not announce new topics.
Title: Re: Share This Topic
Post by: Arantor on December 12, 2009, 06:28:53 PM
English or English UTF-8?
Title: Re: Share This Topic
Post by: dkharp on December 12, 2009, 06:59:33 PM
    English     ISO-8859-1     68     en_US
Title: Re: Share This Topic
Post by: Arantor on December 12, 2009, 07:03:24 PM
From the screen you got that from, click English, then in the dropdown on right, select Modifications.

Is there an entry for share_default_menu in that list?
Title: Re: Share This Topic
Post by: dkharp on December 12, 2009, 07:14:01 PM
Default Forum Language  drop down but no other but English.

I downloaded UTF-8 English and switched over to that. Still get the same error. Everything seems to work on my site but the ability to announce a new topic and send out news letters.
Title: Re: Share This Topic
Post by: mirahalo on December 12, 2009, 07:57:27 PM
sorry, for the delay,  on weekends my free time is near to zero :P ,  ok,   first, thank you Arantor for still supporting this mod, Arantor was the original author of this mod.

ok, as Arantor said, this problema has to do with your language files, make sure you have the correct text strings in your /Themes/default/Modifications.yourlanguage.php.   a quick solution will be this:

in your admin file  change this:

'sharetopic' => array($txt['share_default_menu']),

to this:

'sharetopic' => array('Share This Topic'),      however  this works only if you use  english language, in other languages you will still see  "Share This Topic"  an not its translated word,   thats way I suggest to check your modifications file  first.

about the announce topic problem,   this mod does not modified code from that,  what other mods do you have installed?   when you uninstall this mod you can announces topics properly?


Title: Re: Share This Topic
Post by: dkharp on December 13, 2009, 01:34:46 AM
Thank you fro your response.

What is the difference between
QuoteUTF-8 English and English

Also here is the list of mods I have. I have no idea why it wont let me announce new topic.

QuoteAeva ~ Auto-Embed Video & Audio      7.0       [ Uninstall ]  [ List Files ]  [ Delete ]
2.    SMF Media Gallery    2.0.5    [ Uninstall ] [ List Files ] [ Delete ]
3.    More Genders    1.0.1    [ Uninstall ] [ List Files ] [ Delete ]
4.    Activity_Bar    1.0.1.2    [ Uninstall ] [ List Files ] [ Delete ]
5.    Gender on Memberlist    1.3    [ Uninstall ] [ List Files ] [ Delete ]
6.    Colored_Calendar_Frame    1.1.1.2    [ Uninstall ] [ List Files ] [ Delete ]
7.    Hide SMF Version    1.0.5    [ Uninstall ] [ List Files ] [ Delete ]
8.    Hide Topic Replies    1.2    [ Uninstall ] [ List Files ] [ Delete ]
9.    Welcome Topic Mod    2.0.3    [ Uninstall ] [ List Files ] [ Delete ]
10.    Treasury    2.02    [ Uninstall ] [ List Files ] [ Delete ]
11.    Profile Comments    2.0    [ Uninstall ] [ List Files ] [ Delete ]
12.    Favourite (Favorite) Boards    1.1    [ Uninstall ] [ List Files ] [ Delete ]
13.    Yet Another Global Announcements Mod    2.3    [ Uninstall ] [ List Files ] [ Delete ]
14.    RSS Feed Icon    1.1    [ Uninstall ] [ List Files ] [ Delete ]
15.    Share This Topic    1.3    [ Uninstall ] [ List Files ] [ Delete ]
16.    SMF Arcade    2.5 RC1
Title: Re: Share This Topic
Post by: Arantor on December 13, 2009, 04:28:50 AM
The different between English and English UTF-8 is actually fairly minimal except for the fact that strings don't always get updated in English UTF-8 (though this one should have both; I certainly added both originally)
Title: Re: Share This Topic
Post by: dkharp on December 13, 2009, 05:07:06 AM
Thank you!  I changed the code and now not one error!

SMF Rocks!

(http://www.tbn.org/watch/images/programs/GodRocks!1.jpg)
Title: Re: Share This Topic
Post by: dkharp on December 16, 2009, 01:41:35 AM
Hello I am getting this error now.

Quote
Apply Filter: Only show the error messages of this URL
http://36thid.info/index.php?topic=280.0
Apply Filter: Only show the errors with the same message
8: Undefined index: share_yahoo
Apply Filter: Only show the errors from this file
File: /home/content/j/o/h/johnnyskid/html/Themes/default/Display.template.php (main sub template - eval?)
Line: 166

and


QuoteApply Filter: Only show the error messages of this URL
http://36thid.info/index.php?topic=280.0
Apply Filter: Only show the errors with the same message
8: Undefined index: share_default_tooltip
Apply Filter: Only show the errors from this file
File: /home/content/j/o/h/johnnyskid/html/Themes/default/Display.template.php (main sub template - eval?)
Line: 166

280 is where I have this  mod pointing too.
QuoteWelcome Topic Mod      2.0.3

It is creating new posts but it's not adding them to count or showing up in last post on board.

My mods are>

Quote1.     Aeva ~ Auto-Embed Video & Audio      7.0       [ Uninstall ]  [ List Files ]  [ Delete ]
2.    SMF Media Gallery    2.0.5    [ Uninstall ] [ List Files ] [ Delete ]
3.    More Genders    1.0.1    [ Uninstall ] [ List Files ] [ Delete ]
4.    Activity_Bar    1.0.1.2    [ Uninstall ] [ List Files ] [ Delete ]
5.    Gender on Memberlist    1.3    [ Uninstall ] [ List Files ] [ Delete ]
6.    Colored_Calendar_Frame    1.1.1.2    [ Uninstall ] [ List Files ] [ Delete ]
7.    Hide SMF Version    1.0.5    [ Uninstall ] [ List Files ] [ Delete ]
8.    Hide Topic Replies    1.2    [ Uninstall ] [ List Files ] [ Delete ]
9.    Welcome Topic Mod    2.0.3    [ Uninstall ] [ List Files ] [ Delete ]
10.    Treasury    2.02    [ Uninstall ] [ List Files ] [ Delete ]
11.    Profile Comments    2.0    [ Uninstall ] [ List Files ] [ Delete ]
12.    Favourite (Favorite) Boards    1.1    [ Uninstall ] [ List Files ] [ Delete ]
13.    Yet Another Global Announcements Mod    2.3    [ Uninstall ] [ List Files ] [ Delete ]
14.    RSS Feed Icon    1.1    [ Uninstall ] [ List Files ] [ Delete ]
15.    Share This Topic    1.3    [ Uninstall ] [ List Files ] [ Delete ]
16.    SMF Arcade v2.5 AutoPost Add-On    2.1    [ Install Mod ] [ List Files ] [ Delete ]
17.    SMF Arcade    2.5 RC1    [ Uninstall ] [ List Files ] [ Delete ]
18.    SMF Links    2.1.2    [ Uninstall ] [ List Files ] [ Delete ]
19.    PageEar (Pagepeel)    2.0    [ Uninstall ] [ List Files ] [ Delete ]
20.    Twitter and Facebook Publisher mod    2.1    [ Uninstall ] [ List Files ] [ Delete ]
21.    Contact Page    2.0

______________

i went in and manually remove this mod. In my M.E. php file there was no modifications.  Think that this mod need to be manully installed to work right. However can any of the above interfere with this mod? other wise it's all good!
QuoteYou have to use the package phrase and install manually FYI
Title: Re: Share This Topic
Post by: mirahalo on December 16, 2009, 12:12:25 PM
both errors are cause by missed text strings,   I suggest you put this:

$txt['share_default_menu'] = 'Share This Topic';
$txt['share_default_menu_desc'] = 'Use this panel to confirm which social networking services you\'d like to be able to share forum topics with.';
$txt['share_default_tooltip'] = 'Share this topic on %s';
$txt['share_facebook'] = 'Facebook';
$txt['share_myspace'] = 'MySpace';
$txt['share_delicious'] = 'Del.icio.us';
$txt['share_digg'] = 'Digg';
$txt['share_reddit'] = 'Reddit';
$txt['share_stumbleupon'] = 'StumbleUpon';
$txt['share_twitter'] = 'Twitter';
$txt['share_technorati'] = 'Technorati';
$txt['share_magnolia'] = 'Magnolia';
$txt['share_google'] = 'Google';
$txt['share_yahoo'] = 'Yahoo';


in to your /Themes/default/languages/Modificationes.yourlanguage.php  at the end before  this: ?>


the welcome topic error, you should ask in the support topic for that mod,  this mod does interfered with that mod afaik ;)
Title: Re: Share This Topic
Post by: dkharp on December 16, 2009, 01:36:30 PM
Yes, Thank you. When I manually uninstalled. There were no codes in that file.  :o

found the issue... ;D
Title: Re: Share This Topic
Post by: ardd on December 28, 2009, 02:20:39 AM
Thanks for this very cool mod, the way it showed the fail and the proper edit in the "Install to other themes" section made the edits in the very slightly different custom theme code easy peasey lemon squeezy!!!!!!

Best Regards
Ardd0
http://www.hypercrites.org
Title: Re: Share This Topic
Post by: eng_HK on December 28, 2009, 12:56:26 PM
in italian..

Original translation on: http://www.italiansmfmods.net/index.php?topic=535.0


File: Modifications.italian.php

Cercare:
Php:

?>


Aggiungere sopra:
Php:

$txt['share_default_menu'] = 'Condividi questo topic';
$txt['share_default_menu_desc'] = 'Utilizza questo pannello per confermare su quali siti di social network è possibile condividere il topic.';
$txt['share_default_tooltip'] = 'Condividi questo topic su %s';
$txt['share_facebook'] = 'Facebook';
$txt['share_myspace'] = 'MySpace';
$txt['share_delicious'] = 'Del.icio.us';
$txt['share_digg'] = 'Digg';
$txt['share_reddit'] = 'Reddit';
$txt['share_stumbleupon'] = 'StumbleUpon';
$txt['share_twitter'] = 'Twitter';
$txt['share_technorati'] = 'Technorati';
$txt['share_magnolia'] = 'Magnolia';
$txt['share_google'] = 'Google';
$txt['share_yahoo'] = 'Yahoo';
Title: Re: Share This Topic
Post by: eng_HK on December 28, 2009, 04:34:49 PM
Only a dubt.. I think that only registered people could share a post.. not a guest..

Could you add this features,flag in next release?

Thx
Title: Re: Share This Topic
Post by: Arantor on December 28, 2009, 04:39:15 PM
Why should it be limited to registered users? A forum registration doesn't necessarily mean a Facebook etc registration and vice versa.

Wouldn't be too hard to make it even a permission, thinking about it... oh wait, this isn't my mod any more... ;)
Title: Re: Share This Topic
Post by: mirahalo on December 28, 2009, 07:12:00 PM
if more or enough people ask for a permission to use the bookmarks, then I will added, it isn't that hard, but in my experience, the less permissions, the better ;)  and also, I dont really see the point in having a permission for this,  as the title says, share this topic, added a permission will be like cutting off the "share" part

thank you for your translation, I will added as soon as I can ;)
Title: Re: Share This Topic
Post by: eng_HK on December 29, 2009, 02:10:33 AM
I think that only registered used could have the capability to share the post, if the other want, after they seen it on facebook, they will register..

but it's only a new feature, not a limitation, a flag that give to the admin the capability to decide...
Anyway I think this is a greate mode..
Title: Re: Share This Topic
Post by: mirahalo on December 29, 2009, 11:08:40 AM
viewing the mod as a tool to promote your forum, I think adding a permission for registered users only, will affect that, remember, the mod share links, if a guest share that link in his/her account on a social network, that means  free advertisement for your forum!

viewing the mod as a tool for your users only, as a bonus or a feature, then is ok to restrict the access to it.

   if more people are interesting in a permission system, then I will added,  I just need to know if more people are agree  with this before I  do that.
Title: Re: Share This Topic
Post by: Kleidi on January 14, 2010, 06:50:38 PM
I tried to install but i got this msg:
QuoteError in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

And the error seems to be on Display template
Quote3.     Execute Modification     ./Themes/default/Display.template.php     Test failed
      1.    Add Before    ./Themes/default/Display.template.php    Test successful
      2.    Add After    ./Themes/default/Display.template.php    Test failed

I have this mods installed:
Quote
1.     Global Headers Footers      2.0       [ Uninstall ]  [ List Files ]  [ Delete ]
2.    Users Online Today    1.5.5    [ Uninstall ] [ List Files ] [ Delete ]
3.    The SMF File Management Tool    1.0.1    [ Uninstall ] [ List Files ] [ Delete ]
4.    Aeva ~ Auto-Embed Video & Audio    7.0    [ Uninstall ] [ List Files ] [ Delete ]
5.    Activity_Bar    1.0.1.2    [ Uninstall ] [ List Files ] [ Delete ]
6.    Admin member list registration date    1.1    [ Uninstall ] [ List Files ] [ Delete ]
7.    Birthday Posts    0.11.2 Beta    [ Uninstall ] [ List Files ] [ Delete ]
8.    Site Menu    1.0    [ Uninstall ] [ List Files ] [ Delete ]
9.    Active Members In Topic    1.8    [ Uninstall ] [ List Files ] [ Delete ]
10.    Caps_Lock_Detection_on_Login    1.1.0.1    [ Uninstall ] [ List Files ] [ Delete ]
11.    Gender on Memberlist    1.3    [ Uninstall ] [ List Files ] [ Delete ]
12.    Pretty URLs    1.0RC    [ Uninstall ] [ List Files ] [ Delete ]
13.    Signature Area BBCode Buttons    1.7    [ Uninstall ] [ List Files ] [ Delete ]
14.    Ad Managment    2.3.6    [ Uninstall ] [ List Files ] [ Delete ]

Thanks anyway ;)
Title: Re: Share This Topic
Post by: Arantor on January 14, 2010, 06:51:57 PM
So you're using 2.0 RC2.

Obviously it's clashing with something in your Display.template.php. Please attach it so it can be examined.
Title: Re: Share This Topic
Post by: TravisM661 on January 15, 2010, 08:30:06 AM
Can we change the logos to our own versions?
Title: Re: Share This Topic
Post by: Arantor on January 15, 2010, 08:33:16 AM
Travis: I don't see any reason why not - though I'll let 130860 confirm that for sure (certainly, the icons I added originally, go for it)
Title: Re: Share This Topic
Post by: mirahalo on January 15, 2010, 10:44:56 AM
@TravisM661 do you mean add a feature to add your own icons?  or just replace the images that came with the mod by default?   if it is the second one as Arantor say, go for it, the icons are store in Themes/your_theme/images/share    just make sure you keep the name intact.

@Arantor, thank you for doing my job :P    I been lazy lately :P
Title: Re: Share This Topic
Post by: Kleidi on January 16, 2010, 09:59:11 PM
Quote from: Arantor on January 14, 2010, 06:51:57 PM
So you're using 2.0 RC2.

Obviously it's clashing with something in your Display.template.php. Please attach it so it can be examined.

Yep, it's seems like something is going wrong there ;)
I have attached that file with this post... Thank you for supporting us ;)
Title: Re: Share This Topic
Post by: mirahalo on January 16, 2010, 10:03:14 PM
mmm, weird, I didn't have any trouble with making the modifications, anyway, try this one:
Title: Re: Share This Topic
Post by: Kleidi on January 20, 2010, 07:35:04 PM
Quote from: 130860 on January 16, 2010, 10:03:14 PM
mmm, weird, I didn't have any trouble with making the modifications, anyway, try this one:
Should i replace that file after or before installation?
Thx bro ;)
Title: Re: Share This Topic
Post by: mirahalo on January 21, 2010, 10:14:31 AM
install the mod, even if there is still the error, then replace your file with the one I attach,  that should be sufficient  for the mod to work properly  ;)
Title: Re: Share This Topic
Post by: Kleidi on January 21, 2010, 07:24:43 PM
Quote from: 130860 on January 21, 2010, 10:14:31 AM
install the mod, even if there is still the error, then replace your file with the one I attach,  that should be sufficient  for the mod to work properly  ;)
I'll try ... but, will this affect other mods installed there?

Thanks bro
Title: Re: Share This Topic
Post by: mirahalo on January 21, 2010, 07:31:45 PM
no, because I only edit the necessary code for this mod,   if you haven't install another mod  that affect this file then don't worry,  the file I gave you only modifies the code necessary for the mod to work.

you can always backup your file if something goes wrong ;)
Title: Re: Share This Topic
Post by: waruna on January 28, 2010, 12:05:44 PM
Hi there.

I tried to install this mod, but I get this error:

"You cannot download or install new packages because the Packages directory or one of the files in it are not writable!"

Please tell me what to do. :(

Thanks in advance
Title: Re: Share This Topic
Post by: mirahalo on January 28, 2010, 12:19:37 PM
make sure that your /Packages folder and the installed.list file inside it  both has the correct permissions,  ( 777 ) also please see this links:

How do I chmod? / what is chmod? (http://docs.simplemachines.org/index.php?topic=477.0)

http://docs.simplemachines.org/index.php?topic=363.0
Title: Re: Share This Topic
Post by: waruna on January 28, 2010, 12:57:12 PM
Hye there. I already set the permission to 777 for Packages and installed.list from the beginning of the SMF installation. Or does this mod not compatible with version 2.0?
Title: Re: Share This Topic
Post by: mirahalo on January 28, 2010, 01:08:44 PM
this mod is compatible with 2.0 RC1.2 and 2.0 RC2, if it wasn't it show you a different kind of error.


please go to admin / main / packages / file permissions /   


and make sure that you Packages folder shows this:   Packages    Writable  (chmod: 0755)   it can be 0755 o 0777   if not, use the Change File Permissions right under it to change it
Title: Re: Share This Topic
Post by: waruna on January 28, 2010, 01:29:26 PM
Yes. The permission already set to 0777. Only Sources folder is not writable (0755).
I tried to install by upload the zip file from my computer, also the same error appears.
Title: Re: Share This Topic
Post by: mirahalo on January 28, 2010, 01:45:04 PM
does this error also happen when you install any other mod or just this one?   this mod modifies some files on /Sources folder, so I wouldn't hurt if you make that folder writable with 0777 and give it another try, if the error still happens or you cannot install any other mod, please make a new topic in the support boards commenting your problem, you will have better support for it on that board.
Title: Re: Share This Topic
Post by: waruna on January 28, 2010, 01:53:44 PM
Hye.. At last, the mod is successfully installed.. phewww.

But another problem is, nothing happened. I can't see the "Share this topic" and the icons of social networks at the top of the topic.
Title: Re: Share This Topic
Post by: mirahalo on January 28, 2010, 02:05:36 PM
your theme has it own Display.template.php file?  if so, please attach that file to make the necessary edits for it.   also, once installed, the packager manager redirected you to the mods settings, make sure you check at least one social network.
Title: Re: Share This Topic
Post by: waruna on January 28, 2010, 02:12:24 PM
Quote from: 130860 on January 28, 2010, 02:05:36 PM
your theme has it own Display.template.php file?  if so, please attach that file to make the necessary edits for it.   also, once installed, the packager manager redirected you to the mods settings, make sure you check at least one social network.

Desktop.template.php attached.

Unfortunately, the packager manager redirected the page directly to Features and Options page instead of Mods Settings. And there's nothing at Miscellaneous in Mods Settings. Is this weird?
Title: Re: Share This Topic
Post by: waruna on January 28, 2010, 02:15:15 PM
I can see the Advance Options in Browse Packages page. It says something like emulate version. Does it has something to do with my problem?
Title: Re: Share This Topic
Post by: mirahalo on January 28, 2010, 09:18:21 PM
nope, if you cannot see the settings for this mod is most likely that you have a different language than english, what language did you use?

can you see the settings in this page?  myforum.com/index.php?action=admin;area=featuresettings;sa=sharetopic    replace myforum with the actual url of your forum

try the attached file


Title: Re: Share This Topic
Post by: waruna on January 29, 2010, 04:54:10 AM
Ok. It works man! Great! ;) . I just enter the location of path manually, and the installation complete. Now the logos displayed at the top of the topic. Thanks a lot. :D

Here's another thing, how can I put the word "Share this on: " next to the logos?

Thanks in advance.
Title: Re: Share This Topic
Post by: mirahalo on January 29, 2010, 10:29:21 AM
well actually, theres no text string that says specifically: Share this on:    the mod got one that says: Share This Topic

if you really want to say Share This Topic on: you got two options, one is add another text string, the other is to put it directly on your display.template.php, of course, the secong will work only if you just use english language, it woulb be like this:

on your theme's display.template.php

find this:

<div id="forumposts"><span>', $social_icons, '</span>

replace with this:


<div id="forumposts"><span>Share this on: ', $social_icons, '</span>

do you use multiple languages?


Title: Re: Share This Topic
Post by: waruna on January 29, 2010, 02:22:31 PM
I'm using english language. Thanks man! It works ;) .. Many thanks to you dude. :-*
Title: Re: Share This Topic
Post by: playdiune on February 18, 2010, 01:06:20 PM
is it possible to add the google buzz icon ?

thanks
Title: Re: Share This Topic
Post by: mirahalo on February 18, 2010, 01:14:02 PM
I dont know much about it but if it has a share link I can use then yes it could be added,

mmm,  searching a little bit i found this one: http://www.google.com/reader/link?url=


let me make a few test.
Title: Re: Share This Topic
Post by: KensonPlays on February 18, 2010, 01:14:25 PM
@playdiune:
You use google buzz already? I am and I like it!
Title: Re: Share This Topic
Post by: playdiune on February 18, 2010, 05:56:31 PM
yes. i am using and i also like it ;)
Title: Re: Share This Topic
Post by: bjraines on February 22, 2010, 04:10:02 PM
is there a way to get it to work with pretty URLs?
Title: Re: Share This Topic
Post by: Arantor on February 22, 2010, 04:56:08 PM
Not without a lot of modification of the mod from what I remember.
Title: Re: Share This Topic
Post by: ɔɔɔɔɔɔuɥoɾ on February 22, 2010, 05:01:45 PM
Cant you use the power of .htaccess to rewrite URLs in the areas of the mod to suite pretty URLs mod needs.

I'm Unsure as I dont use pretty URLs, but I have to ask as I'm currently working on something which will let me use a sub-domain for a board, which I'm trying to figure out the htaccess changes to make it work, thought it may be a similar-ish situation
Title: Re: Share This Topic
Post by: Arantor on February 22, 2010, 05:03:25 PM
No, because you have to rewrite the URLs that the mod produces, nothing to do with .htaccess at all.
Title: Re: Share This Topic
Post by: ɔɔɔɔɔɔuɥoɾ on February 22, 2010, 05:06:49 PM
arhh! Well just thought I would throw it in there, I saw that .htaccess fixed something with the ajax chat integration too (when pretty URLs was used), oh well lol..
Title: Re: Share This Topic
Post by: playdiune on February 22, 2010, 08:37:57 PM
well,

i am using pretty urls and also this mod and i have no errors.

what errors are you talking about ?
Title: Re: Share This Topic
Post by: mirahalo on February 22, 2010, 11:51:24 PM
@playdiune    about Google buzz,   here's    a little tweak for it,   in your theme's display.template.php  find this:  (assuming you're using 1.1.11)

echo '', $social_icons, '

and add this after

  <a href="http://www.google.com/reader/link?url='. $scripturl . '?topic=' . $context['current_topic'] . '.0&title='. $context['subject'] .'&srcURL='. $scripturl . '?topic=' . $context['current_topic'] . '.0" target="_blank"><img src="' . $settings['images_url'] . '/share/buzz.gif" title="Share on buzz" alt="Share on buzz" /></a> </span>


like this:

echo '', $social_icons, '<a href="http://www.google.com/reader/link?url='. $scripturl . '?topic=' . $context['current_topic'] . '.0&title='. $context['subject'] .'&srcURL='. $scripturl . '?topic=' . $context['current_topic'] . '.0" target="_blank"><img src="' . $settings['images_url'] . '/share/buzz.gif" title="Share on buzz" alt="Share on buzz" /></a> </span>


and upload the attached image to your  theme's image folder,   this is just temporal until I release the next version.


greetings.
Title: Re: Share This Topic
Post by: waruna on February 23, 2010, 04:49:14 AM
What about coding for SMF2.0 RC2? Thanks. :D
Title: Re: Share This Topic
Post by: Arantor on February 23, 2010, 05:39:47 AM
You'd be best actually expanding the master list rather than just forcing it into the template... (hint: I originally used arrays for just that reason)
Title: Re: Share This Topic
Post by: mirahalo on February 23, 2010, 09:49:42 AM
Quote from: Arantor on February 23, 2010, 05:39:47 AM
You'd be best actually expanding the master list rather than just forcing it into the template... (hint: I originally used arrays for just that reason)

yes I know ;)   what happens is that I included the topic title in the url:   

$title = $context['subject'];
$page_url = $scripturl . '?topic=' . $context['current_topic'] . '.0   ('  . $title . ')' ;


every network works fine but buzz it give me an invalid url, that's why I did it that way :)



@waruna    is the same code in 2.0 find <span>', $social_icons, '</span>   
Title: Re: Share This Topic
Post by: Adi Sunardy on March 10, 2010, 03:00:16 AM
Any chance somebody has coding this mod for SMF 2.0 RC3? I have tried to modify the current mod but no luck....
Title: Re: Share This Topic
Post by: MultiformeIngegno on March 10, 2010, 04:38:09 AM
Seconded! :)
Title: Re: Share This Topic
Post by: Arantor on March 10, 2010, 06:04:47 AM
Yeah, it'll require a slightly more substantial overhaul for RC3.
Title: Re: Share This Topic
Post by: mirahalo on March 10, 2010, 09:09:02 AM
I'm workin on it!   please be patient ;)
Title: Re: Share This Topic
Post by: Arantor on March 10, 2010, 09:12:57 AM
Quote from: 130860 on March 10, 2010, 09:09:02 AM
I'm workin on it!   please be patient ;)

Awesome :) But yeah, let me just remind mod users that mod authors/maintainers are busy folks and aren't always able to update it NAO IMMEDIATELY CUZ I LIEK NEED URGENTY
Title: Re: Share This Topic
Post by: Adi Sunardy on March 10, 2010, 09:09:55 PM
I've managed to install it manually to SMF 2.0 RC3. It successfully working for topic section. But the variable in Modification.english.php didn't show up in Admin section. So i've just found empty section without any label or text in Features and Layout, so i've do a "blind selection" for all configuration and save it.

Now, every one can share the topic. But for admin, it's not convenience enough.
Title: Re: Share This Topic
Post by: Arantor on March 10, 2010, 09:17:54 PM
Quote from: Adi Sunardy on March 10, 2010, 09:09:55 PM
I've managed to install it manually to SMF 2.0 RC3. It successfully working for topic section. But the variable in Modification.english.php didn't show up in Admin section. So i've just found empty section without any label or text in Features and Layout, so i've do a "blind selection" for all configuration and save it.

Now, every one can share the topic. But for admin, it's not convenience enough.

Clear the file cache after installation? (Admin > Maintenance > Routine > Empty the file cache)

When you manually edit the files you have to do that in 2.0 series - true for any language file edit no matter what it is.
Title: Re: Share This Topic
Post by: Adi Sunardy on March 10, 2010, 10:37:54 PM
I've missed that before! Thanks a bunch!!!!

Now, it's work properly....:)
Title: Re: Share This Topic
Post by: mirahalo on March 11, 2010, 12:18:57 AM
sorry for the wait, heres the changelog for version 1.4:


Changelog
1.4
-Added support for 20 more social networks
-Smaller icons
-Added support for 2.0RC3
Title: Re: Share This Topic
Post by: Arantor on March 11, 2010, 08:23:29 AM
Awesome news. I'm glad this mod went to a good home :D
Title: Re: Share This Topic
Post by: mirahalo on March 11, 2010, 09:56:30 AM
Quote from: Arantor on March 11, 2010, 08:23:29 AM
Awesome news. I'm glad this mod went to a good home :D


thanks ;)   I want to add a couple of options for this, hopefully with RC3 supported now I will have some time to play around a little  ;D
Title: Re: Share This Topic
Post by: kosaic on March 11, 2010, 07:10:12 PM
Any way to mak this work with 2.0 RC2 ?
Title: Re: Share This Topic
Post by: Arantor on March 11, 2010, 07:13:36 PM
kosaic: It did... certainly a couple of days ago.
Title: Re: Share This Topic
Post by: kosaic on March 11, 2010, 07:15:12 PM
I get this after downloading it to my forum, and clicking on "Install Mod"

"
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
"
Title: Re: Share This Topic
Post by: Arantor on March 11, 2010, 07:18:19 PM
Yeah, it's been updated to run on RC3 not RC2 now, unfortunately the older RC2 compatible version appears to be gone :(
Title: Re: Share This Topic
Post by: kosaic on March 11, 2010, 07:31:59 PM
well Crapola ! :)

Anyone have the 2.0 RC2 version they could share ??
Title: Re: Share This Topic
Post by: Adi Sunardy on March 11, 2010, 08:44:20 PM
It Should Help...
Title: Re: Share This Topic
Post by: mirahalo on March 11, 2010, 10:20:42 PM
I though no one will need the old version...  thats why I replace the file instead of just upload the new version

you could use the new version in RC2, just open package-info.xml  and replace RC3 with RC2    I dont like using the 2.0-2.99999  kinda thing   I prefer just put the number alone ;)
Title: Re: Share This Topic
Post by: Arantor on March 11, 2010, 10:22:18 PM
130860, you can actually put multiple versions in... <install for="2.0 RC2, 2.0 RC3"> would work just fine if the edits haven't changed.

Or have multiple install blocks/files...
Title: Re: Share This Topic
Post by: mirahalo on March 11, 2010, 10:36:59 PM
oh, yes, actually I think I'm going to do just that, ;)  usually, when I update a mod I cut support for the old version, but I think now its pretty soon to do that, heck I'm still using RC2 and have no plans to upgrade until some mods get updated :P thanks for the tip
Title: Re: Share This Topic
Post by: kosaic on March 11, 2010, 10:37:16 PM
so I changed to the above <install for="2.0 RC2, 2.0 RC3"> , and now get the following when I try to install ...

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.


3. Execute Modification ./Themes/default/Display.template.php Test failed
  1. Add Before ./Themes/default/Display.template.php Test successful
  2. Add After ./Themes/default/Display.template.php Test failed  

At this point, I did not click the Install Now button ...
Title: Re: Share This Topic
Post by: mirahalo on March 11, 2010, 10:39:13 PM
oh, is that the only error you get? if so, please attach your Display.template.php


I will re-check to make sure the mod is still compatible with RC2, if not, like Arantor said, I will create another xml file just for RC2 ;)
Title: Re: Share This Topic
Post by: kosaic on March 11, 2010, 10:41:30 PM
Here you go :)

Thanks !
Title: Re: Share This Topic
Post by: mirahalo on March 11, 2010, 10:47:39 PM
please install the mod, ignoring the error, then replace your file with this one
Title: Re: Share This Topic
Post by: kosaic on March 11, 2010, 10:53:09 PM
Thanks a million ... worked ! (Although showing up ugly as heck :) ... custom theme issue likely)

Need to do a little tweaking, but once agian, it is working.

Thanks for quickly looking at this.
Title: Re: Share This Topic
Post by: mirahalo on March 11, 2010, 11:00:36 PM
the mod use a class already used:  class="plainbox"   if you don't  want that class, in your Display.template.php find:

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


and replace with:

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


;)
Title: Re: Share This Topic
Post by: kosaic on March 11, 2010, 11:05:17 PM
You were reading my mind !  :D

Thanks again, all problems solved and even looks ok with that box gone ! (and I moved the image links too)

Cheers !
Title: Re: Share This Topic
Post by: mirahalo on March 11, 2010, 11:10:20 PM
yeah, when I added that class I only think in curve :( some themes may change that class and make it so different,  I suppose I could add an option or something to display the icons with or with out a box
Title: Re: Share This Topic
Post by: kosaic on March 11, 2010, 11:17:05 PM
Here is what I ended up with .... Looks good to me !

(http://www.fundyschutzhund.ca/images/sample_1.png)
Title: Re: Share This Topic
Post by: mirahalo on March 11, 2010, 11:19:25 PM
nice! :) :D
Title: Re: Share This Topic
Post by: Dharshan on March 21, 2010, 11:03:11 AM
just added this, hope it will move more traffic into my forum..Cheers!
Title: Re: Share This Topic
Post by: mirahalo on March 21, 2010, 08:24:25 PM
glad you like it, yeah, I try to leave a link on two or three  networks, hopefully someone will see it :)
Title: Re: Share This Topic
Post by: playdiune on March 28, 2010, 10:21:26 PM
Quote from: kosaic on March 11, 2010, 11:17:05 PM
Here is what I ended up with .... Looks good to me !

(http://www.fundyschutzhund.ca/images/sample_1.png)


I would like also to have the images align on the right. How can i do it ? thanks
Title: Re: Share This Topic
Post by: Sharb8 on March 28, 2010, 10:29:09 PM
nice
Title: Re: Share This Topic
Post by: mirahalo on March 28, 2010, 10:43:49 PM
Quote from: playdiune on March 28, 2010, 10:21:26 PM
[


I would like also to have the images align on the right. How can i do it ? thanks



open your ./Themes/default/Display.template.php   and find this:

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



and changed to    <div class="plainbox" style="text-align: right;">', $social_icons, '</div>


if you want to remove the box  just take out the div class  like this:

<div  style="text-align: right;">', $social_icons, '</div>
Title: Re: Share This Topic
Post by: wrinkle on March 29, 2010, 01:52:10 AM
I am having problems getting this to work with one of my themes.  It seems this theme is written different than most.  Black Rain 1.1.11.  I cannot find where to put the code in the index.template.php file. 

I do not get the icons showing on this mod.  I have attached a copy of the screen capture and a copy of the index.template.php.  Can someone please tell me where I need to add the code on this?

Thanks,
Title: Re: Share This Topic
Post by: Arantor on March 29, 2010, 03:09:43 AM
That's because as per the manual install instructions, it doesn't go in index.template.php but in Display.template.php...
Title: Re: Share This Topic
Post by: mirahalo on March 29, 2010, 11:09:21 AM
@wrinkle   as Arantor said this mod  modifies the display.template.php file, does your theme have that file?   if so, please attach it here.
Title: Re: Share This Topic
Post by: Arantor on March 29, 2010, 11:10:01 AM
And if it doesn't, it's the Themes/default/Display.template.php file...
Title: Re: Share This Topic
Post by: playdiune on March 29, 2010, 01:25:34 PM
Quote from: 130860 on March 28, 2010, 10:43:49 PM
Quote from: playdiune on March 28, 2010, 10:21:26 PM
[


I would like also to have the images align on the right. How can i do it ? thanks



open your ./Themes/default/Display.template.php   and find this:

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



and changed to    <div class="plainbox" style="text-align: right;">', $social_icons, '</div>


if you want to remove the box  just take out the div class  like this:

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


I am using version 1.1.11. I cant finf that code on display.template.php.
And on this version i see no boxe around the images. here is my example:

(http://img199.imageshack.us/img199/4166/example1111.jpg)

hope you can help me. thanks
Title: Re: Share This Topic
Post by: mirahalo on March 29, 2010, 02:02:52 PM
@playdiune  please attach your display.template.php   the code is a bit different on 1.1.11
Title: Re: Share This Topic
Post by: playdiune on March 29, 2010, 07:23:15 PM
As you can see i added the code to appear also on the end of the post.

(http://img525.imageshack.us/img525/3521/exemplol.jpg)

As you can see on this post i changed also the original location of the images. I just would like them ( on the top ) to appear on the right.

thanks
Title: Re: Share This Topic
Post by: mirahalo on March 29, 2010, 08:21:10 PM
try this one
Title: Re: Share This Topic
Post by: playdiune on March 29, 2010, 08:31:53 PM
Quote from: 130860 on March 29, 2010, 08:21:10 PM
try this one

Works 100% :)

thanks
Title: Re: Share This Topic
Post by: wrinkle on March 29, 2010, 08:49:02 PM
Quote from: 130860 on March 29, 2010, 11:09:21 AM
@wrinkle   as Arantor said this mod  modifies the display.template.php file, does your theme have that file?   if so, please attach it here.

That particular theme does not have a display.template.php. 

I have attached the display.template.php file from the themes/default/ location. 

Title: Re: Share This Topic
Post by: mirahalo on March 29, 2010, 09:05:16 PM
mmm weird, attached file its fine,  does the mod work on the default theme?

any errors during the install?   

please attach your ./Sources/ModSettings.php   file
Title: Re: Share This Topic
Post by: wrinkle on March 29, 2010, 09:10:47 PM
Quote from: 130860 on March 29, 2010, 09:05:16 PM
mmm weird, attached file its fine,  does the mod work on the default theme?

any errors during the install?   

please attach your ./Sources/ModSettings.php   file

It works fine on the default theme. 

ModSettings.php attached.
Title: Re: Share This Topic
Post by: mirahalo on March 29, 2010, 10:16:12 PM
alright, please download the mod, unzipped and upload the folder named "share"   to  /Themes/ your theme/ images
Title: Re: Share This Topic
Post by: wrinkle on March 29, 2010, 10:20:34 PM
Quote from: 130860 on March 29, 2010, 10:16:12 PM
alright, please download the mod, unzipped and upload the folder named "share"   to  /Themes/ your theme/ images

That did it.  Thanks for the help.  I would have never figured that one out.
Title: Re: Share This Topic
Post by: mirahalo on March 29, 2010, 10:26:32 PM
yeah I completely forgot about the share folder :P     I had to install the mod and the theme on local to figure it out lol :P
Title: Re: Share This Topic
Post by: Arantor on March 30, 2010, 03:39:22 AM
You could also have followed the parse instructions on the mod site, that would have mentioned the share folder too ;)
Title: Re: Share This Topic
Post by: scimmiotto on April 10, 2010, 02:35:06 PM
Arantor great mod this (as usual). is there any change to set permission on users to not share the posts?
Title: Re: Share This Topic
Post by: Arantor on April 10, 2010, 02:35:56 PM
Quote from: scimmiotto on April 10, 2010, 02:35:06 PM
Arantor great mod this (as usual). is there any change to set permission on users to not share the posts?

I gave this mod away months ago. I never planned to put permissions in it but it's certainly possible to do.
Title: Re: Share This Topic
Post by: mirahalo on April 10, 2010, 08:51:25 PM
Quote from: scimmiotto on April 10, 2010, 02:35:06 PM
Arantor great mod this (as usual). is there any change to set permission on users to not share the posts?


not so sure to do this,  the way I see it, the mod is for sharing, adding permissions will cut that,   but if you like I can post some instructions  on how to use the smf permission system  with this mod, just tell me your smf version.


and oh yeah, all the kudos goes to Arantor ;)
Title: Re: Share This Topic
Post by: scimmiotto on April 11, 2010, 07:20:30 AM
tnx :)

i use smf 2.0 rc3
Title: Re: Share This Topic
Post by: Arantor on April 11, 2010, 07:38:13 AM
How to add permissions in SMF 2.0: http://www.simplemachines.org/community/index.php?topic=345127.0
Title: Re: Share This Topic
Post by: FlatFX on April 17, 2010, 07:06:00 AM
Sooooooo  :D
http://vkontakte.ru/share.php  ;)

Open Display.template.php
Find:
'facebook' => 'http://www.facebook.com/share.php?u=%s',
Add before:
'vkontakte' => 'http://vkontakte.ru/share.php?url=%s',
Open ModSettings.php
Find:
'facebook', 'myspace',
Add before:
'vkontakte', Open Modifications.english.php
Find:
$txt['share_facebook'] = 'Facebook';
Add before:
$txt['share_vkontakte'] = 'Vkontakte';

Put into "/Themes/default/images/share/" this GIF http://img232.imageshack.us/img232/6842/vkontakte.gif (http://img232.imageshack.us/img232/6842/vkontakte.gif)

Enjoy!  ;)
Title: Re: Share This Topic
Post by: mirahalo 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 ;)
Title: Re: Share This Topic
Post by: FlatFX on April 18, 2010, 10:54:25 AM
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)
Title: Re: Share This Topic
Post by: mirahalo on May 12, 2010, 05:37:06 PM


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 (http://developers.facebook.com/docs/reference/javascript/).
-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 (http://dev.oharascans.com/index.php?topic=1.0)





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
Title: Re: Share This Topic
Post by: fals on May 13, 2010, 02:21:09 PM
Excellent ! Works perfect - and you can put it where ever fits best  :)


(http://img232.imageshack.us/img232/7183/skrmbillede20100513kl20.png)


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





Title: Re: Share This Topic
Post by: mirahalo on May 14, 2010, 10:49:51 AM
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?
Title: Re: Share This Topic
Post by: giveaway365.com on May 14, 2010, 11:08:55 AM
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

Title: Re: Share This Topic
Post by: mirahalo on May 14, 2010, 11:21:16 AM
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:


(http://img201.imageshack.us/img201/3518/examplej.jpg)


I enter h**p//oharascans.com/oharateam.gif   in that field ;)
Title: Re: Share This Topic
Post by: giveaway365.com on May 14, 2010, 12:16:36 PM
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
Title: Re: Share This Topic
Post by: mirahalo on May 14, 2010, 01:01:43 PM
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.
Title: Re: Share This Topic
Post by: azhriel on May 15, 2010, 05:15:05 AM
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
Title: Re: Share This Topic
Post by: giveaway365.com on May 15, 2010, 07:03:55 AM
lets see after 2 days!!
Title: Re: Share This Topic
Post by: PurpleCrow on May 15, 2010, 01:46:55 PM
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)
Title: Re: Share This Topic
Post by: mirahalo 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


@PurpleCrow   there´s no such thing as a stupid question ;)  where exactly do you want it?
Title: Re: Share This Topic
Post by: azhriel on May 16, 2010, 01:34:32 AM
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
Title: Re: Share This Topic
Post by: PurpleCrow on May 16, 2010, 06:00:40 AM
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  :)
Title: Re: Share This Topic
Post by: mirahalo on May 16, 2010, 07:06:38 PM
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 ;)
Title: Re: Share This Topic
Post by: PurpleCrow on May 17, 2010, 08:46:54 AM
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?
Title: Re: Share This Topic
Post by: mirahalo on May 17, 2010, 09:37:33 AM
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 ;)
Title: Re: Share This Topic
Post by: 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/
Title: Re: Share This Topic
Post by: PurpleCrow on May 17, 2010, 10:09:20 AM
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.
Title: Re: Share This Topic
Post by: mirahalo on May 17, 2010, 10:18:16 AM
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  ;)

Title: Re: Share This Topic
Post by: dsanchez on May 17, 2010, 02:12:38 PM
Hi guys!

Awesome job!

I want so much install this mod but I have a customized template (www.curefans.com) so I need to make changes to the Display.template.php

Can you please give a hand with this? File is attached.

Thanks a lot in advance.

David.
Title: Re: Share This Topic
Post by: mirahalo on May 17, 2010, 03:25:41 PM
try this one ;)


and I'm a big fan of the cure as well :D
Title: Re: Share This Topic
Post by: dsanchez on May 17, 2010, 03:58:25 PM
thank you very much!

and you're welcome to curefans.com too! ;)

everything's working fine except for the "I like button". I just see a "<" sign in the messages now?

thanks again!
Title: Re: Share This Topic
Post by: mirahalo on May 17, 2010, 08:24:16 PM
does your theme has its own index.template?  if so please attach it here.

do you created the facebookm application correctly?
Title: Re: Share This Topic
Post by: dsanchez on May 18, 2010, 03:52:26 AM
thank you

actually I forgot to do step 5) 5. Enter your site url with an ending slash in Connect URL and click on Save Changes (for example: http://mysitedomainname.com/)

but I already did that and still not "I like" button.

I attached the index.template.php

thanks again!
Title: Re: Share This Topic
Post by: mirahalo on May 18, 2010, 09:29:20 AM
try this one, dont forget to put your facebook app ID on the mod settings
Title: Re: Share This Topic
Post by: fatherbob on May 21, 2010, 12:24:53 AM
I too am having some problems getting the I LIKE to show up.  I have attached my index.template.php  I believe I set up the application okay and have made sure the "share this topic" parameters are correct.

Thanks in advance.

FB
Title: Re: Share This Topic
Post by: mirahalo on May 21, 2010, 12:30:14 PM
Quote from: fatherbob on May 21, 2010, 12:24:53 AM
I too am having some problems getting the I LIKE to show up.  I have attached my index.template.php  I believe I set up the application okay and have made sure the "share this topic" parameters are correct.

Thanks in advance.

FB


I also need your display.template.php from the theme your 're currently using ;)  please attach it here too.
Title: Re: Share This Topic
Post by: fatherbob on May 21, 2010, 06:00:17 PM
Hi 130860

My theme (Addagio_115) doesn't have a display.template.php, but here is the one from the default theme directory.

Thanks again.

FB
Title: Re: Share This Topic
Post by: mirahalo on May 21, 2010, 06:15:37 PM
alright, the display looks ok, just replace the index.template.php with this file and enjoy ;)
Title: Re: Share This Topic
Post by: fatherbob on May 21, 2010, 06:23:59 PM
Thank you very much.  It started working immediately.   ;D

FB

Title: ICONS?
Post by: Heartlander on May 24, 2010, 06:15:57 PM
I can see that there are icons installed in the proper theme image folder- but no icons appear above the posts- only words.

Any help is appreciated.
http://keyboardsoup.com/forum/smf/index.php
Title: Re: Share This Topic
Post by: rocknroller on May 24, 2010, 07:45:45 PM
Greetings!
looks like great mod! Is there any chance to install this mod 2.0 RC 2?
Automatic installation not works with the mentioned version.
Title: Re: Share This Topic
Post by: rd on May 24, 2010, 09:12:52 PM
I think the emulate should work...
Title: Re: Share This Topic
Post by: mirahalo on May 25, 2010, 09:58:47 AM
Quote from: Royalduke on May 24, 2010, 09:12:52 PM
I think the emulate should work...

true,  just try emulate version 2.0 RC2,  it should work ;)
Title: Re: Share This Topic
Post by: rocknroller on May 25, 2010, 02:33:30 PM
Quote from: 130860 on May 25, 2010, 09:58:47 AM
Quote from: Royalduke on May 24, 2010, 09:12:52 PM
I think the emulate should work...

true,  just try emulate version 2.0 RC2,  it should work ;)

I was install manualy, but facing some errors in the error log.


Undefined index: share_likebutton_with
Display.template.php

in this line :

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

Do you have any idea? what is problem?
Title: Re: Share This Topic
Post by: mirahalo on May 25, 2010, 02:38:51 PM
what language are you using?   make sure you have this

$txt['share_default_menu'] = 'Share This Topic';
$txt['share_default_menu_desc'] = 'Use this panel to confirm which social networking services you\'d like to be able to share forum topics with.';
$txt['share_default_tooltip'] = 'Share this topic on %s';
$txt['share_ask'] = 'Ask';
$txt['share_blinkbits'] = 'Blinkbits';
$txt['share_blinklist'] = 'Blinklist';
$txt['share_bloglines'] = 'Bloglines';
$txt['share_bmarks'] = 'Bmarks';
$txt['share_dzone'] = 'Dzone';
$txt['share_feedmelinks'] = 'Feed Me Links';
$txt['share_furl'] = 'Furl';
$txt['share_live'] = 'Live';
$txt['share_netvouz'] = 'Netvouz';
$txt['share_newsvine'] = 'Newsvine';
$txt['share_oneview'] = 'Oneview';
$txt['share_rojo'] = 'Rojo';
$txt['share_scuttle'] = 'Scuttle';
$txt['share_shadows'] = 'Shadows';
$txt['share_slashdot'] = 'Slashdot';
$txt['share_spurl'] = 'Spurl';
$txt['share_squidoo'] = 'Squidoo';
$txt['share_tipd'] = 'Tipd';
$txt['share_gbuzz'] = 'Google buzz';
$txt['share_facebook'] = 'Facebook';
$txt['share_myspace'] = 'MySpace';
$txt['share_delicious'] = 'Del.icio.us';
$txt['share_digg'] = 'Digg';
$txt['share_reddit'] = 'Reddit';
$txt['share_stumbleupon'] = 'StumbleUpon';
$txt['share_twitter'] = 'Twitter';
$txt['share_technorati'] = 'Technorati';
$txt['share_magnolia'] = 'Magnolia';
$txt['share_google'] = 'Google';
$txt['share_yahoo'] = 'Yahoo';
$txt['share_likebutton_enable'] = 'Enable the Facebook Like Button.';
$txt['share_likebutton_appid'] = 'The application ID of your Facebook application.';
$txt['share_likebutton_image'] = '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.';

$txt['share_likebutton_with'] = 'Facebook Like Button with. example: 200px';


on your /Themes/default/languages/Modifications.yourlanguage.php

and this:   on your /Themes/default/languages/Help.yourlanguage.php file:


// share this topic FB like button start
$helptxt['share_likebutton_enable'] = 'Check this box to allow your users to use the FaceBook Like button.';
$helptxt['share_likebutton_appid'] = 'to create a new application follow this steps:<br />
Go to: http://www.facebook.com/developers
2. Click on the + Set Up New Application button (at the top right of the page) <br/>
3. Type your Application Name (example: Mysite-Name Likes) > select Agree > click on Create Application<br/>
4. Go to the Connect tab (on the left tabs-list)<br/>
5. Enter your site url with an ending slash in Connect URL and click on Save Changes (for example: http://mysitedomainname.com/)<br/>
6. You will see your Application ID number (below your app API & Secret)<br/>
7. It will take between 2 to 20 minutes until it will be ready to use with.<br/>';
$helptxt['share_likebutton_image'] = '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. this is the image that will be show when your users share content of your forum.';
$helptxt['share_likebutton_with'] = 'Facebook Like Button with, the Height is automatically set depending on the number of users.';
// Share this topic FB like button end



Title: Re: Share This Topic
Post by: rocknroller on May 25, 2010, 03:44:58 PM
translate is ok. using croatian-utf8.

when someone go in any topic, error show up. In that display.template that code

for replace is not same in my display.template
<div class="inner" id="msg_', $message['id'], '"', '>', $message['body'], '</div>
</div>';


Maybe is my fault, If you have some time to look. I will attach my display.template.

Or maybe you have any other idea. thank you for help.
Title: Re: ICONS?
Post by: Suki on May 25, 2010, 04:07:47 PM
Quote from: Heartlander on May 24, 2010, 06:15:57 PM
I can see that there are icons installed in the proper theme image folder- but no icons appear above the posts- only words.

Any help is appreciated.
http://keyboardsoup.com/forum/smf/index.php

downlad the mod, unzipped  and upload the share folder to   /smf/Themes/HeadlineRC3/images/
Title: Re: Share This Topic
Post by: MATTEK on May 25, 2010, 08:30:04 PM
Will this mod conflict with the FB/Twitter Publisher mod?
Title: Re: Share This Topic
Post by: mirahalo on May 26, 2010, 09:28:39 AM
Quote from: rocknroller on May 25, 2010, 03:44:58 PM
translate is ok. using croatian-utf8.

when someone go in any topic, error show up. In that display.template that code

for replace is not same in my display.template
<div class="inner" id="msg_', $message['id'], '"', '>', $message['body'], '</div>
</div>';


Maybe is my fault, If you have some time to look. I will attach my display.template.

Or maybe you have any other idea. thank you for help.


please attach your theme's display.template and index.template.php ;) if your theme doesn't have those files attach the ones from default theme.


Quote from: MATTEK on May 25, 2010, 08:30:04 PM
Will this mod conflict with the FB/Twitter Publisher mod?


no AFAIK,  both mods modifies different files ;)


Title: Re: Share This Topic
Post by: rocknroller on May 26, 2010, 10:21:48 AM
this is not modified files from backup before i was install mod.
tnx

both files are inside core teme follder.
Title: Re: Share This Topic
Post by: mirahalo on May 26, 2010, 10:58:02 AM
try this two, and don't forget to check ./Sources/Admin.php and  ./Sources/ManageSettings.php  too ;)
Title: Re: Share This Topic
Post by: rocknroller on May 26, 2010, 01:17:09 PM
same problem, error is in the same line, admin.php and manage.settings.php are modified without problem.

EDIT:

I think the problem was because I do not wrote anything in the field "width"  in ACP for "facebook like button."

Title: Re: Share This Topic
Post by: mirahalo on May 26, 2010, 01:49:10 PM
oh yeah.... now that I remember the mod doesn't check if its full or empty, my mistake,    thanks for reported it :D  I will check on that and release a new version.
Title: Re: Share This Topic
Post by: rocknroller on May 26, 2010, 04:21:53 PM
thank you for this mod,  :D

I wish you much luck and success.
Title: Re: Share This Topic
Post by: booch_21 on May 30, 2010, 11:30:00 PM
Just installed this mod on an RC3 site.  I am getting oodles of error messages that I'm not sure where to start looking:

http://www.happyhackerbbs.com/index.php?
8: Undefined index: share_likebutton_image
File: /home/happyhac/public_html/Themes/default/PortalArticles.template.php (html_above sub template - eval?)
Line: 170

Thanks for the help!
Title: Re: Share This Topic
Post by: mirahalo on May 30, 2010, 11:36:44 PM
its probably the same error as this:

Quote from: 130860 on May 26, 2010, 01:49:10 PM
oh yeah.... now that I remember the mod doesn't check if its full or empty, my mistake,    thanks for reported it :D  I will check on that and release a new version.

since you dont put anything in "The URL of the best picture for this page. "   you got that error, my mistake, I should always check first is the setting is full before display it.

I didn't have time today to do this, hopefully tomorrow I will release an other version of the mod with the errors fixed, sorry for the inconveniences  and thanks for using the mod ;)
Title: Re: Share This Topic
Post by: khadhafi on May 31, 2010, 11:30:10 AM
OMG....
THANKS for this mods and i like the "FB Like Button"
Title: Re: Share This Topic
Post by: - danny on May 31, 2010, 04:26:21 PM
nice mod.

i uploaded via the package manager, had to add the images folder to the custom theme, and manually change the index.template.php file, but one of the required edits was:

Find
</head>
<body>';


Add After:

// share this topic facebook like buttom start
if (!empty($modSettings['share_likebutton_enable']))
    {
echo '<div id="fb-root"></div>
<script>
  window.fbAsyncInit = function() {
    FB.init({appId: \'', $modSettings['share_likebutton_appid'] ,'\', status: true, cookie: true,
             xfbml: true});
  };
  (function() {
    var e = document.createElement(\'script\'); e.async = true;
    e.src = document.location.protocol +
      \'//connect.facebook.net/en_US/all.js\';
    document.getElementById(\'fb-root\').appendChild(e);
  }());
</script>';
}
// share this topic facebook like buttom end


...but i don't have
</head>
<body>';

in the custom theme. so i looked and added it after this instead:

</head>
<body>

<div class="wrapper">
<div id="hdr-l">
<div id="hdr-r">
<div id="header">
<div id="time">', $context['current_time'],'</div>
<div id="searcharea">';
echo '
<form action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '">
<input type="text" name="search" value="', $txt[182], '..." onfocus="this.value = \'\';" onblur="if(this.value==\'\') this.value=\'', $txt[182], '...\';" /> ';

// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="', $context['current_topic'], '" />';

// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';

echo '
</form>
</div>
<a href="'.$scripturl.'" title=""><span id="logo">&nbsp;</span></a>
</div>
<div id="toolbar">
<div id="nav">
<div style="float: right; padding: 2px 15px 0 0">';


...of course, this may be wrong, and if you look at the attached, the like button seems to push the subject all the way to the left.

i'm also getting an error in the admin section:

Quote8: Undefined index: share_likebutton_image
File: /home/xxxxxx/public_html/Themes/customtheme/index.template.php
Line: 148

any ideas? all help appreciated.
Title: Re: Share This Topic
Post by: mirahalo on May 31, 2010, 04:36:19 PM
Quotein the custom theme. so i looked and added it after this instead:

thats ok too, as long as the faceboook code is inside <body> and </body> tags it will work.

Quote...of course, this may be wrong, and if you look at the attached, the like button seems to push the subject all the way to the left.

you have the tilte dosplayed two times, I dont know if this comes with the theme of is a custom code change,   will you attach your theme's display.template.php  to adjust that and tell me where exactly do you want the like butotn to appear, before or after the title

Quotei'm also getting an error in the admin section:


thats a silly mistake of mine, sorry, will fix that later today ;)

Title: Re: Share This Topic
Post by: - danny on May 31, 2010, 04:49:23 PM
130860, is that normal then? i don't have a custom display.template.php file. it's based off the default theme. o.O

i tend to always add the title of the thread inside the thread itself, which may explain why you see it listed twice. however, i would prefer the like button above the quote|modify|remove buttons.

any chance of that happening?
Title: Re: Share This Topic
Post by: mirahalo on May 31, 2010, 04:57:45 PM
yes thats possible however I still need your file to do that ;)
Title: Re: Share This Topic
Post by: - danny on May 31, 2010, 05:03:53 PM
ok. cool.

see attached.

also, as part of the steps to get the facebook application id, it looks like there's an option that says submit on facebook's site (see attached), but i don't see you reference it. is this something we should be doing as well?
Title: Re: Share This Topic
Post by: mirahalo on May 31, 2010, 05:27:43 PM
please use this, it probably still need some changes so could you enable the button so I can see it on your forum and make the changes easily.

also, clean your error log, then upload this file and tell me if the error still appears

Quote8: Undefined index: share_likebutton_image
File: /home/xxxxxx/public_html/Themes/customtheme/index.template.php
Line: 148


Quote from: ~aLEX on May 31, 2010, 05:03:53 PM


also, as part of the steps to get the facebook application id, it looks like there's an option that says submit on facebook's site (see attached), but i don't see you reference it. is this something we should be doing as well?

nope, thats completely optional and wll not affect your forum or your button
Title: Re: Share This Topic
Post by: - danny on May 31, 2010, 05:32:31 PM
sounds good. here's what i did...

cleaned the error log, uploaded and replaced file, checked topics, but got error instead:


Parse error: syntax error, unexpected '?', expecting ')' in /home/xxxxxx/public_html/Themes/default/Display.template.php on line 493
Title: Re: Share This Topic
Post by: mirahalo on May 31, 2010, 05:51:21 PM
alright, lets try this one,  if keeps getting error, I will install a 1.1.11 on local to test out properly.
Title: Re: Share This Topic
Post by: - danny on May 31, 2010, 10:02:18 PM
hey 130860, tried the last attachment, but got:

Parse error: syntax error, unexpected '!', expecting ',' or ';' in /home/xxxxxx/public_html/Themes/default/Display.template.php  on line 497

there's something else too though, when i click on the like button, i get an error stating:

QuoteThe page at http://www.(URL).com/index.php?topic=110.0 could not be reached.

did i miss something? i am logged into facebook, but, i don't get it. o.O
Title: Re: Share This Topic
Post by: mirahalo on June 01, 2010, 11:07:53 AM
alright, after testing properly I finally hit it :P



try this one


Quotedid i miss something? i am logged into facebook, but, i don't get it. o.O

its facebook,  somtimes it gets too busy and show that error,  normally after a few hours or maybe a day it gets back to normal, the same thing happen with the comments, sometimes the comment box doesn't show but its all facebook fault :P
Title: Re: Share This Topic
Post by: mirahalo on June 01, 2010, 12:17:37 PM
new version:

Changelog

1.6
-Fixed some errors on 1.1.x install.

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



please uninstall the old version and install the new one to update ;)
Title: Re: Share This Topic
Post by: - danny on June 01, 2010, 01:13:54 PM
130860,

now that you've updated the mod...

1. should i use the display template you attached?
2. should i also update the mod via package manager and make any manual changes needed?
3. if yes to both of the above, in which order?

thanks!
Title: Re: Share This Topic
Post by: mirahalo on June 01, 2010, 01:28:15 PM
hi,   yes, please use the one I attached.


the easies way to go will be that you attach your index.template.php file and I make the changes in that file, since the file I attached already contains the necessary fix, I just need your index.template.php to make the changes on that file too
Title: Re: Share This Topic
Post by: - danny on June 01, 2010, 04:02:19 PM
sweet.  ;D

see attached.
Title: Re: Share This Topic
Post by: - danny on June 01, 2010, 04:04:07 PM
also, still getting that error from facebook.

i noticed it was posted on another thread as well, could it be that facebook changed something? none of my members have been able to "like" anything since i installed, and it's been 24 hours...
Title: Re: Share This Topic
Post by: mirahalo on June 01, 2010, 04:18:44 PM
use this one.


Quote from: ~aLEX on June 01, 2010, 04:04:07 PM
also, still getting that error from facebook.

i noticed it was posted on another thread as well, could it be that facebook changed something? none of my members have been able to "like" anything since i installed, and it's been 24 hours...


did you put your facebook  application ID on the correct field?
did you put your url  on the Connect URL in the app settings?
Title: Re: Share This Topic
Post by: - danny on June 01, 2010, 06:01:21 PM
yes and yes.
Title: Re: Share This Topic
Post by: mirahalo on June 01, 2010, 06:08:22 PM
even my demo site is having problems, it seems facebook has been specially slow this day, give it a try tomorrow ;)
Title: Re: Share This Topic
Post by: - danny on June 01, 2010, 09:43:46 PM
cool. i uploaded the index template you provided.

i also uploaded the display template you helped me with, but the facebook button squished the subject far to the left, so i resorted back to the original display template.  are there any specific edits i should make to it, so that i am up to date, or did you update it to work with your current version version?

p.s.
the like button seems to be working now. :D
Title: Re: Share This Topic
Post by: - danny on June 01, 2010, 10:01:58 PM
oh, one more thing...

i keep getting this error:
8: Undefined index: share_likebutton_with
File: /home/xxxxxx/public_html/Themes/default/Display.template.php
Line: 538


possibly related?
Title: Re: Share This Topic
Post by: mirahalo on June 01, 2010, 10:05:01 PM
yes, but I   fixed this on the last attachment I upload...


will you please  attache the current display.template.php you're using so I can re-check that ;)
Title: Re: Share This Topic
Post by: - danny on June 01, 2010, 10:11:21 PM
i'm sorry.  :-X

here's the current display template.
Title: Re: Share This Topic
Post by: mirahalo on June 02, 2010, 09:27:04 AM
thast ok ;)  try this one
Title: Re: Share This Topic
Post by: coolfx350 on June 02, 2010, 09:38:47 AM
Is there any way to change the font color of the "You like this."??  because my forum has a dark background, and the background make the text really hard to read.

thanks for the great mod.
Title: Re: Share This Topic
Post by: mirahalo on June 02, 2010, 10:14:14 AM
currently no, but you can change the background color of the div:

put this on your style.css(1.1.11)  or index.css(2.0)

#fblike{
background-color:#fff;

}


and change the color as you like    or theres a dark color scheme, if you like to use find this on your display.template.php

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

and add this:

colorscheme="dark"


you will get somthing like this:

<fb:like href="', urlencode($page_url) ,'"  width="', !empty($modSettings['share_likebutton_width']) ? $modSettings['share_likebutton_width'] : '', '"   colorscheme="dark" ></fb:like>
Title: Re: Share This Topic
Post by: coolfx350 on June 02, 2010, 10:31:27 AM
Yes, I tried both the dark and light colorscheme, and got pretty bad results, i just don't understand why facebook expect all websites to be light background color, probably super easy for them to implement font color change features.

Regardless, I am going to try out the div background as suggested.

thank you! keep up the good work.
Title: Re: Share This Topic
Post by: mirahalo on June 02, 2010, 10:37:12 AM
yes, many people have complaint about it,  theres no documentation on this, their forums are full of unanswered questions and angry developers :P
Title: Re: Share This Topic
Post by: coolfx350 on June 02, 2010, 10:37:40 AM
do you know any other place I can download these social bookmarking icons? the ones in the mods don't look too good on my forum because of my black background.  Even though they are already transparent.

Title: Re: Share This Topic
Post by: mirahalo on June 02, 2010, 10:51:14 AM
yes, Arantor suggest this:

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/
Title: Re: Share This Topic
Post by: Liam. on June 02, 2010, 10:52:30 AM
Quote from: petecheng on June 02, 2010, 10:37:40 AM
do you know any other place I can download these social bookmarking icons? the ones in the mods don't look too good on my forum because of my black background.  Even though they are already transparent.

Plenty of places.
http://lmgtfy.com/?q=social+bookmark+icons
Title: Re: Share This Topic
Post by: coolfx350 on June 02, 2010, 04:58:26 PM
I found another issue.

when i am logged into facebook, I am able to "Like" just fine, but if i am logout of facebook, when I tried to "Like" I get a facebook popup saying "Error"

Should it be facebook login window instead?

thanks
Title: Re: Share This Topic
Post by: - danny on June 02, 2010, 05:25:09 PM
i've noticed that error too.

i'm not too sure the mod creator has much control over what the window says though; the error page appears to come directly from facebook.

however, i may be wrong, and if that's the case and there is a fix, i would love to know. :D
Title: Re: Share This Topic
Post by: coolfx350 on June 02, 2010, 05:57:17 PM
I think it has something to do with application key.  I have created my own "Like" function on the same website directly from facebook without application key, and it works fine.
Title: Re: Share This Topic
Post by: mike s on June 02, 2010, 06:26:37 PM
I just installed and after enbabling guests (booo but I understand why), it seems to work great.

I have a fan page set up.. my wish would be for the shared posts to be uploaded to the fan page instead of my personal facebook page.. is that possible at all? just a thought.

Keep up the great work and thanks!

regards, Mike.
Title: Re: Share This Topic
Post by: coolfx350 on June 02, 2010, 08:24:52 PM
I think I found out what the problem is, it's the Pretty URL mod.  When I view source, the pretty url isn't showing. 
Title: Re: Share This Topic
Post by: mirahalo on June 02, 2010, 09:01:43 PM
Quote from: petecheng on June 02, 2010, 04:58:26 PM
I found another issue.

when i am logged into facebook, I am able to "Like" just fine, but if i am logout of facebook, when I tried to "Like" I get a facebook popup saying "Error"

Should it be facebook login window instead?

thanks

you must be logged in facebook in order to use the like button,  when you log in check the box (Keep me logged in)   so even if your not in facebook, the cookie is still there and the like button will work.



Quote from: petecheng on June 02, 2010, 05:57:17 PM
I think it has something to do with application key.  I have created my own "Like" function on the same website directly from facebook without application key, and it works fine.

the application key isn't necessary if you only want to use the like thing, however, if you want to use the comment feature you must specify an app key.


Quote from: mike s on June 02, 2010, 06:26:37 PM
I just installed and after enbabling guests (booo but I understand why), it seems to work great.

I have a fan page set up.. my wish would be for the shared posts to be uploaded to the fan page instead of my personal facebook page.. is that possible at all? just a thought.

Keep up the great work and thanks!

regards, Mike.


sorry, the like button is personal, only your account can "like" things.



Quote from: petecheng on June 02, 2010, 08:24:52 PM
I think I found out what the problem is, it's the Pretty URL mod.  When I view source, the pretty url isn't showing. 

this mod and pretty urls are not compatible, however, this mods works great with simpleSEF ;)
Title: Re: Share This Topic
Post by: mike s on June 02, 2010, 09:38:00 PM
Quote from: mike s on June 02, 2010, 06:26:37 PM
I just installed and after enbabling guests (booo but I understand why), it seems to work great.

I have a fan page set up.. my wish would be for the shared posts to be uploaded to the fan page instead of my personal facebook page.. is that possible at all? just a thought.

Keep up the great work and thanks!

regards, Mike.



sorry, the like button is personal, only your account can "like" things.





I meant the Facebook Share button, but I suspect the answer is the same. thx.
Title: Re: Share This Topic
Post by: - danny on June 02, 2010, 09:58:55 PM
hey 130860,

just wanted to say thanks. :D

keep up the awesome work!
Title: Re: Share This Topic
Post by: coolfx350 on June 03, 2010, 09:11:10 AM
Quotethis mod and pretty urls are not compatible, however, this mods works great with simpleSEF ;)

I think Pretty Url is much more popular than the simpleSEF, any chance we can make this mod work with Pretty URL?

or am I asking for the impossible?
Title: Re: Share This Topic
Post by: mirahalo on June 03, 2010, 09:31:30 AM
Quote from: petecheng on June 03, 2010, 09:11:10 AM
Quotethis mod and pretty urls are not compatible, however, this mods works great with simpleSEF ;)

I think Pretty Url is much more popular than the simpleSEF, any chance we can make this mod work with Pretty URL?

or am I asking for the impossible?

I'm afraid so, theres too much changes and the mod will become huge on install, I rather prefer to keep it simple and easy to use ;)


sorry.
Title: Re: Share This Topic
Post by: bialk on June 04, 2010, 07:40:19 AM
I've installed the Share This Topic mod v1.5 and the Like button worked fine with Prettyurls for more than a month. But yesterday is stops :( It says: "Error, no such link!"
Title: Re: Share This Topic
Post by: mirahalo on June 04, 2010, 10:19:12 AM
Quote from: bialk on June 04, 2010, 07:40:19 AM
I've installed the Share This Topic mod v1.5 and the Like button worked fine with Prettyurls for more than a month. But yesterday is stops :( It says: "Error, no such link!"

can I have a link with an example of the error?

have you put the facebook app Id correcty?
did you create the faceboook app correctly?

the mod do works with pretty urls, it just no gonna show the pertty urls when you share something or like something, it will show the default url, not the pretty one ;)
Title: Re: Share This Topic
Post by: ukhalik2 on June 05, 2010, 03:55:56 AM
hi, I just installed this mod, worked perfectly..
I created a fb application id as you mentioned in the guide..
I can fill these forms, but i cant understand why to fill them, what they are for?
because mod working without filling these forms and fb like button is working (only filled FB Like application id field) :|
(http://a.imagehost.org/0459/asdfdsafasdfasdfasdfas.jpg)
why i have to fill these fields?
what to fill in the last two fields?
please reply me, i am so curious about it.
Title: Re: Share This Topic
Post by: ukhalik2 on June 05, 2010, 04:50:26 AM
another question!
Can i move like button in center ?
(http://h.imagehost.org/0192/asdfsdfsadfsdaf.jpg)
Title: Re: Share This Topic
Post by: bialk on June 05, 2010, 05:48:23 AM
Quote from: 130860 on June 04, 2010, 10:19:12 AM
Quote from: bialk on June 04, 2010, 07:40:19 AM
I've installed the Share This Topic mod v1.5 and the Like button worked fine with Prettyurls for more than a month. But yesterday is stops :( It says: "Error, no such link!"

can I have a link with an example of the error?

have you put the facebook app Id correcty?
did you create the faceboook app correctly?


Today it works again - http://kornitsa.com/forum/o-aeee/3d-k-a-aat-tmeoto-tt-kto/

Quote
the mod do works with pretty urls, it just no gonna show the pertty urls when you share something or like something, it will show the default url, not the pretty one ;)

Not exactly! It shows the pretty one  ;)

http://www.facebook.com/profile.php?id=100000811891412
Title: Re: Share This Topic
Post by: mirahalo on June 05, 2010, 08:01:04 PM
@ukhalik2

the field "Url of the Best picture of this page"    is optional,   if you put a URL of an image, for example this one:

(http://oharascans.com/oharateam.gif)

when users share content, that image will appear in the message:

(http://img201.imageshack.us/img201/3518/examplej.jpg)


the other field is for the with of the button, for default is 200PX but you could change that to fill your needs.

QuoteCan i move like button in center ?


yes, in your display.template.php find this:

<div id="fblike" style="float:right; padding:2px;">


and change the style="float:right;  for style="float:left;


or just put in the width field:  500PX so your button will take all the space.


@bialk   thanks, I didn't know that, the last time I check this mod with pretty URLs it didn't work, good to hear  ;)  and yes, because this mod entirely relies on facebook servers, if they server is down or slow, the mod will possible not work as intended.
Title: Re: Share This Topic
Post by: - danny on June 06, 2010, 12:19:36 AM
130860, is it necessary to set the width, if you've already created an image that's 50x50?
Title: Re: Share This Topic
Post by: - danny on June 06, 2010, 12:22:41 AM
also, the image i created doesn't show up on fb, just the title of the link.

any clue?
Title: Re: Share This Topic
Post by: - danny on June 06, 2010, 04:15:41 PM
130860, looks like it's not necessary to change the width of the 50x50 image. just checked out my fb profile and the image seems to work perfectly!

thanks again. :D
Title: Re: Share This Topic
Post by: mirahalo on June 06, 2010, 05:29:20 PM
no is not necessary,  but the image  must be at least 50 x 50  it can be lower than that according to facebook, but as you can see the image I currently use is 88 x 31 and works so is a question of trying ;)
Title: Re: Share This Topic
Post by: Reaven87 on June 07, 2010, 08:00:13 AM
Hi everyone! I've just installed the package but nothing appears on the top of the first topic!
I've enabled the MOD from the feature panel, and I've also created a facebook app (with ID etc.) but nothing changes! What should I do? My theme is the Classic YaBB SE Theme!

Thanks!
Title: Re: Share This Topic
Post by: mirahalo on June 07, 2010, 10:06:25 AM
please attach  your index.template and your display.template.php of the theme you're currently using
Title: Re: Share This Topic
Post by: Reaven87 on June 07, 2010, 10:12:54 AM
ok. If you need something else please ask!

btw, this is my brand new forum !!!

http://www.businessforum.herobo.com



Sry for the double attachment....the files are the same!
Title: Re: Share This Topic
Post by: mirahalo on June 07, 2010, 10:49:53 AM
alright, try this two
Title: Re: Share This Topic
Post by: Reaven87 on June 07, 2010, 11:03:18 AM
Thanks! Now it works properly!

But there is still a little problem with the icons of twitter etc...look at the image!
Title: Re: Share This Topic
Post by: mirahalo on June 07, 2010, 11:05:53 AM
oh! I forgot, please upload the share folder  to  your ./Themes/yourtheme/images   folder ;)
Title: Re: Share This Topic
Post by: Reaven87 on June 07, 2010, 11:26:18 AM
I've uploaded the share folder as you said but...it still doesn't work!
Title: Re: Share This Topic
Post by: mirahalo on June 07, 2010, 11:28:55 AM
ca I have a link to your forum please?

www.businessforum.herobo.com   this trow me an 000webhosting under review message
Title: Re: Share This Topic
Post by: Reaven87 on June 07, 2010, 11:33:43 AM
that's wierd....it works fine for me! (and friends)

http://www.businessforum.herobo.com/index.php


Maybe because I've changed the time zone?....
Title: Re: Share This Topic
Post by: Reaven87 on June 07, 2010, 11:41:53 AM
yeah it's working!

I've simply logged of and on one more time!!!!

Thanks for all!
Title: Re: Share This Topic
Post by: mirahalo on June 07, 2010, 11:45:35 AM
glad you like the mod ;)
Title: Re: Share This Topic
Post by: pvignola on June 08, 2010, 02:54:47 PM
Simply awesome.  I love the addition of the FB Like button.
Title: Re: Share This Topic
Post by: Reaven87 on June 10, 2010, 08:41:34 AM
Don't know why...but instead of the name of the discussion in Facebook appear:


UsersX Like LOGIN into Business Forum Italia

Why it writes "login"?
Title: Re: Share This Topic
Post by: mirahalo on June 10, 2010, 09:48:53 AM
can you attach you index.template.php file to check?


oh, I know why,  the mod takes the forum name and the page name:

<meta property="og:title" content="', $context['page_title'], '"/>
<meta property="og:site_name" content="', $context['forum_name'], '"/>

so, the "Business Forum Italia"   is your forum name  and the Login  is the name of the page, I asume the guest cannot see your forum, facebook is a "guest" to your forum too so it only shows what it can see, in this case facebook only see the login page
Title: Re: Share This Topic
Post by: Reaven87 on June 10, 2010, 09:52:55 AM
but it worked few days ago! What should I do? Kind of...register FaceBook!?!?


How stupid I am.....I toggle the permission for guests yesterday night!!!!!!!

Thanks anyway, now it works  O:)
Title: Re: Share This Topic
Post by: mirahalo on June 10, 2010, 09:55:59 AM
did you forum allowed guest a few days ago?

for the mod to work you ust alow guest browsing your forum otherwise it wont work,  it pointless not to show post to guest and at the same thing share content in facebook,  if people click on a link to your forum in facebook all they will see will be you login page ;)
Title: Re: Share This Topic
Post by: crustybum on June 10, 2010, 11:58:34 AM
I have this working on a default theme brilliantly! but i have another forum with the classic yabb one, anyone do the alterations?....please?
Title: Re: Share This Topic
Post by: mirahalo on June 10, 2010, 12:08:01 PM
of course, attach your index.template and display.template.php of that theme.
Title: Re: Share This Topic
Post by: crustybum on June 10, 2010, 12:45:02 PM
Your a diamond!


Chris
Title: Re: Share This Topic
Post by: mirahalo on June 10, 2010, 01:03:02 PM
alright, try this two
Title: Re: Share This Topic
Post by: crustybum on June 11, 2010, 04:40:35 AM
What about the display? or do i not need that?

Chris
Title: Re: Share This Topic
Post by: mirahalo on June 11, 2010, 12:17:05 PM
ups!  I sware i uploaded both...

ok, heres the other one
Title: Re: Share This Topic
Post by: crustybum on June 11, 2010, 01:16:18 PM
Thanks, i will have a go at that later, do i do it now in this order?
1. make application in facebook
2. upload mod
3. upload new index and display

?

Chris
Title: Re: Share This Topic
Post by: mirahalo on June 11, 2010, 01:21:27 PM
yes, first, make the app, once you have your app ID

install the mod, the mod will be installed on your default theme, ones you got installed with no errors, upload the two files I gave you,   then go to the mods settings and put the app ID where belongs and if you like fill the other settings but thats just optional.
Title: Re: Share This Topic
Post by: MATTEK on June 13, 2010, 03:58:51 PM
Finally got this working. Great mod.  ;D

Is there a way to change the image it displays? I'd like something other than just the f icon.


Also - The Like button it displays in the first post is pushing images to the left. Is there a way to avoid this?
Title: Re: Share This Topic
Post by: crustybum on June 14, 2010, 07:12:40 AM
woo hoo! many thanks, finally got it working on yabb...just a slight problem is that at the top of the thread i dont get the little logos of twitter, digg, etc etc....just the words.. :-\
Title: Re: Share This Topic
Post by: Afro on June 14, 2010, 08:42:52 AM
@crustybum ,
You need to edit the display template.php of the theme you are using.
You can send it here for us to edit for you.
Title: Re: Share This Topic
Post by: crustybum on June 14, 2010, 08:55:48 AM
Hi Afro, its the one 4 posts up ;D
Title: Re: Share This Topic
Post by: Suki on June 14, 2010, 09:28:01 AM
no you just have to upload the share folder to your themes image folder                                                            and no currently facebook control the look so you cannot change the icon                                                     for the images problem just set a large width in the settings
Title: Re: Share This Topic
Post by: MATTEK on June 16, 2010, 02:23:25 AM
Quote from: MATTEK on June 13, 2010, 03:58:51 PM
Finally got this working. Great mod.  ;D

Is there a way to change the image it displays? I'd like something other than just the f icon.


Also - The Like button it displays in the first post is pushing images to the left. Is there a way to avoid this?

Hey guys still looking for a little help with this. I'f managed to work around it by skipping 5 spaces at the beginning of each topic, but that's a little bit of a drag. Thanks in advance! :)
Title: Re: Share This Topic
Post by: Suki on June 16, 2010, 10:40:29 AM
as I say on my previous answer,  on the mods settings you can set the width of the button set a large width 
Title: Re: Share This Topic
Post by: MATTEK on June 16, 2010, 12:38:28 PM
Quote from: Suki on June 16, 2010, 10:40:29 AM
as I say on my previous answer,  on the mods settings you can set the width of the button set a large width

The larger the width the more it pushes the image over, though.

EDIT : nevermind. Solved. Thank you!
Title: Re: Share This Topic
Post by: Suki on June 17, 2010, 10:18:56 AM
the button is to the left intentionaly but you can use the parser to put a margin auto to the div    i guest we have to put an option for that  we currently are havin problems 130860 doesnt have internet access at the moment and I cannot change the package :(  sorry
Title: Re: Share This Topic
Post by: MATTEK on June 17, 2010, 04:01:25 PM
One thing I did notice is that if you widen the Like button it can sometimes go way off screen depending on the users display resolution.

1024x768 doesn't work well with 800 or even 750px for the like button.
Title: Re: Share This Topic
Post by: Suki on June 17, 2010, 05:28:43 PM
like i say is to the left on purpose  just change the left align to center on the like button div
Title: Re: Share This Topic
Post by: MATTEK on June 17, 2010, 05:31:05 PM
Quote from: Suki on June 17, 2010, 05:28:43 PM
like i say is to the left on purpose  just change the left align to center on the like button div

I'm not sure what you mean. But by default it's aligned to the right.



Title: Re: Share This Topic
Post by: MATTEK on June 17, 2010, 05:33:07 PM
<div class="inner" id="msg_', $message['id'], '"', '>';

if ($message['counter'] == 0)
                 {
echo '<div id="fblike" style="float:right; padding:2px;">
<fb:like href="', urlencode($page_url) ,'"  width="', !empty($modSettings['share_likebutton_width']) ? $modSettings['share_likebutton_width'] : '', '"></fb:like>
             </div>';
} echo '
', $message['body'], '</div>
</div>';


Should I change that to float left?
Title: Re: Share This Topic
Post by: Suki on June 17, 2010, 08:55:17 PM
yeah my mistake, please change the float to left
Title: Re: Share This Topic
Post by: MATTEK on June 17, 2010, 10:08:28 PM
I'll try that as soon as I get home. Thanks.
Title: Re: Share This Topic
Post by: zzzronzzz on June 20, 2010, 08:20:11 PM
hi.. would it be possible if you add permissions for the like button ? for example .. the like button will only show up for topics open for guests and not show up for topics or boards  only for registered members ..
Title: Re: Share This Topic
Post by: GarfieldP on June 20, 2010, 08:21:49 PM
Thanks! this is a great mod
Title: Re: Share This Topic
Post by: MATTEK on June 20, 2010, 08:47:48 PM
Quote from: Suki on June 17, 2010, 08:55:17 PM
yeah my mistake, please change the float to left
Thanks dude. That worked perfectly.  ;D
Title: Re: Share This Topic
Post by: Suki on June 21, 2010, 10:15:46 AM
glad i can help

we will add some more options to display both the icons and the like button ;)
Title: Re: Share This Topic
Post by: mcfurkan on June 22, 2010, 03:37:18 AM
why I'm getting this error?
when I click the error to the site could not be reached writes.
Title: Re: Share This Topic
Post by: mirahalo on June 22, 2010, 07:37:13 PM
as I explained a few times already


this is facebook's servers faul, not this mod,  please wait a day and it will work again
Title: Re: Share This Topic
Post by: mcfurkan on June 23, 2010, 02:03:44 AM
Quote from: 130860 on June 22, 2010, 07:37:13 PM
as I explained a few times already


this is facebook's servers faul, not this mod,  please wait a day and it will work again

thank you.
and how can I turn to Turkish? its english now. "Like, share..."
Title: Re: Share This Topic
Post by: mirahalo on June 23, 2010, 10:20:43 AM
ok, I'm currently adding some more options to the mod, one of them is the possibility to change to button language, but try this:

on your index.template.php  find this:

\'//connect.facebook.net/en_US/all.js\';

and replace the en_US with this for Turkish language:


tr_TR

it will look like this:

\'//connect.facebook.net/tr_TR/all.js\';
Title: Re: Share This Topic
Post by: mcfurkan on June 23, 2010, 10:51:21 AM
thank you. resolved:)
Title: Re: Share This Topic
Post by: Eric B on June 23, 2010, 03:17:02 PM
My custom theme doesn't have a Display.template.php. Does this mean I am pretty much out of luck?
Title: Re: Share This Topic
Post by: mirahalo on June 23, 2010, 03:36:08 PM
nope, just means that you dont have to worry for making the changes manually on that file,  your theme will take the display from the default theme ;)

please attach your index.template.php so I can make the relevant changes to it.
Title: Re: Share This Topic
Post by: Eric B on June 23, 2010, 07:18:37 PM
Here you go.
Title: Re: Share This Topic
Post by: mirahalo on June 23, 2010, 08:48:04 PM
alright, use this one ;)

dont forget to create the facebook app and to put your app ID in the mods settings
Title: Re: Share This Topic
Post by: Eric B on June 24, 2010, 08:24:51 AM
Thank you, it works beautifully.
Title: Re: Share This Topic
Post by: mirahalo on June 24, 2010, 12:40:58 PM
glad you liked ;)
Title: Re: Share This Topic
Post by: whonoes on June 25, 2010, 10:22:12 AM
hello,  I tried to install this on SMF 2.0 RC3 and I get errors saying they suggest NOT to proceed with install.   Am using default curved theme...

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation

3.     Execute Modification     ./Themes/default/index.template.php     Test failed
      1.    Replace    ./Themes/default/index.template.php    Test successful
      2.    Add Before    ./Themes/default/index.template.php    Test successful
      3.    Add After    ./Themes/default/index.template.php    Test failed


Any suggestions?

Thanks in advance for any suggestions would love to install this mod.
Title: Re: Share This Topic
Post by: mirahalo on June 25, 2010, 10:35:12 AM
is the index.template.php the only file with errors?

if so, please attach it here,  looks like another mod has already modified some parts of that file.
Title: Re: Share This Topic
Post by: whonoes on June 25, 2010, 11:14:40 AM
Quote from: 130860 on June 25, 2010, 10:35:12 AM
is the index.template.php the only file with errors?

if so, please attach it here,  looks like another mod has already modified some parts of that file.

yes that is the only error....

PS this is the original index.template.php - after install your mod was 1st one I tried to install when I got the fail... I do have a couple other mods installed they are mobi related and the meta tag mod.
Title: Re: Share This Topic
Post by: mirahalo on June 25, 2010, 11:29:03 AM
alright, pelase install the mod, dont mind the error, then replace your index.template.php with this one
Title: Re: Share This Topic
Post by: whonoes on June 25, 2010, 12:58:29 PM
Thanks its up and running now :)
Title: Re: Share This Topic
Post by: whonoes on June 26, 2010, 07:27:04 PM
I was checking things in or at W3C  and I am getting this error related to this mod...

Line 28, Column 17: there is no attribute "property"
   <meta property="og:title" content="Lake of the Ozarks  Forums - Index"/>


here is more of the code from source 

// share this topic facebook like buttom
   if (!empty($modSettings['share_likebutton_enable']))
       {
   echo '
   <meta property="og:title" content="', $context['page_title_html_safe'], '"/>
<meta property="og:site_name" content="', $context['forum_name_html_safe'], '"/>
<meta property="og:image" content="', !empty($modSettings['share_likebutton_image']) ? $modSettings['share_likebutton_image'] : '', '"/>';
       }
   // Output any remaining HTML headers. (from mods, maybe?)
   echo $context['html_headers'];

this is only error I get.  Any suggestions?

thanks in advance
Title: Re: Share This Topic
Post by: wangx44 on June 26, 2010, 07:59:14 PM
My custom theme doesn't have a display so here is my index.template file. Thanks!
Title: Re: Share This Topic
Post by: GarfieldP on June 26, 2010, 08:45:17 PM
how do i make it so the share bar is bigger? and how do I make it on top of the repy etc bar? I am using 1.1.11 on default theme
Title: Re: Share This Topic
Post by: eng_HK on June 27, 2010, 08:26:26 AM
For italian translation

$txt['share_default_menu'] = 'Condividi questo topic';
$txt['share_default_menu_desc'] = 'Utilizza questo pannello per confermare su quali siti di social network è possibile condividere il topic.';
$txt['share_default_tooltip'] = 'Condividi questo topic su %s';
$txt['share_facebook'] = 'Facebook';
$txt['share_delicious'] = 'Del.icio.us';
$txt['share_digg'] = 'Digg';
$txt['share_reddit'] = 'Reddit';
$txt['share_stumbleupon'] = 'StumbleUpon';
$txt['share_twitter'] = 'Twitter';
$txt['share_ask'] = 'Ask';
$txt['share_blinkbits'] = 'Blinkbits';
$txt['share_blinklist'] = 'Blinklist';
$txt['share_bloglines'] = 'Bloglines';
$txt['share_bmarks'] = 'Bmarks';
$txt['share_dzone'] = 'Dzone';
$txt['share_feedmelinks'] = 'Feed Me Links';
$txt['share_furl'] = 'Furl';
$txt['share_live'] = 'Live';
$txt['share_netvouz'] = 'Netvouz';
$txt['share_newsvine'] = 'Newsvine';
$txt['share_oneview'] = 'Oneview';
$txt['share_rojo'] = 'Rojo';
$txt['share_scuttle'] = 'Scuttle';
$txt['share_shadows'] = 'Shadows';
$txt['share_slashdot'] = 'Slashdot';
$txt['share_spurl'] = 'Spurl';
$txt['share_squidoo'] = 'Squidoo';
$txt['share_tipd'] = 'Tipd';
$txt['share_gbuzz'] = 'Google buzz';
$txt['share_myspace'] = 'MySpace';
$txt['share_reddit'] = 'Reddit';
$txt['share_stumbleupon'] = 'StumbleUpon';
$txt['share_twitter'] = 'Twitter';
$txt['share_technorati'] = 'Technorati';
$txt['share_magnolia'] = 'Magnolia';
$txt['share_google'] = 'Google';
$txt['share_yahoo'] = 'Yahoo';
$txt['share_likebutton_enable'] = 'Abilita il pulsante Mi Piace Facebook.';
$txt['share_likebutton_appid'] = 'ID dell'applicazione FB.';
$txt['share_likebutton_image'] = 'L'URL della miglior foto per questa pagina.L'immagine deve essere almeno 50px per 50px e la proporzione 3:1.';
$txt['share_likebutton_width'] = 'Pulsante Mi Piace Facebook altezza esempio: 200px';
Title: Re: Share This Topic
Post by: mirahalo on June 27, 2010, 09:40:37 PM
@wangx44 use this one


@eng_HK  many thanks ;) I will add it as soon as I can.


@GarfieldP   bigger in height?   can you put an image on how do you want it exactly please


@whonoes   thats weird, let me check that.
Title: Re: Share This Topic
Post by: GarfieldP on June 28, 2010, 08:40:31 AM
Here
Quote from: GarfieldP on June 26, 2010, 08:45:17 PM
how do i make it so the share bar is bigger? and how do I make it on top of the repy etc bar? I am using 1.1.11 on default theme
(http://farm5.static.flickr.com/4116/4741660559_68e92ffbdb_b.jpg)
I hope this clears my idea up.
Title: Re: Share This Topic
Post by: mirahalo on June 28, 2010, 10:38:03 AM
well, to make the icons bigger just use ones larger than the ones the mod provided,  please attach your display.template.php so I can move the icons above the reply button
Title: Re: Share This Topic
Post by: whonoes on June 28, 2010, 10:47:19 AM
Quote from: 130860 on June 27, 2010, 09:40:37 PM



@whonoes   thats weird, let me check that.

Thanks for looking into this for me.... what I posted on errors is in the index.template.php that U put online for me to upload.

Thanks once again for your time in advance
Title: Re: Share This Topic
Post by: mirahalo on June 28, 2010, 10:57:44 AM
can you give a link to a post where the error occur to check
Title: Re: Share This Topic
Post by: whonoes on June 28, 2010, 02:23:51 PM
Quote from: 130860 on June 25, 2010, 11:29:03 AM
alright, pelase install the mod, dont mind the error, then replace your index.template.php with this one

This is post U made where U gave me the index.template.php to upload  its toward the bottom of page 22.  right below it is the error I get from w3c.

Thanks again in advance
Title: Re: Share This Topic
Post by: GarfieldP on June 28, 2010, 03:28:26 PM
Allright, here is my file
thanks for helping
Title: Re: Share This Topic
Post by: mirahalo on June 28, 2010, 04:26:34 PM
Quote from: whonoes on June 28, 2010, 02:23:51 PM
Quote from: 130860 on June 25, 2010, 11:29:03 AM
alright, pelase install the mod, dont mind the error, then replace your index.template.php with this one

This is post U made where U gave me the index.template.php to upload  its toward the bottom of page 22.  right below it is the error I get from w3c.

Thanks again in advance

I now i was thew one who give you that file...

I need a url so I can check the error.



@GarfieldP   use thisone, I do not test it so maybe we will have to make changes to suit your needs.
Title: Re: Share This Topic
Post by: whonoes on June 28, 2010, 04:50:41 PM

here is link to w3c validation with error

http://validator.w3.org/check?uri=http%3A%2F%2Frealestateozarks.com%2Fforums&charset=%28detect+automatically%29&doctype=Inline&ss=1&group=0&user-agent=W3C_Validator%2F1.781

here is link to my site

http://www.realestateozarks.com/forums/


Sorry I got confused there on what U were asking for  :)

Title: Re: Share This Topic
Post by: mirahalo on June 28, 2010, 05:36:18 PM
please on your index.template.php find this:

<!DOCTYPE PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

and replaced with this


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">

this is a well know facebook problem: http://www.google.com.mx/search?hl=es&client=opera&rls=es-LA&q=there+is+no+attribute+%22property%22+facebook&aq=f&aqi=&aql=&oq=&gs_rfai=

http://forum.developers.facebook.com/viewtopic.php?id=58384


unfortunatly, if you change the DOCTYPE to xhtml strict, you will have to write all your html code following xhtml strict rules. probably this solution will cause more problems that solutions, sorry, theres nothing I can do here, we'll have to wait for facebook to improve their opengraph protocol  :(
Title: Re: Share This Topic
Post by: GarfieldP on June 28, 2010, 05:46:44 PM
Quote@GarfieldP   use thisone, I do not test it so maybe we will have to make changes to suit your needs.
thank you, it works perfectly! ;)
Title: Re: Share This Topic
Post by: eng_HK on June 29, 2010, 03:27:22 PM
I'd like to know if it's possible when we share the topic on facebook, point the link to fFB directly to the last page of the topic.

Sometimes my users want to share the last page of a topic, or a specific page example if I have 15 pages on the topic maybe I want to share the 7 page not the first of the topic or the last one.

I'd like to know it the share could pass to FB the topic and the page related not only the first page..

Thx
Title: Re: Share This Topic
Post by: mirahalo on June 30, 2010, 02:58:22 PM
yes, its posible however, this will mean to have one facebook like button per post, and thats just too much. the problem is how to show the button and where if there is no patron as you say, sometimes could be the page 15, somtimes the 3, etc, thats the problem ;)   if you want one like button per post I can show you how.
Title: Re: Share This Topic
Post by: eng_HK on July 03, 2010, 03:24:00 AM
it will be greate pls..

Also because It doesn't work on my forum the like button..
Title: Re: Share This Topic
Post by: MoinFaraz on July 03, 2010, 07:56:35 AM
I found this in the mod description :::

Installation
Simply install the package to install on the SMF Default Theme AND any other theme which does NOT have a custom Display.template.php and a index.template.php

what about the themes with custom Display.template.php and index.template.php file's [like babylon etc]

Regards

Title: Re: Share This Topic
Post by: Suki on July 03, 2010, 05:41:22 PM
Quote from: MoinFaraz on July 03, 2010, 07:56:35 AM
I found this in the mod description :::

Installation
Simply install the package to install on the SMF Default Theme AND any other theme which does NOT have a custom Display.template.php and a index.template.php

what about the themes with custom Display.template.php and index.template.php file's [like babylon etc]

Regards


that means the mod will not install automatic on your theme,   for you to install you need to user the mod parser   or you can attach your files here and Im sure mira or I will do the edits for you
Title: Re: Share This Topic
Post by: MoinFaraz on July 03, 2010, 07:01:22 PM
Quote from: Suki on July 03, 2010, 05:41:22 PM
Quote from: MoinFaraz on July 03, 2010, 07:56:35 AM
I found this in the mod description :::

Installation
Simply install the package to install on the SMF Default Theme AND any other theme which does NOT have a custom Display.template.php and a index.template.php

what about the themes with custom Display.template.php and index.template.php file's [like babylon etc]

Regards


that means the mod will not install automatic on your theme,   for you to install you need to user the mod parser   or you can attach your files here and Im sure mira or I will do the edits for you

O.k, the theme in question is babylon which comes in smf default package smf 1.1.11
using the mod parser i got upto ./themes/default/display.template.php
but, because i am using babylon as my default theme, i tried editing ./themes/babylon/display.template.php
in this file there is no

<tr class=catbg3>

so how should i go further
Title: Re: Share This Topic
Post by: mirahalo on July 03, 2010, 07:55:51 PM
can you please attach both your Display and index form the theme you're currently use,   I will make the edits for you ;)
Title: Re: Share This Topic
Post by: MoinFaraz on July 03, 2010, 07:59:16 PM
Quote from: 130860 on July 03, 2010, 07:55:51 PM
can you please attach both your Display and index form the theme you're currently use,   I will make the edits for you ;)

Thanks for the helping hand bro :)
Just find the attachments

Title: Re: Share This Topic
Post by: mirahalo on July 03, 2010, 08:25:56 PM
looks like you alredy take care of most of the edits,   I just made a very small change on your display.template, please , use the file attached
Title: Re: Share This Topic
Post by: MoinFaraz on July 03, 2010, 08:37:23 PM
Quote from: 130860 on July 03, 2010, 08:25:56 PM
looks like you alredy take care of most of the edits,   I just made a very small change on your display.template, please , use the file attached

Thanks man, also as per the mod parser the next few edits involves files under
./Themes/default/languages/
in babylon theme under /languages/ there is only one file 'settings.english.php'
so, am i going to copy files from default theme {core} language folder then paste them into babylon's language folder
and then finally edit them.  ::)
Title: Re: Share This Topic
Post by: mirahalo on July 03, 2010, 08:46:23 PM
oh, dont worry about it, if you're using one of the following languages:


o English/utf8
o British/utf8
o Spanish_es/utf8
o Spanish_latin/utf8

the mod will install the necessary strings for you ;)   the only thing you need to do is to upload the share folder to your /Themes/your theme/images


and thats it ;) remember to create your facebook app to properly use the facebook like button
Title: Re: Share This Topic
Post by: MoinFaraz on July 03, 2010, 08:56:45 PM
Quote from: 130860 on July 03, 2010, 08:46:23 PM
oh, dont worry about it, if you're using one of the following languages:


o English/utf8
o British/utf8
o Spanish_es/utf8
o Spanish_latin/utf8

the mod will install the necessary strings for you ;)   the only thing you need to do is to upload the share folder to your /Themes/your theme/images


and thats it ;) remember to create your facebook app to properly use the facebook like button

All edits have been done {manually}
Bad news, its showing nothing under the admin>features and options
about this mod, under packages its showing 'No packages yet.'

Title: Re: Share This Topic
Post by: mirahalo on July 03, 2010, 09:01:59 PM
did you also make the edits for the admin section?


it will be much better if you just installed this theme with the packager manager, then,  applied the edits manually on the theme you're currently using,  upload the share folder to /Themes/your theme/images   and thats about it.

did you install the mod with the package manager?
Title: Re: Share This Topic
Post by: MoinFaraz on July 03, 2010, 09:13:59 PM
Quote from: 130860 on July 03, 2010, 09:01:59 PM
did you also make the edits for the admin section?


it will be much better if you just installed this theme with the packager manager, then,  applied the edits manually on the theme you're currently using,  upload the share folder to /Themes/your theme/images   and thats about it.

did you install the mod with the package manager?

no man, i have just followed all the steps mentioned in the mod parser
total files edited are 3 as per mod parser
index.template
display.template
sources/modsettings

also moved the 'share' folder to /images/

tried installing it with package manager & got this

"Fatal error: Cannot redeclare ModifyShareTopicSettings() (previously declared in C:\wamp\www\smf_1-1-11_install\Sources\ModSettings.php:342) in C:\wamp\www\smf_1-1-11_install\Sources\ModSettings.php  on line 411"

This is because i have already edited the modsettings.php manually  ;D

Title: Re: Share This Topic
Post by: mirahalo on July 03, 2010, 09:17:47 PM
did you added the text strings to your  /Themes/default/languages/Modifications.yourlanguage.php and ./Themes/default/languages/Help.yourlanguage.php  ?


yeah, don't try to install id now, it will only give you errors.
Title: Re: Share This Topic
Post by: MoinFaraz on July 03, 2010, 09:22:25 PM
Quote from: 130860 on July 03, 2010, 09:17:47 PM
did you added the text strings to your  /Themes/default/languages/Modifications.yourlanguage.php and ./Themes/default/languages/Help.yourlanguage.php  ?


yeah, don't try to install id now, it will only give you errors.

No, because as i have asked you earlier, there is just one file under the themes/babylon/languages/ folder which is settings.english

what i was wondering is to copy the required files from the default theme's folder [core] & paste them into babylon's folder then edit them  ::)
Title: Re: Share This Topic
Post by: mirahalo on July 03, 2010, 09:26:05 PM
nope, you have to edit /Themes/default/languages/


you don't have to edit your themes files to adding translations, translations are taked form the default theme
Title: Re: Share This Topic
Post by: MoinFaraz on July 03, 2010, 09:35:34 PM
Quote from: 130860 on July 03, 2010, 09:26:05 PM
nope, you have to edit /Themes/default/languages/


you don't have to edit your themes files to adding translations, translations are taked form the default theme

Alright, edited /Themes/default/languages/modifications.english.php
luckily still the same thing, you might want to look @ my sources/modsettings.php file {because you have already checked index and display}
this is the only file which might be creating all this problem

Title: Re: Share This Topic
Post by: mirahalo on July 03, 2010, 09:41:10 PM
well you have double code cause you installed the mod after you did all the edits manually, please use this
Title: Re: Share This Topic
Post by: MoinFaraz on July 03, 2010, 09:57:55 PM
Quote from: 130860 on July 03, 2010, 09:41:10 PM
well you have double code cause you installed the mod after you did all the edits manually, please use this

Thanks a lot for your time & patience with me

Yup, finally we have got it  ;)

Regards
Title: Re: Share This Topic
Post by: mirahalo on July 03, 2010, 10:05:48 PM
oh, glad you did it ;)

but, for future references,  you don't have to install a mod manually if you're using a different theme than the default one,   you can still install the mod via the package manage, the package manager will install the mod on the default theme and all your admin templates, sources files, css files, etc,  the only thing you have to do is manually change the files on your theme,  lets say, this mod,   after install, you will only have to edit the index and display.template from your theme, the rest of the files the package manager already take care of it ;)


Title: Re: Share This Topic
Post by: MoinFaraz on July 03, 2010, 10:08:59 PM
Will take a note of it
Thank you and have a great day :)
Title: Re: Share This Topic
Post by: MoinFaraz on July 03, 2010, 10:11:28 PM
Bump!

Before you go mate
would it be possible for you to paste the edits here you made to display.template

that will surely help me to understand how you solved it.

Regards
Title: Re: Share This Topic
Post by: mirahalo on July 03, 2010, 10:16:56 PM
well  the only edit I made on your display.template.php was this:


I found this:

// Show the topic information - icon, subject, etc.
echo '
<table width="100%" cellpadding="3" cellspacing="0" border="0" class="tborder" style="border-bottom: 0;">



and replaced with this:

// Show the topic information - icon, subject, etc.
echo '', $social_icons, '
<table width="100%" cellpadding="3" cellspacing="0" border="0" class="tborder" style="border-bottom: 0;">



I only added the $social_icons variable and thats it ;)    if you want it to change the icons to a different place you only have to move this variable, lets say you want the icons next to the report to moderator link, well on your display find this:

// Maybe they want to report this post to the moderator(s)?


and above add the variable, like this:


echo '', $social_icons, ''
      // Maybe they want to report this post to the moderator(s)?



Title: Re: Share This Topic
Post by: MoinFaraz on July 03, 2010, 10:20:33 PM
Thanks again mate, this info will surely come into handy

Regards
MoinFaraz
Title: Re: Share This Topic
Post by: zzzronzzz on July 04, 2010, 04:17:57 AM
Quote from: 130860 on June 30, 2010, 02:58:22 PM
yes, its posible however, this will mean to have one facebook like button per post, and thats just too much. the problem is how to show the button and where if there is no patron as you say, sometimes could be the page 15, somtimes the 3, etc, thats the problem ;)   if you want one like button per post I can show you how.

hi .. can you also show me how ? im using the default curve theme
Title: Re: Share This Topic
Post by: mirahalo on July 06, 2010, 10:27:03 AM
mmm, this is not tested and I certanly dont know how facebook ike button is gonna act with multiples buttons but try this:

on your display.template.php  find:


if ($message['counter'] == 0)
                 {
echo '<div id="fblike" style="float:right; padding:2px;">
<fb:like href="', urlencode($page_url) ,'"  width="', !empty($modSettings['share_likebutton_width']) ? $modSettings['share_likebutton_width'] : '', '"></fb:like>
             </div>';
}



and remove the if statement:


echo '<div id="fblike" style="float:right; padding:2px;">
<fb:like href="', urlencode($page_url) ,'"  width="', !empty($modSettings['share_likebutton_width']) ? $modSettings['share_likebutton_width'] : '', '"></fb:like>
             </div>';
Title: Re: Share This Topic
Post by: mirahalo on July 06, 2010, 03:18:16 PM
New version!  2.0

Change Log

2.0
- Cleaner install
- Select which boards you DO NOT want to show the icons
- 3 different ways to show the icons
- You can select the language for the button


to upgrade, please uninstall the previous version and install the new one ;)
Title: Re: Share This Topic
Post by: eng_HK on July 07, 2010, 05:01:05 AM
@130860

Can you add also the italian language?

Thx
Title: Re: Share This Topic
Post by: mirahalo on July 07, 2010, 11:45:03 AM
yes I could do that, but since the new version added some extra language strings, if I add the Italian language, those new strings will appear as English :(  if you translate the new strings I will add Italian ;)
Title: Re: Share This Topic
Post by: eng_HK on July 07, 2010, 04:09:44 PM
sure post it here and I'll do it..
Title: Re: Share This Topic
Post by: mirahalo on July 07, 2010, 04:28:14 PM
thanks ;)

./Themes/default/languages/Modifications.english.php

$txt['share_default_menu'] = 'Share This Topic';
$txt['share_default_menu_desc'] = 'Use this panel to confirm which social networking services you\'d like to be able to share forum topics width.';
$txt['share_default_tooltip'] = 'Share this topic on %s';
$txt['share_ask'] = 'Ask';
$txt['share_blinkbits'] = 'Blinkbits';
$txt['share_blinklist'] = 'Blinklist';
$txt['share_bloglines'] = 'Bloglines';
$txt['share_bmarks'] = 'Bmarks';
$txt['share_dzone'] = 'Dzone';
$txt['share_feedmelinks'] = 'Feed Me Links';
$txt['share_furl'] = 'Furl';
$txt['share_live'] = 'Live';
$txt['share_netvouz'] = 'Netvouz';
$txt['share_newsvine'] = 'Newsvine';
$txt['share_oneview'] = 'Oneview';
$txt['share_rojo'] = 'Rojo';
$txt['share_scuttle'] = 'Scuttle';
$txt['share_shadows'] = 'Shadows';
$txt['share_slashdot'] = 'Slashdot';
$txt['share_spurl'] = 'Spurl';
$txt['share_squidoo'] = 'Squidoo';
$txt['share_tipd'] = 'Tipd';
$txt['share_gbuzz'] = 'Google buzz';
$txt['share_facebook'] = 'Facebook';
$txt['share_myspace'] = 'MySpace';
$txt['share_delicious'] = 'Del.icio.us';
$txt['share_digg'] = 'Digg';
$txt['share_reddit'] = 'Reddit';
$txt['share_stumbleupon'] = 'StumbleUpon';
$txt['share_twitter'] = 'Twitter';
$txt['share_technorati'] = 'Technorati';
$txt['share_magnolia'] = 'Magnolia';
$txt['share_google'] = 'Google';
$txt['share_yahoo'] = 'Yahoo';
$txt['share_likebutton_enable'] = 'Enable the Facebook Like Button.';
$txt['share_likebutton_appid'] = 'The application ID of your Facebook application.';
$txt['share_likebutton_image'] = '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.';
$txt['share_likebutton_width'] = 'Facebook Like Button width. example: 200px';
$txt['share_option1'] = 'Default one, above the post';
$txt['share_option2'] = 'Inside the post, at the end"';
$txt['share_option3'] = 'Very bottom of the page';
$txt['share_likebutton_lang'] = 'Language of the button, by default: en_US (English) click the help icon to get a complete list of available languages';
$txt['share_options'] = 'Select the way to show the icons';
$txt['share_options_boards'] = 'write the ID of the boards you <span  style="color:red;">DO NOT</span> want to show the icons and the button, comma separate: 1,2,3';


./Themes/default/languages/Help.english.php


// share this topic FB like button start
$helptxt['share_likebutton_enable'] = 'Check this box to allow your users to use the FaceBook Like button.';
$helptxt['share_likebutton_appid'] = 'to create a new application follow this steps:<br />
Go to: http://www.facebook.com/developers
2. Click on the + Set Up New Application button (at the top right of the page) <br/>
3. Type your Application Name (example: Mysite-Name Likes) > select Agree > click on Create Application<br/>
4. Go to the Connect tab (on the left tabs-list)<br/>
5. Enter your site url width an ending slash in Connect URL and click on Save Changes (for example: http://mysitedomainname.com/)<br/>
6. You will see your Application ID number (below your app API & Secret)<br/>
7. It will take between 2 to 20 minutes until it will be ready to use width.<br/>';
$helptxt['share_likebutton_image'] = '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. this is the image that will be show when your users share content of your forum.';
$helptxt['share_likebutton_width'] = 'Facebook Like Button width, the Height is automatically set depending on the number of users.';
$helptxt['share_likebutton_lang'] = 'List of all currently available languages for the Facebook Like button:<br />
<p><strong>Catalan</strong><br/>ca_ES<br/><br/><strong>Czech</strong><br/>cs_CZ
<br/><br/><strong>Welsh</strong><br/>cy_GB<br/><br/><strong>Danish</strong><br/>da_DK<br/><br/><strong>German</strong><br/>de_DE<br/><br/><strong>Basque</strong><br/>eu_ES<br/><br/><strong>English (Pirate)</strong>
<br/>en_PI<br/><br/><strong>English (Upside Down)</strong>
<br/>en_UD<br/><br/><strong>Cherokee</strong><br/>ck_US<br/><br/><strong>English (US)</strong><br/>en_US<br/><br/><strong>Spanish</strong><br/>es_LA<br/><br/><strong>Spanish (Chile)</strong>
<br/>es_CL<br/><br/><strong>Spanish (Colombia)</strong><br/>es_CO<br/><br/><strong>Spanish (Spain)</strong><br/>es_ES<br/><br/><strong>Spanish (Mexico)</strong><br/>es_MX<br/><br/><strong>Spanish (Venezuela)</strong><br/>es_VE<br/><br/><strong>Finnish (test)</strong><br/>fb_FI<br/><br/><strong>Finnish</strong><br/>fi_FI<br/><br/><strong>French (France)</strong>
<br/>fr_FR<br/><br/><strong>Galician</strong><br/>gl_ES<br/><br/><strong>Hungarian</strong>
<br/>hu_HU<br/><br/><strong>Italian</strong><br/>it_IT<br/><br/><strong>Japanese</strong><br/>ja_JP<br/><br/><strong>Korean</strong><br/>ko_KR<br/><br/><strong>Norwegian (bokmal)</strong>
<br/>nb_NO<br/><br/><strong>Norwegian (nynorsk)</strong><br/>nn_NO<br/><br/><strong>Dutch</strong><br/>nl_NL<br/><br/><strong>Polish</strong><br/>pl_PL<br/><br/><strong>Portuguese (Brazil)</strong><br/>pt_BR<br/><br/><strong>Portuguese (Portugal)</strong>
<br/>pt_PT<br/><br/><strong>Romanian</strong><br/>ro_RO<br/><br/><strong>Russian</strong><br/>ru_RU<br/><br/><strong>Slovak</strong><br/>sk_SK<br/><br/><strong>Slovenian</strong>
<br/>sl_SI<br/><br/><strong>Swedish</strong><br/>sv_SE<br/><br/><strong>Thai</strong><br/>th_TH<br/><br/><strong>Turkish</strong><br/>tr_TR<br/><br/><strong>Kurdish</strong><br/>ku_TR<br/><br/><strong>Simplified Chinese (China)</strong><br/>zh_CN<br/><br/><strong>Traditional Chinese (Hong Kong)</strong>
<br/>zh_HK<br/><br/><strong>Traditional Chinese (Taiwan)</strong>
<br/>zh_TW<br/><br/><strong>LeetSpeak</strong><br/>fb_LT<br/><br/><strong>Afrikaans</strong><br/>af_ZA<br/><br/><strong>Albanian</strong><br/>sq_AL<br/><br/><strong>Armenian</strong><br/>hy_AM<br/><br/><strong>Azeri</strong><br/>az_AZ<br/><br/><strong>Belarusian</strong><br/>be_BY<br/><br/><strong>Bengali</strong><br/>bn_IN<br/><br/><strong>Bosnian</strong><br/>bs_BA<br/><br/><strong>Bulgarian</strong><br/>bg_BG<br/><br/><strong>Croatian</strong><br/>hr_HR<br/><br/><strong>Dutch (België)</strong><br/>nl_BE<br/><br/><strong>English (UK)</strong><br/>en_GB<br/><br/><strong>Esperanto</strong><br/>eo_EO<br/><br/><strong>Estonian</strong><br/>et_EE<br/><br/><strong>Faroese</strong><br/>fo_FO<br/><br/><strong>French (Canada)</strong>
<br/>fr_CA<br/><br/><strong>Georgian</strong><br/>ka_GE<br/><br/><strong>Greek</strong><br/>el_GR<br/><br/><strong>Gujarati</strong><br/>gu_IN<br/><br/><strong>Hindi</strong><br/>hi_IN<br/><br/><strong>Icelandic</strong>
<br/>is_IS<br/><br/><strong>Indonesian</strong><br/>id_ID<br/><br/><strong>Irish</strong><br/>ga_IE<br/><br/><strong>Javanese</strong><br/>jv_ID<br/><br/><strong>Kannada</strong><br/>kn_IN<br/><br/><strong>Kazakh</strong><br/>kk_KZ<br/><br/><strong>Latin</strong><br/>la_VA<br/><br/><strong>Latvian</strong><br/>lv_LV<br/><br/><strong>Limburgish</strong><br/>li_NL<br/><br/><strong>Lithuanian</strong><br/>lt_LT<br/><br/><strong>Macedonian</strong><br/>mk_MK<br/><br/><strong>Malagasy</strong><br/>mg_MG<br/><br/><strong>Malay</strong><br/>ms_MY<br/><br/><strong>Maltese</strong><br/>mt_MT<br/><br/><strong>Marathi</strong><br/>mr_IN<br/><br/><strong>Mongolian</strong><br/>mn_MN<br/><br/><strong>Nepali</strong><br/>ne_NP<br/><br/><strong>Punjabi</strong><br/>pa_IN<br/><br/><strong>Romansh</strong><br/>rm_CH<br/><br/><strong>Sanskrit</strong><br/>sa_IN<br/><br/><strong>Serbian</strong><br/>sr_RS<br/><br/><strong>Somali</strong><br/>so_SO<br/><br/><strong>Swahili</strong><br/>sw_KE<br/><br/><strong>Filipino</strong><br/>tl_PH<br/><br/><strong>Tamil</strong><br/>ta_IN<br/><br/><strong>Tatar</strong><br/>tt_RU<br/><br/><strong>Telugu</strong><br/>te_IN<br/><br/><strong>Malayalam</strong><br/>ml_IN<br/><br/><strong>Ukrainian</strong><br/>uk_UA<br/><br/><strong>Uzbek</strong><br/>uz_UZ<br/><br/><strong>Vietnamese</strong><br/>vi_VN<br/><br/><strong>Xhosa</strong><br/>xh_ZA<br/><br/><strong>Zulu</strong><br/>zu_ZA<br/><br/><strong>Khmer</strong><br/>km_KH<br/><br/><strong>Tajik</strong><br/>tg_TJ<br/><br/><strong>Arabic</strong><br/>ar_AR<br/><br/><strong>Hebrew</strong><br/>he_IL<br/><br/><strong>Urdu</strong><br/>ur_PK<br/><br/><strong>Persian</strong>
<br/>fa_IR<br/><br/><strong>Syriac</strong><br/>sy_SY<br/><br/><strong>Yiddish</strong><br/>yi_DE<br/><br/><strong>Guaraní</strong><br/>gn_PY<br/><br/><strong>Quechua</strong><br/>qu_PE<br/><br/><strong>Aymara</strong><br/>ay_BO<br/><br/><strong>Northern Sámi</strong>
<br/>se_NO<br/><br/><strong>Pashto</strong><br/>ps_AF<br/><br/><strong>Klingon</strong>
<br/>tl_ST</p>';
$helptxt['share_options'] = 'There\'s currently 3 ways to show the icons: <br />  -Default one, above the message.<br /> - Inside the post, this will show the icons below the content of the post. <br /> - Very bottom of the page: this will show the icons below everything';
$helptxt['share_options_boards'] = 'Most of the forums have private boards, boards that canot be seen by guest or other users so,having the icons there is a little pointless, with this option you can determinate witch boards <span  style="color:red;">DO NOT</span> show the icons and button, please add the ID of the forums, comma separate, example:  1,34,65,78';

// Share this topic FB like button end




the help one is a little large due the list of all languages compatibles with the mod and its html format,  I didn't translated those for spanish since there are basically country names but if you want it go ahead ;)

thanks for your translation
Title: Re: Share This Topic
Post by: eng_HK on July 08, 2010, 06:43:37 AM
MODIFICATION.ITALIAN.php

$txt['share_default_menu'] = 'Condividi il post';
$txt['share_default_menu_desc'] = 'Usare questo pannello per confermare quale dei servizi di social networking vorreste rendere condifisibili attraverso i post del forum';
$txt['share_default_tooltip'] = 'Condividi questo post su %s';
$txt['share_ask'] = 'Ask';
$txt['share_blinkbits'] = 'Blinkbits';
$txt['share_blinklist'] = 'Blinklist';
$txt['share_bloglines'] = 'Bloglines';
$txt['share_bmarks'] = 'Bmarks';
$txt['share_dzone'] = 'Dzone';
$txt['share_feedmelinks'] = 'Feed Me Links';
$txt['share_furl'] = 'Furl';
$txt['share_live'] = 'Live';
$txt['share_netvouz'] = 'Netvouz';
$txt['share_newsvine'] = 'Newsvine';
$txt['share_oneview'] = 'Oneview';
$txt['share_rojo'] = 'Rojo';
$txt['share_scuttle'] = 'Scuttle';
$txt['share_shadows'] = 'Shadows';
$txt['share_slashdot'] = 'Slashdot';
$txt['share_spurl'] = 'Spurl';
$txt['share_squidoo'] = 'Squidoo';
$txt['share_tipd'] = 'Tipd';
$txt['share_gbuzz'] = 'Google buzz';
$txt['share_facebook'] = 'Facebook';
$txt['share_myspace'] = 'MySpace';
$txt['share_delicious'] = 'Del.icio.us';
$txt['share_digg'] = 'Digg';
$txt['share_reddit'] = 'Reddit';
$txt['share_stumbleupon'] = 'StumbleUpon';
$txt['share_twitter'] = 'Twitter';
$txt['share_technorati'] = 'Technorati';
$txt['share_magnolia'] = 'Magnolia';
$txt['share_google'] = 'Google';
$txt['share_yahoo'] = 'Yahoo';
$txt['share_likebutton_enable'] = 'Abilita il pulsante Mi piace di Facebook';
$txt['share_likebutton_appid'] = 'Inserire l'ID dell'applicazione Facebook';
$txt['share_likebutton_image'] = 'L'indirizzo dell'immagine migliore per questa pagina. L'immagine deve avere almeno come dimensioni 50px by 50px avere proporzione 3:1.';
$txt['share_likebutton_width'] = 'Altezza del pulsante Mi Piace di Facebook esempio: 200px';
$txt['share_option1'] = 'Default all'inzio del post';
$txt['share_option2'] = 'All'interno del post, alla fine';
$txt['share_option3'] = 'In fondo alla pagina';
$txt['share_likebutton_lang'] = 'Pulsante lingua, default: en_US (English) premere il pulsante help per avere una lista completa delle lingue disponibile';
$txt['share_options'] = 'Selezionare la via di visualizzazione delle immagini';
$txt['share_options_boards'] = 'Scrivere l'id della board della quale <span  style="color:red;">DO NOT</span> si vuole visualizzare icone e bottoni separate da una virgola: 1,2,3';
Title: Re: Share This Topic
Post by: eng_HK on July 08, 2010, 06:55:44 AM
HELP FILE


// Condividi questo topic con pulsante Mi Piace
$helptxt['share_likebutton_enable'] = 'Spuntare qui per permettere agli utenti di utilizzare il pulsante Mi piace di FB';
$helptxt['share_likebutton_appid'] = 'Per creare una nuova applicazione seguire i seguenti steps:<br />
Andare all'indirizzo: http://www.facebook.com/developers
2. Cliccare su Set Up New Application button (in alto a destra della pagina) <br/>
3. Digitare il nome dell'applicazione (esempio: Nomesito ) > Selezionare acconsento > cliccare su crea applicatione<br/>
4. Andare sul TAB connessione (sulla sinistra nell'elenco dei tab)<br/>
5. Inserire l'url del sito secondo questo formato e premere Salva (esempio: http://mysitedomainname.com/)<br/>
6. Verra' visuliazzato ID dell'applicazione (sotto app API & Secret)<br/>
7. Potrebbe essere necessario da 2 a 20 minuti affinche' l'applicazione sia disponibile.<br/>';
$helptxt['share_likebutton_image'] = 'L'indirizzo dell'immagine migliore per questa pagina. L'immagine deve avere almeno come dimensioni 50px by 50px avere

proporzione 3:1.'; Questa sara l'immagine che verra visualizzata quando il post verra condiviso';
$helptxt['share_likebutton_width'] = 'Il pulsante Mi piace di FB verra automaticamente settato a seconda del numero di utenti';
$helptxt['share_likebutton_lang'] = 'Lista di tutte le lingue disponibili per il pulsante Mi piace:<br />
<p><strong>Catalan</strong><br/>ca_ES<br/><br/><strong>Czech</strong><br/>cs_CZ
<br/><br/><strong>Welsh</strong><br/>cy_GB<br/><br/><strong>Danish</strong><br/>da_DK<br/><br/><strong>German</strong><br/>de_DE<br/><br/><strong>Basque</str

ong><br/>eu_ES<br/><br/><strong>English (Pirate)</strong>
<br/>en_PI<br/><br/><strong>English (Upside Down)</strong>
<br/>en_UD<br/><br/><strong>Cherokee</strong><br/>ck_US<br/><br/><strong>English (US)

</strong><br/>en_US<br/><br/><strong>Spanish</strong><br/>es_LA<br/><br/><strong>Spanish (Chile)</strong>
<br/>es_CL<br/><br/><strong>Spanish (Colombia)</strong><br/>es_CO<br/><br/><strong>Spanish (Spain)</strong><br/>es_ES<br/><br/><strong>Spanish (Mexico)

</strong><br/>es_MX<br/><br/><strong>Spanish (Venezuela)</strong><br/>es_VE<br/><br/><strong>Finnish (test)

</strong><br/>fb_FI<br/><br/><strong>Finnish</strong><br/>fi_FI<br/><br/><strong>French (France)</strong>
<br/>fr_FR<br/><br/><strong>Galician</strong><br/>gl_ES<br/><br/><strong>Hungarian</strong>
<br/>hu_HU<br/><br/><strong>Italian</strong><br/>it_IT<br/><br/><strong>Japanese</strong><br/>ja_JP<br/><br/><strong>Korean</strong><br/>ko_KR<br/><br/><stro

ng>Norwegian (bokmal)</strong>
<br/>nb_NO<br/><br/><strong>Norwegian (nynorsk)

</strong><br/>nn_NO<br/><br/><strong>Dutch</strong><br/>nl_NL<br/><br/><strong>Polish</strong><br/>pl_PL<br/><br/><strong>Portuguese (Brazil)

</strong><br/>pt_BR<br/><br/><strong>Portuguese (Portugal)</strong>
<br/>pt_PT<br/><br/><strong>Romanian</strong><br/>ro_RO<br/><br/><strong>Russian</strong><br/>ru_RU<br/><br/><strong>Slovak</strong><br/>sk_SK<br/><br/><stro

ng>Slovenian</strong>
<br/>sl_SI<br/><br/><strong>Swedish</strong><br/>sv_SE<br/><br/><strong>Thai</strong><br/>th_TH<br/><br/><strong>Turkish</strong><br/>tr_TR<br/><br/><strong>

Kurdish</strong><br/>ku_TR<br/><br/><strong>Simplified Chinese (China)</strong><br/>zh_CN<br/><br/><strong>Traditional Chinese (Hong Kong)</strong>
<br/>zh_HK<br/><br/><strong>Traditional Chinese (Taiwan)</strong>
<br/>zh_TW<br/><br/><strong>LeetSpeak</strong><br/>fb_LT<br/><br/><strong>Afrikaans</strong><br/>af_ZA<br/><br/><strong>Albanian</strong><br/>sq_AL<br/><br/>

<strong>Armenian</strong><br/>hy_AM<br/><br/><strong>Azeri</strong><br/>az_AZ<br/><br/><strong>Belarusian</strong><br/>be_BY<br/><br/><strong>Bengali</strong

><br/>bn_IN<br/><br/><strong>Bosnian</strong><br/>bs_BA<br/><br/><strong>Bulgarian</strong><br/>bg_BG<br/><br/><strong>Croatian</strong><br/>hr_HR<br/><br/><

strong>Dutch (België)</strong><br/>nl_BE<br/><br/><strong>English (UK)

</strong><br/>en_GB<br/><br/><strong>Esperanto</strong><br/>eo_EO<br/><br/><strong>Estonian</strong><br/>et_EE<br/><br/><strong>Faroese</strong><br/>fo_FO<br

/><br/><strong>French (Canada)</strong>
<br/>fr_CA<br/><br/><strong>Georgian</strong><br/>ka_GE<br/><br/><strong>Greek</strong><br/>el_GR<br/><br/><strong>Gujarati</strong><br/>gu_IN<br/><br/><stro

ng>Hindi</strong><br/>hi_IN<br/><br/><strong>Icelandic</strong>
<br/>is_IS<br/><br/><strong>Indonesian</strong><br/>id_ID<br/><br/><strong>Irish</strong><br/>ga_IE<br/><br/><strong>Javanese</strong><br/>jv_ID<br/><br/><st

rong>Kannada</strong><br/>kn_IN<br/><br/><strong>Kazakh</strong><br/>kk_KZ<br/><br/><strong>Latin</strong><br/>la_VA<br/><br/><strong>Latvian</strong><br/>lv

_LV<br/><br/><strong>Limburgish</strong><br/>li_NL<br/><br/><strong>Lithuanian</strong><br/>lt_LT<br/><br/><strong>Macedonian</strong><br/>mk_MK<br/><br/><st

rong>Malagasy</strong><br/>mg_MG<br/><br/><strong>Malay</strong><br/>ms_MY<br/><br/><strong>Maltese</strong><br/>mt_MT<br/><br/><strong>Marathi</strong><br/>

mr_IN<br/><br/><strong>Mongolian</strong><br/>mn_MN<br/><br/><strong>Nepali</strong><br/>ne_NP<br/><br/><strong>Punjabi</strong><br/>pa_IN<br/><br/><strong>R

omansh</strong><br/>rm_CH<br/><br/><strong>Sanskrit</strong><br/>sa_IN<br/><br/><strong>Serbian</strong><br/>sr_RS<br/><br/><strong>Somali</strong><br/>so_SO

<br/><br/><strong>Swahili</strong><br/>sw_KE<br/><br/><strong>Filipino</strong><br/>tl_PH<br/><br/><strong>Tamil</strong><br/>ta_IN<br/><br/><strong>Tatar</s

trong><br/>tt_RU<br/><br/><strong>Telugu</strong><br/>te_IN<br/><br/><strong>Malayalam</strong><br/>ml_IN<br/><br/><strong>Ukrainian</strong><br/>uk_UA<br/><

br/><strong>Uzbek</strong><br/>uz_UZ<br/><br/><strong>Vietnamese</strong><br/>vi_VN<br/><br/><strong>Xhosa</strong><br/>xh_ZA<br/><br/><strong>Zulu</strong><

br/>zu_ZA<br/><br/><strong>Khmer</strong><br/>km_KH<br/><br/><strong>Tajik</strong><br/>tg_TJ<br/><br/><strong>Arabic</strong><br/>ar_AR<br/><br/><strong>Heb

rew</strong><br/>he_IL<br/><br/><strong>Urdu</strong><br/>ur_PK<br/><br/><strong>Persian</strong>
<br/>fa_IR<br/><br/><strong>Syriac</strong><br/>sy_SY<br/><br/><strong>Yiddish</strong><br/>yi_DE<br/><br/><strong>Guaraní</strong><br/>gn_PY<br/><br/><stron

g>Quechua</strong><br/>qu_PE<br/><br/><strong>Aymara</strong><br/>ay_BO<br/><br/><strong>Northern Sámi</strong>
<br/>se_NO<br/><br/><strong>Pashto</strong><br/>ps_AF<br/><br/><strong>Klingon</strong>
<br/>tl_ST</p>';
$helptxt['share_options'] = 'Attualmente ci sono tre possibilita per visualizzare le icone: <br />  -Default sotto il messaggio.<br /> - All'interno del

post, questo visualizzeral'icona sotto il contenuto del post. <br /> - In basso alla pagina: Questo visualizzera icona sotto tutto';
$helptxt['share_options_boards'] = 'Molti forum hanno delle board private, le board che non sono visibili dagli ospiti o altri utenti,E possibile con questa

opzione determinare quali board <span  style="color:red;">NON POSSONO</span> visualizzare icona e il pulsante, inserire ID del forum separato da una virgola:

1,34,65,78';

//Condivisione pulsante MI PIACE FINE
Title: Re: Share This Topic
Post by: mirahalo on July 13, 2010, 09:34:00 PM
new version everyone, it fixes a little but annoy bug when you select the option "inside post, at the end" ;)

Changelog

2.0.1
-Added italian language. thanks eng_HK.
-fixed a bug when selected option "inside post at the end".
-cleaner code.



to update just uninstall the previous version and install the new one :)
Title: Re: Share This Topic
Post by: eng_HK on July 14, 2010, 02:02:44 AM
it works during installation and user can use it...
But I cannot use the Like buttun.. could you pls help me?
Title: Re: Share This Topic
Post by: mirahalo on July 14, 2010, 11:47:39 AM
did you enable the button?   any error during the install?   have you created a facebook app?   what error does the facebook button show?  cna you give me an url where the button is suppose to appear?
Title: Re: Share This Topic
Post by: xSpiritx on July 15, 2010, 05:28:59 PM
Hello, well first good MOD and thanks for share it,

I have a problem with the icons, them not show for Share the Topic it only shows letters, as you can see in the image.


Im using SMF 1.1.11

Hope you can help me.
Title: Re: Share This Topic
Post by: mirahalo on July 15, 2010, 05:33:34 PM
upload the share folder to your /Themes/your theme/images/   folder   ;)


where  your theme is the actual  theme you're currently using.
Title: Re: Share This Topic
Post by: xSpiritx on July 15, 2010, 06:04:54 PM
Oh it works!

Thank you so much.
Title: Re: Share This Topic
Post by: MATTEK on July 20, 2010, 07:35:33 PM
I've uninstalled this mod but the Like option is still there. Can't get rid of it. Any ideas?
Title: Re: Share This Topic
Post by: mirahalo on July 20, 2010, 08:14:02 PM
does it shows error during the uninstall?

are you using a custom theme with it own display.template?


attach your theme's display.template  to check
Title: Re: Share This Topic
Post by: MATTEK on July 20, 2010, 09:55:57 PM
Quote from: 130860 on July 20, 2010, 08:14:02 PM
does it shows error during the uninstall?

are you using a custom theme with it own display.template?


attach your theme's display.template  to check

No errors on the uninstall. Here.
Title: Re: Share This Topic
Post by: mirahalo on July 20, 2010, 11:02:40 PM
use this one
Title: Re: Share This Topic
Post by: MATTEK on July 21, 2010, 12:06:07 AM
Quote from: 130860 on July 20, 2010, 11:02:40 PM
use this one

Thank you.
Title: Re: Share This Topic
Post by: eng_HK on July 21, 2010, 09:45:11 AM
@130860

I checked but my template don't have a display.blablabla

Title: Re: Share This Topic
Post by: MATTEK on July 21, 2010, 09:47:50 AM
Quote from: eng_HK on July 21, 2010, 09:45:11 AM
@130860

I checked but my template don't have a display.blablabla

Themes/Default/display.template.php

If you're not using the "default" theme choose the theme you are using.
Title: Re: Share This Topic
Post by: mirahalo on July 21, 2010, 11:47:02 AM
Quote from: eng_HK on July 21, 2010, 09:45:11 AM
@130860

I checked but my template don't have a display.blablabla



did you created a facbook app?

please attach your display.template.php  if your theme doesn't have a display  attach the on in the default theme
Title: Re: Share This Topic
Post by: eng_HK on July 23, 2010, 06:00:42 AM
I created the FB ID application.
Title: Re: Share This Topic
Post by: mirahalo on July 24, 2010, 07:33:25 PM
use this one
Title: Re: Share This Topic
Post by: eng_HK on July 25, 2010, 02:14:44 AM
seams have no effects...
What did you changed?
Title: Re: Share This Topic
Post by: mirahalo on July 25, 2010, 02:26:30 PM
I added the button, did you active the button in the settings?  ca I see a link to your forum?
Title: Re: Share This Topic
Post by: JDz on July 26, 2010, 09:55:14 AM
Hello, please help me!  :(

I did a stupid mistake deleting first the file of share this topic v1.4 on the ftp so now in the administration tool of the board I can't delete it because obviously it doesn't find the install file.
Off course when I've tried to install the v2.0 version there were several problems.
How can I delete the v1.4 version?

Thnx in advance for your help!

ps
unfortunately I haven't done a back up of the v1.4
Title: Re: Share This Topic
Post by: mirahalo on July 26, 2010, 08:34:31 PM
well, the only thing I can think is to you upload the files I told you so I can erase the mod manually, please attach the following:

yourtheme's:
display.template.php

if your theme doesn't have a display.attach the one in the default theme.

./Sources/Admin.php
./Sources/ManageSettings.php
Title: Re: Share This Topic
Post by: eng_HK on July 28, 2010, 06:21:06 AM
@130860 I checked the box for the button.
For sure if you want to check the forum have a look to ....

remove the ( and the space

Thx in advance
Title: Re: Share This Topic
Post by: mirahalo on July 28, 2010, 08:44:55 AM
 you don't have to use all the ) and (  simply put it like this:   h**p://mysite.com    or just mysite.com :)
Title: Re: Share This Topic
Post by: evillive on July 29, 2010, 02:55:22 PM
Is there anyway to use this with the ssi.php page for function ssi_boardNews? I want o have the like buttin in the far right corner of the news topics on my main page and have the share buttons at the very bottom under the comments button. I didn't see anything about ssi in this post so far.
Thanks in advance for any help
Title: Re: Share This Topic
Post by: mirahalo on July 29, 2010, 03:16:07 PM
its possible, do you want the like button and the share icons on every news or just the first one?

can I have a link to your site?  and also, what method are you using to show the news,  the default one:

<?php ssi_boardNews(); ?>

or an array with custom code?  an array will be more easy to modified and better because its not recommended to edit SSI.php directly.

Title: Re: Share This Topic
Post by: evillive on July 29, 2010, 03:57:16 PM
I would like to have the like button and share buttons on every news post.

The site is wheresmyservice.com and I have using eazyportal to post the news. It uses the same function that is in the ssi.php.

function EzBlockBoardNewsBlock($paramters = array(),$board = null, $length = null, $limit = null, $start = null)
{
global $scripturl, $smcFunc, $txt, $settings, $modSettings, $context;


// Pass all the parematers
foreach($paramters as $myparam)
{
if ($myparam['parameter_name'] == 'board')
$board = (int) $myparam['data'];
if ($myparam['parameter_name'] == 'limit')
$limit = (int) $myparam['data'];

if ($myparam['parameter_name'] == 'length')
$length = (int) $myparam['data'];
}



loadLanguage('Stats');

// Must be integers....
if ($limit === null)
$limit = isset($_GET['limit']) ? (int) $_GET['limit'] : 5;
else
$limit = (int) $limit;

if ($start === null)
$start = isset($_GET['start']) ? (int) $_GET['start'] : 0;
else
$start = (int) $start;

if ($length === null)
$length = isset($_GET['length']) ? (int) $_GET['length'] : 0;
else
$length = (int) $length;

$limit = max(0, $limit);
$start = max(0, $start);


// Load the message icons - the usual suspects.
$stable_icons = array('xx', 'thumbup', 'thumbdown', 'exclamation', 'question', 'lamp', 'smiley', 'angry', 'cheesy', 'grin', 'sad', 'wink', 'moved', 'recycled', 'wireless');
$icon_sources = array();
foreach ($stable_icons as $icon)
$icon_sources[$icon] = 'images_url';

// Find the post ids.
$request = $smcFunc['db_query']('', "
SELECT ID_FIRST_MSG
FROM {db_prefix}topics
WHERE ID_BOARD IN($board)
ORDER BY ID_FIRST_MSG DESC
LIMIT $start, $limit");
$posts = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
$posts[] = $row['ID_FIRST_MSG'];
$smcFunc['db_free_result']($request);

if (empty($posts))
return array();

// Find the posts.
$request = $smcFunc['db_query']('', "
SELECT
m.icon, m.subject, m.body, IFNULL(mem.real_name, m.poster_name) AS poster_name, m.poster_time,
t.num_replies, t.ID_TOPIC, m.ID_MEMBER, m.smileys_enabled, m.ID_MSG, t.locked
FROM ({db_prefix}topics AS t, {db_prefix}messages AS m)
LEFT JOIN {db_prefix}members AS mem ON (mem.ID_MEMBER = m.ID_MEMBER)
WHERE t.ID_FIRST_MSG IN (" . implode(', ', $posts) . ")
AND m.ID_MSG = t.ID_FIRST_MSG
ORDER BY t.ID_FIRST_MSG DESC
LIMIT " . count($posts));
$return = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
{
// If we want to limit the length of the post.
if (!empty($length) && $smcFunc['strlen']($row['body']) > $length)
{
$row['body'] = $smcFunc['substr']($row['body'], 0, $length);

// The first space or line break. (<br />, etc.)
$cutoff = max(strrpos($row['body'], ' '), strrpos($row['body'], '<'));

if ($cutoff !== false)
$row['body'] = $smcFunc['substr']($row['body'], 0, $cutoff);
$row['body'] .= '...';
}

$row['body'] = parse_bbc($row['body'], $row['smileys_enabled'], $row['ID_MSG']);

// Check that this message icon is there...
if (empty($modSettings['messageIconChecks_disable']) && !isset($icon_sources[$row['icon']]))
$icon_sources[$row['icon']] = file_exists($settings['theme_dir'] . '/images/post/' . $row['icon'] . '.gif') ? 'images_url' : 'default_images_url';

censorText($row['subject']);
censorText($row['body']);

$return[] = array(
'id' => $row['ID_TOPIC'],
'message_id' => $row['ID_MSG'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'timestamp' => forum_time(true, $row['poster_time']),
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0">' . $row['num_replies'] . ' ' . ($row['num_replies'] == 1 ? $txt['ezp_built_news_1'] : $txt['ezp_built_news_2']) . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['ID_TOPIC'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '<a href="' . $scripturl . '?action=post;topic=' . $row['ID_TOPIC'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ezp_built_news_3'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '<a href="' . $scripturl . '?action=post;topic=' . $row['ID_TOPIC'] . '.' . $row['num_replies'] . '">' . $txt['ezp_built_news_3'] . '</a>',
'poster' => array(
'id' => $row['ID_MEMBER'],
'name' => $row['poster_name'],
'href' => !empty($row['ID_MEMBER']) ? $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] : '',
'link' => !empty($row['ID_MEMBER']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false
);
}
$smcFunc['db_free_result']($request);

if (empty($return))
return;

$return[count($return) - 1]['is_last'] = true;


foreach ($return as $news)
{
echo '
<div>
<a href="', $news['href'], '">', $news['icon'], '</a> <b>', $news['subject'], '</b>
<div class="smaller">', $news['time'], ' ', $txt['ezp_built_by'], ' ', $news['poster']['link'], '</div>

<div class="post" style="padding: 2ex 0;">', $news['body'], '</div>

', $news['link'], $news['locked'] ? '' : ' | ' . $news['comment_link'], '
</div>';

if (!$news['is_last'])
echo '
<hr style="margin: 2ex 0;" width="100%" />';
}

}


Thanks for the super fast reply let me know what I can do to make this work.
Title: Re: Share This Topic
Post by: mirahalo on July 29, 2010, 04:06:11 PM
I never used eazyportal before, let me make a few test on local before I give you an answer.
Title: Re: Share This Topic
Post by: evillive on July 29, 2010, 06:02:51 PM
Thanks for taking the time to look into this. I hope it can be done without too much trouble.
Title: Re: Share This Topic
Post by: pviagem on July 30, 2010, 12:03:19 PM
Hi there

First of all, thank you very much for this great MOD.

I'm using the MOD and everything seems working without problems except with this:

The button Like | Be the first of you friends to like this never changes even if someone has used it.

If I'm coming from facebook to my forum, it shows how many times the button was used (XX people like this.) but if I'm just navigating over the forum, the description is always the same: Like | Be the first of you friends to like this. No info about how many users Like the topic.

Any idea about what is happening?

Many thanks.
Title: Re: Share This Topic
Post by: mirahalo on July 30, 2010, 03:40:46 PM
it show the message because you're not log in on Facebook, you need to be log in to facebook to get access to all the stats including how many people like the topic and if your friends liked it will show your friends photo,   go to a topic where the button with that message is show,  open a new tab on your browser, log in to face book,   refresh the topic page, now you will see the change.
Title: Re: Share This Topic
Post by: mirahalo on July 30, 2010, 06:57:46 PM
@evillive   replace your ez portal function with this one:

function EzBlockBoardNewsBlock($paramters = array(),$board = null, $length = null, $limit = null, $start = null)
{
global $scripturl, $smcFunc, $txt, $settings, $modSettings, $context;






// Pass all the parematers
foreach($paramters as $myparam)
{
if ($myparam['parameter_name'] == 'board')
$board = (int) $myparam['data'];
if ($myparam['parameter_name'] == 'limit')
$limit = (int) $myparam['data'];

if ($myparam['parameter_name'] == 'length')
$length = (int) $myparam['data'];
}



loadLanguage('Stats');

// Must be integers....
if ($limit === null)
$limit = isset($_GET['limit']) ? (int) $_GET['limit'] : 5;
else
$limit = (int) $limit;

if ($start === null)
$start = isset($_GET['start']) ? (int) $_GET['start'] : 0;
else
$start = (int) $start;

if ($length === null)
$length = isset($_GET['length']) ? (int) $_GET['length'] : 0;
else
$length = (int) $length;

$limit = max(0, $limit);
$start = max(0, $start);


// Load the message icons - the usual suspects.
$stable_icons = array('xx', 'thumbup', 'thumbdown', 'exclamation', 'question', 'lamp', 'smiley', 'angry', 'cheesy', 'grin', 'sad', 'wink', 'moved', 'recycled', 'wireless');
$icon_sources = array();
foreach ($stable_icons as $icon)
$icon_sources[$icon] = 'images_url';

// Find the post ids.
$request = $smcFunc['db_query']('', "
SELECT ID_FIRST_MSG
FROM {db_prefix}topics
WHERE ID_BOARD IN($board)
ORDER BY ID_FIRST_MSG DESC
LIMIT $start, $limit");
$posts = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
$posts[] = $row['ID_FIRST_MSG'];
$smcFunc['db_free_result']($request);

if (empty($posts))
return array();

// Find the posts.
$request = $smcFunc['db_query']('', "
SELECT
m.icon, m.subject, m.body, IFNULL(mem.real_name, m.poster_name) AS poster_name, m.poster_time,
t.num_replies, t.ID_TOPIC, m.ID_MEMBER, m.smileys_enabled, m.ID_MSG, t.locked
FROM ({db_prefix}topics AS t, {db_prefix}messages AS m)
LEFT JOIN {db_prefix}members AS mem ON (mem.ID_MEMBER = m.ID_MEMBER)
WHERE t.ID_FIRST_MSG IN (" . implode(', ', $posts) . ")
AND m.ID_MSG = t.ID_FIRST_MSG
ORDER BY t.ID_FIRST_MSG DESC
LIMIT " . count($posts));
$return = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
{
// If we want to limit the length of the post.
if (!empty($length) && $smcFunc['strlen']($row['body']) > $length)
{
$row['body'] = $smcFunc['substr']($row['body'], 0, $length);

// The first space or line break. (<br />, etc.)
$cutoff = max(strrpos($row['body'], ' '), strrpos($row['body'], '<'));

if ($cutoff !== false)
$row['body'] = $smcFunc['substr']($row['body'], 0, $cutoff);
$row['body'] .= '...';
}

$row['body'] = parse_bbc($row['body'], $row['smileys_enabled'], $row['ID_MSG']);

// Check that this message icon is there...
if (empty($modSettings['messageIconChecks_disable']) && !isset($icon_sources[$row['icon']]))
$icon_sources[$row['icon']] = file_exists($settings['theme_dir'] . '/images/post/' . $row['icon'] . '.gif') ? 'images_url' : 'default_images_url';

censorText($row['subject']);
censorText($row['body']);

$return[] = array(
'id' => $row['ID_TOPIC'],
'message_id' => $row['ID_MSG'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'timestamp' => forum_time(true, $row['poster_time']),
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0">' . $row['num_replies'] . ' ' . ($row['num_replies'] == 1 ? $txt['ezp_built_news_1'] : $txt['ezp_built_news_2']) . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['ID_TOPIC'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '<a href="' . $scripturl . '?action=post;topic=' . $row['ID_TOPIC'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ezp_built_news_3'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '<a href="' . $scripturl . '?action=post;topic=' . $row['ID_TOPIC'] . '.' . $row['num_replies'] . '">' . $txt['ezp_built_news_3'] . '</a>',
'poster' => array(
'id' => $row['ID_MEMBER'],
'name' => $row['poster_name'],
'href' => !empty($row['ID_MEMBER']) ? $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] : '',
'link' => !empty($row['ID_MEMBER']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false
);
}
$smcFunc['db_free_result']($request);

if (empty($return))
return;

$return[count($return) - 1]['is_last'] = true;




// Build list of social icons share this topic mod
$social_icons = '';
$sites = array(
     'ask' => 'http://mystuff.ask.com/mysearch/QuickWebSave?v=1.2&url=%s',
'blinkbits' => 'http://blinkbits.com/bookmarklets/save.php?v=1&source_url=%s',
'blinklist' => 'http://blinklist.com/index.php?Action=Blink/addblink.php&Url=%s',
'bloglines' => 'http://www.bloglines.com/sub/%s',
'bmarks' => 'http://blogmarks.net/my/new.php?mini=1&simple=1&url=%s',
'delicious' => 'http://del.icio.us/post?url=%s',
'digg' => 'http://digg.com/submit?phase=2&url=%s',
'dzone' => 'http://www.dzone.com/links/add.html?description&url=%s',
'facebook' => 'http://www.facebook.com/share.php?u=%s',
'feedmelinks' => 'http://feedmelinks.com/categorize?from=toolbar&op=submit&url=%s',
'furl' => 'http://furl.net/storeIt.jsp?u=%s',
'google' => 'http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk=%s',
'live' => 'https://skydrive.live.com/sharefavorite.aspx/.SharedFavorites??marklet=1&url=%s',
'magnolia' => 'http://ma.gnolia.com/bookmarklet/add?url=%s',
'myspace' => 'http://www.myspace.com/index.cfm?fuseaction=postto&amp;c=&amp;t=&amp;u=%s',
'netvouz' => 'http://netvouz.com/action/submitBookmark?url=%s',
'newsvine' => 'http://www.newsvine.com/_wine/save?u=%s',
'oneview' => 'http://www.oneview.de/quickadd/neu/addBookmark.jsf?URL=%s',
'reddit' => 'http://reddit.com/submit?url=%s',
'rojo' => 'http://www.rojo.com/add-subscription/?resource=%s',
'scuttle' => 'http://www.scuttle.org/bookmarks.php/maxpower?action=add&address=%s',
'shadows' => 'http://www.shadows.com/shadows.aspx?url=%s',
'slashdot' => 'http://slashdot.org/bookmark.pl?url=%s',
'spurl' => 'http://www.spurl.net/spurl.php?url=%s',
'squidoo' => 'http://www.squidoo.com/lensmaster/bookmark?%s',
'stumbleupon' => 'http://www.stumbleupon.com/submit?url=%s',
'technorati' => 'http://www.technorati.com/faves?add=%s',
'twitter' => 'http://twitter.com/home?status=%s',
'tipd' => 'http://tipd.com/submit.php?url=%s',
'google' => 'http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk=%s',
'yahoo' => 'http://myweb2.search.yahoo.com/myresults/bookmarklet?u=%s',
'gbuzz' => 'http://www.google.com/reader/link?url=%s',


);


foreach($sites as $site => $url) {
$entry = 'share_' . $site;
$page_url = $return['0']['href'];
if(!empty($modSettings[$entry]) && $modSettings[$entry]) {
$social_icons .= sprintf('<a href="' . $url . '" target="_blank"><img src="' . $settings['images_url'] . '/share/' . $site . '.gif" align="bottom" title="' . $txt['share_default_tooltip'] . '" alt="' . $txt['share_default_tooltip'] . '" /></a>', urlencode($page_url), $txt[$entry], $txt[$entry]);
}
}
   
if($social_icons == "")
$social_icons = '<img src="' . $settings['images_url'] . '/topic/' . $context['class'] . '.gif" align="bottom" alt="" />';


    // Share this topic mod end




foreach ($return as $news)
{
echo '
<div>
<div style="float:left;"><a href="', $news['href'], '">', $news['icon'], '</a> <b>', $news['subject'], '</b> </div><div style="float:right;"><div id="fblike" style="float:right; padding:2px;">
<fb:like href="', urlencode($page_url) ,'"  width="', !empty($modSettings['share_likebutton_width']) ? $modSettings['share_likebutton_width'] : '', '"></fb:like>
             </div></div>
<div class="smaller" style="clear:both;">', $news['time'], ' ', $txt['ezp_built_by'], ' ', $news['poster']['link'], '</div>

<div class="post" style="padding: 2ex 0;">', $news['body'], '</div>

', $news['link'], $news['locked'] ? '' : ' | ' . $news['comment_link'], '
<br />', $social_icons, '</div>';

if (!$news['is_last'])
echo '
<hr style="margin: 2ex 0;" width="100%" />';
}

}



and now, open your index.template.php file, find this:

<body>


and add after this:


// share this topic facebook like buttom start
if (!empty($modSettings['share_likebutton_enable']))
    {
echo '<div id="fb-root"></div>
<script>
  window.fbAsyncInit = function() {
    FB.init({appId: \'', !empty($modSettings['share_likebutton_appid']) ? $modSettings['share_likebutton_appid'] : '', '\', status: true, cookie: true,
             xfbml: true});
  };
  (function() {
    var e = document.createElement(\'script\'); e.async = true;
    e.src = document.location.protocol +
      \'//connect.facebook.net/', !empty($modSettings['share_likebutton_lang']) ? $modSettings['share_likebutton_lang'] : 'en_US', '/all.js\';
    document.getElementById(\'fb-root\').appendChild(e);
  }());
</script>';
}



the facebook like will take the width you put on the mod settings
Title: Re: Share This Topic
Post by: evillive on July 30, 2010, 07:30:07 PM
Thanks I got the share buttons working but the eidt I make in index.template causes the page not to load. Maybe I am not adding it correctly.
Title: Re: Share This Topic
Post by: evillive on July 30, 2010, 08:58:34 PM
No mater what I do to the template the page messes up. Either the css gets roken or the page wont load. The share icons work great but for some reason I just cant get that facebook like button to work.

Thanks for the work I hope I can figure this thing out.
Title: Re: Share This Topic
Post by: mirahalo on July 30, 2010, 09:16:55 PM
can you attach your index.template.php here so I can take a look
Title: Re: Share This Topic
Post by: evillive on July 30, 2010, 09:21:09 PM
Sure here it is
<?php
// Version: 2.0 RC3; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '2.0 RC3';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as opposed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status separate from topic icons? */
$settings['separate_sticky_lock'] = true;

/* Does this theme use the strict doctype? */
$settings['strict_doctype'] = false;

/* Does this theme use post previews on the message index? */
$settings['message_index_preview'] = false;

/* Set the following variable to true if this theme requires the optional theme strings file to be loaded. */
$settings['require_theme_strings'] = true;
}

// The main sub template above the content.
function template_html_above()
{
global $context$settings$options$scripturl$txt$modSettings;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
'

// share this topic facebook like buttom start
echo '
<html xmlns="http://www.w3.org/1999/xhtml" '
, !empty($modSettings['share_likebutton_enable']) ? 'xmlns:fb="http://www.facebook.com/2008/fbml ' '',  $context['right_to_left'] ? ' dir="rtl"' '''>';
     
// share this topic facebook like buttom end
   
   echo '
<head>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta name="description" content="'
$context['page_title_html_safe'], '" />', !empty($context['meta_keywords']) ? '
<meta name="keywords" content="' 
$context['meta_keywords'] . '" />' '''
<title>'
$context['page_title_html_safe'], '</title>';

// Please don't index these Mr Robot.
if (!empty($context['robot_no_index']))
echo '
<meta name="robots" content="noindex" />'
;

// Present a canonical url for search engines to prevent duplicate content in their indices.
if (!empty($context['canonical_url']))
echo '
<link rel="canonical" href="'
$context['canonical_url'], '" />';

// The ?rc3 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/css/index'$context['theme_variant'], '.css?rc3" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/css/print.css?rc3" media="print" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" />
<link rel="search" href="'
$scripturl'?action=search" />
<link rel="contents" href="'
$scripturl'" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']) && (!empty($modSettings['allow_guestAccess']) || $context['user']['is_logged']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name_html_safe'], ' - '$txt['rss'], '" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="'
$scripturl'?board='$context['current_board'], '.0" />';

// Some browsers need an extra stylesheet due to bugs/compatibility issues.
foreach (array('ie7''ie6''webkit') as $cssfix)
if ($context['browser']['is_' $cssfix])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/css/'$cssfix'.css" />';

// RTL languages require an additional stylesheet.
if ($context['right_to_left'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/css/rtl.css" />';

echo '
<script type="text/javascript" src="'
$settings['default_theme_url'], '/scripts/script.js?rc3"></script>
<script type="text/javascript" src="'
$settings['theme_url'], '/scripts/theme.js?rc3"></script>
<script type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_default_theme_url = "'
$settings['default_theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
var smf_charset = "'
$context['character_set'], '";'$context['show_pm_popup'] ? '
var fPmPopup = function ()
{
if (confirm("' 
$txt['show_personal_messages'] . '"))
window.open(smf_prepareScriptUrl(smf_scripturl) + "action=pm");
}
addLoadEvent(fPmPopup);' 
'''
var ajax_notification_text = "'
$txt['ajax_in_progress'], '";
var ajax_notification_cancel_text = "'
$txt['modify_cancel'], '";
// ]]></script>'
;


// share this topic facebook like buttom start
if (!empty($modSettings['share_likebutton_enable']))
    {
echo '
<meta property="og:title" content="'
$context['page_title_html_safe'], '"/>
<meta property="og:site_name" content="'
$context['forum_name_html_safe'], '"/>
<meta property="og:image" content="'
, !empty($modSettings['share_likebutton_image']) ?  $modSettings['share_likebutton_image'] : '''"/>';
    
// share this topic facebook like buttom end

    }// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'];

echo '
<script language="JavaScript" type="text/javascript">
var current_header_am = '
, empty($options['collapse_header_am']) ? 'false' 'true'';

function shrinkHeaderAM(mode)
{'
;

if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkAM=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header_am", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink_am").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("upshrinkHeaderAM").style.display = mode ? "none" : "";

current_header_am = mode;
}
</script>


  <script src="http://platform.twitter.com/anywhere.js?id=Oi5KFX7nyLH8QaOtD3f7Bw&amp;v=1">  </script> <script type="text/javascript">  twttr.anywhere(function (T) {    T(".section").hovercards({      username: function(node) {        return node.alt;      }     });     });  </script>        <script src="http://platform.twitter.com/anywhere.js?id=YOUR DEVELOPER ID&amp;v=1">  </script>  <script type="text/javascript">     twttr.anywhere(function(twitter) {              twitter.hovercards();     });  </script>  </head>



<body>'
;
}

function 
template_body_above()
{
global $context$settings$options$scripturl$txt$modSettings;

echo '
<div id="toparea">
<div id="topbox" class="wrapper">
<div id="userarea">'
;
if($context['user']['is_logged'])
{
echo $txt['hello_member_ndt'] , ' <strong>' $context['user']['name'] , '</strong>';

// Only tell them about their messages if they can read their messages!
if ($context['allow_pm'])
echo '&nbsp;&nbsp;[<a href="'$scripturl'?action=pm">'$context['user']['messages'], '/<strong>'$context['user']['unread_messages'] , '</strong></a> '$txt['pm'], ']';

// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '[<strong>'$txt['maintenance'], '</strong>]';

// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '[<a href="'$scripturl'?action=viewmembers;sa=browse;type=approve">'$context['unapproved_members'] , ' '$txt['memb_approve'], '</a> ]';

echo '&nbsp;&nbsp;<a href="'$scripturl'?action=unread">'$txt['memb_unread'], '</a> / <a href="'$scripturl'?action=unreadreplies">'$txt['replies'], '</a>';

}
else
echo sprintf($txt['welcome_guest'], $txt['guest_title']);

echo '
</div>
</div>
</div>
<div id="mainarea">
<div id="header" class="wrapper">
<div id="logo">
<a href="'
.$scripturl.'" title=""></a>
</div>
<div id="searcharea">'
;
echo '
<form action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '">
<input class="inputbox" type="text" name="search" value="'
$txt['search'], '..." onfocus="this.value = \'\';" onblur="if(this.value==\'\') this.value=\''$txt['search'], '...\';" />';

// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="'
$context['current_topic'], '" />';

// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />';

echo '
</form>
</div>
</div>'
;
echo'
<div class="wrapper">
<div id="toolbar-l">
<div id="toolbar-r">
<div id="toolbar">
'
,template_menu(),'
</div>
</div>
</div>
<div id="bodybox">
<div id="bdybox-l">
<div id="bdybox-b">
<div id="bdybox-br">
<div id="bdybox-bl">
<div id="bdybox-t">
<div id="bdybox-tr">
<div id="bdybox-tl">'
;

// Show the navigation tree.
//theme_linktree();

}

function 
template_body_below()
{
global $context$settings$options$scripturl$txt$modSettings;

echo '
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>'
;
echo '
</div>'
;

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '
<div id="bottomarea">
<div id="footer">
<div id="footerarea">
<span class="smalltext">DS-Natural designed by <b>DzinerStudio</b><br /><br><br>This 
    site was designed for 1024x768 Best viewed with <a href="http://www.microsoft.com/windows/ie/downloads/default.mspx">Microsoft&reg; Internet Explorer 8.0</a><br>
    2009-2010 <a href="http://www.wheresmyservice.com">Wheres My Service</a> for questions 
    contact <a href="mailto:daniel@[email protected]">Webmaster</a><br>
    All Other Content Copyright&copy; Digital-Wraith. Website Design by <a href="http://www.digital-wraith.com">Digital-Wraith</a>. 
    View our <a href="http://wheresmyservice.com/blog/index.php?action=ezportal;sa=page;p=1">Copyright 
    and Privacy Statement</a>
<br />'
theme_copyright(), '</span>';

// Show the load time?
if ($context['show_load_time'])
echo '
<br /><span class="smalltext">'
$txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '</span>';

echo '
</div>
</div>
</div>'
;
}

function 
template_html_below()
{
global $context$settings$options$scripturl$txt$modSettings;

echo '
</body></html>'
;
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree($force_show false)
{
global $context$settings$options$shown_linktree;

// If linktree is empty, just return - also allow an override.
if (empty($context['linktree']) || (!empty($context['dont_default_linktree']) && !$force_show))
return;

echo '
<div class="navigate_section">
<ul>'
;

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
echo '
<li'
, ($link_num == count($context['linktree']) - 1) ? ' class="last"' '''>';

// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo $settings['linktree_link'] && isset($tree['url']) ? '
<a href="' 
$tree['url'] . '"><span>' $tree['name'] . '</span></a>' '<span>' $tree['name'] . '</span>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo ' &#38;#187;';

echo '
</li>'
;
}
echo '
</ul>
</div>'
;

$shown_linktree true;
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context$settings$options$scripturl$txt;

echo '
<div id="topmenu">
<ul>'
;

foreach ($context['menu_buttons'] as $act => $button)
echo '<li><a '$button['active_button'] ? ' class="current"' '' ' href="'$button['href'], '"><span>'$button['title'], '</span></a></li>';

echo '
</ul>
</div>'
;

}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$strip_options = array())
{
global $settings$context$txt$scripturl;

if (!is_array($strip_options))
$strip_options = array();

// Create the buttons...
$buttons = array();
foreach ($button_strip as $key => $value)
{
if (!isset($value['test']) || !empty($context[$value['test']]))
$buttons[] = '
<li><a' 
. (isset($value['id']) ? ' id="button_strip_' $value['id'] . '"' '') . ' class="button_strip_' $key '' . (isset($value['active']) ? ' active' '') . '" href="' $value['url'] . '"' . (isset($value['custom']) ? ' ' $value['custom'] : '') . '><span>' $txt[$value['text']] . '</span></a></li>';
}

// No buttons? No button strip either.
if (empty($buttons))
return;

// Make the last one, as easy as possible.
$buttons[count($buttons) - 1] = str_replace('<span>''<span class="last">'$buttons[count($buttons) - 1]);

echo '
<div class="buttonlist'
, !empty($direction) ? ' align_' $direction '''"', (empty($buttons) ? ' style="display: none;"' ''), (!empty($strip_options['id']) ? ' id="' $strip_options['id'] . '"'''), '>
<ul>'
,
implode(''$buttons), '
</ul>
</div>'
;
}

?>
Title: Re: Share This Topic
Post by: evillive on July 30, 2010, 11:38:27 PM
I ust noticed that all the share links are the same for every post. Not sure if that will be fixed with the template changes or not. You can see on the site what happens when you share.
Title: Re: Share This Topic
Post by: mirahalo on July 31, 2010, 09:19:05 PM
oh! ok, let me cehck that again, I tested on local before gave it to you, let me check that again
Title: Re: Share This Topic
Post by: pviagem on August 02, 2010, 06:58:47 AM
Quote from: 130860 on July 30, 2010, 03:40:46 PM
it show the message because you're not log in on Facebook, you need to be log in to facebook to get access to all the stats including how many people like the topic and if your friends liked it will show your friends photo,   go to a topic where the button with that message is show,  open a new tab on your browser, log in to face book,   refresh the topic page, now you will see the change.

Many thanks for this clarification
Title: Re: Share This Topic
Post by: mirahalo on August 02, 2010, 01:54:23 PM
  alright evillive   use this code:

Code (php) Select
function EzBlockBoardNewsBlock($paramters = array(),$board = null, $length = null, $limit = null, $start = null)
{
global $scripturl, $smcFunc, $txt, $settings, $modSettings, $context;






// Pass all the parematers
foreach($paramters as $myparam)
{
if ($myparam['parameter_name'] == 'board')
$board = (int) $myparam['data'];
if ($myparam['parameter_name'] == 'limit')
$limit = (int) $myparam['data'];

if ($myparam['parameter_name'] == 'length')
$length = (int) $myparam['data'];
}



loadLanguage('Stats');

// Must be integers....
if ($limit === null)
$limit = isset($_GET['limit']) ? (int) $_GET['limit'] : 5;
else
$limit = (int) $limit;

if ($start === null)
$start = isset($_GET['start']) ? (int) $_GET['start'] : 0;
else
$start = (int) $start;

if ($length === null)
$length = isset($_GET['length']) ? (int) $_GET['length'] : 0;
else
$length = (int) $length;

$limit = max(0, $limit);
$start = max(0, $start);


// Load the message icons - the usual suspects.
$stable_icons = array('xx', 'thumbup', 'thumbdown', 'exclamation', 'question', 'lamp', 'smiley', 'angry', 'cheesy', 'grin', 'sad', 'wink', 'moved', 'recycled', 'wireless');
$icon_sources = array();
foreach ($stable_icons as $icon)
$icon_sources[$icon] = 'images_url';

// Find the post ids.
$request = $smcFunc['db_query']('', "
SELECT ID_FIRST_MSG
FROM {db_prefix}topics
WHERE ID_BOARD IN($board)
ORDER BY ID_FIRST_MSG DESC
LIMIT $start, $limit");
$posts = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
$posts[] = $row['ID_FIRST_MSG'];
$smcFunc['db_free_result']($request);

if (empty($posts))
return array();

// Find the posts.
$request = $smcFunc['db_query']('', "
SELECT
m.icon, m.subject, m.body, IFNULL(mem.real_name, m.poster_name) AS poster_name, m.poster_time,
t.num_replies, t.ID_TOPIC, m.ID_MEMBER, m.smileys_enabled, m.ID_MSG, t.locked
FROM ({db_prefix}topics AS t, {db_prefix}messages AS m)
LEFT JOIN {db_prefix}members AS mem ON (mem.ID_MEMBER = m.ID_MEMBER)
WHERE t.ID_FIRST_MSG IN (" . implode(', ', $posts) . ")
AND m.ID_MSG = t.ID_FIRST_MSG
ORDER BY t.ID_FIRST_MSG DESC
LIMIT " . count($posts));
$return = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
{
// If we want to limit the length of the post.
if (!empty($length) && $smcFunc['strlen']($row['body']) > $length)
{
$row['body'] = $smcFunc['substr']($row['body'], 0, $length);

// The first space or line break. (<br />, etc.)
$cutoff = max(strrpos($row['body'], ' '), strrpos($row['body'], '<'));

if ($cutoff !== false)
$row['body'] = $smcFunc['substr']($row['body'], 0, $cutoff);
$row['body'] .= '...';
}

$row['body'] = parse_bbc($row['body'], $row['smileys_enabled'], $row['ID_MSG']);

// Check that this message icon is there...
if (empty($modSettings['messageIconChecks_disable']) && !isset($icon_sources[$row['icon']]))
$icon_sources[$row['icon']] = file_exists($settings['theme_dir'] . '/images/post/' . $row['icon'] . '.gif') ? 'images_url' : 'default_images_url';

censorText($row['subject']);
censorText($row['body']);

$return[] = array(
'id' => $row['ID_TOPIC'],
'message_id' => $row['ID_MSG'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['poster_time']),
'timestamp' => forum_time(true, $row['poster_time']),
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0">' . $row['num_replies'] . ' ' . ($row['num_replies'] == 1 ? $txt['ezp_built_news_1'] : $txt['ezp_built_news_2']) . '</a>',
'replies' => $row['num_replies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['ID_TOPIC'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'],
'comment_link' => !empty($row['locked']) ? '' : '<a href="' . $scripturl . '?action=post;topic=' . $row['ID_TOPIC'] . '.' . $row['num_replies'] . ';num_replies=' . $row['num_replies'] . '">' . $txt['ezp_built_news_3'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '<a href="' . $scripturl . '?action=post;topic=' . $row['ID_TOPIC'] . '.' . $row['num_replies'] . '">' . $txt['ezp_built_news_3'] . '</a>',
'poster' => array(
'id' => $row['ID_MEMBER'],
'name' => $row['poster_name'],
'href' => !empty($row['ID_MEMBER']) ? $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] : '',
'link' => !empty($row['ID_MEMBER']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['poster_name'] . '</a>' : $row['poster_name']
),
'locked' => !empty($row['locked']),
'is_last' => false
);
}
$smcFunc['db_free_result']($request);

if (empty($return))
return;

$return[count($return) - 1]['is_last'] = true;








foreach ($return as $news)
{
 
// Build list of social icons share this topic mod
$social_icons = '';
$sites = array(
     'ask' => 'http://mystuff.ask.com/mysearch/QuickWebSave?v=1.2&url=%s',
'blinkbits' => 'http://blinkbits.com/bookmarklets/save.php?v=1&source_url=%s',
'blinklist' => 'http://blinklist.com/index.php?Action=Blink/addblink.php&Url=%s',
'bloglines' => 'http://www.bloglines.com/sub/%s',
'bmarks' => 'http://blogmarks.net/my/new.php?mini=1&simple=1&url=%s',
'delicious' => 'http://del.icio.us/post?url=%s',
'digg' => 'http://digg.com/submit?phase=2&url=%s',
'dzone' => 'http://www.dzone.com/links/add.html?description&url=%s',
'facebook' => 'http://www.facebook.com/share.php?u=%s',
'feedmelinks' => 'http://feedmelinks.com/categorize?from=toolbar&op=submit&url=%s',
'furl' => 'http://furl.net/storeIt.jsp?u=%s',
'google' => 'http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk=%s',
'live' => 'https://skydrive.live.com/sharefavorite.aspx/.SharedFavorites??marklet=1&url=%s',
'magnolia' => 'http://ma.gnolia.com/bookmarklet/add?url=%s',
'myspace' => 'http://www.myspace.com/index.cfm?fuseaction=postto&amp;c=&amp;t=&amp;u=%s',
'netvouz' => 'http://netvouz.com/action/submitBookmark?url=%s',
'newsvine' => 'http://www.newsvine.com/_wine/save?u=%s',
'oneview' => 'http://www.oneview.de/quickadd/neu/addBookmark.jsf?URL=%s',
'reddit' => 'http://reddit.com/submit?url=%s',
'rojo' => 'http://www.rojo.com/add-subscription/?resource=%s',
'scuttle' => 'http://www.scuttle.org/bookmarks.php/maxpower?action=add&address=%s',
'shadows' => 'http://www.shadows.com/shadows.aspx?url=%s',
'slashdot' => 'http://slashdot.org/bookmark.pl?url=%s',
'spurl' => 'http://www.spurl.net/spurl.php?url=%s',
'squidoo' => 'http://www.squidoo.com/lensmaster/bookmark?%s',
'stumbleupon' => 'http://www.stumbleupon.com/submit?url=%s',
'technorati' => 'http://www.technorati.com/faves?add=%s',
'twitter' => 'http://twitter.com/home?status=%s',
'tipd' => 'http://tipd.com/submit.php?url=%s',
'google' => 'http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk=%s',
'yahoo' => 'http://myweb2.search.yahoo.com/myresults/bookmarklet?u=%s',
'gbuzz' => 'http://www.google.com/reader/link?url=%s',


);


foreach($sites as $site => $url){

$entry = 'share_' . $site;
$page_url = $news['href'];
if(!empty($modSettings[$entry]) && $modSettings[$entry]) {
$social_icons .= sprintf('<a href="' . $url . '" target="_blank"><img src="' . $settings['images_url'] . '/share/' . $site . '.gif" align="bottom" title="' . $txt['share_default_tooltip'] . '" alt="' . $txt['share_default_tooltip'] . '" /></a>', urlencode($page_url), $txt[$entry], $txt[$entry]);}

}

echo '
<div>
<div style="float:left;"><a href="', $news['href'], '">', $news['icon'], '</a> <b>', $news['subject'], '</b> </div><div style="float:right;"><div id="fblike" style="float:right; padding:2px;">
<fb:like href="', urlencode($news['href']) ,'"  width="', !empty($modSettings['share_likebutton_width']) ? $modSettings['share_likebutton_width'] : '', '"></fb:like>
             </div></div>
<div class="smaller" style="clear:both;">', $news['time'], ' ', $txt['ezp_built_by'], ' ', $news['poster']['link'], '</div>

<div class="post" style="padding: 2ex 0;">', $news['body'], '</div>

', $news['link'], $news['locked'] ? '' : ' | ' . $news['comment_link'], '
<br />', $social_icons, '</div>';

if (!$news['is_last'])
echo '
<hr style="margin: 2ex 0;" width="100%" />';
}




}


and the file attached
Title: Re: Share This Topic
Post by: evillive on August 02, 2010, 03:00:39 PM
Thank you so much it works perfect.
Title: Re: Share This Topic
Post by: mirahalo on August 02, 2010, 03:08:21 PM
glad it worked ;)  I actually end up using the same on my site which uses SSI :)
Title: Icons don't show
Post by: loki8 on August 02, 2010, 06:16:28 PM
Hi, your mod is just great!!!

I have a problem though...


The Icons do not show. I installed it successfully but this came up.

How do I resolve it?

Thanks
Title: Re: Share This Topic
Post by: mirahalo on August 02, 2010, 06:18:35 PM
check the FAQ link on the very first post ;)
Title: Re: Share This Topic
Post by: loki8 on August 02, 2010, 06:28:09 PM
Worked! Thanks.


[Off-topic] In the "packages" folder I still see the compressed mods. Are those files necessary for the mods to run? Or are they just waisting my Hosting Space? [Off-topic/]
Title: Re: Share This Topic
Post by: mirahalo on August 02, 2010, 06:36:24 PM
any mod you install will be stored in your "Packages" directory  when you want to uninstall one mod,  the packager manager will check that directory and will perform the unnistall,  you can delete the share this topic zip within  Packages folder,  but if you do, you wont be able to unistall it with the packager manager, you will have to do it manually.

no, those compressed files are not needed for any mod to work properly.
Title: Re: Share This Topic
Post by: Greenman on August 03, 2010, 05:35:23 AM
Trying to get SSI to show the buttons too, what part of the index.template code did you modify for evillive?
I have a clean SMF2.0 rc3 install.
Title: Re: Share This Topic
Post by: GarfieldP on August 03, 2010, 08:43:34 AM
having problems with small buttons?
heres my three buttons I use for twitter facebook and digg.  Any other common social sites I should do?
(http://garfieldp.com/Pictures/twitter.gif)
(http://garfieldp.com/Pictures/facebook.gif) changed the backround for facebook because of the background of my site.
(http://garfieldp.com/Pictures/digg.gif)
free to use
Title: Re: Share This Topic
Post by: mirahalo on August 03, 2010, 10:55:03 AM
Quote from: Greenman on August 03, 2010, 05:35:23 AM
Trying to get SSI to show the buttons too, what part of the index.template code did you modify for evillive?
I have a clean SMF2.0 rc3 install.

I''m currently in the middle of a re-do for this mod, that will allow users to easily add the icons and the facebook like button where needed/wanted.

but if you want I can make those changes for you, just tell me, are you using the SSI echo method or are you using an array?

if you are just using   <?php ssi_boardNews(); ?>   then please attach your SSI.php file,  if you're using an arrary,  post the file where your code is.



@GarfieldP     thank you for sharing ;)
Title: Re: Share This Topic
Post by: pviagem on August 03, 2010, 07:49:39 PM
Hi

I'm using this MOD and everything is working as expected. The MOD was configured as requested by installation instructions (new application from Facebook developers).

What I would like to know is if I've any chance to use a facebook page instance of the current application.

I've this page http://www.facebook.com/pages/ProximaViagem/141465445876984 (http://www.facebook.com/pages/ProximaViagem/141465445876984) which is connected to my personal profile and if I use the "Add Like Box" I receive a Facebook Page Id (the id of the facebook page for this Like Box). Can I use this ID with the MOD?

Basically what I would like it's to replace the Facebook application by this page.

Many thanks for any help or comments.
Title: Re: Share This Topic
Post by: Greenman on August 04, 2010, 08:36:56 PM
Quote from: 130860 on August 03, 2010, 10:55:03 AM
Quote from: Greenman on August 03, 2010, 05:35:23 AM
Trying to get SSI to show the buttons too, what part of the index.template code did you modify for evillive?
I have a clean SMF2.0 rc3 install.

I''m currently in the middle of a re-do for this mod, that will allow users to easily add the icons and the facebook like button where needed/wanted.

but if you want I can make those changes for you, just tell me, are you using the SSI echo method or are you using an array?

if you are just using   <?php ssi_boardNews(); ?>   then please attach your SSI.php file,  if you're using an arrary,  post the file where your code is.

Oh, if it won't take too long I could wait!  :)

If it'll take a while though, here's my SSI.php. I just want for the facebook "like" button to show up in every first post through <?php ssi_boardNews(); ?>.
Title: Re: Share This Topic
Post by: mirahalo on August 05, 2010, 11:19:07 AM
mmm, its not recommendable to directly edit SSI.php, so  lets make  an array instead :)

on your page where   <?php ssi_boardNews(); ?>  is, replace   <?php ssi_boardNews(); ?>.   with this:


Code (php) Select
<?php
 
// $board is the id of the board you want to display, null shows it all.
// $limit is the number of news to display, null show it all
// $start is the id of the topic where the news will start to display, null to start of the recent one
// $length well, obviusly is the length of the news post, set null to show it full
 
 
$board_news ssi_boardNews($board null$limit null$start null$length null'array');
global $scripturl$modSettings$txt;

 foreach (
$board_news as $news){

// Build list of social icons share this topic mod
$social_icons '';
$sites = array(
     'ask' => 'http://mystuff.ask.com/mysearch/QuickWebSave?v=1.2&url=%s',
 'blinkbits' => 'http://blinkbits.com/bookmarklets/save.php?v=1&source_url=%s',
 'blinklist' => 'http://blinklist.com/index.php?Action=Blink/addblink.php&Url=%s',
 'bloglines' => 'http://www.bloglines.com/sub/%s',
 'bmarks' => 'http://blogmarks.net/my/new.php?mini=1&simple=1&url=%s',
 'delicious' => 'http://del.icio.us/post?url=%s',
 'digg' => 'http://digg.com/submit?phase=2&url=%s',
 'dzone' => 'http://www.dzone.com/links/add.html?description&url=%s',
 'facebook' => 'http://www.facebook.com/share.php?u=%s',
 'feedmelinks' => 'http://feedmelinks.com/categorize?from=toolbar&op=submit&url=%s',
 'furl' => 'http://furl.net/storeIt.jsp?u=%s',
 'google' => 'http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk=%s',
 'live' => 'https://skydrive.live.com/sharefavorite.aspx/.SharedFavorites??marklet=1&url=%s',
 'magnolia' => 'http://ma.gnolia.com/bookmarklet/add?url=%s',
 'myspace' => 'http://www.myspace.com/index.cfm?fuseaction=postto&amp;c=&amp;t=&amp;u=%s',
 'netvouz' => 'http://netvouz.com/action/submitBookmark?url=%s',
 'newsvine' => 'http://www.newsvine.com/_wine/save?u=%s',
 'oneview' => 'http://www.oneview.de/quickadd/neu/addBookmark.jsf?URL=%s',
 'reddit' => 'http://reddit.com/submit?url=%s',
 'rojo' => 'http://www.rojo.com/add-subscription/?resource=%s',
 'scuttle' => 'http://www.scuttle.org/bookmarks.php/maxpower?action=add&address=%s',
 'shadows' => 'http://www.shadows.com/shadows.aspx?url=%s',
 'slashdot' => 'http://slashdot.org/bookmark.pl?url=%s',
 'spurl' => 'http://www.spurl.net/spurl.php?url=%s',
 'squidoo' => 'http://www.squidoo.com/lensmaster/bookmark?%s',
 'stumbleupon' => 'http://www.stumbleupon.com/submit?url=%s',
 'technorati' => 'http://www.technorati.com/faves?add=%s',
 'twitter' => 'http://twitter.com/home?status=%s',
 'tipd' => 'http://tipd.com/submit.php?url=%s',
 'google' => 'http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk=%s',
 'yahoo' => 'http://myweb2.search.yahoo.com/myresults/bookmarklet?u=%s',
 'gbuzz' => 'http://www.google.com/reader/link?url=%s',


);


foreach(
$sites as $site => $url){

$entry 'share_' $site;
$page_url $news['href'];
if(!empty($modSettings[$entry]) && $modSettings[$entry]) {
$social_icons .= sprintf('<a href="' $url '" target="_blank"><img src="' $settings['images_url'] . '/share/' $site '.gif" align="bottom" title="' $txt['share_default_tooltip'] . '" alt="' $txt['share_default_tooltip'] . '" /></a>'urlencode($page_url), $txt[$entry], $txt[$entry]);}

}


echo '
<div>
<a href="'
$news['href'], '">'$news['icon'], '</a> <strong>'$news['subject'], '</strong><br />
<fb:like href="'
urlencode($news['href']) ,'"  width="', !empty($modSettings['share_likebutton_width']) ? $modSettings['share_likebutton_width'] : '''"></fb:like><br />
<div class="smaller">'
$news['time'], ' '$txt['by'], ' '$news['poster']['link'], '</div>

<div class="post" style="padding: 2ex 0;">'
$news['body'], '</div>

'
$news['link'], $news['locked'] ? '' ' | ' $news['comment_link'], '
<br />'
,$social_icons,'</div>';

if (!$news['is_last'])
echo '
<hr style="margin: 2ex 0;" width="100%" />'
;
}
 
 
 
?>



this will show the exact code but with the share icons and the like button.
Title: Re: Share This Topic
Post by: Greenman on August 06, 2010, 08:56:14 AM
Thanks!

Share buttons work, but no "Like" buttons are showing. :(
Title: Re: Share This Topic
Post by: gbsothere on August 06, 2010, 09:29:44 AM
Hi, 130860.   :)


I'm helping a member here with her RC3 site and two errors are being generated that refer back to the code for this mod:

   

I've not had any luck searching the first error because it is simply "undefined index:" without saying what the undefined index is (although I would guess they're both the same).

In her case, "undefined index" ties back to line 248 of the Display.template.php
   
if ($share_options[$modSettings['share_options']] == 'share_option1') {


The other error is "Undefined index: share_options" but it didn't come up on search.  It points to line 804 of the same template:

   

if ($share_options[$modSettings['share_options']] == 'share_option3') {


She does have a custom theme, but it has no Display.template.php so it rolls back to default.  Her forum language is English.

I'd sure appreciate any help. 
Title: Re: Share This Topic
Post by: Polymath on August 06, 2010, 10:42:46 PM
Would have been good, but I can not get the sharetopic admin page to load to even turn it on and use it.. hangs.
Title: Re: Share This Topic
Post by: mirahalo on August 07, 2010, 07:21:04 PM
@Greenman  please attach the file where your're using the code.


@gbsothere   mmm,weird, maybe she doesn't have $modSettings in globals?  can you pelase direct me where the topic problem is :)

@Polymath  any errors on the error log?   errors on install?     it hangs in blank? 
Title: Re: Share This Topic
Post by: Polymath on August 07, 2010, 07:28:48 PM
Quote@Polymath  any errors on the error log?   errors on install?     it hangs in blank? 

Sorry. I couldn't add it in package manager. Says currupt, but it is not..thats not a problem, everything I add there says corrupt.

I installed it manually no problem with that.(I do that with almost everything)  It didn't get to errors it just tried to load. After about 10 minutes it had not gone anywhere, It hangs in the admin features, (click the admin share link and it just spins the browser loading thingy, but stays there) so I removed it.

I will give it another go when I have time though.

Thanks for asking.
Title: Re: Share This Topic
Post by: mirahalo on August 07, 2010, 07:32:47 PM
errors on your errors log?

can you please attach your  ./Sources/ModSettings.php here.
Title: Re: Share This Topic
Post by: Polymath on August 07, 2010, 07:37:46 PM
ModSettings.php attached

As for errors in my error log. Too hard to find. I have 700 pages of errors a day because of the arcade guest score submit.
Title: Re: Share This Topic
Post by: mirahalo on August 07, 2010, 08:18:18 PM
well, the file you attached didn't have any code of my mod,  I added the corresponding code, please try this one.
Title: Re: Share This Topic
Post by: Polymath on August 07, 2010, 09:02:48 PM
Yeah. sorry. That was the fresh one, before edit. I had removed the mod. I'll do the rest later. Cheers
Title: Re: Share This Topic
Post by: gbsothere on August 07, 2010, 10:57:45 PM
Quote from: 130860 on August 07, 2010, 07:21:04 PM

@gbsothere   mmm,weird, maybe she doesn't have $modSettings in globals?  can you pelase direct me where the topic problem is :)

Well, the topic was for another matter but once we got her forum squared away, we noticed that this error still remains. 

I see $modSettings in every global string except for a section that seems to be related to Ajax Chat.  It takes someone smarter than I, though, to sort through it.   :)

Would you mind taking a look at her template (attached)?
Title: Re: Share This Topic
Post by: waqarhassan on August 08, 2010, 02:06:34 AM
This is very useful mods i install on my forum 2.0rc3 its working good thanks dear
Title: Re: Share This Topic
Post by: Polymath on August 08, 2010, 03:14:42 AM
Thanks It is all working now.
I guess there is no way to change the "be the first to like this' facebook text colour is there. I have a black website...and so is the text..LOL
Title: Re: Share This Topic
Post by: Polymath on August 08, 2010, 06:52:20 AM
Quote from: GarfieldP on August 03, 2010, 08:43:34 AM
having problems with small buttons?
heres my three buttons I use for twitter facebook and digg.  Any other common social sites I should do?
(http://garfieldp.com/Pictures/twitter.gif)
(http://garfieldp.com/Pictures/facebook.gif) changed the backround for facebook because of the background of my site.
(http://garfieldp.com/Pictures/digg.gif)
free to use

Question...why is it that photoshop won't open them...and if I open them in a browser I get the red X. If I right click them I get a warning of running active x. Plus they are nearly 4000 bytes each

Ok. I used Google for the answer.
Title: Re: Share This Topic
Post by: GarfieldP on August 08, 2010, 07:11:35 AM
does it work yet? dont understand why it wouldn't? lol
Title: Re: Share This Topic
Post by: Polymath on August 08, 2010, 07:20:39 AM
Nope. Just the program used to make them I think.
I just got new images so i could change the size. All good
Title: Re: Share This Topic
Post by: GarfieldP on August 08, 2010, 07:33:41 AM
glad it worked out! could have resized mine too
Title: Re: Share This Topic
Post by: mirahalo on August 08, 2010, 08:27:21 PM
@Polymath   yes, there is a way to change the color of the text, open your Display.template.php  find this:  <fb:like

and next add this:  colorscheme="dark"

will be like this:  <fb:like colorscheme="dark"

or attach your file here,  on the next version I will add another option to change the color of the button ;)

@gbsothere   could you please tell her to use the file attached and see if the errors left ;)


@waqarhassan  glad you like the mod ;) 
Title: Re: Share This Topic
Post by: Polymath on August 08, 2010, 08:39:02 PM
Quote@Polymath   yes, there is a way to change the color of the text, open your Display.template.php  find this:  <fb:like

and next add this:  colorscheme="dark"

will be like this:  <fb:like colorscheme="dark"

Hey thank you. Your support is great. Pumping out the help to everybody. I like how you request to attach so it can be done and move on to the next. Well done.

Thanks for fixing that wee color problem i had.

Cheers for this mod. If there was a like button on this topic. I would ' Like'  ;D
Title: Re: Share This Topic
Post by: mirahalo on August 08, 2010, 08:44:28 PM
oh no, thank you for using my mod ;)

to know people actually use and enjoy the little things I make is just a wonderful feeling :)


ups! I didn't realize I pass the 7k  :)  ;D
Title: Re: Share This Topic
Post by: gbsothere on August 08, 2010, 10:21:08 PM
Quote from: 130860 on August 08, 2010, 08:27:21 PM

@gbsothere   could you please tell her to use the file attached and see if the errors left ;)



I'm clicking around and can't seem to generate it again, so I think you've clinched it. 

Thanks so much.   ;)
Title: Re: Share This Topic
Post by: Greenman on August 09, 2010, 01:51:13 AM
Quote from: 130860 on August 07, 2010, 07:21:04 PM
@Greenman  please attach the file where your're using the code.

include "share.php" is the code you gave.

I'm guessing it's not showing because this page is on the main site, not an index for the forum. The forum is in a folder, next to the page. (folder called "forum")
Title: Re: Share This Topic
Post by: mirahalo on August 09, 2010, 10:09:47 AM
try this one ;)
Title: Re: Share This Topic
Post by: Greenman on August 09, 2010, 06:28:02 PM
Hmm..

QuoteParse error: syntax error, unexpected $end in /releases.php on line 45
Title: Re: Share This Topic
Post by: ɔɔɔɔɔɔuɥoɾ on August 09, 2010, 07:02:59 PM
Seem their is a close " } " missing, fixed :)
Title: Re: Share This Topic
Post by: Greenman on August 09, 2010, 08:56:20 PM
Mmm.. I am very grateful for the help and I hate to be taking your time, but the facebook "like" still won't show up, and something in the following code seems to be disabling my css style file.
<html xmlns="http://www.w3.org/1999/xhtml" ', !empty($modSettings['share_likebutton_enable']) ? 'xmlns:fb="http://www.facebook.com/2008/fbml ' : '',  $context['right_to_left'] ? ' dir="rtl"' : '', '>

Without it: page shows fine, but no facebook "like" anywhere.
With it: facebook "like" still doesn't show, and the page looks bad since style.css doesn't load up.
Title: Re: Share This Topic
Post by: ɔɔɔɔɔɔuɥoɾ on August 09, 2010, 09:08:05 PM
I don't know about this mod, it just happens I saw the releases.php is an external file with a parse error, usually an easy fix.

You will have to wait for the author to get back to you :)
Title: Re: Share This Topic
Post by: Greenman on August 09, 2010, 09:18:49 PM
Yep, figured. Thanks John. :)
Title: Re: Share This Topic
Post by: Suki on August 10, 2010, 09:21:28 AM
Greenman try the file attached
Title: Re: Share This Topic
Post by: Greenman on August 10, 2010, 06:30:43 PM
Same result: No like buttons, no style.css.
Title: Re: Share This Topic
Post by: mirahalo on August 10, 2010, 07:11:50 PM
can you please try this one ;)
Title: Re: Share This Topic
Post by: Greenman on August 11, 2010, 05:04:03 AM
Yey, stylesheet works now. :) But no facebook "like" buttons. :(
Title: Re: Share This Topic
Post by: mirahalo on August 11, 2010, 11:58:02 AM
ok, can you try intead of putting the include  include("share.php");   to put all the content from that file?

does the like button show on your forum's messages?     theres a settings to enable/disable the mod  and the code i gave you follow that setting, if the setting is off, the button will not show.
Title: Re: Share This Topic
Post by: Greenman on August 11, 2010, 05:44:58 PM
Tried, tried again, same.

The button shows up on the forum, in every thread, it is turned on, but it won't show through SSI on a page.
If you can give me a working example, I could troubleshoot it myself, but I have yet to see it show up, so I'm not sure what I could try. :(

I tried cutting down the code and minimizing the html to the bare essentials, but it still won't show.
Title: Re: Share This Topic
Post by: mirahalo on August 11, 2010, 05:50:41 PM
well, its weird, as I have practically the same code on my site,   I attached the file I use:


and this is the very first part of my index.php where the file "noticias.php"  is include just like yours


<?php require("path/to/forum/SSI.php"); ?>
<!DOCTYPE html PUBLIC
  "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-Type" content="text/html; charset=utf-8" />



<?php  

global $modSettings$context;

// share this topic facebook like buttom start
if (!empty($modSettings['share_likebutton_enable']))
    {
echo '
<meta property="og:title" content="'
$context['page_title_html_safe'], '"/>
<meta property="og:site_name" content="'
$context['forum_name_html_safe'], '"/>
<meta property="og:image" content="'
, !empty($modSettings['share_likebutton_image']) ?  $modSettings['share_likebutton_image'] : '''"/>';
    
// share this topic facebook like buttom end

?>



and as you can see on my site, its perfectly working
Title: Re: Share This Topic
Post by: Greenman on August 11, 2010, 07:56:58 PM
Hmm.. It's not working on my host.
Maybe I missed something? A setting on facebook or something? ???

Something I have yet to try is to modify the SSI.php, maybe that'll work? :-\
Title: Re: Share This Topic
Post by: mirahalo on August 11, 2010, 08:08:46 PM
well, sure,   use this one

Title: Re: Share This Topic
Post by: Greenman on August 12, 2010, 01:49:58 AM
Fixed it. ;D

It wouldn't show up for me because I was missing JavaScript SDK:
http://developers.facebook.com/docs/reference/javascript/

Thanks so much for your help and this great mod!! :)
Title: Re: Share This Topic
Post by: Raffoz on August 12, 2010, 06:03:21 AM
very nice!!! :)

would be nice to have a button to disable the mod...
if i uncheck all the "social group", still appears the block with an icon inside...
Title: Re: Share This Topic
Post by: mirahalo on August 12, 2010, 10:38:56 AM
oh! well thought ;)   I write this on my list for the next release,  thanks ;)
Title: Re: Share This Topic
Post by: billy2 on August 13, 2010, 03:44:44 AM
Hi,
Love the mod, thx.

I have glanced through all posts but cannot get my head round how to do this..

How can I increase gap between icons.
I am only using 12 of them and they are all too close for my liking.

cheers for some help
Billy
Title: Re: Share This Topic
Post by: CerebralJam on August 13, 2010, 07:16:38 AM
Hiya... loving the idea of this mod.

Unfortunately I do not know php and have tried to parse the mods on my custom theme, there's stuff in there that is different and it throws up errors for me because I don't know how to make the changes with the extra coding.

Please can you assist?  I have attached my Display.template.php for theme Anecdota20bp

Many, many thanks!

EDIT:  I've also uploaded my attempt at doing this called Displaya.template  - I really don't know what I am doing and this was the error it chucked up:

Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in .../Themes/Anecdota20bp/Display.template.php on line 552
543:                         <div class="inner" id="msg_', $message['id'], '"', '>', $message['body'], '</div>
544:                      ';
545:                      if ($message['counter'] == 0 && $share_options[$modSettings['share_options']] == 'share_option2')   {   
546:    global $board_info, $modSettings ;
547:     if (in_array($board_info['id'], $share_denied_boards)) {echo '';}
548:     else { echo '<p /><div style="text-align: left; width:95%">', $social_icons, '</div>';}  }
549:    
550:    
551:       // share this topic mod end         
552:        echo'</div>' $message['can_modify'] ? '
553:                <img src="' . $settings['images_url'] . '/icons/modify_inline.gif" alt="" title="' . $txt['modify_msg'] . '" class="modifybutton" id="modify_button_' . $message['id'] . '" style="cursor: ' . ($context['browser']['is_ie5'] || $context['browser']['is_ie5.5'] ? 'hand' : 'pointer') . '; display: none;" onclick="oQuickModify.modifyMsg(\'' . $message['id'] . '\')" />' : '';
554:
555:       // Assuming there are attachments...
556:       if (!empty($message['attachment']))

There may be even more errors and that is why I am offering you the original Display.template to look at for me  :)  Using html I know you wouldn't normally have anything after the </div> but - I don't know what to do with the bit left over :D  And again the <div id="forumposts" class="tborder"> is different and I didn't know what to do about the class.
Title: Re: Share This Topic
Post by: ɔɔɔɔɔɔuɥoɾ on August 13, 2010, 11:47:27 AM
Try this, I have added all the edits as the mod states too, although unsure about the effects on some of those edits.

After creating a backup, use this Display.template.php
Title: Re: Share This Topic
Post by: CerebralJam on August 13, 2010, 05:19:45 PM
I have just downloaded and re uploaded to theme and it looks perfect!  Thank you very much!  I tested it too and it looked like it was going to work!

Heheh... is there any chance in the future that the mod will be upgraded to share this post rather than just topic?

Reason I ask is I run a music forum, and sometimes people leave us a song, or we have a playlist that runs under a particular challenge thread... would be nice to be able to extend that share but this is just lovely for now and very much what I was looking for.  Thank you...

And a very big thank you to John :)  for helping me with the display.  I managed the other edits but run a mile when I find something that's just that bit different!


Quote from: JohnBe sure to check your error log, some of those edits looked shady lol

Heh, I will, but having said that, I wouldn't know what to do about it - can't see anything yet... although, my quiz has been throwing up a lot (uh-oh) not connected LOL
Title: Re: Share This Topic
Post by: ɔɔɔɔɔɔuɥoɾ on August 13, 2010, 05:24:51 PM
Quote from: CerebralJam on August 13, 2010, 05:19:45 PM
I have just downloaded and re uploaded to theme and it looks perfect!  Thank you very much!  I tested it too and it looked like it was going to work!

Heheh... is there any chance in the future that the mod will be upgraded to share this post rather than just topic?

Reason I ask is I run a music forum, and sometimes people leave us a song, or we have a playlist that runs under a particular challenge thread... would be nice to be able to extend that share but this is just lovely for now and very much what I was looking for.  Thank you...

And a very big thank you to John :)  for helping me with the display.  I managed the other edits but run a mile when I find something that's just that bit different!

Be sure to check your error log, some of those edits looked shady lol
Title: Re: Share This Topic
Post by: crustybum on August 13, 2010, 05:26:34 PM
As anyone else had a problem with posts being aligned all over the place with this mod? using the curve theme...
Title: Re: Share This Topic
Post by: CerebralJam on August 13, 2010, 06:33:43 PM
Okay, I was a liddle bit hasty on um saying it was okay...

Cos where I have the share this coming up the bottom of the page is looking like this:
(http://www.sing-share.com/miscimages/displaywrong.jpg) <---- wrong
(http://www.sing-share.com/miscimages/displayright.jpg)  <--- right

The white box in the CSS seems to have been cut short?

I think I saw another too where it pulled the menu down.  Will try and find it and edit this post.



Title: Re: Share This Topic
Post by: ɔɔɔɔɔɔuɥoɾ on August 13, 2010, 06:45:06 PM
Seems like the code was added too late, it looks like it was placed in the bodylower rather than the main content

That would be in index.template.php, if the mod was coded that way, not my mod I cant really say, but that's what it looks like to me
Title: Re: Share This Topic
Post by: CerebralJam on August 13, 2010, 06:48:42 PM
Okay, thank you... I may have a fiddle a little later - or earlier when not so tired... I think I understand what you are saying.  :)  The fact that you got the images to display was a big help to me.


Edit:  Heh, to be honest, I'm not sure there's a problem with the index.template alteration as it displays the old um Display.template.php fine.  It only alters when I swap the new one in with the share this buttons added. :) 

The old instruction had a class instruction in it where you alter Line 142<div id="forumposts" class="tborder">... and the new alteration takes it out and add this instead:  <div id="forumposts"><div class="plainbox" style="text-align: left;">', $social_icons, '</div>';}} that's where I faltered for the first time.  The old instruction does not use an end the <div> there.  Hmmm.  Been years since I played with stuff though and as I said, I know nothing about php.

My old way of thinking would be to look at the CSS and extend the height of the white box... but that's probably wrong so I shouldn't fiddle too much  ;D
Title: Re: Share This Topic
Post by: ɔɔɔɔɔɔuɥoɾ on August 13, 2010, 07:02:51 PM
Your welcome, but dont expect my answers to be correct as this is not my mod, it may not even be in index.template.php lol

If you find that it is, make sure the code is added around the area of " function template_body_below() ". (depends on your theme, but it should be near that area) I think...
Title: Re: Share This Topic
Post by: mirahalo on August 13, 2010, 08:20:17 PM
yes, billy2  you can separe them, on your display.template.php find

$social_icons .= sprintf('<a href="' . $url . '" target="_blank"><img src="' . $settings['images_url'] . '/share/' . $site . '.gif" align="bottom" title="' . $txt['share_default_tooltip'] . '" alt="' . $txt['share_default_tooltip'] . '" /></a>'


and replace with:

$social_icons .= sprintf('<a href="' . $url . '" target="_blank"><img src="' . $settings['images_url'] . '/share/' . $site . '.gif" align="bottom" title="' . $txt['share_default_tooltip'] . '" alt="' . $txt['share_default_tooltip'] . '" /></a>&nbsp;'


where &nbsp;  is the space, you can replace that with whatever you want for example | or - or just a space 


@CerebralJam   is your issue resolved of do you require more assistance?
Title: Re: Share This Topic
Post by: CerebralJam on August 13, 2010, 09:31:00 PM
Hi there, I haven't resolved it yet, mainly because it's 2.30am where I am so not in thinking mode.  If you are able to identify what went wrong - John kindly gave me a revamped Display.template.php which did bring up the images, but as you can see the CSS is all out.  Or that's how it appears to me.  I'd be grateful for any help as I'm hesitant to fiddle with things I don't know about!

I attached the original Display.template.php earlier on, in case you should need it to refer to.  The theme is Anecdota20bp.

I will not be around much longer this evening but check in, in the morning sometime.  I am very grateful to all those who help in this community. 
Title: Re: Share This Topic
Post by: billy2 on August 14, 2010, 04:47:55 AM
Quote from: 130860 on August 13, 2010, 08:20:17 PM
yes, billy2  you can separe them, on your display.template.php find

$social_icons .= sprintf('<a href="' . $url . '" target="_blank"><img src="' . $settings['images_url'] . '/share/' . $site . '.gif" align="bottom" title="' . $txt['share_default_tooltip'] . '" alt="' . $txt['share_default_tooltip'] . '" /></a>'


and replace with:

$social_icons .= sprintf('<a href="' . $url . '" target="_blank"><img src="' . $settings['images_url'] . '/share/' . $site . '.gif" align="bottom" title="' . $txt['share_default_tooltip'] . '" alt="' . $txt['share_default_tooltip'] . '" /></a>&nbsp;'


where &nbsp;  is the space, you can replace that with whatever you want for example | or - or just a space 

Sweet!
Thanks 130860
Billy
Title: Re: Share This Topic
Post by: CerebralJam on August 14, 2010, 12:21:45 PM
Quote from: 130860 on August 13, 2010, 08:20:17 PM


@CerebralJam   is your issue resolved of do you require more assistance?

Would like more assistance please...

the images I provide above don't show you close enough details and so I have attached files:

I still think it's a problem with the CSS class being pointed to but not sure what to do... and I apologize in advance for my non knowledge... as you will see with the original 'right' display - I get a white area at the bottom but also I get a table like edge round all the posts/areas... this disappears when the edits are in place on the display.template.php.   As does the background colour white.  It is fine before those alterations are put in place.

I tried editing "plainbox" to "tborder" but that doesn't change it. 

EDIT:  Scrub that edit - it turned up 50 mins later LOL... still got the display problems though :)
Title: Re: Share This Topic
Post by: faithfulness on August 15, 2010, 04:39:22 PM
I installed the mod but I don't see any buttons.  So I uploaded the english utf-8 file and it still doesn't give my site any share buttons at all.  What did I do wrong?

edit:  I do use the core theme, is that the problem?
Title: Re: Share This Topic
Post by: mirahalo on August 15, 2010, 07:33:01 PM
ok, sorry for the wait, on weekends I have zero free time.

@CerebralJam please use the file attached.


@faithfulness   please attach your display.template.php of the core theme.   also, make sure you upload the share folder to Themes/core/images
Title: Re: Share This Topic
Post by: faithfulness on August 15, 2010, 09:25:42 PM
here is my display.template file but what exactly do you mean by upload to /images file... is that from in my forum admin?

edit:

Quotealso, make sure you upload the share folder to Themes/core/images

ok now do you mean the mod's zip file or is there something else I need to upload into my images file?
Title: Re: Share This Topic
Post by: CerebralJam on August 15, 2010, 09:38:04 PM
Quote from: 130860 on August 15, 2010, 07:33:01 PM
ok, sorry for the wait, on weekends I have zero free time.

@CerebralJam please use the file attached.


@faithfulness   please attach your display.template.php of the core theme.   also, make sure you upload the share folder to Themes/core/images

Hello there.... did not see this post - no notification was received.  And sorry, but your attached file seems not to be here?  Thank you very much for taking time out to help.   I look forward to picking it up as soon as you are able to repost it  :)

vvv EDIT:  Thank you, I just tried slipping it in place and I'm afraid I got the same result :(   Do you need to see anything else?  It just doesn't seem to be picking up the tborder and the white background ... let me know what else to check.  I do appreciate your time.  Have to go to bed now!  Will check back again soon. 
Title: Re: Share This Topic
Post by: mirahalo on August 15, 2010, 09:57:06 PM
LOL   I miss the attach!!  :P

ok,  CerebralJam  use this one


@faithfulness   yes, on the zip you downloaded, unzip it and there will be a share folder, upload that folder to your themes images folder, for ezample:  /Themes/core/images/    I got your file, let me make the edits and head back to you.
Title: Re: Share This Topic
Post by: faithfulness on August 15, 2010, 10:26:53 PM
I know that you're working on my display file THANK YOU!!! but I cannot upload my share file as a whole do I just upload each img file by itself (ex. theme/core/images/ask.gif) or do I make a folder called share inside my images file (ex. theme/core/images/share/ask.gif)  ??

Thanks for everything..... really!  :)
Title: Re: Share This Topic
Post by: mirahalo on August 15, 2010, 10:28:14 PM
yes, you do have to create a share folder on your core/images  folder, like this:


theme/core/images/share/ask.gif
Title: Re: Share This Topic
Post by: crustybum on August 16, 2010, 02:14:21 AM
Quote from: crustybum on August 13, 2010, 05:26:34 PM
As anyone else had a problem with posts being aligned all over the place with this mod? using the curve theme...

How can i get this working properly?
Title: Re: Share This Topic
Post by: mirahalo on August 16, 2010, 11:20:51 AM
@crustybum   do you use the latest version of the mod?   any errors on install?  a screen shot maybe?


@faithfulness   use this file ;)
Title: Re: Share This Topic
Post by: crustybum on August 16, 2010, 12:23:10 PM
Just the default on the latest 2.0...

no errors on install

Its about the third post down

Cheers

http://www.simplemachines.org/community/index.php?topic=395592.msg2744110#msg2744110
Title: Re: Share This Topic
Post by: mirahalo on August 16, 2010, 12:28:48 PM
no, i mean fi you use the lates version of this mod, currently  2.0.1,    and by a screen shot I mean an actual screen shot of what your site looks like when the mod is enable/installed.



can you attach your display.template php of the theme you're using if you still have the mod installed.
Title: Re: Share This Topic
Post by: faithfulness on August 16, 2010, 12:37:23 PM
Thanks a lot! works like a charm.  One question that's not too big of a deal but, is there anyway i can float all the buttons to the right of the screen.  I want to keep them on top but floated to the right instead of the left.  If it's too much trouble then I'm happy enough already.  thanks again.

Title: Re: Share This Topic
Post by: mirahalo on August 16, 2010, 12:44:50 PM
yes, it is possible, on your display.template.php  find this: 

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

and change the "text-align: left;"  for   "text-align: right;"
Title: Re: Share This Topic
Post by: faithfulness on August 16, 2010, 12:50:24 PM
Nice and easy fix.  :)  Good luck and keep up the great mods.  Thanks again
Title: Re: Share This Topic
Post by: crustybum on August 17, 2010, 04:10:45 AM
Quote from: 130860 on August 16, 2010, 12:28:48 PM
no, i mean fi you use the lates version of this mod, currently  2.0.1,    and by a screen shot I mean an actual screen shot of what your site looks like when the mod is enable/installed.

Sorry, i uninstalled it, and yes it was the latest version.

Chris


can you attach your display.template php of the theme you're using if you still have the mod installed.
Title: Re: Share This Topic
Post by: CerebralJam on August 18, 2010, 12:38:44 PM
Quote from: 130860 on August 15, 2010, 09:57:06 PM
LOL   I miss the attach!!  :P

ok,  CerebralJam  use this one



Hiya... I'm still having problems with this one... I edited my post above your attachment, but not sure if you saw?  I was always taught to edit wherever possible but know it can cause problems with anyone reading such a long and changing thread so sorry for that.

The bottom display is still turning blue and the boxes for the posts losing their table border.  Funny thing is, it's only on the pages that have posts... index page is great, child boards fine...

Attached is the information displayed for a page showing correct display and one that doesn't... I don't know if that helps.  The one that does gives the tborder div instructions...

Many thanks again
Title: Re: Share This Topic
Post by: mirahalo on August 18, 2010, 12:46:43 PM
ok, then, i will set up a local one with the Anecdota theme.


can you post a screen shot of your forum, for example this topic:  h**p://www.sing-share.com/SMF/index.php?topic=27.0

one with out the mod and another with the mod.

the first image you attached is one from the message.template.php, this mod does not modified that template,  and I cant see what the problem actually is, can you elaborate more please.
Title: Re: Share This Topic
Post by: CerebralJam on August 18, 2010, 01:27:58 PM
Argggh, keep getting errors when trying to post - hold on...
Title: Re: Share This Topic
Post by: CerebralJam on August 18, 2010, 01:34:45 PM
Quote from: 130860 on August 18, 2010, 12:46:43 PM
ok, then, i will set up a local one with the Anecdota theme.


can you post a screen shot of your forum, for example this topic:  h**p://www.sing-share.com/SMF/index.php?topic=27.0

one with out the mod and another with the mod.

the first image you attached is one from the message.template.php, this mod does not modified that template,  and I cant see what the problem actually is, can you elaborate more please.

Okay... you have to look very closely - I'm attaching both topic27 with the mod applied - gives the blue bottom, also takes away the border - very thin, looks like the old fashioned 'frame' we used to use on web pages when using IE and Microsoft Frontpage... but a little more classy... the scroll bar is not added that is on my browser. 

If you look at the white one, it extends the white box down to where the menu for reply, add poll, unnotify goes, meeting the footer block... and also you get that table like appearance between every post, much like this theme curves them all with a small white gap.  That is what disappears when adding in the changes to the display.template.php

Actually, I cheated to get the 2nd whole page screen shot...  the top of the post displays correctly but without a border, and since I had already told you that I used it again LOL - so - if you zoom in on the one I say that displays right  - what you are actually seeing is a line divide... and the top of that divide does not have the table border (ie the mod was applied here)  and the bottom does, where I have reloaded and screenshot the original template for the page view with the white bottom frame.   So you can see the contrast in image.

Sorry if I confuse you when I write too, I can be a bit 'wordy' :D

EDIT:  The screenshot doesn't make it easy to see that border when uploaded here!  But it is thicker and slightly darker.

BTW the Facebook Like button does display and work, I've just not enabled it here to stop people getting excited!  :D  And I slip the original template back in place whilst looking for a solution for the display... thanks again!

Title: Re: Share This Topic
Post by: crustybum on August 19, 2010, 07:03:18 AM
I can get this to work on the core but not the curve  >:(
Title: Re: Share This Topic
Post by: mirahalo on August 19, 2010, 10:47:14 AM
@CerebralJam  i think I found the issue, can you please attach your display.template.php,  preferable  a one unedited, i could give you a fresh one but I don't know what other mods that modified the display you have installed, if I give you a fresh one could cause problems.

@crustybum   any error on install?   both the icons and like button doesn't appear?  whats the error you get?
Title: Re: Share This Topic
Post by: crustybum on August 19, 2010, 11:09:55 AM
As before..no errors on install.....just makes the whole forum strange.,....

the posts dont line up....they veer off to the right..
Title: Re: Share This Topic
Post by: mirahalo on August 19, 2010, 11:14:06 AM
weird, do you installed the latest version of the mod?  2.0.1?  can you attach your  curve's display.template.php here
Title: Re: Share This Topic
Post by: crustybum on August 19, 2010, 12:24:41 PM
Sure, attached

and many thanks for your help, i had this running on my old 1.11.1 brilliantly and every loved it..
Chris
Title: Re: Share This Topic
Post by: CerebralJam on August 20, 2010, 06:55:46 AM
Quote from: 130860 on August 19, 2010, 10:47:14 AM
@CerebralJam  i think I found the issue, can you please attach your display.template.php,  preferable  a one unedited, i could give you a fresh one but I don't know what other mods that modified the display you have installed, if I give you a fresh one could cause problems.



Thank you... here you go :)

Pretty sure the edits are not on this one, as I keep it in reserve when I was testing the changes and I have it in place at the moment. 

Sorry, would have been here earlier only didn't get notification.  Thank you for all the extra time you have spent looking into this.  I know once this is sorted people will love this addition!
Title: Re: Share This Topic
Post by: mirahalo on August 20, 2010, 06:41:00 PM
CerebralJam   I release a new version of the mod, this one has better compatibility with themes,  please uninstall the old version and install the new one, this one will hopefully work with your theme.


New version 2.1 released:

Changelog

2.1
-Added support for meneame, print friendly and friend feed sites.
-Better compatibility with themes.
-cleaner code.



a question for everyone that uses this mod,   currently there's 3 options to show the icons, two of them  needs to edit the display.template,   what about leaving just the option "inside post at the end"  that way, the mod will be compatible with almost every theme since there will be no need to edit the display.template.php.

I would like suggestions on this one ;)   
Title: Re: Share This Topic
Post by: crustybum on August 21, 2010, 02:43:07 AM
That didnt work for me............. :(
Title: Re: Share This Topic
Post by: CerebralJam on August 21, 2010, 07:45:29 AM
Quote from: 130860 on August 20, 2010, 06:41:00 PM
CerebralJam   I release a new version of the mod, this one has better compatibility with themes,  please uninstall the old version and install the new one, this one will hopefully work with your theme.


New version 2.1 released:

Changelog

2.1
-Added support for meneame, print friendly and friend feed sites.
-Better compatibility with themes.
-cleaner code.



a question for everyone that uses this mod,   currently there's 3 options to show the icons, two of them  needs to edit the display.template,   what about leaving just the option "inside post at the end"  that way, the mod will be compatible with almost every theme since there will be no need to edit the display.template.php.

I would like suggestions on this one ;)

thank you... I shall go do this now. 

As to your question.  Yes, I like that... the Facebook 'Like' is up the top of the post and having the share icons at the end is a great option.  Most places I have visited that have 'share this' usually feature it at the end of the post or blog or under the video... would you be able to incorporate it some time so that it features on all posts?  I know I mentioned this earlier.  Reason being is on my site we feature songs people added and videos or artwork.  For them to be able to share it on their social networks or for others to be able to share it after listening would be great!  :)  Thanks again for all you do here!  Your support has been very prompt and thorough. 
Title: Re: Share This Topic
Post by: CerebralJam on August 21, 2010, 08:31:59 AM
Have uninstalled and reinstalled... and made sure everything is checked where it needs to be.  Share this icons are now all displaying and border on template is great, and the border display is perfect...

Only got one problem now... the Facebook 'Like' button is not showing!  Whereas it did before... Hmmm? I'll read through the thread again and see if I have missed anything.  Might be another manual change still needed?  I will check the parsed theme files in Anecdota too (index.template.php and Display.template.php) to make sure it did what it should have done.  :)  Obviously, when I uninstalled before - it wouldn't have altered these files.  I'll come back and edit this post if I find out what happened.

Thanks again.  Share this is looking great...

But - if you know what it is before I start tinkering  ;D  that would be helpful, heh.
Title: Re: Share This Topic
Post by: crustybum on August 21, 2010, 09:51:44 AM
130860,  any luck on my display?

;)
Title: Re: Share This Topic
Post by: Suki on August 21, 2010, 07:22:03 PM
@crustybum    you can try the new  version, it has better compatibility with themes ;)
Title: Re: Share This Topic
Post by: crustybum on August 22, 2010, 03:11:28 AM
Quote from: Miss All Sunday on August 21, 2010, 07:22:03 PM
@crustybum    you can try the new  version, it has better compatibility with themes ;)

I have.....still the same..

Thanks

Chris
Title: Re: Share This Topic
Post by: eng_HK on August 22, 2010, 09:56:17 AM
It's possible to have the like button in every page of the post???
Title: Re: Share This Topic
Post by: crustybum on August 22, 2010, 01:40:37 PM
If anyone could take a look at my display to see what is wrong i would be grateful, i attach the display also a pic of what happens to the threads when i install it..

Thanks
Title: Re: Share This Topic
Post by: Suki on August 22, 2010, 06:02:09 PM
@crustybum  I could help but I need to knoe what version of the mod are you using.


@eng_HK    is on the to do list,  wait a little bit foir it.
Title: Re: Share This Topic
Post by: crustybum on August 23, 2010, 01:50:26 AM
Many thanks, its the latest.
Title: Re: Share This Topic
Post by: mirahalo on August 23, 2010, 08:46:38 AM
crustybum  try this one,   I discover a little error on the mod while I was doing the edits, I fixed that on your file and will release a new version with the fix also.

@CerebralJam   thank you for your feed back ;)  I guest it makes sense to have the icons inside the post only.



oh and also, will be wonderful if you guys let me know wht other social networks would you like to see included on the mod.
Title: Re: Share This Topic
Post by: CerebralJam on August 23, 2010, 02:27:33 PM
You're welcome... I will let you know if I find any other social networking sites - like what you have though... many I have not heard of and will have to explore!

I'm afraid I haven't managed to sort the mystery of my disappearing Facebook 'like' button!  :D
Can't understand how I could get it before and now I can't?

The coding is definitely there as here are two screenshots to show you what I get - both are activated/checked - just ... not there?  :D

Many thanks for your help.  I had to manually edit the index.template.php the last time and unfortunately I can't remember what you had, to unedit it prior to uninstall as you will have updated the info on the mod.  Can you offer any suggestions as to what the problem could be, please?

EDIT:  Meant to say... the one with the grey box is the mouseover...



Title: Re: Share This Topic
Post by: crustybum on August 23, 2010, 02:58:05 PM
Cheers 130860!, will try it out later..

Title: Re: Share This Topic
Post by: crustybum on August 23, 2010, 03:17:42 PM
Damn... i cant install it at all now.... >:( i get error on installation..

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Title: Re: Share This Topic
Post by: crustybum on August 24, 2010, 09:08:18 AM
In fact its all gone tits up now,  i have attached my latest "display" i am having probs uninstalling stuff "(ad manegment) and installing as well....arghhhhh
Title: Re: Share This Topic
Post by: Suki on August 24, 2010, 09:36:59 AM
crustybum  you didnt have yo uninstall the mod, just replace the file 130860 gave to you.


where exactly are you getting the errors on install? on what file?
Title: Re: Share This Topic
Post by: crustybum on August 24, 2010, 10:08:41 AM
I didnt uninstall that mod, i did replace the file, but it made no difference to the displacement of posts (see atachments about 10 posts up) but since i have replaced that display file i have problems with installing and uninstalling other mods...if you catch me drift.. ;)
Title: Re: Share This Topic
Post by: Suki on August 24, 2010, 10:11:55 AM
what other mods do you have installed?    the lates version of this mod does not modified that part of the display.template, thats why is so weird.   make all the changes to your display.template,  using the parser you can see what mods modifies that file and aplied all those edits
Title: Re: Share This Topic
Post by: crustybum on August 24, 2010, 10:17:03 AM
OK this is what i have,

1.     Share This Topic      2.1     Not installed
2.    Users Online Today    1.5.6    
3.    Ad Managment    2.3.6.2    
4.    SA FBConnect    1.0 Beta5 Rev264    prefer share this...but will do till get "share this" working properly on curve
5.    SMF Arcade    2.5 RC1    
6.    AjaxChat Integration    3.2.1
7.    Aeva ~ Auto-Embed Video & Audio    7.0    
Title: Re: Share This Topic
Post by: Suki on August 24, 2010, 10:18:49 AM
and  with the share this topic mod not installed you still have problems with your display?
Title: Re: Share This Topic
Post by: ormuz on August 24, 2010, 11:26:52 AM
I see that this mod support the facebook like button. Can it support the new twitter button?
Title: Re: Share This Topic
Post by: crustybum on August 24, 2010, 11:33:25 AM
Quote from: Miss All Sunday on August 24, 2010, 10:18:49 AM
and  with the share this topic mod not installed you still have problems with your display?

No..the dispaly is fine (until i install it)
Title: Re: Share This Topic
Post by: Suki on August 24, 2010, 12:23:04 PM
Quote from: crustybum on August 24, 2010, 11:33:25 AM
Quote from: Miss All Sunday on August 24, 2010, 10:18:49 AM
and  with the share this topic mod not installed you still have problems with your display?

No..the dispaly is fine (until i install it)


my best advice will be for oyu to wait until the next version of the mod, the next version will install on every theme.

Quote from: ormuz on August 24, 2010, 11:26:52 AM
I see that this mod support the facebook like button. Can it support the new twitter button?


that is a goog idea, do you have an example of this new twitter buttno, or maybe a devs page where we can look at it better,   btw, im co-admin along with 130860 on my site and co-dev, beta tester on this mod.
Title: Re: Share This Topic
Post by: - danny on August 28, 2010, 05:57:41 PM
topics on my site show the facebook like button twice.

i'm not sure what i did to do this, i've looked for about an hour now.

can someone help?
Title: Re: Share This Topic
Post by: mirahalo on August 28, 2010, 08:48:00 PM
you installed the mod twice, follow the parser and edit your display.template.php manually to remove one one the facebook buttons
Title: Re: Share This Topic
Post by: CerebralJam on August 28, 2010, 11:05:10 PM
Hee hee, so that's where mine went?  :D  Sorry, mine's gone missing and when I saw you had two I thought, that's not fair! 

Hope you get it sorted... and if you don't want the other one, can I borrow it? 
Title: Re: Share This Topic
Post by: mirahalo on August 29, 2010, 08:24:28 PM
sorry for the delay  CerebralJam  I'm been kind of busy lately however, I manage to get a beta of the new version, this beta add support for the digg button and the tweet button, also, all the edits on the display.template.php are now gone, the only edit on a template files is on index.template.php, I couldn't make it template edit free because the facebook button needs to add its own xmlns:fb="http://www.facebook.com/2008/fbml to the <html> tag, please try this beta version,  I tested on several test forums and its running on my own forum, so far, no problems,  the only ones I see is when digg o twitter or facebook servers are busy and  the button wont appear but thats something I can't control :P

as an attachment theres the beta I will leave it for all you guys to give it a test, please post any error or suggestion, any feedback is very appreciated.
Title: Re: Share This Topic
Post by: CerebralJam on August 29, 2010, 08:32:38 PM
Hey, don't apologize for delay?  What delay?   ;D I know you are busy, and I also know you need a life!  I am only grateful for the help when you can make it. 

Okay, looking forward to testing.  So, I need to uninstall the version I have on first right?  :)  thank you again.  You made it quite clear that weekends you were not available so this is great!  Thank you again.  I'll let you know how I get on... great to hear about the additions too!
Title: Re: Share This Topic
Post by: CerebralJam on August 29, 2010, 08:57:50 PM
Yay!  Got my Facebook button back!  :D  Only er... no digg?  And tweet is text... need to read what you wrote again - also, food for thought, is it possible to put these items in alignment on one line rather than down the post, just cosmetically feel it would look better as takes up a fair bit of space...  :)

Here's a screen shot of what I got attached:

EDIT:  One other small observation... you seem to have removed the Facebook 'Share' button.  This was quite a good one to have as to 'like' something is different from to 'share'... If you like something it ends up on your liked pages?  And when you share things they only end up on your wall.  Is it possible to get the 'share' one back.  I know, awkward and typical woman!  LOL ;)  I love this though...
Title: Re: Share This Topic
Post by: mirahalo on August 29, 2010, 09:20:05 PM
mmm, the buttons are suppose to appear in line, make sure you have this:


<style type="text/css">
#share_this ul{
margin:5px;
padding:5px;
list-style-type: none;
text-align: left;
}
#share_this ul li { display: inline; margin:5px; }
</style>


on your index,template.php.  before the </head> tag


and where, exactly do you feel the buttons should go?   Im still looking for a css trick that can order the buttons well, css isn't my thing really.  both the digg and the twee button work with javascript,   it appears you miss the edits on the index.template.php of your theme, can you pelase attach it here so I can make the edits ;)



and thank you for testing the mod :)
Title: Re: Share This Topic
Post by: CerebralJam on August 29, 2010, 09:39:17 PM
Of course!  Sorry, I am just reading this as I came back to post another wee problem... it appears that it is showing the first screen shot on the first post and all subsequent posts are shown as just dots:

I am thinking I would like the icons to go across like this:

Facebook Like :  Tweet : Digg

Also, I liked them being above the text that the person wrote... with the icons below for sharing, that way it divided the two functions.   Again this is a great mod  :)  And yeah, would definitely like the Facebook 'share' button back ...

Not necessarily in that order!  But not as bullet points down the page - when you look at my attachment you will see why :)
Title: Re: Share This Topic
Post by: mirahalo on August 29, 2010, 09:52:08 PM
oh!  that is totally my fault!   I forgot to check some things  O:)   


does the digg and tweet button still doesn't appear?      the icons indeed  are suppose to appear in line, take a look at my forum:  http://oharascans.com/foro/chit_chat/que_estas_escuchando_ahora_1904.0.html


can you please attach your theme's index.template and your /Sources/Display.php to check.
Title: Re: Share This Topic
Post by: CerebralJam on August 29, 2010, 10:11:00 PM
Tee hee... yep!  That's better on your site... okay I already attached the index.template.php in the above post above the image...

I'll post the display here:  thank you again... um, psst!  Can I have the facebook share button too?  GRIN.

EDIT:  Just to let you know, I need to go to bed now... it's 3.12am here and I did promise myself an early night LOL

The situation to explain again is that only the icon for Facebook shows on the first post of every thread... then every post after it has 3 bullets/dots!  And no buttons... much as the two images I have posted.

I'll come and check again tomorrow when I am awake - thanks and good night!
Title: Re: Share This Topic
Post by: mirahalo on August 29, 2010, 10:29:03 PM
ups!  actually, the mod does not modifies the display.template.php anymore   I was actually looking for your index.template.php   and your  Sources/Display.php

I will make a new package with the changes, so far:

move the buttons above the text.
got the facebook and I suppose the digg and twitter icons back
a better way to handle the buttons with css
a check on the display so the bullets wont appear on any post.

althougt, the bullets on every post is because you still need to edit your current theme's index.template    once you edit that file and add the necessary code, the bullets will go away, but a check will help to prevent this happens if a user didn't make the edits on their custom theme.

Title: Re: Share This Topic
Post by: CerebralJam on August 30, 2010, 09:20:52 AM
Errrr.  I was so sleepy last night that what I think I did was give you my Display.php file and name it Display.template.php   Opening it, as I just downloaded to look it does say Display.php...    :o  I need to go and check again.  Less haste, more speed!

I'll make a fresh post with both the required files attached.  I think I just liked the word 'template'  :D First I'll see if I can concentrate enough to make the alteration you suggested.  :)  Thanks again.
Title: Re: Share This Topic
Post by: CerebralJam on August 30, 2010, 01:58:07 PM
Sorry, my mind is in a zillion places today... please find attached (yay) I did the edit and it worked ... sort of :D  Display with Like and Tweet and no Digg!

Also attached Display.php and Index.template.php

What I would love... is Facebook like/Digg/Tweet  - at the top of the thread very first post.  (the way you first had it) The icons for sharing below the body of the first post text, with the option to share on Facebook added back... probably also tweet and digg icons, always handy to have them and the way you had them before people can turn them off or on as they please in admin.

Then, I would love the icons for sharing to appear in every post at the bottom.  Because sometimes someone makes a post you'd like to share elsewhere - say they share a video or a song, or a news article.  With facebook like you don't want to 'like' everything but some things you might like to share on your wall. 

Thank you again.  Here is a link to a wonderful site for CSS help - I don't understand php or I'd have a play around for you... Stu Nicholls has been around for years and he has some absolutely wonderful ideas and artistic displays... I hope this link is useful to anyone who codes/designs websites - he's a must bookmark! 

Stu Nicholls - CSS Play! (http://www.cssplay.com/)  - the guy's a genius, and a very generous one too :)

The last is a screen shot of how I'd like to see it displayed on my forum, ie push the Like buttons up top and keep shares below what is written, and then shares on every post just in case!  :)

EDIT:  LOL hang on - that Index.template was not right - I attached an unedited version I have so many of them now!  Should be the right one now!
Title: Re: Share This Topic
Post by: ormuz on August 30, 2010, 04:53:05 PM
Quote from: Miss All Sunday on August 24, 2010, 12:23:04 PM
that is a goog idea, do you have an example of this new twitter buttno, or maybe a devs page where we can look at it better,   btw, im co-admin along with 130860 on my site and co-dev, beta tester on this mod.

http://blog.twitter.com/2010/08/pushing-our-tweet-button.html
http://twitter.com/goodies/tweetbutton

Developer API:
http://dev.twitter.com/pages/tweet_button
Title: Re: Share This Topic
Post by: mirahalo on August 30, 2010, 08:35:20 PM
ormuz, I just made a beta with support for the tweet button,  try the file attached a few post above:

http://www.simplemachines.org/community/index.php?topic=334955.msg2765586#msg2765586
Title: Re: Share This Topic
Post by: CerebralJam on September 01, 2010, 02:31:46 PM
I'm feeling really good... managed to sort it.  It appears that when you install even the latest mod upgrade it cannot make the changes to a custom file and I missed that in your readme... sorry, I am hopeless with manuals.  Anyhow.  I found the Display.php and edited this bit in:
Quote// share this topic facebook like buttom start
   if (!empty($modSettings['share_twibutton_enable']))
       {
   echo '
   <script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>
   
   ';}
   if (!empty($modSettings['share_diggbutton_enable']))
       {
   echo '
   <script type="text/javascript">
(function() {
var s = document.createElement(\'SCRIPT\'), s1 = document.getElementsByTagName(\'SCRIPT\')[0];
s.type = \'text/javascript\';
s.async = true;
s.src = \'http://widgets.digg.com/buttons.js\';
s1.parentNode.insertBefore(s, s1);
})();
</script>';}
   
   if (!empty($modSettings['share_likebutton_enable']))
       {
   echo '
   <meta property="og:title" content="', $context['page_title_html_safe'], '"/>
   <meta property="og:site_name" content="', $context['forum_name_html_safe'], '"/>
   <meta property="og:image" content="', !empty($modSettings['share_likebutton_image']) ?             $modSettings['share_likebutton_image'] : '', '"/>
   ';
   
   }
   
   echo '<style type="text/css">
#share_this ul{
margin:5px;
padding:5px;
list-style-type: none;
text-align: left;
}
#share_this ul li { display: inline; margin:5px; }
</style>';
   
   // share this topic facebook like buttom end

It had the Facebook edit, but not the twitter and digg.  Works like a dream now :)  And also managed to put the Facebook icon back... many thanks for this great mod.

One last question - other than the CSS - how can I get the social icons (small buttons) to display on every post?  That's all I am needing now at this point.

I have attached new display - and will edit/remove all my files from previous posts :)
Title: Re: Share This Topic
Post by: Greenman on September 01, 2010, 09:28:54 PM
Hey 130860,

Is there anyway to change the forum name that this mod shows on facebook?
My forum name follows with a "forum" on the end. On facebook it also shows up this way when "like"ing a post. I'd like to keep my forum name but change what it shows up on facebook to not show this "forum" end. Example: "My Website :: forum" > "My Website".
Title: Re: Share This Topic
Post by: mirahalo on September 01, 2010, 10:44:52 PM
Hi, the name is actually take it from the $context['forum_name_html_safe']  variable, if you want it to change, on your index.template.php find

on 2.0:

<meta property="og:site_name" content="', $context['forum_name_html_safe'], '"/>

on 1.1.11:

<meta property="og:site_name" content="', $context['forum_name'], '"/>

and replace the variable ', $context['forum_name'], ' or ', $context['forum_name_html_safe'], '  with the name you want to show, example:

<meta property="og:site_name" content="My forum name"/>   

if you're using 2.0 don't forget to clean your cache to see the changes.
Title: Re: Share This Topic
Post by: Greenman on September 02, 2010, 12:29:53 AM
Oh, that's simple. Thank you thank you. :)
Title: Re: Share This Topic
Post by: pjn on September 02, 2010, 12:28:16 PM
when i check on: "Enable the Facebook Like Button", the site not suport on rtl...

and i do no see "like" anywhere...

http://pjn-il.com

thanx!

Title: Re: Share This Topic
Post by: mirahalo on September 02, 2010, 12:42:03 PM
I honestly didn't test it with an rtl language,  let me do some test, will you please tell me what language do you use so I can test it properly.

Quoteand i do no see "like" anywhere...

did you create your FB app?  if you're using a cus theme you must edit your index.template.php otherwise the 3 buttons(facebook, digg and tweet) will not work.
Title: Re: Share This Topic
Post by: pjn on September 02, 2010, 01:03:37 PM
hebrew

is i have a-facbook:
http://www.facebook.com/profile.php?id=100001472839997

i have a-core theme:

this my web:
http://pjn-il.com
Title: Re: Share This Topic
Post by: mirahalo on September 02, 2010, 01:50:43 PM
use the parser for this mod to make the changes manually to your index.template.php file of your core theme
Title: Re: Share This Topic
Post by: xpubstargamingx on September 02, 2010, 08:29:54 PM
Today for some reason when topics on my forums are "Liked" it is no longer displaying my website logo.

Please help. I have made no changes to my website this week.

Earlier this week:
(http://img812.imageshack.us/img812/115/capturemq.png)

Today:
(http://img840.imageshack.us/img840/3650/capture1l.png)

It is also not always using the Thread Title in the Like status, but sometimes the URL:
(http://img22.imageshack.us/img22/918/capturegmw.png)
Title: Re: Share This Topic
Post by: mirahalo on September 03, 2010, 10:55:39 AM
it seems you're using the share icons instead of the like button,  the share icon "scans"  your forum for images, when you share something facebook show you the images you can use,  it appears you choose the star of the groups.

another option,   sometimes facebook servers are busy and the comment feature on the like button doesn't display.


basically, it all depends on if FB can scan your forum searching for yout forum name, title, image, etc.
Title: Re: Share This Topic
Post by: mirahalo on September 03, 2010, 07:36:14 PM
Alright, times up, let's do this. Leeeeeeeeeeeeeroy JJJjjjjjenkinsss.   


:P



a new version (2.3) has been release:

-this version has support for the facebook like button, the digg button and the tweet button. 
-you can enable/disable everyone independently.
-the buttons are show above the message and the share icons are show below.
-you can specified the size and look of the buttons.
-you can enable to show the icons and the buttons on every message or just the first one.
- support for both 1.1.x and 2.0 versions.
Title: Re: Share This Topic
Post by: Akyhne on September 03, 2010, 07:48:04 PM
Thanks for the notice... but you didn't have to notice us 3 times...
Title: Re: Share This Topic
Post by: mirahalo on September 03, 2010, 07:49:52 PM
Quote from: Akyhne on September 03, 2010, 07:48:04 PM
Thanks for the notice... but you didn't have to notice us 3 times...

yeah sorry, when I was updating the mod I got a 500 error twice, dunno why.


thanks for letting me know theres actually someone who's using the notify thing with this mod  ;)
Title: Re: Share This Topic
Post by: Akyhne on September 03, 2010, 07:55:14 PM
Uhm, I'm not even using the mod lol.
Title: Re: Share This Topic
Post by: mirahalo on September 03, 2010, 08:03:03 PM
well, then you better unnotify yourself cause int gonna stop the development for this mod (and yeah, everytime I update it I click the little check option ;) ) :P
Title: Re: Share This Topic
Post by: Akyhne on September 03, 2010, 08:06:05 PM
Quote from: 130860 on September 03, 2010, 08:03:03 PM
(and yeah, everytime I update it I click the little check option ;) ) :P
You shouldn't.
Title: Re: Share This Topic
Post by: mirahalo on September 03, 2010, 08:15:17 PM
why not?   if there is such an option available for mod authors then I will use it, like I say, if you do not want to be notify, just click on the unnotify button,  as simple as that.


I already say it was a mistake, otherwise I do not abuse of that feature.

Title: Re: Share This Topic
Post by: Akyhne on September 03, 2010, 08:20:42 PM
Using it 3 times within 5 minutes is unnessescary.
Title: Re: Share This Topic
Post by: mirahalo on September 03, 2010, 08:28:06 PM
Like I say.... It was a mistake.... I used it 3 more times to upload the screen shots because it throw me a 500 error when I updated the mod with the 4 images included, so I uploaded the mod first, then the images, I didn't notice the notify check was on.......   my mistake...   

believe me,  I have better things to do that annoying you with notify emails...
Title: Re: Share This Topic
Post by: Akyhne on September 03, 2010, 08:37:19 PM
When I edit own mods, I always make a last edit when I'm sure everything is fine. With the last edit, I *only* notify people.
Title: Re: Share This Topic
Post by: mirahalo on September 03, 2010, 08:47:29 PM
Quote from: Akyhne on September 03, 2010, 08:37:19 PM
When I edit own mods, I always make a last edit when I'm sure everything is fine. With the last edit, I *only* notify people.

yeah, and I do the same!   what part of "I didn't notice the notify check was on"  did you do not understand?

3 times already,  it was a mistake!

how many times did I annoyed you with more than one notify email?   none....  thats because this is the first  and the last one...

Quote from: 130860 on September 03, 2010, 08:15:17 PM
why not?   if there is such an option available for mod authors then I will use it, like I say, if you do not want to be notify, just click on the unnotify button,  as simple as that.


I already say it was a mistake, otherwise I do not abuse of that feature.



since your not even using the mod and I already explain myself,  there's no point in keep having this little off topic chat.


oh! and yeah, I'll be more careful next time.


Title: Re: Share This Topic
Post by: Akyhne on September 03, 2010, 08:56:23 PM
Quote from: 130860 on September 03, 2010, 08:03:03 PM
(and yeah, everytime I update it I click the little check option ;) ) :P
Which means... "everytime I update it I click the little check option"... which means you enable the button every time you make an update.
That's what you was writing and that's what I was responding on. *Don't* use the button every time you update, only once every time you update the mod.
Title: Re: Share This Topic
Post by: mirahalo on September 03, 2010, 09:18:08 PM
Quote from: Akyhne on September 03, 2010, 08:56:23 PM
Quote from: 130860 on September 03, 2010, 08:03:03 PM
(and yeah, everytime I update it I click the little check option ;) ) :P
Which means... "everytime I update it I click the little check option"... which means you enable the button every time you make an update.
That's what you was writing and that's what I was responding on. *Don't* use the button every time you update, only once every time you update the mod.


there is NO button....  I do not use the notify button in this thread,  I use the check option when you edit a mod:

(http://img291.imageshack.us/img291/772/checklo.jpg)

when I uploaded the screen shots I didn't notice this check box was checked,  like I said, it was my fault and I'll be more careful next time.

Title: Re: Share This Topic
Post by: Mystery? on September 05, 2010, 06:03:54 PM
Can you make it so that the 'tweet', 'facebook like', and 'digg' buttons are displayed right next to the topic title, because on my forum the tweet, digg, and like buttons have a weird formatting because the buttons take up 5 lines of the first post and the buttons aren't centered to the post.
Title: Re: Share This Topic
Post by: Suki on September 05, 2010, 06:06:44 PM
if the buttons are added on the topic title, an edit on the display.template.php  must be done to achieve that, unfortunately not many people know how to do manual changes so we try to get the mod as simple as possible to install and to avoid themes changes, can you give us an url where we can see the buttons?
Title: Re: Share This Topic
Post by: Mystery? on September 05, 2010, 06:38:22 PM
Quote from: Miss All Sunday on September 05, 2010, 06:06:44 PM
if the buttons are added on the topic title, an edit on the display.template.php  must be done to achieve that, unfortunately not many people know how to do manual changes so we try to get the mod as simple as possible to install and to avoid themes changes, can you give us an url where we can see the buttons?

Here you go:
http://gamerstatic.net/forum/index.php/topic,59.0.html
Title: Re: Share This Topic
Post by: Suki on September 05, 2010, 06:42:19 PM
so you want it to be less space between the buttons and the text?


on your index.template you can find the css style:

<style type="text/css">
#share_this ul{margin:1px;padding:1px;list-style-type: none;text-align: right;}
#share_this ul li { display: inline; margin:5px; }
#share_this {text-align: right;}</style>


where you can edit the padding and margin of the buttons, less padding and less margin gives you less space between the buttons and the text
Title: Re: Share This Topic
Post by: Mystery? on September 05, 2010, 06:58:03 PM
Thanks!!! That did it for now. But the mod should actually have the buttons so thats it looks cleaner. Like the buttons should be attached as a box on the top right hand corner of the first post.
Title: Re: Share This Topic
Post by: Suki on September 05, 2010, 07:00:29 PM
like I said, that would require an edit on display.template   the mod will simple not work on a custom theme with its own display.template,  besides,  since you can select the width and height of the buttons,  havin it o the topic title will simply not work.
Title: Re: Share This Topic
Post by: ormuz on September 07, 2010, 11:46:10 AM
Its working great in my custom theme, without any changes on display.template.php, nice!

Just one thing, I want to put the twitter and facebook like button, on the bottom of the topic, and not on beginning...
Title: Re: Share This Topic
Post by: mirahalo on September 07, 2010, 11:56:00 AM
@ormuz   attach your Sources/Display.php file


maybe I should add an option on the mod settings to show the buttons above or below the text.
Title: Re: Share This Topic
Post by: ormuz on September 07, 2010, 12:00:18 PM
Quote from: 130860 on September 07, 2010, 11:56:00 AM
@ormuz   attach your Sources/Display.php file


maybe I should add an option on the mod settings to show the buttons above or below the text.

Here you go...

U just need to tell me where to do the changes...
Title: Re: Share This Topic
Post by: mirahalo on September 07, 2010, 12:10:09 PM
alright, on your file find this:

if (!empty($show_share) && !in_array($board_info['id'], $share_denied_boards)) {$message['body'] = ($show_share.$message['body']);}

and replace it with this:


if (!empty($show_share) && !in_array($board_info['id'], $share_denied_boards)) {$message['body'] = ($message['body'].$show_share);}
Title: Re: Share This Topic
Post by: ormuz on September 07, 2010, 12:24:20 PM
Hummm, My users don't like it there.

Its possible to put it, after the "moderator / Registered"?
Title: Re: Share This Topic
Post by: mirahalo on September 07, 2010, 12:26:16 PM
where exactly is that? can you give me a screen shot or a url.
Title: Re: Share This Topic
Post by: ormuz on September 07, 2010, 12:30:06 PM
Quote from: 130860 on September 07, 2010, 12:26:16 PM
where exactly is that? can you give me a screen shot or a url.

Its the ip link, on the right...
Title: Re: Share This Topic
Post by: pjn on September 07, 2010, 12:35:17 PM
Quote from: 130860 on September 02, 2010, 01:50:43 PM
use the parser for this mod to make the changes manually to your index.template.php file of your core theme

how can i do this?
Title: Re: Share This Topic
Post by: mirahalo on September 07, 2010, 12:52:55 PM
@ormuz   attach your /Themes/your_theme/display.template.php

@pjn   please see:  Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.0)

if you prefer,  attach your  theme's index.template.php
Title: Re: Share This Topic
Post by: ormuz on September 07, 2010, 01:14:12 PM
Ok, I already like here it is.

But it have a bug, I don't know, if it is from how my theme as build on the message['body']. When u click on the facebook like button, it generates a frame inside the message body. Any suggestion to solve this issue?

Here an example:
http://forum.maistrafego.pt/index.php?topic=23407
Title: Re: Share This Topic
Post by: mirahalo on September 07, 2010, 01:40:24 PM
the frame is adde by facebook,  what exactly is the problem?  does the frame push your text away?  on opera I see the link you gave just fine.
Title: Re: Share This Topic
Post by: ormuz on September 07, 2010, 02:07:36 PM
I know the frame is added by facebook, but isn't possible to remove the frame, or add some z-index on it?

This is how it looks on firefox and other browsers.
Title: Re: Share This Topic
Post by: mirahalo on September 07, 2010, 02:12:35 PM
no, it isn't possible  the whole purpose of the mod is to actually share the topic, if you dont want the commento box to show, on the mod settings erease your facebook app ID, then the button will no longer display the comment box,  or you can change the position of the facebook button.
Title: Re: Share This Topic
Post by: ormuz on September 07, 2010, 02:20:49 PM
And isn't there any problem to don't have an api code?
Title: Re: Share This Topic
Post by: mirahalo on September 07, 2010, 02:25:46 PM
the button will act just like the share icon,   on your users wall there will be only a  "x person liked  x"

please see: http://oharascans.com/foro/modificaciones/faq_share_this_topic_mod_1905.0.html
Title: Re: Share This Topic
Post by: ToeJam on September 13, 2010, 04:58:00 PM
Hi, Still very new to this.  There are 35 pages, and I've tried to decipher, but still not 100% sure.  I do use a custom theme, Helios, for 2.0 RC3.  It does have it's own index.template.php.  Can I manually modify this file to support this mod?  If so can you point me to the most recent developments for what needs to be edited?  Thank you in advance for any help you can offer!
Title: Re: Share This Topic
Post by: Suki on September 14, 2010, 09:03:51 AM
the edits for a custom theme are right there on the mods page:  http://custom.simplemachines.org/mods/index.php?mod=2111

but you can use the parser too: http://custom.simplemachines.org/mods/index.php?action=parse;mod=2111;attach=156031;smf_version=2.0_RC3


or attach your theme's  index.template.php file here.


also, on install,  you can click the  "install on other themes"   link   this will try to do the edits automatically on all your custom themes,  theres a big chance that. if you do, you  won't need to edit the files manually.
Title: Re: Share This Topic
Post by: ToeJam on September 14, 2010, 01:27:17 PM
Quote from: Miss All Sunday on September 14, 2010, 09:03:51 AM
the edits for a custom theme are right there on the mods page:  http://custom.simplemachines.org/mods/index.php?mod=2111

but you can use the parser too: http://custom.simplemachines.org/mods/index.php?action=parse;mod=2111;attach=156031;smf_version=2.0_RC3


or attach your theme's  index.template.php file here.


also, on install,  you can click the  "install on other themes"   link   this will try to do the edits automatically on all your custom themes,  theres a big chance that. if you do, you  won't need to edit the files manually.

Thank you very much!  I saw this "1.1.x users" and thought the instruction might not apply to me and the version I am on.  And strangely I was getting an error yesterday hitting the parser button.  It works now though.  If I could bother you with one more question... Has the instruction for adding an application on Facebook changed?  I did not see the 'connection' tab when I tried to create one.  It seems like there are quite a few options to be specified and I've never created one before.  Has FB updated their page options to do that maybe?
Title: Re: Share This Topic
Post by: mirahalo on September 14, 2010, 02:46:11 PM
since you're using 2.0RC3   on install you can tell the packager manager to try to install the mod on all your custom themes.

did you manage to do the manual changes successfully?

you just need the ID of your application,  on the app page,  if your an admin, it will show you all the details,  also, the mod will work without and app.
Title: Re: Share This Topic
Post by: ToeJam on September 14, 2010, 03:33:20 PM
Quote from: 130860 on September 14, 2010, 02:46:11 PM
since you're using 2.0RC3   on install you can tell the packager manager to try to install the mod on all your custom themes.

did you manage to do the manual changes successfully?

you just need the ID of your application,  on the app page,  if your an admin, it will show you all the details,  also, the mod will work without and app.

I'm cooking with grease now!  It works great!  Thank you and Miss All Sunday for your help, can't thank you enough!
Title: Re: Share This Topic
Post by: mirahalo on September 14, 2010, 04:59:09 PM
glad you got it working, if there is any issue with the mod, please ask :)
Title: Re: Share This Topic
Post by: eak1111 on September 18, 2010, 07:26:00 AM
my "like" facebook icon  doesn't show ,I trying many time.

I think,It's error on "index.template.php" but don'ts sure
pls help me.

ps.sory for my english language.
Title: Re: Share This Topic
Post by: mirahalo on September 18, 2010, 08:05:53 PM
did you activate the button?

your index.template.php its fine

can you post a link to your forum?
Title: Re: Share This Topic
Post by: Bancherd on September 19, 2010, 06:17:25 AM
Great mod, installed on two of my live forums without problems.  ;D
Title: Re: Share This Topic
Post by: Suki on September 19, 2010, 12:21:53 PM
Quote from: Bancherd on September 19, 2010, 06:17:25 AM
Great mod, installed on two of my live forums without problems.  ;D


glad you liked, we are always triying to implement new things and make it easy to install on different themes :)
Title: Re: Share This Topic
Post by: KensonPlays on September 23, 2010, 12:17:00 PM
I would like to force two line breaks before the icons appear, so they are seperated from the signatures.
I use the Facebook theme as default by Bluedevil customs.
Title: Re: Share This Topic
Post by: mirahalo on September 23, 2010, 12:22:31 PM
attach your /Sources/Display.php file
Title: Re: Share This Topic
Post by: Bancherd on September 25, 2010, 11:10:45 AM
I am a happy camper, so far.   :D But I have a comment. ;)

Although I chose NOT to use the Facebook Like, etc.  The mods still takes up a few blank lines.  In my opinion, it should not even echo anything if I chose NOT to use the "Like" features.
Title: Re: Share This Topic
Post by: mirahalo on September 25, 2010, 06:39:03 PM
thank you for your comment, yes indeed there are occasions when the mod does a few blank lines, I will take care of that on the next release.

thank you.
Title: Re: Share This Topic
Post by: aw06 on September 27, 2010, 05:49:02 PM
I'm using version 1.1 of this mod .. yeah i know .. old .. but it works ...

I just noticed that it no longer works with twitter ... when you send a post to twitter it only sends http://xxxxxx/forum/index.php?topic ....

How do i fix ??
Title: Re: Share This Topic
Post by: mirahalo on September 27, 2010, 06:57:02 PM
can I have an example of your forum?


because  on the forum in your signature the twitter button is working properly as expected
Title: Re: Share This Topic
Post by: aw06 on September 27, 2010, 07:15:54 PM
Yeah, i fixed the prob ... had to update the code ...

'twitter' => 'http://twitter.com/home?status=%s',

changed to

'twitter' => 'http://twitter.com/share?url=%s',

I guess twitter changed how links are shared since they updated to their new layout...

Would be nice if the mod would read the subject title as well
Title: Re: Share This Topic
Post by: mirahalo on September 27, 2010, 07:21:22 PM
its very possible,   I did a lot of changes since version 1.1  one of them most be it

adding subject is possible, however, not all the social networks allow it,  thats why I didn't add support for it
Title: Re: Share This Topic
Post by: aw06 on September 27, 2010, 07:31:10 PM
Well it ads the subject for Facebook ... but not for twitter ... so apparently %s is not enough for twitter to catch the subject title.
Title: Re: Share This Topic
Post by: mirahalo on September 27, 2010, 07:50:37 PM
thats because facebook  look at your page to get som info, for example, the title of the page your sharing,  icons and images, some metadate too, thats why facebook shows the subject
Title: Re: Share This Topic
Post by: marianolozano on September 28, 2010, 10:31:44 PM
Nice mod. I love your last update and how you guys provide support.

I´m running it in my forum and it goes quite good, no complains at all. Just some suggestions: remove those extra lines when you don´t use the like button (as suggested above) and also it should be nice to get the chance to add some extra lines before the sharethis code. Please see picture attached.

Thanks

http://www.marianolozano.com/foro/
Title: Re: Share This Topic
Post by: mirahalo on September 29, 2010, 08:55:48 AM
yes, that is indeed a bug, thanks for reporting it,  will be added to my to do list.
Title: Re: Share This Topic
Post by: azhriel on October 02, 2010, 12:57:25 AM
I'm uninstalling the 1.5 version of this mod to upgrade to the latest version

I have uninstall errors on this 2 files. can i request to you to manually uninstall it for me to avoid any errors.

Thanks a lot

Title: Re: Share This Topic
Post by: Suki on October 03, 2010, 08:49:43 AM
try with this two
Title: Re: Share This Topic
Post by: erdem86 on October 04, 2010, 04:15:40 PM
Hi,

Thanks for the wonderful mod. I want to add a break before the share icons show up. I don't want them to be directly after the message, at the end of the sentence.

Also icons make message to shrink, although Facebook, Twitter etc. is not active on the upper side. How can I move the icons to a more appropriate place?

Is there a solution? I couldn't figure out, my knowledge about coding is limited. :/
Title: Re: Share This Topic
Post by: rodinhas10 on October 08, 2010, 12:22:32 PM
Hi,

I installed this mod on my SMF forum but i can´t make it work. You say that the configuration menu would appear at "Feature and Options" but it´s the same after installed and changed the code for custom themes.

Please help.
Title: Re: Share This Topic
Post by: Spoogs on October 08, 2010, 12:41:38 PM
Quote from: rodinhas10 on October 08, 2010, 12:22:32 PM
Hi,

I installed this mod on my SMF forum but i can´t make it work. You say that the configuration menu would appear at "Feature and Options" but it´s the same after installed and changed the code for custom themes.

Please help.
From the mod page

you must first enable it in the admin section... see screenshots on mod page
Title: Re: Share This Topic
Post by: rodinhas10 on October 08, 2010, 02:31:14 PM
QuoteFrom the mod page

you must first enable it in the admin section... see screenshots on mod page


Thank´s for your answer but i can´t activate it. I re-install it and clicked apply mod. Please be kynd and tell me what to do next...
Thank´s again
Title: Re: Share This Topic
Post by: rodinhas10 on October 08, 2010, 02:38:52 PM
Now, in Features and Options appear like this:

Basic Features | Layout and Options |  | Karma

The two | | between Layout and options and Karma tell´s me that is the spot for "share this topic", but i can´t make nothing
Title: Re: Share This Topic
Post by: Suki on October 08, 2010, 03:03:32 PM
rodinhas10   do use other language besides english ?
Title: Re: Share This Topic
Post by: rodinhas10 on October 08, 2010, 03:04:33 PM
No, the forum language is English
Title: Re: Share This Topic
Post by: Suki on October 08, 2010, 03:06:19 PM
any errors on install?

it looks like the language strings arent on your language files, pelase use the parser for your version and add the language strings on the correct files:

http://custom.simplemachines.org/mods/index.php?action=parse;mod=2111;attach=156031;smf_version=1.1.11
Title: Re: Share This Topic
Post by: rodinhas10 on October 08, 2010, 03:11:17 PM
I´m sorry, i really don´t know a lot of code, i just have a few, very few knowledge of it.
Do i have to change the code of the main index ?
Title: Re: Share This Topic
Post by: rodinhas10 on October 08, 2010, 03:12:20 PM
Do i have to change all of those windows?
Thank´s for the support
Title: Re: Share This Topic
Post by: Suki on October 08, 2010, 03:13:46 PM
please attach your  /Themes/default/languages/Modifications.english.php  and  Help.english.php files,  I'll do the edits for you ;)
Title: Re: Share This Topic
Post by: rodinhas10 on October 08, 2010, 03:14:30 PM
Can you provide me help by msn?
I will erase it after, i promise
Title: Re: Share This Topic
Post by: Suki on October 08, 2010, 03:15:21 PM
sorry, I dont have msn, just attach your files here and post a link to your forum.
Title: Re: Share This Topic
Post by: rodinhas10 on October 08, 2010, 03:16:52 PM
That´s ok, give me a minute please
Title: Re: Share This Topic
Post by: rodinhas10 on October 08, 2010, 03:21:21 PM
i´ll give u the URL now: www.forum.cash-radar.com

I do not use default theme, the path stills the same?
Title: Re: Share This Topic
Post by: Suki on October 08, 2010, 03:23:20 PM
yes, the paths are still the same, but also if your theme has its own index.template.php attach it here also.
Title: Re: Share This Topic
Post by: rodinhas10 on October 08, 2010, 03:26:35 PM
thank´s a lot
Title: Re: Share This Topic
Post by: Suki on October 08, 2010, 03:33:32 PM
all your files looks ok.


any errors on error log?
Title: Re: Share This Topic
Post by: rodinhas10 on October 08, 2010, 03:35:04 PM
No, everything look´s ok, except this issue about "share this topic"...
Title: Re: Share This Topic
Post by: Suki on October 08, 2010, 03:36:33 PM
can you attach your ./Sources/ModSettings.php file to check
Title: Re: Share This Topic
Post by: rodinhas10 on October 08, 2010, 03:40:16 PM
sure, appreciate this
Title: Re: Share This Topic
Post by: Suki on October 08, 2010, 03:44:57 PM
its ok too, this is weird  can you post a link to your forum?  pm me if you do not want to make it public.

also, try refreshing your browser (F5)  or clean your cache.
Title: Re: Share This Topic
Post by: rodinhas10 on October 08, 2010, 03:46:59 PM
i´ll try your suggestion.
www.forum.cash-radar.com
Title: Re: Share This Topic
Post by: Suki on October 08, 2010, 03:49:58 PM
your forum is in portuguese I guest, you have to add the language strings to  /Themes/default/languages/Modifications.portuguese.php   file
Title: Re: Share This Topic
Post by: rodinhas10 on October 08, 2010, 03:52:40 PM
i refreshed, change the browser and nothing... :-\
The forum is written in portuguese but the structure is in english...i searched on server and the file you asked doesn´t exist...
Title: Re: Share This Topic
Post by: rodinhas10 on October 08, 2010, 03:55:54 PM
At "features and options" appears like this:

Basic Features | Layout and Options |  | Karma

There is the spot for "share this topic" but it is blanked
Title: Re: Share This Topic
Post by: Suki on October 08, 2010, 03:56:23 PM
do you use a utf language?  english-utf8 ?

are you sure there are no errors on error log?
Title: Re: Share This Topic
Post by: rodinhas10 on October 08, 2010, 03:58:54 PM
i went to "maintenance" / forum error log.
found this:


Apply Filter: Only show the errors with the same message
8: Undefined index: country_flag_both
File: /home2/trevodod/public_html/forum/Sources/ModSettings.php
Line: 240

don´t know if this is relevant
Title: Re: Share This Topic
Post by: rodinhas10 on October 08, 2010, 04:00:26 PM
this one too:

8: Undefined index: share_default_menu
File: /home2/trevodod/public_html/forum/Sources/ModSettings.php
Line: 141
Title: Re: Share This Topic
Post by: Suki on October 08, 2010, 04:07:06 PM
try this file
Title: Re: Share This Topic
Post by: rodinhas10 on October 08, 2010, 04:12:53 PM
good news, at features and options appears like this:

Basic Features | Layout and Options | * Share This Topic | Karma 

bad news is that when i click in share this topic it´s all blank, i´ll try to take a screenshot to show you
Title: Re: Share This Topic
Post by: rodinhas10 on October 08, 2010, 04:14:51 PM
(http://img207.imageshack.us/img207/5869/screenshot20101008at101.png) (http://img207.imageshack.us/i/screenshot20101008at101.png/)

Uploaded with ImageShack.us (http://imageshack.us)
Title: Re: Share This Topic
Post by: Suki on October 08, 2010, 04:15:31 PM
thats because the language strings arent loaded incorrectly,  what language do you use? 
Title: Re: Share This Topic
Post by: rodinhas10 on October 08, 2010, 04:16:52 PM
where can i know that exactly?
Title: Re: Share This Topic
Post by: Suki on October 08, 2010, 04:18:31 PM
admin / Configuration / Server Settings / Default Forum Language
Title: Re: Share This Topic
Post by: rodinhas10 on October 08, 2010, 04:20:33 PM
i don´t have it...
Title: Re: Share This Topic
Post by: rodinhas10 on October 08, 2010, 04:22:15 PM
(http://img139.imageshack.us/img139/853/screenshot20101008at102.png) (http://img139.imageshack.us/i/screenshot20101008at102.png/)

Uploaded with ImageShack.us (http://imageshack.us)
Title: Re: Share This Topic
Post by: Suki on October 08, 2010, 04:29:12 PM
please stop doing double posting, edit your previus post if you want to add more or just wait and add all on a single message.


of there is, its right there.....  you're using english...



what other languages do you use? please post a screen shot of your ftp program in the directory /Themes/default/languages/

on your themes directory,   is there a language folder?
Title: Re: Share This Topic
Post by: Suki on October 08, 2010, 04:41:07 PM
Themes/sMOOth-lt116v1/languages: modifications.english.php and settings.english.php


thats it,   can you please attach that file   to add the text strings

or just delete the file because every time you install a mod, you will have this same problem, so just delete that file, the forum will take it from the default theme.


double posting  in the mayority of forums is consider a bad thing, and its a rule here.
Title: Re: Share This Topic
Post by: rodinhas10 on October 08, 2010, 04:43:09 PM
thank´s for the explanation, i really did n´t know.
witch file do i delete?
Title: Re: Share This Topic
Post by: Suki on October 08, 2010, 04:44:34 PM
Themes/sMOOth-lt116v1/languages/Modifications.english.php
Title: Re: Share This Topic
Post by: rodinhas10 on October 08, 2010, 04:47:06 PM
great news, it worked. You are a genius!!

appears only this as a warning: 

Attention admin:
You have to create "Modifications.english.php" in the "languages" directory ( http://forum.cash-radar.com/Themes/sMOOth-lt116v1/languages/ ) of your smooth-lt theme.

Duplicate the "Modifications.english.php" of the "languages" directory of smooth-lt. Next, rename it according to the language for which you use the file.

Do i ignore it?
Title: Re: Share This Topic
Post by: Suki on October 08, 2010, 04:49:18 PM
I had never seen this warning, as far as I know  the only place where the languages are supose to be is in /Themes/default/languages


I dont know, I would say ignore but you better ask on the general support area but I do not see any issue because you forum will load the modifications on your default folder
Title: Re: Share This Topic
Post by: rodinhas10 on October 08, 2010, 04:52:02 PM
many thank´s for your help, i really appreciate it!! A lot.
Thank´s again!

Do you speak spanish? i´ll make a version of my site in spanish. In english too..
Title: Re: Share This Topic
Post by: Suki on October 08, 2010, 04:55:40 PM
yes my main language is Spanish, however Im pretty busy with my site right now.


Im glad you solved your issue.
Title: Re: Share This Topic
Post by: rodinhas10 on October 08, 2010, 05:01:41 PM
thank´s again, you were very helpful.
good luck.
Title: Re: Share This Topic
Post by: praise on October 18, 2010, 06:32:42 PM
I installed this mod and for some reason it didn't display correctly.  So I uninstalled it.   The Share this topic link is still in admin.  Also...it left a bunch of characters in all of my posts. (see attachment) When I start a new topic the characters are there...when I do a reply they are not there. 

I am using v1.1.11 with a custom theme and many mods.

What is the best way to clean this up?

Thank you so much.

BTW...neat mod...I am sure I am doing something wrong.
Title: Re: Share This Topic
Post by: Suki on October 18, 2010, 11:21:38 PM
as it says on the mod's description:  http://custom.simplemachines.org/mods/index.php?mod=2111

you do need to modify your custom theme's files, use the parser to do that
Title: Re: Share This Topic
Post by: praise on October 19, 2010, 12:10:03 AM
Thank you so much for your response.  At this point I would just like to remove the mod.  I am not sure what a parser is...and just want it removed.  It is uninstalled through admin but those three dots still show up...see my attachment in my original thread.  Plus the "Share this topic" tab is still in the admin section as well as the contents...I don't think the uninstall worked.

Can you tell me what it modified so that I can uninstall it manually or do you have another suggestion?  Thank you so much.
Title: Re: Share This Topic
Post by: Suki on October 19, 2010, 11:04:28 AM
ir the uninstall dail, then do the changes manually by following the parser:

http://custom.simplemachines.org/mods/index.php?action=parse;mod=2111;attach=156031;smf_version=1.1.11

only this time you have to do it in reverse,  you also need to manually modified your theme's index.template.php to remove the 3 dots, the instructions are also in the parser:


Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.0)  this could help, its the same for unistall.
Title: Re: Share This Topic
Post by: praise on October 19, 2010, 01:33:34 PM
Thank you so much Miss All Sunday.  The manual uninstall resolved all issues.   Have a great day and again, thank you so much.   I will remember the parse for the future.
Title: Re: Share This Topic
Post by: BlownShovel on October 23, 2010, 07:19:57 PM
I manually updated my 1.1.11 and all looks OK but I cannot exclude boards as I would like to exclude several sections of the forum.

IE  it shows in the first post of every topic as I wanted but it also shows up in every board even when the board is in the DO NOT list.

ideas?


EDIT:  LOL  I forgot that we reshuffled and our board are not in order.    Figured I'd leave this up there for other folks as confused as I.
Title: Re: Share This Topic
Post by: jpaulino on October 24, 2010, 05:57:47 AM
Is it possible to change the icons an the bottom (facebook, twitter, etc)?

Great work!
Title: Re: Share This Topic
Post by: BlownShovel on October 24, 2010, 07:43:01 AM
Mod is working pretty well but I have one topic showing a glitch.  It shows as Likes Maintenance Mode on Facebook.

While in maintenance mode I tested this topic's "Like"   Now (out of maintenance mode) when folks like the topic it shows as "Likes Maintenance Mode on the forum .."  and not the topic subject?

How can I resolve this issue?
Title: Re: Share This Topic
Post by: azhriel on October 26, 2010, 08:14:50 AM
Quote from: azhriel on October 02, 2010, 12:57:25 AM
I'm uninstalling the 1.5 version of this mod to upgrade to the latest version

I have uninstall errors on this 2 files. can i request to you to manually uninstall it for me to avoid any errors.

Thanks a lot

Im so sorry Miss All Sunday, I made a mistake... Instead of "Modifications.english.php" the failed file is "Display.template.php"

Can I request again to uninstall this mod for me. Im so sorry.

I also upload "index.template.php" to make sure it is the latest file.

Title: Re: Share This Topic
Post by: mirahalo on October 27, 2010, 05:17:52 PM
use this,  this mod does not modify the display.template.php, if you sitll have problems, attach your /Sources/Display.php file
Title: Re: Share This Topic
Post by: mirahalo on October 27, 2010, 05:54:13 PM
theres a new version available for download,  the new version now support the buzz button, along with the Facebook like button, retweet button and Digg button.


Now you can include the icons and buttons very easily in your portal's news or articles or any other page within your forum, all you need to do is add this code where you want to show the icons or the buttons:


// share this topic mod
$parameters = array(
'url' => 'url to share', // this must be set, otherwise there will be no url to share
'output' => 'return',   // leave it at return ;)
);

  $buttons =  share_this($parameters, $return_parameters = false);
  $icons = share_icons($parameters, $return_parameters = false);


where "url to share"  its the variable from your portal that holds the url or your news/articles, it can be also an static url.

then all you have to do is put the variable $buttons and $icons wherever you want it to show it and the icons and buttons will appear.


to install this please uninstall all previous versions first.

please report any issues/problems you may encounter.


as a bonus, after you install this mod, your forum will be ready to use the open graph protocol, more info at  http://opengraphprotocol.org/
Title: Re: Share This Topic
Post by: azhriel on October 28, 2010, 03:19:06 AM
Quote from: 130860 on October 27, 2010, 05:17:52 PM
use this,  this mod does not modify the display.template.php, if you sitll have problems, attach your /Sources/Display.php file

(http://photo.sikatpinoy.com/images/shot.jpg)

This what i've got..... the uninstall instruction of the display.template is the same as the index.template

anyways, i continue uninstall it evern with an error. now I install the latest version and i dont get any error. thanks for the help....
Title: Re: Share This Topic
Post by: mirahalo on October 28, 2010, 10:26:42 AM
then you had and old version of this mod, since version 2.2 this mod does not modify the display.template, anyway, do you require more assistance?
Title: Re: Share This Topic
Post by: cisc0box on October 28, 2010, 09:31:59 PM
Really digging this mod and with a few tweaks have it doing what I want it to do however I have a problem I have yet to figure out ...

The Facebook Like button does not appear in FireFox 3.6
It shows up perfectly fine in Chrome however and the Twitter button shows up on both Firefox and Chrome as well.


Any ideas?


(Also, unchecking "Enable Share Icons" in admin does nothing.  you have to uncheck each and every share icon)
Title: Re: Share This Topic
Post by: azhriel on October 28, 2010, 11:15:56 PM
Quote from: azhriel on October 02, 2010, 12:57:25 AM
I'm uninstalling the 1.5 version of this mod to upgrade to the latest version

I have uninstall errors on this 2 files. can i request to you to manually uninstall it for me to avoid any errors.

Thanks a lot

hehe  :) I mentioned version 1.5.   Thanks for the help...
Title: Re: Share This Topic
Post by: mirahalo on October 29, 2010, 10:43:40 AM
Quote from: cisc0box on October 28, 2010, 09:31:59 PM
Really digging this mod and with a few tweaks have it doing what I want it to do however I have a problem I have yet to figure out ...

The Facebook Like button does not appear in FireFox 3.6
It shows up perfectly fine in Chrome however and the Twitter button shows up on both Firefox and Chrome as well.


Any ideas?


(Also, unchecking "Enable Share Icons" in admin does nothing.  you have to uncheck each and every share icon)

its weird,  I had tested it with IE8, FF 3.6.12, chrome lastest and Opera 10.63


do you have an url that I can check?


Quote(Also, unchecking "Enable Share Icons" in admin does nothing.  you have to uncheck each and every share icon)


thanks for the report, I will check on that
Title: Re: Share This Topic
Post by: cisc0box on October 29, 2010, 06:48:47 PM
Interesting ... IE doesn't see it either and the error code I get is:

'document.getElementById(...)' is null or not an object


Where would be the proper place to insert the Share this code?

I know your instructions say above "// Show the menu here, according to the menu sub template."

But my theme does not have this.    It's the only possible problem I can think of.
Title: Re: Share This Topic
Post by: mirahalo on October 29, 2010, 08:09:27 PM
you can put that code just after the <body>  tag,   I use the   "// Show the menu here, according to the menu sub template"  comment just for reference, but the code can be anywhere, the only condition is to appear before the button.
Title: Re: Share This Topic
Post by: cisc0box on October 29, 2010, 08:25:25 PM
Hahaha ... spent 2 hours placing it everywhere BUT the place it would work it seems.

Thanks for that tidbit ...   I got it working now.  (Why I didn't think of it in terms of HTML placement is retarded)    ;D


Thanks very much sir and outstanding work!

(P.S)    Does the "Enable Share Icons" box indeed seem to be a little bug?   Not a huge deal really, just wondering it it's just me.
Title: Re: Share This Topic
Post by: mirahalo on October 29, 2010, 08:34:54 PM
Quote(P.S)    Does the "Enable Share Icons" box indeed seem to be a little bug?   Not a huge deal really, just wondering it it's just me.


yes, it can be called a bug, but I prefer to call it laziness on my part :P

to solve do this on your /Sources/ShareThis.php  file  find:

// show the icons
if($output == 'return')
{
$uno = '<p style="overflow:auto;">'. $social_icons. '</p>';
return $uno;
}

elseif($output == 'echo')
{
echo  '<p style="overflow:auto;">'. $social_icons. '</p>';
}


and replace with

// show the icons
if($output == 'return' && !empty($modsettings['share_icons_enable']))
{
$uno = '<p style="overflow:auto;">'. $social_icons. '</p>';
return $uno;
}

elseif($output == 'echo' && !empty($modsettings['share_icons_enable']))
{
echo  '<p style="overflow:auto;">'. $social_icons. '</p>';
}
Title: Re: Share This Topic
Post by: cisc0box on October 29, 2010, 08:50:27 PM
Weird ... that seems to not display the icons regardless if click or not.
Title: Re: Share This Topic
Post by: mirahalo on October 29, 2010, 09:02:49 PM
ok, remove the ! on both empty($modsettings['share_icons_enable'])    I'm currently on my work so I can't test it properly.
Title: Re: Share This Topic
Post by: cisc0box on October 29, 2010, 09:15:47 PM
Now the icons show regardless once again ...
Title: Re: Share This Topic
Post by: mirahalo on October 29, 2010, 09:26:23 PM
ok use this code:

if($output == 'return' && $show_icons == true)


and

elseif($output == 'echo' && $show_icons == true)



I can't test it right now but it should work
Title: Re: Share This Topic
Post by: cisc0box on October 29, 2010, 09:29:54 PM
It's working ...  8)
Title: Re: Share This Topic
Post by: ArkServer on October 31, 2010, 03:19:22 PM
i dont see the 'digg' button although i enabled it, anyone got a clue?
if you need a link: http://tinyurl.com/27n727l
Title: Re: Share This Topic
Post by: Suki on October 31, 2010, 07:02:59 PM
what browser are you using?  I can see the digg button perfectly fine on your forum, Im using  IE8 and FF 3.6
Title: Re: Share This Topic
Post by: Suki on October 31, 2010, 07:42:09 PM
New version  2.5.1




Changelog

2.5.1
-fixed problem with master setting for enable/disable the icons



for those who already using the 2.5 version, just replace your /Sources/ShareThis.php with the one I attach
Title: Re: Share This Topic
Post by: Suki on November 01, 2010, 09:46:20 PM
and the mod is now compatible with 2.0 RC4  ;)   it will also install on a 1.1.12 installation.
Title: Re: Share This Topic
Post by: farzad on November 02, 2010, 09:59:05 AM
Hello,   I love this mod!  Great work!  I am having a problem that the mod is making a scroll bar appear in my first post.  you can see it here:

http://bit.ly/btW3K8

I searched the thread and perhaps I missed it if this has come up or been solved.   My apologies if it has.

Is there a quick fix?
Title: Re: Share This Topic
Post by: mirahalo on November 02, 2010, 10:03:14 AM
on your  Themes/your theme/style.css find this:

.post, .personalmessage {
line-height: 1.3em;
overflow-y: auto;
width: 100%;
}


and change this overflow-y: auto;  with this:

overflow-y: scroll;
Title: Re: Share This Topic
Post by: Soulmaster on November 02, 2010, 01:44:49 PM
wel on http://www.bliksemdetectie.nl/index.php?topic=12193.msg15519;boardseen#new (http://www.bliksemdetectie.nl/index.php?topic=12193.msg15519;boardseen#new) no facebook and no digg in Firefox 3.6 and I.E 8.0. but in chrome i can see them. using 2.5.1
Title: Re: Share This Topic
Post by: Suki on November 02, 2010, 10:03:09 PM
Quote from: Soulmaster on November 02, 2010, 01:44:49 PM
wel on http://www.bliksemdetectie.nl/index.php?topic=12193.msg15519;boardseen#new (http://www.bliksemdetectie.nl/index.php?topic=12193.msg15519;boardseen#new) no facebook and no digg in Firefox 3.6 and I.E 8.0. but in chrome i can see them. using 2.5.1



did you enable both buttons?

did you made the changes to your theme's index.template?

since all buttons depends on the capacity of their website and servers, sometimes the buttons are not available.


I search your source code and I couldn't find this:

// Share this topic mod
if (!empty($modSettings['share_likebutton_enable']))
    {
echo '<div id="fb-root"></div>
<script>
  window.fbAsyncInit = function() {
    FB.init({appId: \'', !empty($modSettings['share_likebutton_appid']) ? $modSettings['share_likebutton_appid'] : '', '\', status: true, cookie: true,
             xfbml: true});
  };
  (function() {
    var e = document.createElement(\'script\'); e.async = true;
    e.src = document.location.protocol +
      \'//connect.facebook.net/', !empty($modSettings['share_likebutton_lang']) ? $modSettings['share_likebutton_lang'] : 'en_US', '/all.js\';
    document.getElementById(\'fb-root\').appendChild(e);
  }());
</script>';
}
// Share this topic mod end



this code is necessary on your index.template.php for the facebook button to work properly.
Title: Re: Share This Topic
Post by: farzad on November 03, 2010, 09:12:02 AM
Quote from: Mr. 0 on November 02, 2010, 10:03:14 AM
on your  Themes/your theme/style.css find this:

.post, .personalmessage {
line-height: 1.3em;
overflow-y: auto;
width: 100%;
}


and change this overflow-y: auto;  with this:

overflow-y: scroll;

I made this change but it only effects the behavior of the post which isnt the problem.  I've narrowed the problem down to the position of the tweet button in the top right of the post.   When I remove the Twitter Option/Button, the scrolling no longer occurs.  When I add the Tweet button, the post scrolls.   Is there a way to adjust the placement of Tweet button a touch to the left ?    It seems to pick its same spot regardless of the buttons I expose up top.
Title: Re: Share This Topic
Post by: Suki on November 03, 2010, 10:44:14 AM
you can change the .tweet  class on your /Sources/ShareThis.php file

Code (css) Select
.tweet {
width:90px;
float:right;
margin-right:10px;
}
Title: Re: Share This Topic
Post by: farzad on November 03, 2010, 10:52:09 AM
set width to 100 and its fixed!   Thank you!
Title: Re: Share This Topic
Post by: Suki on November 03, 2010, 10:53:31 AM
Quote from: farzad on November 03, 2010, 10:52:09 AM
set width to 100 and its fixed!   Thank you!

can you tell me your smf version and browser, it may be a little bug but I need to confirm.
Title: Re: Share This Topic
Post by: farzad on November 03, 2010, 10:58:19 AM
Firefox 3.6.8

SMF 1.1.11 (when i first installed the mod) - had the problem

upgraded to 1.1.12 (still had the problem)

Implemented the width 100 fix and no longer have the problem.

Hope that helps!
Title: Re: Share This Topic
Post by: Suki on November 03, 2010, 10:59:22 AM
thanks! :)
Title: Re: Share This Topic
Post by: Eudemon on November 03, 2010, 07:49:37 PM
when adding share buttons under post
for example if i click twitter, it only gives the url
how do i make it automatically generate the post tile + url (not the one on top right hang corner)

thx
Title: Re: Share This Topic
Post by: Suki on November 04, 2010, 11:10:00 AM
yes, it can be done, like this:   http://www.twitter.com/home?status=Your+Message+http://mylink.com

the problem is we need to modified a little bit since the icons all use a similar structure,let me do some test.
Title: Re: Share This Topic
Post by: MiroslavP on November 04, 2010, 11:46:23 AM
i can't find this code in index.template.php
// Show the menu here, according to the menu sub template.
i use DSv4 dzinerstudio theme!
Title: Re: Share This Topic
Post by: Suki on November 04, 2010, 11:55:04 AM
that comment is just for references, you can add the code on any place  as long as it is before the button

for example you can add it just after the body tag:

echo '<body>';


// share this topic mod

code...
Title: Re: Share This Topic
Post by: Eudemon on November 04, 2010, 01:29:29 PM
Quote from: Miss All Sunday on November 04, 2010, 11:10:00 AM
yes, it can be done, like this:   http://www.twitter.com/home?status=Your+Message+http://mylink.com

the problem is we need to modified a little bit since the icons all use a similar structure,let me do some test.

alright, i'll be checking back for updates
and thank you for testing
Title: Re: Share This Topic
Post by: TheMortician4 on November 06, 2010, 04:45:40 PM
I am running 1.1.11 with Simple Portal 2.3.3. I also have the Wiyiba bar on the site. When I install this mod, it blocks the wiyiba code from running, and the digg widgets drag the system unbelievably. I am running the default Core theme on the site. bbiclan site (http://bbiclan.com)


Why does the bar stop working when I install this mod? When I uninstall it, the bar returns and the system runs faster again...

Any advice and help would be gratefully appreciated, I like the mod, connected all the sites to the website, and it is ashame that it is degrading the system like this...

Title: Re: Share This Topic
Post by: Suki on November 07, 2010, 08:56:34 AM
you didint mentioned but you also have the facebook integration, this mod has some incompatibilities with the sahre this mod, specially on the index.template.php part.


also, by looking at your source code, it appears you didint do the edits on your index.template.php file.

I have tested this wibiya bar along with the mod and it shows fine with no errors, so please make sure you did all the mod's changes to your theme.


the digg button is stored in an external site, we only provided the method to show it, we cannot ensure that the button will work 100% of the time.

Title: Re: Share This Topic
Post by: TheMortician4 on November 07, 2010, 12:06:59 PM
Quote from: Miss All Sunday on November 07, 2010, 08:56:34 AM
you didint mentioned but you also have the facebook integration, this mod has some incompatibilities with the sahre this mod, specially on the index.template.php part.


also, by looking at your source code, it appears you didn't do the edits on your index.template.php file.

I have tested this wibiya bar along with the mod and it shows fine with no errors, so please make sure you did all the mod's changes to your theme.


the digg button is stored in an external site, we only provided the method to show it, we cannot ensure that the button will work 100% of the time.



Okay, I see that the code that is in there now, does not match and of the code I am to find. for instance the first source to find and replace is different. Is there any step by step process that would help me modify the existing code so that I can get this to work?

From the way the mod post explained, or inferred should I say to me, was that the index.template.php changes were necessary if I was not using the default theme, or rather using a custom theme. Please check that and if I am in error of interpretation, notify me so, otherwise maybe clarification of the directions may assist in preventing any further confusion. Thanks Miss All Sunday...!!!
Title: Re: Share This Topic
Post by: Suki on November 07, 2010, 04:05:19 PM
please take a look at Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.0)


its really simple, if your using a custom mod you must do the edits on your theme, otherwise the mod will not work its says so on the mod description.
Title: Re: Share This Topic
Post by: TheMortician4 on November 07, 2010, 04:44:02 PM
Quote from: Miss All Sunday on November 07, 2010, 04:05:19 PM
please take a look at Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.0)


its really simple, if your using a custom mod you must do the edits on your theme, otherwise the mod will not work its says so on the mod description.
Okay, then my issue then is the removal of the facebook integration mod? will uninstall remove the code so that I can find those lines that the mod states to install?
Title: Re: Share This Topic
Post by: Suki on November 07, 2010, 04:53:28 PM
no, both mods can work together just fine, your issue is that you do not install the share this topic mod on your theme, that's your issue.

the only incompatibility with facebook integration is in the HTML tag on your theme's index.template  both mods modify the same part:

<html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', '>


also, you have to make sure the mod got installed on your theme with no errors, otherwise the mod will not work as expected.

also, you should really need to upgrade to smf 1.1.12.

Title: Re: Share This Topic
Post by: TheMortician4 on November 07, 2010, 05:10:16 PM
Quote from: Miss All Sunday on November 07, 2010, 04:53:28 PM
no, both mods can work together just fine, your issue is that you do not install the share this topic mod on your theme, that's your issue.

the only incompatibility with facebook integration is in the HTML tag on your theme's index.template  both mods modify the same part:

<html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', '>


also, you have to make sure the mod got installed on your theme with no errors, otherwise the mod will not work as expected.

also, you should really need to upgrade to smf 1.1.12.



I tried to install the patch that appears when you go into the admin panel, I keep getting this error;

Installations actions for "SMF 1.0.20 / 1.1.12 Update":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

This message comes when I try the admin>packages  link

Would seeing my index.template.php file help? I located a portion of that string, but it is nothing like the one you have shown me here...

Mine search found this:

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" ', $context['right_to_left'] ? ' dir="rtl"' : '', '><head>
   <meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
   <meta name="description" content="', $context['page_title'], '" />', empty($context['robot_no_index']) ? '' : '
   <meta name="robots" content="noindex" />', '
   <meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
   <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js?fin11"></script>
   <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
      var smf_theme_url = "', $settings['theme_url'], '";
      var smf_images_url = "', $settings['images_url'], '";
      var smf_scripturl = "', $scripturl, '";
      var smf_iso_case_folding = ', $context['server']['iso_case_folding'] ? 'true' : 'false', ';
      var smf_charset = "', $context['character_set'], '";
   // ]]></script>
   <title>', $context['page_title'], '</title>';
Title: Re: Share This Topic
Post by: Suki on November 07, 2010, 05:18:47 PM
thats because you already do the edits for the share this topic mod.


please tell me  did you or did you not have the sahre this topic mod installed on your forum?

did you or did you not have any errors during the installation?

do you still hace the problem with the wibiya bar?


this is not the right place to ask for support on upgrade, please use the 1.1.x support forum for this.
Title: Re: Share This Topic
Post by: TheMortician4 on November 07, 2010, 06:17:02 PM
Quote from: Miss All Sunday on November 07, 2010, 05:18:47 PM
thats because you already do the edits for the share this topic mod.


please tell me  did you or did you not have the sahre this topic mod installed on your forum?  yes, did turned it off when Wiyiba stopped running when installed

did you or did you not have any errors during the installation?, none

do you still hace the problem with the wibiya bar? yes, if I tell the system to apply the mod, the wiyiba bar stops coming up.


this is not the right place to ask for support on upgrade, please use the 1.1.x support forum for this., Sorry, since my issue was with Share this topic, I started the thread here due to the Share this topic interfering with the wiyiba bar....Bad judgment on my part?
Title: Re: Share This Topic
Post by: Suki on November 07, 2010, 06:46:18 PM
like I said, theres no problem with the wibiya bar and the mod I tested on several sites en with both 1.1.11 and 2.0


are they any errors on your error log?

what other mods do you have installed?


to be honest, you dont really need this mod since you already have the facebook integration and the wibiya bar has support for facebook and twitter as well.
Title: Re: Share This Topic
Post by: TheMortician4 on November 07, 2010, 07:03:37 PM
Quote from: Miss All Sunday on November 07, 2010, 06:46:18 PM
like I said, theres no problem with the wibiya bar and the mod I tested on several sites en with both 1.1.11 and 2.0


are they any errors on your error log?

what other mods do you have installed?


to be honest, you dont really need this mod since you already have the facebook integration and the wibiya bar has support for facebook and twitter as well.


yes I partially agree, this mod adds all the other social sites though and was hopeful it would install seamlessly...
Title: Re: Share This Topic
Post by: Suki on November 07, 2010, 07:08:08 PM
sorry, I cannot help you if you don't give enough details.


Quote from: Miss All Sunday on November 07, 2010, 06:46:18 PM


are they any errors on your error log?

what other mods do you have installed?




please try to be more specific with your answers.
Title: Re: Share This Topic
Post by: Soulmaster on November 08, 2010, 12:54:22 AM
strange, but the facebook and digg buttons are now hidden on the gray part on the right on my site

Title: Re: Share This Topic
Post by: Suki on November 08, 2010, 10:15:42 AM
Quote from: Soulmaster on November 08, 2010, 12:54:22 AM
strange, but the facebook and digg buttons are now hidden on the gray part on the right on my site

can I have a link to your forum to check please.
Title: Re: Share This Topic
Post by: TheMortician4 on November 08, 2010, 06:08:25 PM
Quote from: TheMortician4 on November 07, 2010, 07:03:37 PM
Quote from: Miss All Sunday on November 07, 2010, 06:46:18 PM
like I said, theres no problem with the wibiya bar and the mod I tested on several sites en with both 1.1.11 and 2.0


are they any errors on your error log? Not sure which ones to look at...

what other mods do you have installed?
   Mod Name   Version   
1.   AjaxChat Integration   3.2.1     [ Uninstall ] [ List Files ] [ Delete ]

2.   Aeva ~ Auto-Embed Video & Audio   6.9.99     [ Uninstall ] [ List Files ] [ Delete ]

3.   Hide SMF Version   1.0.3c    [ List Files ] [ Delete ]

4.   Custom_Greeting_Depending_on_Time   1.0     [ Uninstall ] [ List Files ] [ Delete ]

5.   EmailValidator   1.0    [ List Files ] [ Delete ]

6.   Additional Membergroups on Profile   1.0     [ Uninstall ] [ List Files ] [ Delete ]

7.   Guests Cursor   1.0     [ Uninstall ] [ List Files ] [ Delete ]

8.   Tagging System   1.1.1     [ Uninstall ] [ List Files ] [ Delete ]

9.   Karma Buttons   1.1     [ Uninstall ] [ List Files ] [ Delete ]

10.   New_pm 2.0.1   2009     [ Uninstall ] [ List Files ] [ Delete ]

11.   Random_Quote   1.2.2     [ Uninstall ] [ List Files ] [ Delete ]

12.   SMF Gallery Lite   2.0.5     [ Uninstall ] [ List Files ] [ Delete ]

13.   SMFShop   3.1.1     [ Uninstall ] [ List Files ] [ Delete ]

14.   SMF Arcade   2.0.18     [ Uninstall ] [ List Files ] [ Delete ]

15.   SMF 1.0.19 / 1.1.11 Update   1.0     [ List Files ] [ Delete ]

16.   Separate Sticky and Normal Topic   1.0     [ Uninstall ] [ List Files ] [ Delete ]

17.   Simple Award System   2.1     [ Uninstall ] [ List Files ] [ Delete ]

18.   Share This Topic   2.5.1    [ Apply Mod ] [ List Files ] [ Delete ]

19.   SMF File Manager   2.1.3     [ Uninstall ] [ List Files ] [ Delete ]

20.   Remove MySQL, PHP & W3C images to minimize footer size   1.2     [ Uninstall ] [ List Files ] [ Delete ]

21.   New In Topic View   1.1     [ Uninstall ] [ List Files ] [ Delete ]

22.   PageDropdown   1.0     [ Uninstall ] [ List Files ] [ Delete ]

23.   PSN GamerCard BBC   1.1     [ Uninstall ] [ List Files ] [ Delete ]

24.   Quick Upload   2.1     [ Uninstall ] [ List Files ] [ Delete ]

25.   Topic Ratings   1.03     [ Uninstall ] [ List Files ] [ Delete ]

26.   SMF 1.0.20 / 1.1.12 Update   1.0    [ List Files ] [ Delete ]

27.   Spam Me Not Mod   1.02     [ Uninstall ] [ List Files ] [ Delete ]

28.   Xbox LIVE GamerTag BBC   1.0     [ Uninstall ] [ List Files ] [ Delete ]

29.   SA FBConnect   0.2     [ Uninstall ] [ List Files ] [ Delete ]

30.   Treasury   1.04     [ Uninstall ] [ List Files ] [ Delete ]

31.   Downloads System   1.3.4.2     [ Uninstall ] [ List Files ] [ Delete ]

32.   Advanced Reputation System   1.8.1    [ List Files ] [ Delete ]

33.   Redirect Banned Users   1.1     [ List Files ] [ Delete ]

34.   SteamProfile Ajax Mod   1.0     [ Uninstall ] [ List Files ] [ Delete ]

35.   GoDaddy Analytics Code   1.0     [ Uninstall ] [ List Files ] [ Delete ]

36.   Fix Session Verification for Polls   1.0     [ List Files ] [ Delete ]

37.   Auto Refresh Who Index   1.0     [ Uninstall ] [ List Files ] [ Delete ]

38.   SMF Archive   2.0     [ Uninstall ] [ List Files ] [ Delete ]

39.   Hide SMF Version   1.0.6     [ Uninstall ] [ List Files ] [ Delete ]

40.   RSS Feed Poster   2.3     [ Uninstall ] [ List Files ] [ Delete ]

41.   SimplePortal   2.3.3     [ Uninstall ] [ List Files ] [ Delete ]

42.   Amazon Search   1.1     [ Uninstall ] [ List Files ] [ Delete ]

43.   Amazon MP3   1.1     [ Uninstall ] [ List Files ] [ Delete ]

44.   Amazon DVD   1.0     [ Uninstall ] [ List Files ] [ Delete ]

45.   Version Emulate Dropdown   1.1     [ Uninstall ] [ List Files ] [ Delete ]

46.   SMF 1.0.20 / 1.1.12 Update   1.0    [ List Files ] [ Delete ]

47.   YouTube BBCode   2.6     [ Uninstall ] [ List Files ] [ Delete ]

         
         
Avatar Packages
   Mod Name   Version   
1.   30 Assorted Animated Avatars   1.0     [ Uninstall ] [ List Files ] [ Delete ]

2.   Animated Avatars   1.0     [ Uninstall ] [ List Files ] [ Delete ]

3.   WarRock Game Avatars   1.0     [ Uninstall ] [ List Files ] [ Delete ]

4.   CoolAvatarsV1   1.0     [ Uninstall ] [ List Files ] [ Delete ]

5.   Game Avatars Pack2   1.0     [ Uninstall ] [ List Files ] [ Delete ]

6.   Game Avatars Pack4   1.0     [ Uninstall ] [ List Files ] [ Delete ]

7.   Metal Slug Avatars   1.0     [ Uninstall ] [ List Files ] [ Delete ]

8.   animated women avatars   1.0     [ Uninstall ] [ List Files ] [ Delete ]

9.   dharma initiative   1.0     [ Uninstall ] [ List Files ] [ Delete ]

10.   game avatars   1.0     [ Uninstall ] [ List Files ] [ Delete ]

11.   Metal Gear Avatars   1.0     [ Uninstall ] [ List Files ] [ Delete ]

12.   Mass Effect 2 Avatars   1.0     [ Uninstall ] [ List Files ] [ Delete ]

13.   Transformers Avatars | S-Ace   1.0     [ Uninstall ] [ List Files ] [ Delete ]

14.   Periodic Table Avatars   1.0     [ Uninstall ] [ List Files ] [ Delete ]

15.   Street Sign Avatars   1.0     [ Uninstall ] [ List Files ] [ Delete ]

16.   scooby and tom   1.0     [ Uninstall ] [ List Files ] [ Delete ]

17.   Techno and Pc Avatars   1.0     [ Uninstall ] [ List Files ] [ Delete ]

18.   Thought Planetarium Avatars   1.0     [ Uninstall ] [ List Files ] [ Delete ]

19.   Aion Game Avatars   1.2     [ Uninstall ] [ List Files ] [ Delete ]

20.   FF Colection Avatars   1.0     [ Uninstall ] [ List Files ] [ Delete ]

21.   TunedCarsAvatars   1.2     [ Uninstall ] [ List Files ] [ Delete ]

22.   NBA avatars   1.0     [ Uninstall ] [ List Files ] [ Delete ]

23.   PS3 avatar pack   1.4     [ Uninstall ] [ List Files ] [ Delete ]




to be honest, you dont really need this mod since you already have the facebook integration and the wibiya bar has support for facebook and twitter as well.


yes I partially agree, this mod adds all the other social sites though and was hopeful it would install seamlessly...
Title: Re: Share This Topic
Post by: Suki on November 08, 2010, 09:18:01 PM
I honestly can't help you wit out knowing whats on your error log regarding share this topic mod,  you have so many mods,   can you  uninstall the wibiya bar, then uninstall the mod,   then instal the mod and lastly install the wibiya bar.   I honestly don't have a clue why your bar and the mod does not work together.
Title: Re: Share This Topic
Post by: TheMortician4 on November 09, 2010, 12:18:06 PM
Quote from: Miss All Sunday on November 08, 2010, 09:18:01 PM
I honestly can't help you wit out knowing whats on your error log regarding share this topic mod,  you have so many mods,   can you  uninstall the wibiya bar, then uninstall the mod,   then instal the mod and lastly install the wibiya bar.   I honestly don't have a clue why your bar and the mod does not work together.

The Wiyiba bar is pasted into the index.template.php file:

echo '<script src="http://cdn.wibiya.com/Toolbars/dir_0598/Toolbar_######/Loader_######.js" type="text/javascript"></script></body></html>';


# = replaced digits to loader file


SO my only assumption is the mod itself?
Title: Re: Share This Topic
Post by: Suki on November 09, 2010, 12:25:54 PM
is that the only modification of the bar?


like i said early, the bar and the mod works fine together,  uninstall both make sure you did not have any errors on unistall,    install it again and make sure you do  not have any errors on install


I cant test your forum because you don't have the mod enable, you didin't say what¿s on your error log neither, so I'm only guessing at this point.
Title: Re: Share This Topic
Post by: Soulmaster on November 10, 2010, 12:54:23 AM
Quote from: Miss All Sunday on November 08, 2010, 10:15:42 AM
Quote from: Soulmaster on November 08, 2010, 12:54:22 AM
strange, but the facebook and digg buttons are now hidden on the gray part on the right on my site

can I have a link to your forum to check please.

http://www.bliksemdetectie.nl/index.php?topic=12317.0

Title: Re: Share This Topic
Post by: Suki on November 10, 2010, 09:47:43 AM
Quote from: Soulmaster on November 10, 2010, 12:54:23 AM
Quote from: Miss All Sunday on November 08, 2010, 10:15:42 AM
Quote from: Soulmaster on November 08, 2010, 12:54:22 AM
strange, but the facebook and digg buttons are now hidden on the gray part on the right on my site

can I have a link to your forum to check please.

http://www.bliksemdetectie.nl/index.php?topic=12317.0


using IE8 Opera 10  FF3.6 and chrome all your buttons seems to be working fine, is this istill an issue?

since each button load their own css and javascript from external servers its mos likely that for some reason your forum didin't load their css or javascript and the buttons were show on a different location.


the diff button is the most problematic one, sometimes it doesn't appear, digg has just change it recently so maybe thats the reason.
Title: Re: Share This Topic
Post by: TheMortician4 on November 10, 2010, 11:52:16 AM
Quote from: Miss All Sunday on November 09, 2010, 12:25:54 PM
is that the only modification of the bar?


like i said early, the bar and the mod works fine together,  uninstall both make sure you did not have any errors on unistall,    install it again and make sure you do  not have any errors on install


I cant test your forum because you don't have the mod enable, you didin't say what¿s on your error log neither, so I'm only guessing at this point.

Activating Mod Now for you
Title: Re: Share This Topic
Post by: Suki on November 10, 2010, 01:27:16 PM
Quote from: TheMortician4 on November 10, 2010, 11:52:16 AM
Quote from: Miss All Sunday on November 09, 2010, 12:25:54 PM
is that the only modification of the bar?


like i said early, the bar and the mod works fine together,  uninstall both make sure you did not have any errors on unistall,    install it again and make sure you do  not have any errors on install


I cant test your forum because you don't have the mod enable, you didin't say what¿s on your error log neither, so I'm only guessing at this point.

Activating Mod Now for you


it seems theres an error with the digg button:

Mensaje: Object required
Línea: 8
Carácter: 378
Código: 0
URI: http://widgets.digg.com/buttons.js



does desactivation the digg button solve the issue with the bar?

Im afraid theres nothing I can do to fix the issue with the digg button, we can only wait until digg people solve the problem or release a new version of their button.
Title: Re: Share This Topic
Post by: Aktoraman on November 11, 2010, 04:47:28 PM
Hello there gyus!
Congratulations for the very nice MOD you made.
I have installed the    Share This Topic 2.5.1. in my SMF 2.0 RC3 forum and i have the Inferno Theme.
I am also having enable the "show the buttons and icons on every message"
My problem is that i want to change the aligment of the Share buttons from the bottom to the top of each post,
but i cannot find this code in my Themes/default/Display.template.php

$social_icons .= sprintf('<a href="' . $url . '" target="_blank"><img src="' . $settings['images_url'] . '/share/' . $site . '.gif" align="bottom" title="' . $txt['share_default_tooltip'] . '" alt="' . $txt['share_default_tooltip'] . '" /></a>'

Is this the code that i should modify  there? Because i cannot find it.
Can anybody please help?
Title: Re: Share This Topic
Post by: Suki on November 11, 2010, 05:29:59 PM
do you mean the icons?  from the butotn to the top?


the icons  are in the bottom.

the buttons (facebook, digg, buzz and tweet) are in the top.


where exactly do you want them?   please use screenshots.


/me has 800 post now ^^
Title: Re: Share This Topic
Post by: Aktoraman on November 11, 2010, 05:42:06 PM
Quote from: Miss All Sunday on November 11, 2010, 05:29:59 PM
do you mean the icons?  from the butotn to the top?


the icons  are in the bottom.

the buttons (facebook, digg, buzz and tweet) are in the top.


where exactly do you want them?   please use screenshots.


/me has 800 post now ^^

Ok i upload a photo here.
I want to move the icons from the buttom to the top of each post
Title: Re: Share This Topic
Post by: Suki on November 11, 2010, 05:58:27 PM
on your /Sources/Display.php   find:

$message['body'] = ($message['body'].$mirahalo);

theres two of this, change both  to:


$message['body'] = ($mirahalo.$message['body']);


then on your /Sources/ShareThis.php

find:

<p style="overflow:auto;">'. $social_icons. '</p> 


again, theres two it it,   you can add a style to the  <p>   this way your icons and buttons do not interfere each other.

Title: Re: Share This Topic
Post by: TheMortician4 on November 12, 2010, 12:43:17 PM
Quote from: TheMortician4 on November 12, 2010, 12:38:26 PM
Quote from: Miss All Sunday on November 10, 2010, 01:27:16 PM
Quote from: TheMortician4 on November 10, 2010, 11:52:16 AM
Quote from: Miss All Sunday on November 09, 2010, 12:25:54 PM
is that the only modification of the bar?


like i said early, the bar and the mod works fine together,  uninstall both make sure you did not have any errors on unistall,    install it again and make sure you do  not have any errors on install


I cant test your forum because you don't have the mod enable, you didin't say what¿s on your error log neither, so I'm only guessing at this point.

Activating Mod Now for you


it seems theres an error with the digg button:

Mensaje: Object required
Línea: 8
Carácter: 378
Código: 0
URI: http://widgets.digg.com/buttons.js



does desactivation the digg button solve the issue with the bar?

Im afraid theres nothing I can do to fix the issue with the digg button, we can only wait until digg people solve the problem or release a new version of their button.

Let me deactivate it and see what happens... Nope, wibiya bar still not showing...

Title: Re: Share This Topic
Post by: Suki on November 12, 2010, 12:49:35 PM
can you provide me an admin account to your forum to be sure the mod is installed properly,   this is the only way I can help you because I don't know what other errors you have or if other mods cause problems, or if you instelled the mod properly, you do not give enough info and I can't be guessing anymore.
Title: Re: Share This Topic
Post by: Aktoraman on November 12, 2010, 02:07:35 PM
Quote from: Miss All Sunday on November 12, 2010, 12:49:35 PM
can you provide me an admin account to your forum to be sure the mod is installed properly,   this is the only way I can help you because I don't know what other errors you have or if other mods cause problems, or if you instelled the mod properly, you do not give enough info and I can't be guessing anymore.
Are you speaking to me??
Sorry but i don't understand if you are attending to me..
Title: Re: Share This Topic
Post by: Suki on November 12, 2010, 02:18:25 PM
@Aktoraman    I already answer you:


Quote from: Miss All Sunday on November 11, 2010, 05:58:27 PM
on your /Sources/Display.php   find:

$message['body'] = ($message['body'].$mirahalo);

theres two of this, change both  to:


$message['body'] = ($mirahalo.$message['body']);


then on your /Sources/ShareThis.php

find:

<p style="overflow:auto;">'. $social_icons. '</p> 


again, theres two it it,   you can add a style to the  <p>   this way your icons and buttons do not interfere each other.


 
Title: Re: Share This Topic
Post by: Aktoraman on November 12, 2010, 02:41:45 PM
Quote from: Miss All Sunday on November 11, 2010, 05:58:27 PM
on your /Sources/Display.php   find:

$message['body'] = ($message['body'].$mirahalo);

theres two of this, change both  to:


$message['body'] = ($mirahalo.$message['body']);




then on your /Sources/ShareThis.php

find:

<p style="overflow:auto;">'. $social_icons. '</p> 


again, theres two it it,   you can add a style to the  <p>   this way your icons and buttons do not interfere each other.

Your advice worked for me. Thank you very much!!!
I put a css : vertical-align:top  and now iam 100% satisfied with its alignment.

Here is the new printscreen:

(http://www.aktorama.gr/myimages/share_this_ok.jpg)






But i have some errors in error log wih Share This MOD.

It gives me 2 errors in each action that is taking place there.


1. 8: Undefined index: buzz_post
File: /home/myForum/public_html/Sources/ShareThis.php
Line: 149

2. 8: Undefined index: tweet_name
File: /home/myForum/public_html/Sources/ShareThis.php
Line: 137

Does anybody know what is going wrong over there ??
Title: Re: Share This Topic
Post by: Suki on November 12, 2010, 02:45:07 PM
those are language strings, make sure you have the proper translation  or make sure those strings exist on your /Themes/default/language/Modifications.yourlanguage.php

$txt['buzz_post'] = 'Post to Google Buzz';
$txt['tweet_name'] = 'Tweet';
Title: Re: Share This Topic
Post by: Aktoraman on November 12, 2010, 03:08:36 PM
Quote from: Miss All Sunday on November 12, 2010, 02:45:07 PM
those are language strings, make sure you have the proper translation  or make sure those strings exist on your /Themes/default/language/Modifications.yourlanguage.php

$txt['buzz_post'] = 'Post to Google Buzz';
$txt['tweet_name'] = 'Tweet';

In Themes/default/languages/Modifications.myLanguage.php  i dont have these:
$txt['buzz_post'] = 'Post to Google Buzz';
$txt['tweet_name'] = 'Tweet';

but i have these :
$txt['share_gbuzz'] = 'Google buzz';
$txt['share_twitter'] = 'Twitter';


Actually i had the Previous Version of Share This MOD (Share This Topic 2.1 )
and after a while  i've made a custom MOD and change some stuff in there (Modifications.myLanguage.php)  but when i tried to unistall and install the new one (Share This Topic  2.5.1 ) it gave me some errors during installation.....   :-[ 
but i continued and now i have to make all the corrections.

Conclusion : I dont have other errors from this Should i add them anyway?
Title: Re: Share This Topic
Post by: Suki on November 12, 2010, 03:20:13 PM
you just have to add the strings I posted:


Quote from: Miss All Sunday on November 12, 2010, 02:45:07 PM
those are language strings, make sure you have the proper translation  or make sure those strings exist on your /Themes/default/language/Modifications.yourlanguage.php

$txt['buzz_post'] = 'Post to Google Buzz';
$txt['tweet_name'] = 'Tweet';



to your /Themes/default/languages/Modifications.yourlanguage


add it at the end, before the ?> tag
Title: Re: Share This Topic
Post by: Aktoraman on November 12, 2010, 03:34:02 PM
Quote from: Miss All Sunday on November 12, 2010, 03:20:13 PM
you just have to add the strings I posted:


Quote from: Miss All Sunday on November 12, 2010, 02:45:07 PM
those are language strings, make sure you have the proper translation  or make sure those strings exist on your /Themes/default/language/Modifications.yourlanguage.php

$txt['buzz_post'] = 'Post to Google Buzz';
$txt['tweet_name'] = 'Tweet';



to your /Themes/default/languages/Modifications.yourlanguage


add it at the end, before the ?> tag

Thank you once again Miss All Sunday, you are great!!!!
I have put them there and test it, for the moment i have no errors from these!

I have one more last question:
I have installed in my forum the SMF Arcade 2.5 RC1
Is it possible to have the Share This Topic MOD to work over there?
Title: Re: Share This Topic
Post by: Suki on November 12, 2010, 03:38:36 PM
yes, you can include the icons and buttons easily with this new version, please see:  http://oharascans.com/foro/mods/faq_share_this_topic_mod_1905.0.html

tha last part show how you can include the icons and buttons on every page you want.

you only need a valid url to share.
Title: Re: Share This Topic
Post by: Aktoraman on November 12, 2010, 03:43:19 PM
Quote from: Miss All Sunday on November 12, 2010, 03:38:36 PM
yes, you can include the icons and buttons easily with this new version, please see:  http://oharascans.com/foro/mods/faq_share_this_topic_mod_1905.0.html

tha last part show how you can include the icons and buttons on every page you want.

you only need a valid url to share.
Thank you once again....!!!
From a short look that i've made i didn't understand in which php form of Arcade, should i include the code that this guy gives?
Title: Re: Share This Topic
Post by: Suki on November 12, 2010, 03:46:47 PM
I'm not familiar with that mod so I can't really help you there,   perhaps this mod has a template file where you can include the icons and buttons.
Title: Re: Share This Topic
Post by: Aktoraman on November 12, 2010, 04:03:51 PM
And if i want to put it in my simple portal index page?
Thank you verry much for everything
Title: Re: Share This Topic
Post by: Suki on November 12, 2010, 04:13:05 PM
again, you have to put the code in the template page for the simpleportal index, as long as there is a url to share it will work.
Title: Re: Share This Topic
Post by: marwan on November 18, 2010, 09:08:10 PM
I'm getting this error:

Fatal error: Call to undefined function share_headers() in D:\hshome\autoworks\auto-works.cc\forum\Sources\Load.php on line 1643 :s

Attached is my load.php file
Title: Re: Share This Topic
Post by: Suki on November 19, 2010, 12:31:35 PM
do you have a  ShareThis.php file in your Sources/  folder?   if not, upload that file.
Title: Re: Share This Topic
Post by: marwan on November 19, 2010, 12:56:12 PM
Quote from: Miss All Sunday on November 19, 2010, 12:31:35 PM
do you have a  ShareThis.php file in your Sources/  folder?   if not, upload that file.
I have placed it in the sources folder. I'm using the standard one that comes with the mod. Didn't change any codes there...
Title: Re: Share This Topic
Post by: Suki on November 19, 2010, 01:07:33 PM
the mod needs that file to work:


// Before anything else, set some header stuff, share this topic mod
      require_once($sourcedir . '/ShareThis.php');
   $context['html_headers'] .= share_headers();


what version are you using?  if your using 2.0  clean your cache and make sure the files name is correct:  ShareThis.php
Title: Re: Share This Topic
Post by: marwan on November 19, 2010, 01:41:12 PM
Quote from: Miss All Sunday on November 19, 2010, 01:07:33 PM
the mod needs that file to work:


// Before anything else, set some header stuff, share this topic mod
      require_once($sourcedir . '/ShareThis.php');
   $context['html_headers'] .= share_headers();


what version are you using?  if your using 2.0  clean your cache and make sure the files name is correct:  ShareThis.php
I'm using RC4. I'm sure the file name is correct, ShareThis.php.

Do I need to add this code to the file? I copied it after thhe extraction and FTPed it as it is...
Title: Re: Share This Topic
Post by: Suki on November 19, 2010, 01:43:54 PM
the code is already on your Sources/Load.php

thats why I told you to check if you have the ShareThis.php file, make sure it is fine, somtimes ftp programs can corrup files so make sure the file is fine  or just reupload the file and also,  clean you cache at  admin/ maintenance / forum maintenance / cache
Title: Re: Share This Topic
Post by: marwan on November 19, 2010, 01:51:51 PM
Quote from: Miss All Sunday on November 19, 2010, 01:43:54 PM
the code is already on your Sources/Load.php

thats why I told you to check if you have the ShareThis.php file, make sure it is fine, somtimes ftp programs can corrup files so make sure the file is fine  or just reupload the file and also,  clean you cache at  admin/ maintenance / forum maintenance / cache
Cache is disabled. The file is there :s. Any other trrials?
Title: Re: Share This Topic
Post by: Suki on November 19, 2010, 01:54:50 PM
yeah, but are you sure the file is ok?  some ftp programs can corrup files when uploading, thats why I need you to check, if the files is 0 bytes  then its corrup and you need to delete and upload a new one.

its the only posibility,  the error appears because Load.php cannot finde the share_headers();  function.  and that function is inside the ShareThis.php file.
Title: Re: Share This Topic
Post by: marwan on November 19, 2010, 02:18:02 PM
Quote from: Miss All Sunday on November 19, 2010, 01:54:50 PM
yeah, but are you sure the file is ok?  some ftp programs can corrup files when uploading, thats why I need you to check, if the files is 0 bytes  then its corrup and you need to delete and upload a new one.

its the only posibility,  the error appears because Load.php cannot finde the share_headers();  function.  and that function is inside the ShareThis.php file.

Yeah I'm pretty sure the ftp was ok. You can access the file at: www.auto-works.cc/forum/sources/sharethis.php
Title: Re: Share This Topic
Post by: Suki on November 19, 2010, 02:36:22 PM
any errors on install?

please check on your index.php  if you have the follow:

require_once($sourcedir . '/ShareThis.php');
Title: Re: Share This Topic
Post by: marwan on November 19, 2010, 02:42:10 PM
Quote from: Miss All Sunday on November 19, 2010, 02:36:22 PM
any errors on install?

please check on your index.php  if you have the follow:

require_once($sourcedir . '/ShareThis.php');
I tried installing it twice, once manual and second I used the package manager. There were no installation errors. I removed it now. I will reinstall it later.
Title: Re: Share This Topic
Post by: Suki on November 19, 2010, 02:53:35 PM
ok, please let me know if any issues still occur, I will check on this with my local and live forum to see if this is a bug with RC4
Title: Re: Share This Topic
Post by: qubbah on November 20, 2010, 01:29:08 AM
cannot see the facebook like button at the top of post.. but the second one at the bottom its show normally.
Title: Re: Share This Topic
Post by: qubbah on November 20, 2010, 05:16:15 AM
i mean is

(http://img593.imageshack.us/img593/9034/indexphp.jpg)

The Facebook button now show at all even after enable in admin setting.
Title: Re: Share This Topic
Post by: Aoife on November 20, 2010, 08:02:16 AM
Errors are showing up in my logs when anyone visits a topic:

8: Undefined index: share_likebutton_enable
?topic=403.0;wap

I've also been getting the same message for share_buzzbutton and share_diggbutton and on a whim enabled those two buttons last nite. The FB 'like' button is not enabled and I really didn't want to enable any of the buttons but I guess I will if it will make the error messages stop.

I'm using 2.0 RC4 and 2.5.1.

Thanks!

Title: Re: Share This Topic
Post by: Suki on November 20, 2010, 08:30:06 PM
you need to include the language strings for your language,   please include the language strings in your /Themes/default/language/Modifications.yourlanguage.php




@greentooth


can you post a link to your site?
Title: Re: Share This Topic
Post by: Aoife on November 20, 2010, 10:19:04 PM
Quote from: Miss All Sunday on November 20, 2010, 08:30:06 PM
you need to include the language strings for your language,   please include the language strings in your /Themes/default/language/Modifications.yourlanguage.php


k, I'll try that. But after I checked the boxes for Facebook, Buzz, and Twitter the error messages stopped.  I may just leave it like that.

Thanks for the reply!

:)
Title: Re: Share This Topic
Post by: FlipPro on November 21, 2010, 10:01:03 PM
I am having a problem with your mod recording facebook likes and tweets, and diggs. The buttons work when you hit them but they don't seem to be recording after you hit them. They go back to 0. My website is . I would like your assistance with this if i could please. Thank you !
Title: Re: Share This Topic
Post by: Suki on November 21, 2010, 10:09:56 PM
@FlipPro
  can I have a link to your site?  post it like text:  mysite.com   SMF has some rules for posting urls on new accounts.

usually, you need to be log in on facebook, digg, buzz and twitter to see the number, also, since its an external site, theres no much we can do about it, somtimes the buttons wont work because of server problems or saturation.
Title: Re: Share This Topic
Post by: FlipPro on November 22, 2010, 09:00:44 AM
Quote from: Miss All Sunday on November 21, 2010, 10:09:56 PM
@FlipPro
  can I have a link to your site?  post it like text:  mysite.com   SMF has some rules for posting urls on new accounts.

usually, you need to be log in on facebook, digg, buzz and twitter to see the number, also, since its an external site, theres no much we can do about it, somtimes the buttons wont work because of server problems or saturation.
moneymakerforums.com, I hope we can get this to work! :)
Title: Re: Share This Topic
Post by: Suki on November 22, 2010, 09:33:05 AM
I just tried on one post and all the buttons works normally, are you sure you are logged in  on facebook, digg, buzz and twitter?  use the remind my account  option to always stay logged in.
Title: Re: Share This Topic
Post by: FlipPro on November 22, 2010, 10:32:49 AM
Quote from: Miss All Sunday on November 22, 2010, 09:33:05 AM
I just tried on one post and all the buttons works normally, are you sure you are logged in  on facebook, digg, buzz and twitter?  use the remind my account  option to always stay logged in.
The buttons work, but they are not recording the actual diggs or tweets. SO if 30 people tweet a topic it will not show that 30 tweets have been sent out. Do yo get what I mean?
Title: Re: Share This Topic
Post by: mirahalo on November 22, 2010, 01:08:46 PM
you haven answer, did you are logged in on those sites?  all the buttons work with cookies, can you post  a link to a topic with 30 or any number or tweets?   
Title: Re: Share This Topic
Post by: FlipPro on November 22, 2010, 01:25:15 PM
Quote from: Mr. 0 on November 22, 2010, 01:08:46 PM
you haven answer, did you are logged in on those sites?  all the buttons work with cookies, can you post  a link to a topic with 30 or any number or tweets?
just tried to do it with moneymakerforums.com/affiliate-programs/what-is-affiliate-marketing/ ... Was logged into digg and everything. Dugg it. And still didn't record. This is the problem that I have been having. The topics don't pick up steam with likes, and what not because they aren't recording.
Title: Re: Share This Topic
Post by: mirahalo on November 22, 2010, 02:12:16 PM
I tested the url you post and with the facebook and the digg buttons it works just fine for me.


unfortunately,  we just provide a way to show those buttons, we cannot guarantee the functionality of those buttons because it depends on external services, we can only guarantee the modifications we made.
Title: Re: Share This Topic
Post by: Wellington on November 22, 2010, 04:01:23 PM
I use SA Facebook Connect so people can invite their friends to my site via Facebook, I also wish to use the like system so have tried to install your mod on RC4m, however I get an error on install, are they conflicting?, is there anything I can do to fix this?.

Many thanks!
Title: Re: Share This Topic
Post by: eXtreme on November 22, 2010, 04:17:47 PM
@greentooth - If you're using 1.1.x, check if you 've followed this instruction

"1.1.x users, make sure you modified your index.template.php if you're using a custom theme "

http://custom.simplemachines.org/mods/index.php?mod=2111
Title: Re: Share This Topic
Post by: Wellington on November 22, 2010, 04:20:29 PM
I should add that I am not using a theme and also have simple portal installed.
Title: Re: Share This Topic
Post by: mirahalo on November 22, 2010, 05:21:27 PM
Quote from: Wellington on November 22, 2010, 04:01:23 PM
I use SA Facebook Connect so people can invite their friends to my site via Facebook, I also wish to use the like system so have tried to install your mod on RC4m, however I get an error on install, are they conflicting?, is there anything I can do to fix this?.

Many thanks!


yes, both mods try to modify the same line of code in index.template.php, thats the only conflict between the mods.

if you already have SA facebook connect and you get errors onindex.template.php   just ignore it,  both mods are trying to add the  "xmlns:fb="http://www.facebook.com/2008/fbml"   SA facebook connect already did so you just have to add this: 


// facebook needs this... Share This Topic mod
global $context, $modSettings, $scripturl;
    echo  '<meta property="og:title" content="', !empty($context['page_title_html_safe']) ? $context['page_title_html_safe'] : '', '"/>
<meta property="og:type" content="article"/>
<meta property="og:image" content="', !empty($modSettings['share_likebutton_image']) ? $modSettings['share_likebutton_image'] : '', '"/>
<meta property="og:site_name" content="', !empty($context['forum_name_html_safe']) ? $context['forum_name_html_safe'] : '', '"/>
    <meta property="og:url" content="', !empty($context['canonical_url']) ? $context['canonical_url'] : '' , '"/>
    <meta property="fb:app_id" content="', !empty($modSettings['share_likebutton_appid']) ? $modSettings['share_likebutton_appid'] : '', '"/>


in your index.template.php file  between  <head> and </head>


also, you need to add this:  "xmlns:og="http://opengraphprotocol.org/schema/"

in your <html>  tag, for example:  <html xmlns:og="http://opengraphprotocol.org/schema/"
Title: Re: Share This Topic
Post by: FlipPro on November 22, 2010, 07:25:53 PM
Quote from: Mr. 0 on November 22, 2010, 02:12:16 PM
I tested the url you post and with the facebook and the digg buttons it works just fine for me.


unfortunately,  we just provide a way to show those buttons, we cannot guarantee the functionality of those buttons because it depends on external services, we can only guarantee the modifications we made.
I will pay if I have to get this fixed. There is no point in having these like buttons if they don't record the amount of likes... Am I the only one having this problem?
Title: Re: Share This Topic
Post by: mirahalo on November 22, 2010, 07:40:20 PM
its not up to me or how much do you pay, like I said, we only provide a way to show the buttons.

you aren't the only one with this problem and probably you wont be the last, everyone will go trough this at some point because the buttons relies on external servers.

the only think I can do its make sure you did install the mod with no errors, if you're using a custom theme, make the necessary edits on that theme, apart from that, theres nothing I can do.

Title: Re: Share This Topic
Post by: zimmo on November 23, 2010, 04:43:23 PM
Hi I have just installed this for version 1.1.12 and the share icons work fine with the different social networks. I have created the app in facebook as you said for the like button.

I have also scanned this forum to see if there is a problem, but could not find an answer.

The problem is that the like button is not liking individual posts, it is liking the whole website, and the link it posts to facebook is the link for the forum and the link for the main url.

Have I missed something as I really want this to work, and for individual posts not just the whole website.

Can you help?????

THanks
Title: Re: Share This Topic
Post by: mirahalo on November 24, 2010, 10:12:10 AM
can I have a link to your site?  do you use a custom theme?  do you make the manul edits for your custom theme?
Title: Re: Share This Topic
Post by: zimmo on November 24, 2010, 11:02:46 AM
Quote from: Mr. 0 on November 24, 2010, 10:12:10 AM
can I have a link to your site?  do you use a custom theme?  do you make the manul edits for your custom theme?

Hi there,

The site is here:
http://www.anglerscabin.com/forum/

I have done the find and replace as was mentioned in the instructions and saved that. But it still just shows throughtout the whole site as like on everything rather than individual posts.

Thanks for helping, as want this to work.
Title: Re: Share This Topic
Post by: JammDesigner on November 24, 2010, 11:08:58 AM
QuoteSome of the files the package manager needs to modify are not writable. This needs to be changed by logging into FTP and using it to chmod or create the files and folders. Your FTP information may be temporarily cached for proper operation of the package manager. Note you can also do this manually using an FTP client - to view a list of the affected files please click here.

FTP Server:
    Port: 
Username:
Password:
Local path to SMF:

SMF 2.0 RC4
www.dominicanos-ausentes.com/foro

After connect by FTP to change permissions to that files WEBSITE & FORUM go down

QuoteInternal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache mod_fcgid/2.3.5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.dominicanos-ausentes.com Port 80
Title: Re: Share This Topic
Post by: mirahalo on November 24, 2010, 12:14:28 PM
@zimmo   after testing  I can confirm this is a bug, I will make a new release with the fix as soon as I can.


@JammDesigner   what files exactly?  what did you do?


your site dominicanos-ausentes.com  takes me to a re directional page

Title: Re: Share This Topic
Post by: zimmo on November 24, 2010, 01:36:59 PM
@zimmo   after testing  I can confirm this is a bug, I will make a new release with the fix as soon as I can.


Superb, glad I found it. If you can post on here as soon as its done, look forward to using it. Thanks
Title: Re: Share This Topic
Post by: JammDesigner on November 26, 2010, 03:02:40 AM
Quote from: Mr. 0 on November 24, 2010, 12:14:28 PM
@JammDesigner   what files exactly?  what did you do?


your site dominicanos-ausentes.com  takes me to a re directional page

I've upgrade smf forum 2.0 rc3 to rc4 and now when i'm trying to re-install all mod that i have and some of them give me this error:

(http://img545.imageshack.us/img545/6803/sharethis.jpg) (http://img545.imageshack.us/i/sharethis.jpg/)

When i connect by FTP to change permissions files, website and forum go down.

QuoteSome of the files the package manager needs to modify are not writable. This needs to be changed by logging into FTP and using it to chmod or create the files and folders. Your FTP information may be temporarily cached for proper operation of the package manager. Note you can also do this manually using an FTP client - to view a list of the affected files please click here.
The following files need to made writable to continue installation:

    * /mnt
    * /mnt/web3/12/29/51668329/htdocs/SMF/Themes/classic/images/share
    * /mnt
    * /mnt/web3/12/29/51668329/htdocs/SMF/Themes/babylon/images/share


This folder doesn't exist, i create it but error persists
Title: Re: Share This Topic
Post by: Suki on November 26, 2010, 12:12:57 PM
if this happens with every mod you try to install, its a support issue and it will be better handle at the support board for your SMF version.


dont use your ftp for this, use the option below, put your ftp info there and the package manager will do the chages for you.

click on the "make connection"  buttons on the bottom to check first before install.
Title: LIKE button links to site instead of post
Post by: Pat Yuen on November 26, 2010, 10:15:24 PM
I am also having the same problems with the LIKE button counting and linking to the main url instead of the post. All threads are displaying the same count so it is working like a site LIKE button instead of a thread LIKE button. Hopefully, it will get fixed soon.
Title: Re: Share This Topic
Post by: 4Kstore on November 27, 2010, 05:43:17 PM
Hello.
When you install the mod had no proble, do not throw error or anything.
We look at the language files and in the source folder and modified all the files correctly.
But when someone goes to a post will automatically generate 3 innings in the error log

Undefined index: share_icons_enable
Archivo: /htdocs/Sources/ShareThis.php
Línea: 118
Undefined index: share_buzzbutton_enable
Archivo: /htdocs/Sources/ShareThis.php
Línea: 57
Undefined index: share_diggbutton_enable
Archivo: /htdocs/Sources/ShareThis.php
Línea: 56

within 3 days about gender and a half million records in the error log.

As I said, we thought it was the language files but they are all correctly edited.
Greetings!




Hola.
Al instalar el mod no tuvimos problemos, no tiro error ni nada.
Nos fijamos en los archivos de idiomas y en los de la carpeta source y se modificaron todos los archivos correctamente.
Pero cuando alguien entra a un post automaticamente se generan 3 entradas en el log de errores

Undefined index: share_icons_enable
Archivo: /htdocs/Sources/ShareThis.php
Línea: 118
Undefined index: share_buzzbutton_enable
Archivo: /htdocs/Sources/ShareThis.php
Línea: 57
Undefined index: share_diggbutton_enable
Archivo: /htdocs/Sources/ShareThis.php
Línea: 56

en menos de 3 dias genero casi un millon y medio de registros en el log de errores.

Como dije, pensamos que eran los archivos de idiomas pero estan todos correctamente editados.
Saludos!
Title: Re: Share This Topic
Post by: Suki on November 27, 2010, 07:41:25 PM
check your language files, those errors are because of the text strings missing in your language file,  please do make sure you have this on your Modifications.yourlanguage.php:

revisa tus archivos de idioma ,esos eror4es son porque no tienes la traduccion del mod.


// share this topic mod
$txt['share_all_messages'] = '&iquestMostrar los iconos y los botones en cada mensaje?  <span style="font-weight:bold;">si se deja la casila vacia, solo se mostrar&aacute;n en el primer mensaje.</span>';
$txt['share_default_menu'] = 'Comparte este tema';
$txt['share_default_menu_desc'] = 'Usa esta panel para confirmar cuales redes sociales se mostraran en tus mensajes.';
$txt['share_default_tooltip'] = 'Comparte este tema en %s';
$txt['share_ask'] = 'Ask';
$txt['share_blinklist'] = 'Blinklist';
$txt['share_bmarks'] = 'Bmarks';
$txt['share_dzone'] = 'Dzone';
$txt['share_feedmelinks'] = 'Feed Me Links';
$txt['share_live'] = 'Live';
$txt['share_netvouz'] = 'Netvouz';
$txt['share_newsvine'] = 'Newsvine';
$txt['share_oneview'] = 'Oneview';
$txt['share_slashdot'] = 'Slashdot';
$txt['share_spurl'] = 'Spurl';
$txt['share_squidoo'] = 'Squidoo';
$txt['share_tipd'] = 'Tipd';
$txt['share_gbuzz'] = 'Google buzz';
$txt['share_facebook'] = 'Facebook';
$txt['share_myspace'] = 'MySpace';
$txt['share_delicious'] = 'Del.icio.us';
$txt['share_digg'] = 'Digg';
$txt['share_reddit'] = 'Reddit';
$txt['share_stumbleupon'] = 'StumbleUpon';
$txt['share_twitter'] = 'Twitter';
$txt['share_technorati'] = 'Technorati';
$txt['share_magnolia'] = 'Magnolia';
$txt['share_google'] = 'Google';
$txt['share_yahoo'] = 'Yahoo';
$txt['share_printfriendly'] = 'Print Friendly';
$txt['share_meneame'] = 'Meneame';
$txt['share_friendfeed'] = 'Friend feed';
$txt['share_icons_enable'] = 'Activar los iconos.';
$txt['share_likebutton_enable'] = 'Activar el bot&oacute;n Facebook Like.';
$txt['share_likebutton_appid'] = 'El ID de tu aplicaci&oacute;n de Facebook, da click en el icono de ayuda para saber como crear tu propia aplicaci&oacute;n.';
$txt['share_likebutton_image'] = 'La URL de alguna imag&eacute;n representativa de tu foro (logo). la imag&eacute;n debe de ser de almenos 50px por 50px con un radio de 3:1. esta caracteristica es opcional.';
$txt['share_likebutton_lang'] = 'Lenguaje para el boton de Facebook, por defecto: en_US (Ingl&eacute;s) da click en el icono de ayuda para obtener una lista completa de los idiomas disponibles';
$txt['share_options_boards'] = 'escribe los ID de los foros en los cuales <span  style="color:red;">NO</span> quieres que aparezcan los iconos y los botones, separados por coma, ejemplo: 1,2,3';
$txt['share_diggbutton_enable'] = 'Activar el bot&oacute;n de Digg.';
$txt['share_twibutton_enable'] = 'Activar el bot&oacute;n reTweet.';
$txt['share_buzzbutton_enable'] = 'Activar el bot&oacute;n Buzz.';
$txt['tweet_name'] = 'Tweet';
$txt['share_twibutton_lang'] = 'lenguaje del bot&oacute;n retweet, dejalo en blanco para mostrar el default (ingl&eacute;s), da click en el icono de ayuda para obtener una lista completa de idiomas disponibles.';
$txt['share_twibutton_account'] = 'Nombre de tu cuenta de twitter, dejalo en blanco para usar el default "twitterapi" esta caracteristica es opcional.';
$txt['buzz_post'] = 'Publicar en Google Buzz';
// share this topic mod end
Title: Re: Share This Topic
Post by: 4Kstore on November 27, 2010, 07:53:28 PM
Todos los archivos de lenguaje tienen las lineas correspondientes
Title: Re: Share This Topic
Post by: Suki on November 27, 2010, 07:56:11 PM
can you attach your modifications.yourlanguage.php?

are you using a custom theme? 
did you madew the edits on that theme?
did you clean you cache?
any errors on install?
did you made custom edits?

Title: Re: Share This Topic
Post by: 4Kstore on November 28, 2010, 01:49:57 PM
Quote from: Miss All Sunday on November 27, 2010, 07:56:11 PM
can you attach your modifications.yourlanguage.php?

are you using a custom theme? 
did you madew the edits on that theme?
did you clean you cache?
any errors on install?
did you made custom edits?



are you using a custom theme?   - No
did you madew the edits on that theme? Is the default
did you clean you cache? Yes
any errors on install? No
did you made custom edits? No.

the mod is installed correctly without throwing any kind of error.
Title: Re: Share This Topic
Post by: Suki on November 29, 2010, 08:33:10 AM
can you attach your Sources/ShareThis.php
Title: Re: Share This Topic
Post by: 4Kstore on November 29, 2010, 08:39:58 AM
Yes of course!
Grettings
Title: Re: Share This Topic
Post by: Suki on November 29, 2010, 08:57:17 AM
I cannot reproduce the error,  please make sure all the edits on  (assuming you're using RC4)

./Sources/ManageSettings.php

http://custom.simplemachines.org/mods/index.php?action=parse;mod=2111;attach=160478;smf_version=2.0_RC4


thats where the  $modSettings['value']  are define
Title: Re: Share This Topic
Post by: asheashe on December 04, 2010, 11:20:28 AM
Hi,

Using 1.1.12 SMF version and installed the mod. Like others, am having a problem with the site main URL being liked rather than the topic name. I am guessing this is because of the URL in the meta tags. is there some code you need to insert so that rather than the forum URL it includes the thread ID etc?

For example the Thread on this URL: hxxp://www.haxed.co.uk/forum/index.php/topic,50591.0.html

the source has the meta tag:     <meta property="og:url" content="hxxp://www.haxed.co.uk/forum/index.php"/>

So does it need some code in there to add the current topic details into it?

Also I have disabled the mod currently because when I add the twitter or facebook like button at the same time, messages receive a scroll bar which looks really ugly (left-to-right). Is there a way to align the buttons to the left instead of the right so that this does not happen?

Also can the social media sharing icons (which work no problem) be realigned somehow so that they appear somewhere a bit further down? at present it almost makes it look like its a part of the user's post. Ideally I'd like it to appear over by the IP address etc, but I am useless with editing the layouts etc so wouldn't know how to do this.

Thanks for any help provided. Theme used is Babylon 1.1. Also as another issue, after editing the template to install this mod, our BBC code buttons no longer work, not sure if that is a known issue or if i have made error somewhere but have posted elsewhere for that if not a known issue. if i need to post any code etc let me know.

Title: Re: Share This Topic
Post by: Suki on December 05, 2010, 08:58:10 AM
theres going to be a new version witout metatags and opengraph protocol those two are caused so many issues.

you can change the css for the buttons on the file /Sources/ShareThis.php

the icons are actually part of the post, and the edits are not in the template, its done in the source file (Display.php)


the bbc code its strange, as this mod does not modify any code relate to it.
Title: Re: Share This Topic
Post by: asheashe on December 05, 2010, 11:06:37 AM
Have fixed BBCode by reverting to original theme, think it was something else that I used that caused that issue to be honest. the key issue really is as others have said the like button liking the whole site. guess this seems more relevant to 1.1.x versions by the look of it. shame as it seemed really cool :(
Title: Re: Share This Topic
Post by: LuminaRS on December 25, 2010, 08:41:28 PM
Running 1.1.11 with the same issues the others are reporting... Hoping for an update soon!  ;D
Title: Re: Share This Topic
Post by: mirahalo on December 30, 2010, 12:28:21 PM
I'm sorry for all the delay,  I just want to say that this mod will still be developed, I already have tracked all your suggestions and bugs, as soon as i can have some time I will start making a new version ^^
Title: Re: Share This Topic
Post by: DanteOz on December 31, 2010, 05:53:17 AM
Pls, add the option to enable buttons & icons on first message of every topic page, also make the share icons bigger
Title: Re: Share This Topic
Post by: mirahalo on December 31, 2010, 08:06:01 AM
you can change the icons if you want, the icons are store in ./Themes/default/images/icons  folder,  just replace the images with yours.
Title: Re: Share This Topic
Post by: mirahalo on January 02, 2011, 04:16:04 PM
OK, new version released!

-Now the mod has no theme edits, will work with every theme you have.
-Theres no need to create a facebook app anymore.
-Added a "check all"  option to easy select all the check boxes for the icons.
-Added support  for SimplePortal's news block and article system, now you only need to check an option and the icons and buttons will appear in your simpleportal block or article :)
-the buttons, icons and the css for it can be modify in the ShareThis.php source file.
-Now its easier to show the icons and buttons in other pages or even outside SMF, just use this as an example:

// Share this topic mod
$parameters = array(
'url' => 'url to share',
'output' => 'return',
'face_button' => 1, // either set this 1 for use the modSettings parameters or 0 to hide
'retweet_button' => 1,
'digg_button' => 1,
'buzz_button' => 1,
);

  $buttons =  share_this($parameters, $return_parameters = false);
  $icons = share_icons($parameters, $return_parameters = false);


you only need a valid URL to share, you can override the mod's settings and control which buttons to display  by changing  => 1  to => 0   0 will hide the button,  1 will use the mod's settings.

now you just need to print or echo the variables $buttons and $icons where you want to show them.



to upgrade please uninstall the previous version and then install this one with the package manager.
Title: Re: Share This Topic
Post by: LuminaRS on January 03, 2011, 08:04:48 AM
After doing an uninstall and installing the new version, the icons are left justified in a cluster, and there is no icon for facebook.

Example: http://www.atlma.us/index.php/topic,513.0.html
Title: Re: Share This Topic
Post by: impreza on January 03, 2011, 08:38:58 AM
Very cool addition - thank you
Title: Re: Share This Topic
Post by: mirahalo on January 03, 2011, 09:57:16 AM
Quote from: LuminaRS on January 03, 2011, 08:04:48 AM
After doing an uninstall and installing the new version, the icons are left justified in a cluster, and there is no icon for facebook.

Example: http://www.atlma.us/index.php/topic,513.0.html

o dear!  its a bug, I will update the mod to fix that.
Title: Re: Share This Topic
Post by: LuminaRS on January 03, 2011, 09:59:52 AM
Alright, I'll uninstall and wait for a new version.
Title: Re: Share This Topic
Post by: mirahalo on January 03, 2011, 03:20:40 PM
ok, the mod is updated now, sorry for the inconveniences.

Title: Re: Share This Topic
Post by: LuminaRS on January 03, 2011, 03:25:44 PM
It works now. Only gripe is now there's a 1.5" space between the text and the buttons?
Title: Re: Share This Topic
Post by: mirahalo on January 03, 2011, 03:34:28 PM
that is because of the facebook button, you can set the height from the mod's settings,  if no number is set, it takes the default height.
Title: Re: Share This Topic
Post by: LuminaRS on January 03, 2011, 03:35:40 PM
That's an easy fix. The real issues I'm having now, is any "action" brings you to a blank page. Posting, editing, deleting, etc... Blank page.
Title: Re: Share This Topic
Post by: mirahalo on January 03, 2011, 03:38:36 PM
can I have an url example?
Title: Re: Share This Topic
Post by: LuminaRS on January 03, 2011, 03:43:04 PM
You'd need an account on the forum to see, but anything will bring you to a blank white page. If you post, blank white page. If you change a setting on the forum in the admin panel, blank white page. If I attempt to delete a post, blank white page.

Edit: uninstalled the mod so the forum will work again.
Title: Re: Share This Topic
Post by: mirahalo on January 03, 2011, 03:51:48 PM
well, with out any further details it is dificult to help you,  I dont even know if you installed with no problems or if you uninstall the previous version.  replace the Sources/ShareThis.php file with this one.
Title: Re: Share This Topic
Post by: LuminaRS on January 03, 2011, 04:45:54 PM
My previous post I said "Alright, I'll uninstall and wait for a new version."
No errors or issues, even deleted the .zip files from the server before uploading the new .zip.
Just put the new ShareThis.php in the sources directory and overwrote the other one, now the forum is nothing but a white page.

EDIT: Overwrote the "new" php with the "old" one from the zip and got back into the forum. Will try again.
Title: Re: Share This Topic
Post by: mirahalo on January 03, 2011, 04:51:44 PM
like I said, without knowing your url I cannot help at all.


is this your forum?

http://www.theimportkiller.com/forums/index.php


or this?   http://www.atlma.us/


btw, I can see both forums just fine, the second one its using this mod with no problems.



sorry, but I cant help you if you dont provide enough details
Title: Re: Share This Topic
Post by: LuminaRS on January 03, 2011, 04:58:40 PM
Quote from: Mr. 0 on January 03, 2011, 04:51:44 PM
like I said, without knowing your url I cannot help at all.

See below quote...

Quote from: Mr. 0 on January 03, 2011, 09:57:16 AM
Quote from: LuminaRS on January 03, 2011, 08:04:48 AM
After doing an uninstall and installing the new version, the icons are left justified in a cluster, and there is no icon for facebook.

Example: http://www.atlma.us/index.php/topic,513.0.html

o dear!  its a bug, I will update the mod to fix that.

Quote from: Mr. 0 on January 03, 2011, 04:51:44 PM
btw, I can see both forums just fine, the second one its using this mod with no problems.



sorry, but I cant help you if you dont provide enough details

That's great that you can see it, but like I've said multiple times before ACTIONS like POSTING, EDITING, ETC bring you to a BLANK PAGE. This does not happen when the mod is uninstalled, I would call that a PROBLEM.

And like I said before:
Quote from: LuminaRS on January 03, 2011, 03:43:04 PM
You'd need an account on the forum to see, but anything will bring you to a blank white page. If you post, blank white page. If you change a setting on the forum in the admin panel, blank white page. If I attempt to delete a post, blank white page.
Title: Re: Share This Topic
Post by: Cartavio on January 05, 2011, 12:41:28 PM
el mod da error  para la version Rc4
Title: Re: Share This Topic
Post by: Suki on January 05, 2011, 12:43:04 PM
Cartavio


post in english please.


o usa el foro de soporte en español:  http://www.simplemachines.org/community/index.php?board=16.0


y especifica que error te da al tratar de instalar.

Title: Re: Share This Topic
Post by: marianolozano on January 05, 2011, 02:23:09 PM
I´m following this thread since the beginning and I appreciate the efforts of the mod´s designers to help us installing it and enjoying it FOR FREE.

So I´d suggest the users to keep this in mind and be nice with questions and answers  :)

Thanks, gracias.
Title: Re: Share This Topic
Post by: mirahalo on January 05, 2011, 09:49:16 PM
thanks marianolozano


I'm actually don't mind giving support for the mods I do, its just that some people tend to forget that the mods I do, I do it on my spare time, the support I give, I do it on my spare time.  and some users thing that I must provide support almost instantly and for free of course...

  true, the mod is not the best software but I do try to give a working, no errors mod, it will be so easy for me to make this mod completely template based and just say:  you need to modify your theme files, when a user comes here for support, instead, I do the extra mile by offering a source edit only mod that will work in all themes and in the same time try to do it as simple as possible for the user.
Title: Re: Share This Topic
Post by: MH-MINI on January 05, 2011, 10:36:40 PM
Quote from: Mr. 0 on September 06, 2009, 05:09:23 AM
- You only need to enter the ID of your Facebook application,  to create a new application follow this steps: (this is completely optional, the button will still work even without the app)

Why is it optional? What happens if I don't do it?

Thanks
Title: Re: Share This Topic
Post by: MH-MINI on January 05, 2011, 10:48:19 PM
Hello again,

How can I change the colours to the text that is put on each post?

Thanks

EDIT: I'm talking about this text here: "Be the first of your friends to like this." I notice that it's just a frame to FB... but is there any way I can change the colour for this?

Thanks again
Title: Re: Share This Topic
Post by: LuminaRS on January 06, 2011, 08:02:40 AM
Quote from: marianolozano on January 05, 2011, 02:23:09 PM
I´m following this thread since the beginning and I appreciate the efforts of the mod´s designers to help us installing it and enjoying it FOR FREE.

So I´d suggest the users to keep this in mind and be nice with questions and answers  :)

Thanks, gracias.

I know this was directed at me; and I'd like to say if the dev could read properly, some of us could be nice with our questions instead of repeating themselves over, and over, and over, and over again.

I fixed my problem by uninstalling and deleting this mod. I rather have a WORKING forum then a broken one, because of this improperly working mod.
Title: Re: Share This Topic
Post by: shixx on January 06, 2011, 10:59:53 PM
Thank you for this Mod, it works perfectly.

the only problem I'm having is..
I added my own Icon images and there is no spacing in between them and they look Pressed together, I can't figure out how to space the Icons apart.

any help would be appreciated.
Title: Re: Share This Topic
Post by: mirahalo on January 07, 2011, 08:57:57 AM
Quote from: MH-MINI on January 05, 2011, 10:36:40 PM
Quote from: Mr. 0 on September 06, 2009, 05:09:23 AM
- You only need to enter the ID of your Facebook application,  to create a new application follow this steps: (this is completely optional, the button will still work even without the app)

Why is it optional? What happens if I don't do it?

Thanks


the new version  doesnt need to create a facebook app anymore it will just work as it should,  the mod will work even if you don't create the app.


Quote from: MH-MINI on January 05, 2011, 10:48:19 PM
Hello again,

How can I change the colours to the text that is put on each post?

Thanks

EDIT: I'm talking about this text here: "Be the first of your friends to like this." I notice that it's just a frame to FB... but is there any way I can change the colour for this?

Thanks again

unfortunately no, facebook only let you choose two options for colors, the normal and a black one, other than that you can't change the color.



Quote from: shixx on January 06, 2011, 10:59:53 PM
Thank you for this Mod, it works perfectly.

the only problem I'm having is..
I added my own Icon images and there is no spacing in between them and they look Pressed together, I can't figure out how to space the Icons apart.

any help would be appreciated.

sure, open your file  /Sources/ShareThis.php

and find:

if($social_icons == "")
$social_icons = '<img src="' . $settings['images_url'] . '/topic/' . $context['class'] . '.gif" align="bottom" alt="" />';



and replace with:

if($social_icons == "")
$social_icons = '<img src="' . $settings['images_url'] . '/topic/' . $context['class'] . '.gif" align="bottom" alt="" />&nbsp;';


where &nbsp; its a space, you can add as many as you like,    if you provide a link to your forum I can give you a better solution.
Title: Re: Share This Topic
Post by: zimmo on January 07, 2011, 10:49:14 AM
Hi, so glad you have released a new version... well done to the mods for fixing this. The only problem is, I cannot uninstall it, I am getting this error on the test:

Execute Modification   ./Themes/default/index.template.php   Test failed

How can I fix this? I have not changed anything... I have left the old one still active and need to fix this asap. Please can you tell me what to do.

Forum: http://www.anglerscabin.co.uk/forum
Title: Re: Share This Topic
Post by: mirahalo on January 07, 2011, 10:52:29 AM
attach your index.template.php  file from the default theme and any other theme you use,  is that the only file your getting errors on unistall?
Title: Re: Share This Topic
Post by: zimmo on January 07, 2011, 11:00:11 AM
Hi Yes, that is the only one it fails on the others it says success and skipped on some. Here is the file, I have other themes but only only the one to be used at present. None of the other themes have been used for a while. If you could let me know, thanks as I want to re-install it.
Title: Re: Share This Topic
Post by: mirahalo on January 07, 2011, 11:04:46 AM
use this one, uninstall the mod, it still will give you error on this file, ignore it since I had manually removed all the code from the file,  then  install the new version.
Title: Re: Share This Topic
Post by: zimmo on January 07, 2011, 01:07:39 PM
Hi I have done this now and reinstalled the new version, but when I got to the boards it has picked up from when we last used it, this time we have the names. BUt it is EXACTLY like before with every single post having the same thing. Can you take a look at the forum from the link earlier and you will see.
Title: Re: Share This Topic
Post by: mirahalo on January 07, 2011, 01:14:57 PM
ok, facebook keep the info about the links you like for a while, so in old topics the issue is there until facebook  refresh its info,  on new topics  or topics that you haven't share in facebook, the issue is now gone, you can like individual post.
Title: Re: Share This Topic
Post by: zimmo on January 07, 2011, 02:00:54 PM
Hi its still not working right, i have just liked a post and on my facebook it is saying the website url again, and not the actual post url? is that right?

I will check more next week and see what is what with this. But is this not supposed to like each post and post that link to your profile?

I still have the application set up on my facebook as per original share this topic? do we need to delete that?

Sorry for all the questions, just want to be able to like each individual post. How does it work with replies to the post?

Thanks
Title: Re: Share This Topic
Post by: mirahalo on January 07, 2011, 02:09:58 PM
I test it out with this topic:

h**p://www.anglerscabin.co.uk/forum/index.php?topic=2740.msg55507#new

which I never liked on facebook before and is working for me as it should,  please try with a new  topic, create a new topic and a reply to that topic,  now click on like on either the topic or the reply.

or just give facebook a little time to refresh their cache.

Title: Re: Share This Topic
Post by: ysNoi on January 11, 2011, 02:48:53 AM
Well done mod... I really like its simplicity..

The only thing that I want more is if I could make the Facebook Like Button located below or above the share button.

I warmly suggest to have an option where to place the button (Facebook Like Button for example), is located below or above the share button and this should be placed below user's post.

Please see attached files for reference. (Just a suggestions)

Thanks for this mod...

Best Regards,

ysNoi
Title: Re: Share This Topic
Post by: Leszko on January 11, 2011, 02:51:08 AM
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?


Title: Re: Share This Topic
Post by: Suki on January 11, 2011, 09:04:47 AM
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
Title: Re: Share This Topic
Post by: jamin84 on January 11, 2011, 06:48:56 PM
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.

Thanks and keep up the good work!
Title: Re: Share This Topic
Post by: ysNoi on January 12, 2011, 06:57:34 AM
Any reply for my previous post?

TYIA
Title: Re: Share This Topic
Post by: mirahalo on January 12, 2011, 10:22:28 AM
@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.
Title: Re: Share This Topic
Post by: jamin84 on January 12, 2011, 09:57:31 PM
I installed the mod this past week, pretty sure it is the latest!

The forum is mmaturf.com/forum

Thanks!
Title: Re: Share This Topic
Post by: ysNoi on January 13, 2011, 02:45:22 AM
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..
Title: Re: Share This Topic
Post by: mirahalo 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.


@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.
Title: Re: Share This Topic
Post by: ysNoi on January 13, 2011, 08:57:14 PM
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..
Title: Re: Share This Topic
Post by: steveraven on January 14, 2011, 07:49:30 AM
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?
Title: Re: Share This Topic
Post by: mirahalo 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.

Title: Re: Share This Topic
Post by: steveraven on January 14, 2011, 09:48:40 AM
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!

Title: Re: Share This Topic
Post by: jamin84 on January 14, 2011, 09:45:20 PM
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!
Title: Re: Share This Topic
Post by: mirahalo on January 15, 2011, 06:44:09 PM
ok, I'm afraid  this mod is not compatible with pretty urls,  it is, however, compatible with simplesef
Title: Re: Share This Topic
Post by: digitalmabuhay on January 16, 2011, 04:12:42 PM
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.
Title: Re: Share This Topic
Post by: Suki on January 16, 2011, 08:15:57 PM
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.
Title: Re: Share This Topic
Post by: mirahalo on January 20, 2011, 08:06:28 PM
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.
Title: Re: Share This Topic
Post by: marianolozano on January 21, 2011, 12:08:33 AM
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
Title: Re: Share This Topic
Post by: marianolozano on January 21, 2011, 12:21:44 AM
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?
Title: Re: Share This Topic
Post by: Bugo on January 21, 2011, 02:24:05 AM
Russian translation.
Title: Re: Share This Topic
Post by: mirahalo on January 21, 2011, 12:04:42 PM
@marianolozano    sorry, but the mod now uses a hook that is only available for RC4, unfortunately this new version will not work with RC3 or below.



@Bugo  thanks, I will added your translation as well with a few screen shots of the new version.
Title: Re: Share This Topic
Post by: marianolozano on January 21, 2011, 12:16:44 PM
Thanks Mr 0.

The thing is that I removed my last version from the server to install the new one. Where can I get the last version to reinstall it again? I don´t want to upgrade to 4.0 yet as I´m using some other plugins that don´t support 4.0.
Title: Re: Share This Topic
Post by: mirahalo on January 21, 2011, 12:22:51 PM
you mean the 2.6 version?

I will attached here so you can downloaded it, once you got it, I will remove the attachment to avoid confusions alright?

once you have the old 2.6 I can tell you how to upgrade manually so you can use the fixes with this version.
Title: Re: Share This Topic
Post by: marianolozano on January 21, 2011, 12:32:26 PM
Thanks Mr 0. I got it!
Title: Re: Share This Topic
Post by: mirahalo on January 21, 2011, 01:14:25 PM
ok,  to manually upgrade do the following, after install the 2.6 version:

Download the latest version (2.7)

copy the languages folder to your /Themes/default/   

next, upload the ShareThis.php file  to your /Sources  folder.

upload the share  folder to your  /Themes/yourtheme/images/   folder

open your  Sources/ManageSettings.php

find:

// You need to be an admin to edit settings!
isAllowedTo('admin_forum');

loadLanguage('Help');
loadLanguage('ManageSettings');



add after:

loadLanguage('ShareThis');


find:

function ModifyShareTopicSettings($return_config = false)
{
global $txt, $scripturl, $context, $settings, $sc;


$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:

function ModifyShareTopicSettings($return_config = false)
{
global $txt, $scripturl, $context, $settings, $sc;

loadLanguage('ShareThis');

$sites = array('ask', 'bebo', 'diigo', 'fark', 'iwiw', 'linkedin', 'mrwong', 'orkut', 'stylehive', 'web2pdf', 'blinklist', 'bmarks', 'dzone', 'feedmelinks', 'furl',  'gbuzz',  'live', 'netvouz', 'newsvine',  'oneview', 'spurl', 'squidoo',  'tipd', 'facebook', 'myspace', 'delicious', 'digg', 'reddit', 'stumbleupon', 'twitter', 'technorati', 'magnolia', 'google', 'yahoo', 'printfriendly', 'meneame', 'friendfeed',);



that will be all the changes
Title: Re: Share This Topic
Post by: marianolozano on January 21, 2011, 01:21:55 PM
Ok! I´m right away to back up my forum and follow these instructions. I´ll provide you feedback when I´m done.
Thanks again  :)
Title: Re: Share This Topic
Post by: mirahalo on January 21, 2011, 01:43:25 PM
ok, I added Russian language thanks to bugo and also added a image to show how the mods like when its been used.
Title: Re: Share This Topic
Post by: marianolozano on January 21, 2011, 01:49:52 PM
Mr 0, I followed all instructions as requested. I reviewed twice and I get this error:

Fatal error: Function name must be a string in /*/*/public_html/foro/Sources/ScheduledTasks.php on line 1202

which is
Quote// Get all the default theme variables.
1202->   $result = $smcFunc['db_query']('', '
      SELECT id_theme, variable, value
      FROM {db_prefix}themes
      WHERE id_member = {int:no_member}
         AND id_theme IN (1, {int:theme_guests})',
      array(
         'no_member' => 0,
         'theme_guests' => $modSettings['theme_guests'],
      )

Makes sense to you?  :-\
Title: Re: Share This Topic
Post by: Arantor on January 21, 2011, 01:52:56 PM
What's the few lines above that?

Basically there should be a line that begins with the word global not too far above it (no earlier than the nearest line above it that starts with the word 'function' at the start) and that line with 'global' in it needs to have $smcFunc listed in it.
Title: Re: Share This Topic
Post by: marianolozano on January 21, 2011, 02:03:03 PM
Yes Arantor, I have it:

Quote73    global $time_start, $modSettings, $smcFunc;

I´ve just followed the steps back to get the 2.6 running properly in order to have the forum working. But I´m more than happy helping you testing this if needed.

Editing: As you said I found other places where global is and it looks like always appears such function. I´ll review again just in case:

Quote// This loads the bare minimum data to allow us to load language files!
function loadEssentialThemeData()
{
   global $settings, $modSettings, $smcFunc, $mbname, $context, $sourcedir;

   // Get all the default theme variables.
1202->   $result = $smcFunc['db_query']('', '
      SELECT id_theme, variable, value
      FROM {db_prefix}themes
      WHERE id_member = {int:no_member}
         AND id_theme IN (1, {int:theme_guests})',
      array(
         'no_member' => 0,
         'theme_guests' => $modSettings['theme_guests'],
      )
   );


but the

864->   global $is_weekly;
Title: Re: Share This Topic
Post by: mirahalo on January 21, 2011, 02:21:37 PM
well, thats weird since this mod does not modify that file, and I cant find any relation,  if you undo the changes I told you before, the error dissapear?
Title: Re: Share This Topic
Post by: marianolozano on January 21, 2011, 02:40:59 PM
Yes, Mr 0, that´s funny...

I followed all your steps and I got the error. I posted here the situation and after that I followed back the same steps: I put back the old ManageSettings.php (before changes) , did the same with the sharethis.php; however I didn´t remove the new language files. And so far it works good, the sharing works and the error just disappeared. Weird but I don´t understand the code  :-X
Title: Re: Share This Topic
Post by: mirahalo on January 21, 2011, 02:50:25 PM
let me make some test in local to see where the problem is and head back to you.
Title: Re: Share This Topic
Post by: marianolozano on January 21, 2011, 02:52:47 PM
I appreciated, thanks!
Title: Re: Share This Topic
Post by: rbeuker on January 21, 2011, 05:23:05 PM
Hi, great mod, thx a lot for making it! :)  I think I have found a little bug:

- At first, I only ticked the Facebook and Tweet option (buttons to be displayed at the top), and my forum error log was filling up with these errors:

8: Undefined index: share_buzzbutton_enable
8: Undefined index: share_diggbutton_enable

Sources/ShareThis.php

After also enabling the Buzz and Digg options, these errors were gone! And also after disabling them, the errors stayed away. So I presume your mod only creates these settings when they're set for the first time?

- Something else: I had to disable the Facebook 'Like this' button, because it's loading very slow (like 10 seconds!). Do you know why this could happen?

Thanks,

Ronald
Title: Re: Share This Topic
Post by: mirahalo on January 21, 2011, 05:33:15 PM
thanks for the report, I will check on that, yes, the settings are created when you use them for the first time.

the facebook like button depens on external services,  if facebook servers are slow theres a lot of possibilities the like button will delay to show,  also it will turn your forum slow if you have multiple like buttons in the same page,  I wasn't sure about that feature but a lot of people requested it.



Quote from: rbeuker on January 21, 2011, 05:23:05 PM
Hi, great mod, thx a lot for making it! :) 

actually, it was Arantor who created it,  I just put some new features and keep update it when new releases are out ;)
Title: Re: Share This Topic
Post by: chedie on January 22, 2011, 02:53:13 AM
Hi everyone!

I like this mod but I'm having issues with it. meep!

Installation was successful and I can access it in the admin area.

But when I try to 'Like' or share a topic, this comes out (via Facebook)

~~~~~~~~~~~~~~~~~~~~~~~~

My Name likes An Error Has Occurred! on site.com.

~~~~~~~~~~~~~~~~~~~~~~~~

I would presume 'An Error Has Occurred!' should be the topic title. When I click on that it goes to the correct forum thread.

Could somebody help me solve this? Unfortunately, I know almost zero of PHP to fix this on my own :(

Thank you!
Title: Re: Share This Topic
Post by: Arantor on January 22, 2011, 04:23:28 AM
Is the topic available to guests?
Title: Re: Share This Topic
Post by: chedie on January 22, 2011, 04:33:24 AM
Yes... the forum / topic is available for Guest viewing. :)
Title: Re: Share This Topic
Post by: Arantor on January 22, 2011, 04:35:51 AM
That's the only reason you should ever get 'An Error Has Occurred' is if the topic isn't available to FB to browse - which the most common reason is that.

Can I have a link to a topic you tried to share on Facebook?
Title: Re: Share This Topic
Post by: chedie on January 22, 2011, 04:49:28 AM
Re-activated the plugin so you can test it.

http://winglicans.com/index.php?topic=2395.msg249461#new

You may try any thread/post. The error still comes out. :(
Title: Re: Share This Topic
Post by: Aoife on January 22, 2011, 10:54:26 AM
Hi Mr. 0 and Arantor,

I updated the mod to the latest version for 2.0 RC4 and activated the Facebook Like button. When I click on the button, I get:

Cheryl Aoife Johnson likes this. Be the first of your friends to like this. Unlike · Error

And when I click on Error, I get:

The page at hxxp://www.divinealliance.org/forums/index.php?topic=618.msg1149 could not be reached.


any ideas?



Title: Re: Share This Topic
Post by: Arantor on January 22, 2011, 11:10:46 AM
Probably because you're in maintenance mode?
Title: Re: Share This Topic
Post by: Aoife on January 22, 2011, 11:17:44 AM
Quote from: Arantor on January 22, 2011, 11:10:46 AM
Probably because you're in maintenance mode?

hmm, ya I was. but i didn't set that myself. interesting.....

thanks for the quick reply!

Title: Re: Share This Topic
Post by: Doug Varrieur on January 22, 2011, 03:53:24 PM
Hi, I've installed your mod on http://www.fattoskinny.net The mod works well except for the link icons at the bottom of the posts....I don't get the actual icons, instead I get boxes with the names of the sites and an X next to each box...can you advise?
Title: Re: Share This Topic
Post by: mirahalo on January 22, 2011, 08:10:46 PM
@Doug Varrieur  upload the share folder  to your  /Themes/your theme/images/  folder.

/Themes/BK_SMF_Dark/images/
Title: Re: Share This Topic
Post by: alanmcg on January 22, 2011, 11:17:49 PM
Facebook button seems to really slow down the page loading for my forum (had to disable the mod shortly after enabling it). Also causes a load of "guests" from Facebook (as in their servers) to appear every time a page with buttons on it loads. Even when set to just one button for the topic (not very useful IMO) it seems to cause a noticeable delay.

I'd love to see a variation of this with "AddThis" buttons as their analytics could be quite useful.
Title: Re: Share This Topic
Post by: chedie on January 23, 2011, 07:11:41 AM
Hi!

Sorry I think something went wrong with the URL when I pasted it.

Kindly go to winglicans.com and click on any board.

And here is the message I posted the other day.



Hi everyone!

I like this mod but I'm having issues with it. meep!

Installation was successful and I can access it in the admin area.

But when I try to 'Like' or share a topic, this comes out (via Facebook)

~~~~~~~~~~~~~~~~~~~~~~~~

My Name likes An Error Has Occurred! on site.com.

~~~~~~~~~~~~~~~~~~~~~~~~

I would presume 'An Error Has Occurred!' should be the topic title. When I click on that it goes to the correct forum thread.

Could somebody help me solve this? Unfortunately, I know almost zero of PHP to fix this on my own

Thank you!


Would really love and appreciate help here since I really like to use this mod on the forum.

Hope to hear a reply soon.

thank you!
Title: Re: Share This Topic
Post by: alanmcg on January 23, 2011, 09:13:54 AM
Quote from: alanmcg on January 22, 2011, 11:17:49 PM
Facebook button seems to really slow down the page loading for my forum (had to disable the mod shortly after enabling it). Also causes a load of "guests" from Facebook (as in their servers) to appear every time a page with buttons on it loads. Even when set to just one button for the topic (not very useful IMO) it seems to cause a noticeable delay.

I'd love to see a variation of this with "AddThis" buttons as their analytics could be quite useful.
Quick Google for "Facebook like button slows" shows lots of people are having problems with the slow "Like" button. Seems it references far too many different elements and the page won't load fully until it's done. Quite a few guides on how to speed it up though, like this one:
http://www.seomofo.com/wordpress/tweetmeme-retweet-button.html
http://hillarsaare.com/multiple-facebook-like-buttons-on-one-page/
Title: Re: Share This Topic
Post by: mirahalo on January 23, 2011, 07:39:00 PM
@alanmcg  there's already an "add this"  mod,  search it on the mod site, and yeah, this mod relies on external services I cannot guarantee it will work 100% of the time as this mods depends on facebook servers,  I only provide a way to show the button but I cannot guarantee that it will work.


@chedie    url to your forum?
Title: Re: Share This Topic
Post by: chedie on January 23, 2011, 07:52:19 PM
Hi alanmcg!

Here is one url you could check out:

http://winglicans.com/index.php?PHPSESSID=43a496874898260ec73e3945c2b26140&topic=4167.msg249471#new

Thank you so much for any help in advance!
Title: Re: Share This Topic
Post by: mirahalo on January 23, 2011, 08:04:19 PM
the problem has to do with your PHPSESSID=    since its different for every one.

when you have a PHPSESSID= in you url, facebook take that specific url and try to reach it,  since that particular url is only visible for you, facebook cannot reach it and throw an error.
Title: Re: Share This Topic
Post by: chedie on January 23, 2011, 08:06:18 PM
Oh...

So is there a way for me to change it?
Title: Re: Share This Topic
Post by: mirahalo on January 23, 2011, 08:13:12 PM
well, in all honest, I cannot remember if there is a setting in the admin panel to hide the phpsessid nor I can remember  exactly where the phpsessid comes out.
Title: Re: Share This Topic
Post by: chedie on January 23, 2011, 08:18:05 PM
Hmmm.. okay I'll do some research on it. Thank you so much!

If anybody else could give me some tips it would be greatly appreciated! :D
Title: Re: Share This Topic
Post by: Doug Varrieur on January 24, 2011, 09:00:16 AM
Quote from: Doug Varrieur on January 22, 2011, 03:53:24 PM
Hi, I've installed your mod on http://www.fattoskinny.net The mod works well except for the link icons at the bottom of the posts....I don't get the actual icons, instead I get boxes with the names of the sites and an X next to each box...can you advise?

Quote from: Mr. 0 on January 22, 2011, 08:10:46 PM
@Doug Varrieur  upload the share folder  to your  /Themes/your theme/images/  folder.

/Themes/BK_SMF_Dark/images/

Do you want the folder itself with it's contents uploaded keeping the icons images within the folder or do you want images uplloaded from the folder into the /Themes/your theme/images/  folder ?
Title: Re: Share This Topic
Post by: Suki on January 24, 2011, 09:22:35 AM
upload the whole share folder
Title: Re: Share This Topic
Post by: Doug Varrieur on January 24, 2011, 09:32:46 AM
Thanks, worked great!
Title: Re: Share This Topic
Post by: Doug Varrieur on January 24, 2011, 09:35:48 AM
I've got another problem that mabybe you can steer me in the right direction, since last friday my 1.1.12 forum has not been sending out any e mails to the members or moderators. Go Daddy is blaming the software but I have reports of two other forum admins having exactly the same trouble since last friday, both being hosted by go daddy?? Any thoughts?
Title: Re: Share This Topic
Post by: Suki on January 24, 2011, 10:43:32 AM
you need to make a topic in the 1.1.x  sup port  board,  your  problem  isnt  related  with  this  mod
Title: Re: Share This Topic
Post by: InfoStrides on January 24, 2011, 01:32:14 PM
I just installed this mod successfully but Google Buzz & Digg button are not clickable. Check it on http://www.theinfostrides.com

I am also suggesting that the icons be more bigger. The size can be increased to 22 rather 16.

Great mod!
Title: Re: Share This Topic
Post by: Suki on January 26, 2011, 11:55:37 AM
can you link to a topic for an example?

you can easily change the icons for the ones you like the best, just change the images in the /your theme/images/share   folder


it seems you moved the buttons  or you're  using another mod or another code to show the buttons, either way  I on Opera can click the 4 of them.

remember, all buttons relies on external services,  sometimes the buttons cannot appear or to be slow, that happens because their server has too much demand.
Title: Re: Share This Topic
Post by: InfoStrides on January 26, 2011, 07:01:58 PM
Quote from: Miss All Sunday on January 26, 2011, 11:55:37 AM
can you link to a topic for an example?

you can easily change the icons for the ones you like the best, just change the images in the /your theme/images/share   folder


it seems you moved the buttons  or you're  using another mod or another code to show the buttons, either way  I on Opera can click the 4 of them.

remember, all buttons relies on external services,  sometimes the buttons cannot appear or to be slow, that happens because their server has too much demand.

Thanks for your response. I modified that section of the code already. I have use another sets of icon as can been seen on my threads.

Observation:

Google Buzz uses Google Reader's link. Please correct this by using the link below:

http://www.google.com/buzz/post?url=

Thanks.
Title: Re: Share This Topic
Post by: mirahalo on January 26, 2011, 07:06:48 PM
thanks for the report, will be solved on the next release.
Title: Re: Share This Topic
Post by: Doug Varrieur on January 27, 2011, 07:22:26 PM
Love the mod...is there a way to increase the size of the share buttons on the bottom?
Title: Re: Share This Topic
Post by: Suki on January 27, 2011, 07:29:08 PM
sure, you can replace the icons with somthing different,  on your Themes/your theme/images/share/  folder are all the images fo the icons, just replace those images, just remember to keep the extension and the name.
Title: Re: Share This Topic
Post by: Doug Varrieur on January 27, 2011, 08:23:35 PM
Duh...just too easy!  :o Thanks :)
Title: Re: Share This Topic
Post by: njyota on January 29, 2011, 01:22:41 PM
Quote from: Arantor on September 28, 2009, 02:51:03 PM
As for the Facebook link, it can only capture the topic if you allow access to guests (because that's how Facebook expects it)

I've enabled my board to be accessed/viewed by guests and it still only lists a "login" link.

Can you advise what I may be doing wrong?

Thanks  :)

Kellie
http://www.njyotas.com  (http://www.njyotas.com)  (where the board is at)
Title: Re: Share This Topic
Post by: InfoStrides on January 29, 2011, 02:32:40 PM
Quote from: Doug Varrieur on January 27, 2011, 07:22:26 PM
Love the mod...is there a way to increase the size of the share buttons on the bottom?

I have packaged a small mod for increasing the size of the icons but will need manual edit as I did on my forum: http://www.theinfostrides.com

The supporting mod provides social icons with 24x24px sizes. It contains icons for Bebo, Bing, Delicious, Digg, Facebook, RSS feed, Flickr, FriendFeed, Google Buzz, Google, Linkedin, Live, Mister Wong, Myspace, Newsvine, Orkut, Reddit, Stubmleupon, Technorati, Twitter, Webo, and Yahoo. More social icons of similar size will be made available later.

Go to this link for further instruction and download: http://www.theinfostrides.com/index.php?topic=10925.0

Let me know if it helps.
Title: Re: Share This Topic
Post by: mirahalo on January 29, 2011, 08:28:47 PM
if you like I can make a feature in the mod settings to let you specify the icons you want to use by selecting  or  put the name of the folder with the icons,  but this will no be so newbie friendly and I want to keep this mod as simple as possible.

there's no need for a modifications, all you have to do is to replace the images in the share folder with the ones you want,  you  only need to keep the extension and the file name.
Title: Re: Share This Topic
Post by: chedie on January 31, 2011, 02:44:59 AM
Hi!

I'm sorry to re-iterate this question but with regards to my Facebook Like button and Share button link, I am unable to share in Facebook. I've been told to remove the PHPSESSIONID from my url for it to work. I've already done so I've given it a few days but it still doesn't work :( Can anybody give me tips what else to do?

Also, I've tried using an actual Share This code from sharethis.com. I was able to install it successfully but Facebook sharing still does not work.

Could the error be somewhere within the forum and not the module or sharethis codes?

please help!

Title: Re: Share This Topic
Post by: Suki on January 31, 2011, 10:24:37 AM
well, most likely the error is within your forum,   does your forum is open to guest?   does guest can see the full topic and the asnwers?
Title: Re: Share This Topic
Post by: chedie on February 01, 2011, 06:58:46 AM
Actually yes, the forum  open to guests. :(

Could this happen from some module possibly? :(
Title: Re: Share This Topic
Post by: InfoStrides on February 01, 2011, 07:49:16 AM
Quote from: Mr. 0 on January 29, 2011, 08:28:47 PM
if you like I can make a feature in the mod settings to let you specify the icons you want to use by selecting  or  put the name of the folder with the icons,  but this will no be so newbie friendly and I want to keep this mod as simple as possible.

there's no need for a modifications, all you have to do is to replace the images in the share folder with the ones you want,  you  only need to keep the extension and the file name.

It will be nice if you can have such feature integrated. What I have done is just selection of 24x24px icons that can be extracted to the share folder. Not that it will be installed like a regular mod.
Title: Re: Share This Topic
Post by: InfoStrides on February 01, 2011, 07:51:43 AM
Quote from: chedie on January 31, 2011, 02:44:59 AM
Hi!

I'm sorry to re-iterate this question but with regards to my Facebook Like button and Share button link, I am unable to share in Facebook. I've been told to remove the PHPSESSIONID from my url for it to work. I've already done so I've given it a few days but it still doesn't work :( Can anybody give me tips what else to do?

How did you remove the PHPSESSIONID from your url?
Title: Re: Share This Topic
Post by: chedie on February 01, 2011, 07:57:37 AM
^ To InfoStrides,

I added this to .htaccess file

#removing phpsessid from URL
php_value session.use_only_cookies 1
php_value session.use_trans_sid 0
Title: Re: Share This Topic
Post by: mirahalo on February 01, 2011, 10:39:21 AM
theres is a problem with facebook when it tries to reach the page,  facebook cannot reach the page,  do you have a mod or setting, maybe a robots.txt to prevent bots from access your forum?   the like works, the problem  is facebook cannot reach the page, instead of the topic facebook gets an error page saying the topic or page cannot be viewed.

@InfoStrides  I will think about to making it, problem is, I'm trying to keep this mod as simple as possible for new users, adding that feature will confuse them more,  some people have problems  uploading the actual share folder to their theme's image folder.  I think its better to just have a good FAQ/guide on how to change the icons don't you think?
Title: Re: Share This Topic
Post by: InfoStrides on February 02, 2011, 07:58:06 AM
Quote from: chedie on February 01, 2011, 07:57:37 AM
^ To InfoStrides,

I added this to .htaccess file

#removing phpsessid from URL
php_value session.use_only_cookies 1
php_value session.use_trans_sid 0

I have used this before but got this error
Quote500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Title: Re: Share This Topic
Post by: InfoStrides on February 02, 2011, 08:00:29 AM
Quote from: Mr. 0 on February 01, 2011, 10:39:21 AM
@InfoStrides  I will think about to making it, problem is, I'm trying to keep this mod as simple as possible for new users, adding that feature will confuse them more,  some people have problems  uploading the actual share folder to their theme's image folder.  I think its better to just have a good FAQ/guide on how to change the icons don't you think?

I understand you. I will look into FAQ/guide. Thanks.
Title: Re: Share This Topic
Post by: Suki on February 02, 2011, 12:24:27 PM
we are currently making a FAQ for this mod,  with several questions and tips, we will publish it here once it gets done ;)
Title: Re: Share This Topic
Post by: [Lucien] on February 03, 2011, 08:02:05 AM
Really great mod!!

I only would like to know if the "i like this" button can be placed under the post instead above :)
Title: Re: Share This Topic
Post by: Suki on February 03, 2011, 08:51:20 AM
Lucien, check this:  http://www.simplemachines.org/community/index.php?topic=334955.msg2910955#msg2910955
Title: Re: Share This Topic
Post by: [Lucien] on February 03, 2011, 04:24:32 PM
Quote from: Miss All Sunday on February 03, 2011, 08:51:20 AM
Lucien, check this:  http://www.simplemachines.org/community/index.php?topic=334955.msg2910955#msg2910955

Thank you very much for the link, it works like a charm :D
You saved me from searching the most pages on this thread :)
Title: Re: Share This Topic
Post by: Exterminator2006 on February 03, 2011, 11:38:13 PM
Tengo problemas.

1. No me deja escribir para ser posteado en facebook. sale pero incompleto

2. Las tildes y la ñ salen mal   Ejemplo  (25 años y es 25 años)  en mi portal sale bien es cuando queda publicado en facebook

Gracias desde ya
Title: Re: Share This Topic
Post by: Suki on February 04, 2011, 10:35:36 AM
Exterminator2006   try using English in this topic please or use your language's local support board.

1.-  theres a setting in the mods settings to allow you to specify the height of the button, put a hight number, for example 150px

2.- your not using utf8 facebook uses utf8 so when facebook reach your site it will not see the actual ñ, it will see the html entity,    try using  utf8 in both your languages anf your database.
Title: Re: Share This Topic
Post by: InfoStrides on February 04, 2011, 02:50:23 PM
Quote from: Miss All Sunday on February 02, 2011, 12:24:27 PM
we are currently making a FAQ for this mod,  with several questions and tips, we will publish it here once it gets done ;)

Nice!
Title: Re: Share This Topic
Post by: chedie on February 05, 2011, 05:36:36 AM
*sigh * It's me again.

I'm not really sure how to fix this. I just checked on modules installed in our forum and it seems no module is prohibiting bots to access the forum. *sigh*

I'm wondering though, under Forum Maintenance, do you think 'Convert the database and data to UTF-8' could help in this situation?
Title: Re: Share This Topic
Post by: Suki on February 05, 2011, 08:05:25 PM
in all honesty I don't know what your problem is,   does it happen with other facebook mods?


to have utf8 does not really help you here, sorry.

do you have a robots.txt in your root folder?
Title: Re: Share This Topic
Post by: Exochat on February 05, 2011, 10:43:25 PM
Can any knowledgeable soul please tell me how to go about moving the lower social_icons so they are next to and in line with the Report To Moderator/IP Address line? I think it would look more flush and less cluttered in the message body if they were dropped to that bottom line.

I have followed some earlier advice on this thread but I cannot seem to get it work, [with the tip suggested way back on July 3 2009 causing template errors when I tried it]. 

I am using SMF 2.0 RC4

Many thanks in advance and a wonderful component. :)
Title: Re: Share This Topic
Post by: Exochat on February 05, 2011, 10:57:25 PM
Quote from: chedie on February 05, 2011, 05:36:36 AM
*sigh * It's me again.

I'm not really sure how to fix this. I just checked on modules installed in our forum and it seems no module is prohibiting bots to access the forum. *sigh*

I'm wondering though, under Forum Maintenance, do you think 'Convert the database and data to UTF-8' could help in this situation?
Try turning off your shoutbox, maybe uninstalling it temporarily and then seeing if it works? I think that Facebook is trying to grab the primary text and its trying to get it from an application or script that is failing rather than the title heading of your post.
That will be why the URL is correct and working but the text that is going with it is not.

I dont feel that Facebook is telling you there is an error...... I think it is just taking that phrase from something on your site that is causing an error when it views it, and I can see from visiting as a guest that the shoutbox is telling guests that you have to register to use it. It could be telling Facebook that there is an error in it trying to view something it is not allowed to view, and its pasting that error message it reads instead of the message title your wanting.

If its not the shoutbox, then it will be something else you have on your site that is prohibited, most probably to guests, that is causing an error when someone, or in this case Facebook tries to view it. If no luck turning off the shoutbox and trying again, then consider removing other scripts or Mods that may be causing an error page towards guests, one by one until you hopefully find which one causes it.

Title: Re: Share This Topic
Post by: Suki on February 06, 2011, 07:41:54 PM
Exochat   attach your theme's  Display.template.php
Title: Re: Share This Topic
Post by: Exochat on February 07, 2011, 04:12:58 AM
Quote from: Miss All Sunday on February 06, 2011, 07:41:54 PM
Exochat   attach your theme's  Display.template.php

It uses the default theme template, it doesnt have one of its own. 

I have attached it below. :)
Title: Re: Share This Topic
Post by: swiftman on February 08, 2011, 10:26:23 AM
Hi
This is very nice mod, thank you
Anyway, after installed I found font color is same as SMF background (black) - difficult to read
How can I change mod font color? Please teach me – thanks in advance

this is my site (sorry in Thai)
http://www.suzukiswiftclub.com/index.php?topic=4936.0
Title: Re: Share This Topic
Post by: mirahalo on February 08, 2011, 10:26:53 AM
exochat, theres a reason for the icons to be in that position and that is to avoid template edits, this benefits both the users and the mod author.



  if you want to move the icons to the report to moderator div then in your display.template.php find:

<div class="smalltext reportlinks">';
 
// Maybe they want to report this post to the moderator(s)?


and replace with

<div class="smalltext reportlinks">',$mirahalo,'';

// Maybe they want to report this post to the moderator(s)?

and then go to your Sources/Display.php

find:

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

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



replace with:

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']);




you will need to make changes to the icons css to fit with the report to moderator line
Title: Re: Share This Topic
Post by: mirahalo on February 08, 2011, 10:30:22 AM
swiftman


in your /Sources/ShareThis.php file find:

colorscheme=light


and replace with:

colorscheme=dark


please note that is up to facebook to recognise the colors,  lately facebook is ignoring all the parameters for the iframe version of the like button, that include the color.
Title: Re: Share This Topic
Post by: swiftman on February 08, 2011, 10:33:24 AM
Quote from: Mr. 0 on February 08, 2011, 10:30:22 AM
swiftman

in your /Sources/ShareThis.php file find:

colorscheme=light

and replace with:

colorscheme=dark


please note that is up to facebook to recognise the colors,  lately facebook is ignoring all the parameters for the iframe version of the like button, that include the color.

Many thanks, I will try it  :) :)
Title: Re: Share This Topic
Post by: swiftman on February 08, 2011, 10:48:21 AM
Quote from: swiftman on February 08, 2011, 10:33:24 AM
Quote from: Mr. 0 on February 08, 2011, 10:30:22 AM
swiftman

in your /Sources/ShareThis.php file find:

colorscheme=light

and replace with:

colorscheme=dark


please note that is up to facebook to recognise the colors,  lately facebook is ignoring all the parameters for the iframe version of the like button, that include the color.

Many thanks, I will try it  :) :)

Uhhh..  Nothing change
Its may forced by facebook to recognize the colors as you said
Anyway, thank you so much.
Title: Re: Share This Topic
Post by: HunterP on February 08, 2011, 03:40:45 PM
Quote from: 4kstore on November 27, 2010, 05:43:17 PM
But when someone goes to a post will automatically generate 3 innings in the error log

Undefined index: share_icons_enable
Archivo: /htdocs/Sources/ShareThis.php
Línea: 118
Undefined index: share_buzzbutton_enable
Archivo: /htdocs/Sources/ShareThis.php
Línea: 57
Undefined index: share_diggbutton_enable
Archivo: /htdocs/Sources/ShareThis.php
Línea: 56

within 3 days about gender and a half million records in the error log.

As I said, we thought it was the language files but they are all correctly edited.

I'm getting exactly the same errors. SMF 1.1.12, the language file is renamed correctly.
I had to install this MOD, this isn't working for me...
Title: Re: Share This Topic
Post by: Suki on February 08, 2011, 03:47:22 PM
HunterP
are you usnig the latest version?


attach your Sources/ShareThis.php



does the mod does not work at all?
Title: Re: Share This Topic
Post by: HunterP on February 08, 2011, 06:20:19 PM

Hi,

Yes the latest version; 2.7

The mod does work, but I'd like to keep my errorlog free of unneccessary errors. Normally, I'm able to fix this kind of errors, but not for thismod :(
Title: Re: Share This Topic
Post by: Suki on February 08, 2011, 07:38:33 PM
use this one
Title: Re: Share This Topic
Post by: HunterP on February 08, 2011, 08:19:49 PM

And again :

8: Undefined index: share_buzzbutton_enable
File: /www/htdocs/hulpvera/forum/Sources/ShareThis.php
Line: 79

8: Undefined index: share_likebutton_enable
File: /www/htdocs/hulpvera/forum/Sources/ShareThis.php
Line: 76
Title: Re: Share This Topic
Post by: Suki on February 08, 2011, 09:21:42 PM
ok, try this one, I forgot to make some changes
Title: Re: Share This Topic
Post by: HunterP on February 08, 2011, 09:46:04 PM

No errors yet, I'll let you know as soon as possible!

Thanks  8)
Title: Re: Share This Topic
Post by: ben sisko on February 09, 2011, 03:35:49 AM
anyone noticed the Tip'd button leads to Yahoo bookmarks  ???
Title: Re: Share This Topic
Post by: HunterP on February 09, 2011, 08:03:36 AM

Miss,

It's working now. I notice that you disabled all references to $modSettings ? I don't understand why these values aren't available in ShareThis.php. Actually, the values themselves are available. At first I only checked Twitter and that was the only button that was shown. So the link to modsettings works fine, but what about the index errors?

I did some hacks myself, as I'm only interested in Twitter. I also had to comment out all lines which referred to :

      $uno = '<p class="share_icons">'. $social_icons. '</p>';

Because ($social_icons == "") and that would lead to a non-existing .png, resulting in a broken image indicator.
Title: Re: Share This Topic
Post by: Suki on February 09, 2011, 08:24:28 AM
$modSettings['value']  only can have two values:  1 or 0   so I changed the value from modsettings to 1 since the mod checks for a parameter, if the parameter doesn't exist, then use the 1 (true) as parameter.


// Set the parameters
$page_url = !empty($parameters['url']) ? $parameters['url'] : '';
$show_face = $parameters['face_button'] == 0 ?  false : 1;
$show_tweet = $parameters['retweet_button'] == 0 ?  false : 1;
$show_digg = $parameters['digg_button'] == 0 ?  false : 1;
$show_buzz = $parameters['buzz_button'] == 0 ?  false : 1;
$output = !empty($parameters['output']) ? $parameters['output'] : 'return';



are you still getting index errors?   whats exactly the problem you have?
Title: Re: Share This Topic
Post by: HunterP on February 09, 2011, 09:24:44 AM

No, I don't get errors anymore, misunderstanding :) I was referring to the previous situation in which I still don't understand what was causing those errors...
Title: Re: Share This Topic
Post by: DownloadPs3 on February 10, 2011, 05:13:46 AM
If i have digg enabled i get this error code in my error log everytime i go to a post's page:

Admin    Today at 04:21:43 AM
IP address xx.xx.xxx.xxx      session 607cf3af46dbeb860c551315ad2c0924
URL http://myfreespeach.co.cc/index.php?topic=6.0
8: Undefined index: share_diggbutton_enable
File: /home/a5104797/public_html/Sources/ShareThis.php
Line: 78
Title: Re: Share This Topic
Post by: DownloadPs3 on February 10, 2011, 05:27:14 AM
Quote from: Miss All Sunday on February 08, 2011, 07:38:33 PM
use this one

Ok so i downloaded the file this person linked above and replaced mine. It did nothing so i put the original back on and the error code doesnt seem to show up anymore however there is no digg link/icon
Title: Re: Share This Topic
Post by: Suki on February 10, 2011, 11:06:38 AM
DownloadPs3  the file you download must likely will only work for his/her forum, pelase upload your own ShareThis.php file


it seems this only happen with 1.1.x installations, I will check on this and make some further test to see what its causing the errors to appear.
Title: Re: Share This Topic
Post by: DownloadPs3 on February 10, 2011, 07:20:02 PM
Quote from: Miss All Sunday on February 10, 2011, 11:06:38 AM
DownloadPs3  the file you download must likely will only work for his/her forum, pelase upload your own ShareThis.php file


it seems this only happen with 1.1.x installations, I will check on this and make some further test to see what its causing the errors to appear.

here is mine

Could you look at the second file to? im getting an unidentified ofset 0 at line 3840 error. Just deleted about 5 pages of them
Title: Re: Share This Topic
Post by: Suki on February 10, 2011, 07:29:33 PM
use this file, the error on Subs.php is due another mod,  some mod related to signatures please use that mod's support topic.
Title: Re: Share This Topic
Post by: DownloadPs3 on February 10, 2011, 07:33:32 PM
Quote from: Miss All Sunday on February 10, 2011, 07:29:33 PM
use this file, the error on Subs.php is due another mod,  some mod related to signatures please use that mod's support topic.

Ok i will try your file.

And i know that its related to a different mod and i did ask there and havent gotten help with that part. I figured you may know the answer cuz it seems to be one thing thats worng
Title: Re: Share This Topic
Post by: Suki on February 10, 2011, 07:39:03 PM
I can gladly help but I do not know that mod well enough, sorry.
Title: Re: Share This Topic
Post by: DownloadPs3 on February 10, 2011, 07:40:56 PM
Quote from: Miss All Sunday on February 10, 2011, 07:39:03 PM
I can gladly help but I do not know that mod well enough, sorry.

Ok thank you, and i am not getting any share this post errors but the digg is still now showing up with the file you gave me, but seeing as i have no idea what digg is i dont feel its that important so ill just leave it off.
Title: Re: Share This Topic
Post by: Suki on February 10, 2011, 07:47:33 PM
the digg button relies on some javascript to work properly,  sometimes the button doesn't appear,  digg has many complains because of this but so far digg has not been able to update their button ;)
Title: Re: Share This Topic
Post by: DownloadPs3 on February 10, 2011, 07:51:08 PM
Quote from: Miss All Sunday on February 10, 2011, 07:47:33 PM
the digg button relies on some javascript to work properly,  sometimes the button doesn't appear,  digg has many complains because of this but so far digg has not been able to update their button ;)

Ok, ill just keep it off.

Can you tell me what this line means?

return $signs[0];

The way im looking at it is that if x statement is true do y but if not reture signs to 0.

And they way im seeing it, i cant figure out why there is an error
Title: Re: Share This Topic
Post by: Arantor on February 11, 2011, 02:19:38 AM
QuoteThe way im looking at it is that if x statement is true do y but if not reture signs to 0.

Nope. $signs is what's called an array, which means it holds multiple values, and normally the first item is item 0 (as computers normally start lists at 0), so return $signs[0] means to leave the current area of processing, head back up the chain to where we were before, and send back the first item in the $signs array as you do it.
Title: Re: Share This Topic
Post by: ben sisko on February 11, 2011, 07:49:59 AM
Quote from: Mr. 0 on January 15, 2011, 06:44:09 PM
ok, I'm afraid  this mod is not compatible with pretty urls,  it is, however, compatible with simplesef
any chance you can make it compatible with 'pretty urls' too?
i installed your mod and only the FB like button doesn't seem to be working. it looks like it's because of the pretty urls..

EDIT

never mind. i can do it another way.
thx for this very useful mod.
Title: Re: Share This Topic
Post by: Suki on February 11, 2011, 08:57:56 AM
this mod and pretty urls can work together, the incompatibility is that when you share a topic it will look like:  mysite.com/index.php?topic=1.0    even if you have pretty urls installed, that means, pretty urls will not modify the urls you share, thats all.
Title: Re: Share This Topic
Post by: venex on February 13, 2011, 11:07:10 PM
Hello!

I keep getting this error in my error log:

8: Undefined index: share_icons_enable File: /var/www/vhosts/XXXXXXX.com/httpdocs/forum/Sources/ShareThis.php
Line: 128

How can I fix it?

Thanks!
Title: Re: Share This Topic
Post by: Suki on February 14, 2011, 10:13:38 AM
its a bug with this mod and 1.1.x versions, it will be solved with the next release, attach your ShareThis.php file to fix it.
Title: Re: Share This Topic
Post by: Angel Muñoz on February 17, 2011, 05:07:40 AM
Mr. 0, Disculpa tengo este error al instalar la ultima versión esta modificación.

QuoteFatal error: Call to undefined function add_integration_function() in /home/inudesca/public_html/Packages/temp/Share_this_topic/database.php on line 18

¿Podrías por favor echarme una mano?

Actualmente Utilizo la versión SMF 2.0 RC3
Url de mi Web: http://www.inudescargas.com

Gracias!



In English

Sorry I have this error when installing the latest version is modified.

QuoteFatal error: Call to undefined function add_integration_function() in /home/inudesca/public_html/Packages/temp/Share_this_topic/database.php on line 18

Please could you help me?

Currently I use version SMF 2.0 RC3
my website: http://www.inudescargas.com

Thanks
Title: Re: Share This Topic
Post by: Arantor on February 17, 2011, 05:08:27 AM
You can't use 2.0 RC3, add_integration_function only exists as of 2.0 RC4.
Title: Re: Share This Topic
Post by: Angel Muñoz on February 17, 2011, 02:15:41 PM
Arantor thanks, Will use an older version to update the forum
Title: Re: Share This Topic
Post by: Maxtor on February 18, 2011, 03:38:58 PM
i see on facebook , an error has occured, not the forum link...
Title: Re: Share This Topic
Post by: Suki on February 18, 2011, 03:46:57 PM
 @maxtor  the urls you share must be visible to guest, other wise the mod will not work
Title: Re: Share This Topic
Post by: Maxtor on February 18, 2011, 03:54:03 PM
Quote from: Miss All Sunday on February 18, 2011, 03:46:57 PM
@maxtor  the urls you share must be visible to guest, other wise the mod will not work

all forum is visible to everyone. any other idea that may cause this?
Title: Re: Share This Topic
Post by: Suki on February 18, 2011, 04:08:47 PM
may have a link to your forum?  do you use pretty urls or any other  mod for urls?
Title: Re: Share This Topic
Post by: netalberto on February 22, 2011, 01:53:39 AM
Hello I have a problem with share this topic...
When on my post on forum push Like button It appear in my profile like this:
A Alberto like SmanettoniDelWeb ti Premia!! RICARICHE TELEFONICHE GRATIS PER TUTTI!!! on smanettoXXXXelweb.it.

But in Home recent of facebook only title of my forum not title of post...
A Alberto CXXX Like SmanettoniXXXWeb.it | Tutto Gratis o quasi!! su smanettonidXXXweb.it.

Do you know why?
Thanks
Title: Re: Share This Topic
Post by: Suki on February 22, 2011, 08:14:17 AM
Im soory, I couldn't understand you,   what exactly is home recent? this mod only adds the facebook button to topics,  can you post a link to your forum?
Title: Re: Share This Topic
Post by: netalberto on February 22, 2011, 09:34:29 AM
My forum:
www.smanettonidelweb.it/forum

Ifyou click like buttom in a post... it will appear right only in yout facebook profile page, but in facebook news home you can see the title of forum, not post title... sorry for english :)
Title: Re: Share This Topic
Post by: Suki on February 22, 2011, 09:42:57 AM
Im sorry, I'm still don't understand you, whats the page for "facebook news home"  this mod does not add nothing to the facebook home page if thats what you mean, as far as I can see, the mod works properly,  you also have other facebook mods installed in your forum, probably one of those mods adds the topic to the facebook home page.
Title: Re: Share This Topic
Post by: netalberto on February 22, 2011, 02:58:57 PM
Ok now  I think you can understand, sorry for all and thanks... :)

In a post if I click on Like Buttom , in my Profile facebook page is all ok...like picture below ( Alberto Ch... like "post title" on "site domain")

(http://img337.imageshack.us/img337/9933/profiloz.jpg)

But in Home page of facebook, where you can see all news of friends... it appear wrong Alberto Ch... like "forum title" on "site domain" !!!!!  appear forum title not post title like in profile facebook page... look below:
(http://img62.imageshack.us/img62/1320/notiziaq.jpg)

Title: Re: Share This Topic
Post by: Suki on February 22, 2011, 05:18:10 PM
I just tested it and all seems fine to me,  also, you already have another facebook mod, theres no point in having this mod if you already have another two facebook buttons in the same topic.
Title: Re: Share This Topic
Post by: netalberto on February 23, 2011, 06:05:18 AM
Other mod in for login with facebook...

So in facebook you see post title in your profile page and on home recent?
Title: Re: Share This Topic
Post by: Suki on February 23, 2011, 08:34:04 AM
no, this other mod also adds the facebook share button, in total you have 3 buttons for just one topic, theres no need to have this mod installed since the facebook connect mod already does what you want.


and yes, I tested your site and in both my wall and home page I see the post name and topic link
Title: Re: Share This Topic
Post by: tombillings on February 23, 2011, 10:05:59 AM
looks pretty cool, i may have to check this one out, i think the members of my board would love it
Title: Re: Share This Topic
Post by: Maxtor on February 23, 2011, 01:50:51 PM
i have used the ShareThis.php file you shared , and ive got no errors now BUT i see at first topic facebook , twitter, buzz , BUT i only want facebook. what to do?
Title: Re: Share This Topic
Post by: Suki on February 23, 2011, 01:54:07 PM
@maxtor  theres a setting in the mod's settings page for each of the buttons, if you only want facebook to appear, then uncheck the other 3.
Title: Re: Share This Topic
Post by: Maxtor on February 23, 2011, 02:00:06 PM
Quote from: Miss All Sunday on February 23, 2011, 01:54:07 PM
@maxtor  theres a setting in the mod's settings page for each of the buttons, if you only want facebook to appear, then uncheck the other 3.

i did that already, but the only way to remove it was by editing Display.php

// define some parameters
$parameters = array(
'url' => $scripturl . '?topic=' . $topic . '.msg' . $message['ID_MSG'] . '#msg' . $message['ID_MSG'],
'output' => 'return',
'face_button' => 1, // either set this 1 for use the modSettings parameters or 0 to hide
'retweet_button' => 0,
'digg_button' => 0,
'buzz_button' => 0,
Title: Re: Share This Topic
Post by: Suki on February 23, 2011, 02:02:17 PM
thats because you used a file that was not suppose to be for you. I didn't upload that file for all users to use it.
Title: Re: Share This Topic
Post by: Maxtor on February 23, 2011, 02:16:05 PM
Here is mine.
Title: Re: Share This Topic
Post by: netalberto on February 23, 2011, 05:03:08 PM
Quote from: Miss All Sunday on February 23, 2011, 08:34:04 AM

and yes, I tested your site and in both my wall and home page I see the post name and topic link

It's very strange  :o :o  I don't understand why I see in my wall post title, but in home forum title... I have to change my eyes or what problem could be?  :'( :'(
Title: Re: Share This Topic
Post by: Suki on February 24, 2011, 10:40:28 AM
its highly likely the facebook connect mod adds the metatags and facebook its getting the forum name from there instead of the topic name.
Title: Re: Share This Topic
Post by: venex on February 24, 2011, 05:50:50 PM
Quote from: Miss All Sunday on February 14, 2011, 10:13:38 AM
its a bug with this mod and 1.1.x versions, it will be solved with the next release, attach your ShareThis.php file to fix it.
Here

Thanks!

btw... im using RC4
Title: Re: Share This Topic
Post by: venex on February 24, 2011, 05:51:36 PM
Quote from: Miss All Sunday on February 14, 2011, 10:13:38 AM
its a bug with this mod and 1.1.x versions, it will be solved with the next release, attach your ShareThis.php file to fix it.

Here it is :). Thanks a lot.
Title: Re: Share This Topic
Post by: Suki on February 24, 2011, 06:02:08 PM
use this one venex
Title: Re: Share This Topic
Post by: geezmo on February 24, 2011, 06:31:23 PM
I keep getting these in my error log:

8: Undefined index: share_icons_enable
File: /home/vps/public_html/forum/Sources/ShareThis.php
Line: 128

and

8: Undefined index: share_buzzbutton_enable
File: /home/vps/public_html/forum/Sources/ShareThis.php
Line: 79

Attached is my ShareThis.php

Thanks for any help!
Title: Re: Share This Topic
Post by: venex on February 25, 2011, 12:00:07 AM
Quote from: Miss All Sunday on February 24, 2011, 06:02:08 PM
use this one venex
thanks!

It's fixed now. I also notice that you added a image at the end of the first topic (or where the buttons are displayed) why is that? I edited the file again because you put "png" as the images type and it was "gif"... I also moved it to the right.

You put that because if there's nothing the MOD keeps sending errors to the error log or what?

Thanks ;D.
Title: Re: Share This Topic
Post by: Suki on February 25, 2011, 03:10:23 PM
a new version has been released, please all the people with "undefined index"  errors upgrade to this new version.


2.8
-Fixed the Undefined errors in ShareThis.php file.
-Removed some file edits, less edits and more hooks means less headaches :)
Title: Re: Share This Topic
Post by: madnexus on February 26, 2011, 12:45:51 PM
Just upgraded to the last version and still having the following undefined errors:

8: Undefined index: share_diggbutton_enable and 8: Undefined index: share_buzzbutton_enable (line 135 and 136 of /Sources/ShareThis.php).

None of them are enabled under the settings.

Facebook Like button is the only one enabled but is not working.. (can't see it anywhere).
Title: Re: Share This Topic
Post by: geezmo on February 26, 2011, 01:34:33 PM
Same thing with madnexus. Uploaded version 2.8 but the same undefined index error remained.
Title: Re: Share This Topic
Post by: Maxtor on February 26, 2011, 02:18:09 PM
Quote from: geezmo on February 26, 2011, 01:34:33 PM
Same thing with madnexus. Uploaded version 2.8 but the same undefined index error remained.

yes same problem. just installed 2.8 and having these errors:


8: Undefined index: share_diggbutton_enable
File: /home/user/public_html/forum/Sources/ShareThis.php
Line: 135


8: Undefined index: share_twibutton_enable
File: /home/user/public_html/forum/Sources/ShareThis.php
Line: 134


8: Undefined index: share_buzzbutton_enable
File: /home/user/public_html/forum/Sources/ShareThis.php
Line: 136
Title: Re: Share This Topic
Post by: becometa on February 26, 2011, 05:54:18 PM
Here comes the Polish-utf8 translation.

$txt['share_buttons_enable'] = '<span style="font-weight:bold;">Włącz przyciski udostępniania.</span>"';
$txt['share_all_messages'] = '<span style="font-weight:bold;">Umieścić przyciski udostępniania w każdej wiadomości?</span><br /> jeżeli pole pozostanie puste, ikony oraz przyciski udostępniania będą widoczne tylko w pierwszym poście.';
$txt['share_default_menu'] = 'Podziel się tym tematem';
$txt['share_default_menu_desc'] = 'Użyj tego panelu aby potwierdzić, w których serwisach społecznościowych chcesz podzielić się tym tematem.';
$txt['share_default_tooltip'] = 'Podziel się tym tematem na %s';
$txt['share_ask'] = 'Ask';
$txt['share_blinklist'] = 'Blinklist';
$txt['share_bmarks'] = 'Bmarks';
$txt['share_dzone'] = 'Dzone';
$txt['share_feedmelinks'] = 'Feed Me Links';
$txt['share_furl']  = 'furl';
$txt['share_live'] = 'Live';
$txt['share_netvouz'] = 'Netvouz';
$txt['share_newsvine'] = 'Newsvine';
$txt['share_oneview'] = 'Oneview';
$txt['share_bebo'] = 'Bebo';
$txt['share_diigo'] = 'Diggio';
$txt['share_fark'] = 'Fark';
$txt['share_iwiw'] = 'Iwiw';
$txt['share_linkedin'] = 'LinkedIn';
$txt['share_mrwong'] = 'Mr Wong';
$txt['share_orkut'] = 'Orkut';
$txt['share_stylehive'] = 'Stylehive';
$txt['share_web2pdf'] = 'Web 2 PDF';
$txt['share_spurl'] = 'Spurl';
$txt['share_squidoo'] = 'Squidoo';
$txt['share_tipd'] = 'Tipd';
$txt['share_gbuzz'] = 'Google buzz';
$txt['share_facebook'] = 'Facebook';
$txt['share_myspace'] = 'MySpace';
$txt['share_delicious'] = 'Del.icio.us';
$txt['share_digg'] = 'Digg';
$txt['share_reddit'] = 'Reddit';
$txt['share_stumbleupon'] = 'StumbleUpon';
$txt['share_twitter'] = 'Twitter';
$txt['share_technorati'] = 'Technorati';
$txt['share_magnolia'] = 'Magnolia';
$txt['share_google'] = 'Google';
$txt['share_yahoo'] = 'Yahoo';
$txt['share_printfriendly'] = 'Print Friendly';
$txt['share_meneame'] = 'Meneame';
$txt['share_friendfeed'] = 'Friend feed';
$txt['share_icons_enable'] = '<span style="font-weight:bold;">Włącz ikony udostępniania</span>';
$txt['share_likebutton_enable'] = 'Włącz przycisk Facebook\'a - "Lubię to"';
$txt['share_options_boards'] = '<span style="font-weight:bold;">wpisz ID działów w których chcesz aby ikony oraz przyciski udostępniania były niewidoczne</span><br /> odseparowywuj je przecinkiem, np: 1,2,3,4';
$txt['share_diggbutton_enable'] = 'Włącz przycisk Digg\'';
$txt['share_twibutton_enable'] = 'Włącz przycisk Twitter\'a';
$txt['share_buzzbutton_enable'] = 'Włącz przycisk Buzz\'a';
$txt['tweet_name'] = 'Tweet';
$txt['buzz_post'] = 'Napisz na Google Buzz';
$txt['share_likebutton_height'] = '<span style="font-weight:bold;">wysokość przycisku Facebook\'a - "Lubię to"</span><br />minimum 35(ustawiane automatycznie przez facebook)';
$txt['share_like_select_all'] = 'Naciśnij aby zaznaczyć wszystkie pola';
$txt['share_boardnews_block'] = '<span style="font-weight:bold;">Pokazywać ikony i przyciski w bloku "Board news" w SimplePortal?</span><br /> <a href="http://simpleportal.net">SimplePortal</a> musi być uwcześnie zainstalowany.';
$txt['share_articles'] = '<span style="font-weight:bold;">Pokazywać ikony i przyciski w systemie artykułów wbudowanym w SimplePortal?</span><br /> <a href="http://simpleportal.net">SimplePortal</a> musi być uwcześnie zainstalowany.';
$txt['share_donate'] = 'jeżeli lubisz tą modyfikację, proszę prześlij mi <a href="http://oharascans.com/donate.html" target="blank">dotację.</a>';


And if im right, the
$txt['share_default_menu_desc']
is not used anywhere in modification ;) But perhaps I'm wrong
Title: Re: Share This Topic
Post by: Arantor on February 26, 2011, 05:56:03 PM
I think you'll find it's needed by the admin panel for 2.0. If you like, you can try removing it, emptying the cache and seeing what happens ;)
Title: Re: Share This Topic
Post by: Suki on February 26, 2011, 08:10:51 PM
madnexus, geezmo and maxtor  I cannot reproduce the errors you're getting, can you please tell me your smf version,  I honestly don't know what you're getitng those errors, modSettings is properly globalized in all functions.

can you replace your ShareThis.php file with the one attached
Title: Re: Share This Topic
Post by: Average Mom on February 27, 2011, 08:21:57 AM
Quote from: Miss All Sunday on February 26, 2011, 08:10:51 PM
madnexus, geezmo and maxtor  I cannot reproduce the errors you're getting, can you please tell me your smf version,  I honestly don't know what you're getitng those errors, modSettings is properly globalized in all functions.

can you replace your ShareThis.php file with the one attached

I tried replacing mine with that one as well since I'm getting similar errors as them, but no change on my end.
I am using SMF 2.0 RC5 with the following mods and the Dziner Outline theme
1.    Welcome Topic Mod    2.1
2.    SimplePortal    2.3.3
3.    Contact Page    2.1.1
4.    Share This Topic    2.8
5.    Referrals System    3.0.1
6.    LMGTFY BBcode    3.7

I'm also including my own ShareThis.php file.

There errors I am getting are:
http://averagemom.com/forum/index.php?
8: Undefined index: share_buzzbutton_enable
File: /.../forum/Sources/ShareThis.php
Line: 136

I don't have the buzz button enabled, nor do I wish to at the moment, but I tried with it enabled and disabled and I believe I get the same message.
Title: Re: Share This Topic
Post by: Maxtor on February 27, 2011, 09:52:01 AM
Quote from: Miss All Sunday on February 26, 2011, 08:10:51 PM
madnexus, geezmo and maxtor  I cannot reproduce the errors you're getting, can you please tell me your smf version,  I honestly don't know what you're getitng those errors, modSettings is properly globalized in all functions.

can you replace your ShareThis.php file with the one attached

you can reproduce these errors by disabling "buzz,twitter,dig" from admin->settings.
Title: Re: Share This Topic
Post by: Suki on February 27, 2011, 10:49:31 AM
nope, still unable to reproduce this but I think I know what the issue is, can you pelase try this file, clean your cache and test.
Title: Re: Share This Topic
Post by: Exterminator2006 on February 27, 2011, 12:45:24 PM
My error =(

8: Undefined index: share_icons_enable File: /var/www/vhosts/XXXXXXX.com/httpdocs/forum/Sources/ShareThis.php
Line: 128

How can I fix it?

Thanks!
Title: Re: Share This Topic
Post by: Suki on February 27, 2011, 12:57:03 PM
Exterminator2006 try using the file I attached in my last reply  just above yours.
Title: Re: Share This Topic
Post by: Exterminator2006 on February 27, 2011, 01:02:08 PM
same error =(

8: Undefined index: share_buzzbutton_enable
8: Undefined index: share_diggbutton_enable
8: Undefined index: share_icons_enable
Title: Re: Share This Topic
Post by: Suki on February 27, 2011, 01:14:31 PM
im still cannot reproduce those error, cna you attach your ShareThis.php file  are you usre you uninstall complety the old version?  can you also attach your ManageSettings.php
Title: Re: Share This Topic
Post by: Exterminator2006 on February 27, 2011, 01:24:49 PM
I have not this file ManageSettings.php :(

ShareThis.php is the same in your last message

my forum is Powered by SMF 1.1.13

as a test I uninstalled the older versions?
Title: Re: Share This Topic
Post by: Suki on February 27, 2011, 01:32:01 PM
if your using 1.1.1 then attach your ModSettings.php file
Title: Re: Share This Topic
Post by: Exterminator2006 on February 27, 2011, 01:38:10 PM
Yeah! =)
Title: Re: Share This Topic
Post by: Suki on February 27, 2011, 01:49:56 PM
try this one
Title: Re: Share This Topic
Post by: Average Mom on February 27, 2011, 03:26:34 PM
Quote from: Miss All Sunday on February 27, 2011, 01:49:56 PM
try this one


This one worked for me. Thanks!
Title: Re: Share This Topic
Post by: madnexus on March 08, 2011, 05:20:11 PM
Just downloaded the mod again and its working properly.

Thanks a lot! :)
Title: Re: Share This Topic
Post by: Suki on March 08, 2011, 08:03:29 PM
Quote from: madnexus on March 08, 2011, 05:20:11 PM
Just downloaded the mod again and its working properly.

Thanks a lot! :)


yes madnexus  the mod author updated the mod with the fixes, it should work just fine now :)
Title: Re: Share This Topic
Post by: jules418 on March 11, 2011, 07:09:56 AM
Hello,

I want to install this mod on SMF 1.1.13.
When the system doing the verification I have this message for the files PortalBlocks.php and PortalArticles.template.php :
"Bypass the file"

This is a problem or not ? What should I do ? Install or not ?


Thanks
Title: Re: Share This Topic
Post by: Suki on March 11, 2011, 08:08:43 AM
no its not a problem and you can install the mod   

it just mean that you dont have simpleportal installed on your forum, this mod is compatible with SP but if you dont have SP then the mod will skip the edits
Title: Re: Share This Topic
Post by: jules418 on March 11, 2011, 01:05:59 PM
okay I installed the mod but I not see in options & in post ???
Title: Re: Share This Topic
Post by: Suki on March 11, 2011, 01:08:36 PM
chances are you are using a different language than english or spanish, you will need to translate the mod    go to  /Themes/default/languages/ShareThis.english.php    copy that file, paste it in the same folder and renamed ShareThis.yourlanguage.php   where  "yourlanguage"  its the language you're using.
Title: Re: Share This Topic
Post by: jules418 on March 11, 2011, 01:39:58 PM
Exact it work fine !!!

Thanks  :D
Title: Re: Share This Topic
Post by: DrBermant on March 13, 2011, 03:27:37 PM
I am having a problem with a conflict between Share This Topic and Anit-Spam Links. The anti-spam tool seems to be in use on this forum and is awesome. With the no links until x posts, there is no problem. The issue comes up with nonactive or nofollow options enabled. All of the links of the social linking options are turned into a mess best described with a screen shot included. The short one is with the working links. The long image is the mess. I would prefer to be able to have social linking even on a newbee first post. I would prefer to enable options like nofollow and nonactive. The current site is a 2RC5 with only post count no linking enabled.

I am not sure where to post to fix, so I am putting this request for help in both mod's sections. Your thoughts and comments would be appreciated.

Michael Bermant, M.D.

the site I am asking about is

http://www.abodybeautiful.com/forum/index.php
Title: Re: Share This Topic
Post by: Suki on March 14, 2011, 01:44:20 PM
can you link me to that mod?  does that mod turns every external link onto nonactive ones?


does affect every messages or only the ones made by new users?
Title: Re: Share This Topic
Post by: DrBermant on March 14, 2011, 01:52:45 PM
Quote from: Miss All Sunday on March 14, 2011, 01:44:20 PM
can you link me to that mod?  does that mod turns every external link onto nonactive ones?


does affect every messages or only the ones made by new users?

http://custom.simplemachines.org/mods/index.php?mod=2404 and you can find a link to the discussion thread for what that mod offers on same page.

Michael Bermant, M.D.
Title: Re: Share This Topic
Post by: Suki on March 14, 2011, 02:00:17 PM
can you attach both your  theme's  display.template.php  and Sources/Display.php  files  I  will make some edits so the links this mod adds does not get parser by the other mod.

Title: Re: Share This Topic
Post by: DrBermant on March 14, 2011, 04:21:16 PM
Quote from: Miss All Sunday on March 14, 2011, 02:00:17 PM
can you attach both your  theme's  display.template.php  and Sources/Display.php  files  I  will make some edits so the links this mod adds does not get parser by the other mod.

There is no separate Theme display.template.php, so here is the default one. The Display.php is from the source folder. I downloaded the active ones from the live site.

Thank you so much for your help.  I really like both mods and being able to use both would be so nice. Did you take a look at the other mod. I think it is the same one used on this forum. At present I am using only the first option, blocking by post count.

Michael Bermant, M.D.
Title: Re: Share This Topic
Post by: Bancherd on March 14, 2011, 06:45:24 PM
I have similar problem to that of DrBermant.  Same mods on default theme.
Title: Re: Share This Topic
Post by: Suki on March 14, 2011, 06:55:36 PM
well, since there's more people with this, I will post instructions then.

Open your Sources/Display.php find and delete this part:




// share this topic start

    // Lets check if there are some boards where the buttons will NOT be show
    if (!empty($modSettings['share_options_boards']))
{
$share_denied_boards = explode(",", preg_replace("/[^0-9,]/", "", $modSettings['share_options_boards']));
foreach ($share_denied_boards as $key => $value) if ($value == "") unset($share_denied_boards[$key]);
}
else $share_denied_boards[] = '';

// define some parameters
$parameters = array(
'url' => $scripturl . '?topic=' . $topic . '.msg' . $message['id_msg'] . '#msg' . $message['id_msg'],
);

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

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

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

    // Share this topic mod end



now open your theme's Display.template.php file or the default one if your theme doesn't have a custom display  find this:

// Show the post itself, finally!

and above that add this:

// share this topic start

    // Lets check if there are some boards where the buttons will NOT be show
    if (!empty($modSettings['share_options_boards']))
{
$share_denied_boards = explode(",", preg_replace("/[^0-9,]/", "", $modSettings['share_options_boards']));
foreach ($share_denied_boards as $key => $value) if ($value == "") unset($share_denied_boards[$key]);
}
else $share_denied_boards[] = '';

// define some parameters
$parameters = array(
'url' => $message['href'],
);

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


    // Share this topic mod end



lastly, find this:

<div class="inner" id="msg_', $message['id'], '"', '>', $message['body'], '</div>
</div>';



and replaced with this:

<div class="inner" id="msg_', $message['id'], '"', '>',$suki,'', $message['body'], '',$mirahalo,'</div>
</div>';

Title: Re: Share This Topic
Post by: DrBermant on March 14, 2011, 07:35:36 PM
That works fixing the conflict. Here is an example of it working:

http://www.abodybeautiful.com/forum/index.php/topic,197.0.html

Is it possible to make it so that the social link options are only available for first posts?  With the hand coding changes, are there any options that should now not be selected in the mod? For instance is changing any of the social networks going to cause a problem?

Even if it does not, thank you so much for the improvement.

Michael Bermant, M.D.
Title: Re: Share This Topic
Post by: Suki on March 14, 2011, 07:59:02 PM
ok, on your display.template.php file find:

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


and replace with this:



// :)
  $suki = '';
  $mirahalo = '';

if empty($message['counter']){
  $suki =  share_this($parameters);
  $mirahalo = share_icons($parameters);
  }
Title: Re: Share This Topic
Post by: DrBermant on March 14, 2011, 09:12:29 PM
To begin with, I really am limited on my coding abilities.

When I paste your code into the file I get an error on this line:

       if empty($message['counter']){

Here is the total code section as I copied it:

// :)      
        $suki = '';
        $mirahalo = '';
      
       if empty($message['counter']){
        $suki =  share_this($parameters);
        $mirahalo = share_icons($parameters);
        }
         

    // Share this topic mod end   

---------------------
I did not load it up to my live site. Is there a coding error or should I disregard the dreamweaver warning of syntax error?  I am quite good at my Plastic Surgery, but this coding stuff is a little beyond me.

Thank you,

Michael Bermant, M.D.
Title: Re: Share This Topic
Post by: HunterP on March 14, 2011, 09:31:15 PM
Quote from: DrBermant on March 14, 2011, 09:12:29 PM
       if empty($message['counter']){

This line is missing parantheses, should be :

       if (empty($message['counter'])) {
Title: Re: Share This Topic
Post by: DrBermant on March 14, 2011, 09:42:29 PM
Wow, thank you all:

http://www.abodybeautiful.com/forum/index.php/topic,197.0.html

ta da!

Now that you pointed out the missing ), it is so obvious, but that is why I proudly admit to my limited coding skill.  Boy, when I was learning Quicktran back in 1964, I bet I would have caught the missing parenthesis, or back in my college years, but that was still decades ago. Oh well.

Now back to the issue of what on the share this admin tools can be touched and what cannot be messed with after this mod of the mod?  Or will the mod be updated for this situation?

Everyone, thank you very much.

Michael Bermant, M.D.


Title: Re: Share This Topic
Post by: Suki on March 14, 2011, 10:00:19 PM
sorry for the missing ()   I was in a hurry when I posted it :(

this was a temp solution, the mod settings were overwritten by this custom code, even if you check/un check the  "Show the buttons and icons on every message?"  setting the icons and buttons will only appear in the first message.

however,  you can still check/un check all the icons and buttons to enable/disable them with no problems :)

currently I don't have plans on changing how the mod works,  doing template edits means more issues for both me and the final users who uses a custom theme,  doing source edits only means that no matter what theme you are using, the mod will still work :)

unfortunately, if you decide to change your theme and the new theme has its own display.template, you will have to make the edits to that file too,  thats the reason the previous mod author move the edits from template file to source files, to avoid regular users the need to modify their files when they decide to use a custom theme.
Title: Re: Share This Topic
Post by: DrBermant on March 14, 2011, 10:17:13 PM
You may also want to edit your post:

code select
<div class="inner" id="msg_', $message['id'], '"', '>', $message['body'], '</div>
                     </div>';

to

<div class="inner" id="msg_', $message['id'], '"', '>', $message['body'], '</div>


I was able to figure that one out, but feel dumb missing the () issue.

I do not see the need to change the social network to all posts. Even if so, I think I can figure out from this thread how to go there manually.

My main concern was turning on and off the individual social engines. That would be a pain to go back and do manual edits each time.

Again thank you for taking the time to figure this out.

Michael Bermant, M.D.
Title: Re: Share This Topic
Post by: HunterP on March 21, 2011, 09:55:56 AM

Bugreport

When showing the button(s) only in the first message and selecting 'Show most recent posts at the top' in the profile, no buttons will appear, probably because the first message isn't actually shown as first?
Title: Re: Share This Topic
Post by: Suki on March 21, 2011, 10:49:37 AM
no,  the first message  is not the first one that is been show but rather the very first one of the entire topic,  $counter= 0

so technically, if you chose 'Show most recent posts at the top'  the buttons will appear in the last message
Title: Re: Share This Topic
Post by: HunterP on March 21, 2011, 11:10:33 AM
Quote from: Miss All Sunday on March 21, 2011, 10:49:37 AM
no,  the first message  is not the first one that is been show but rather the very first one of the entire topic,  $counter= 0

so technically, if you chose 'Show most recent posts at the top'  the buttons will appear in the last message

Did you test this? In a topic with only two messages, this is very simple, but it doesn't show in either of them.
Title: Re: Share This Topic
Post by: Suki on March 21, 2011, 11:43:06 AM
ahh, the problem is, when the "Show most recent posts at the top"  is enable, the "first"  message  have  1  instead of 0,   when is disable, the first message have 0, thats why when you enable that feature, the buttons and icons does not show because theres  no 0,  it starts from 1, dunno why.

to solved  find in your Sources/Display.php


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


and replace $counter == 0  with $counter == 1
Title: Re: Share This Topic
Post by: HunterP on March 21, 2011, 11:58:39 AM

Thanks for your fix, but when the "recent first" is not enabled, the button(s) appear in the second message  :(
Title: Re: Share This Topic
Post by: HunterP on March 21, 2011, 12:07:10 PM
Quote from: HunterP on March 21, 2011, 11:58:39 AM
Thanks for your fix, but when the "recent first" is not enabled, the button(s) appear in the second message  :(

Think I've fixed it myself :

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

This makes the button(s) appear in the first (top-most) posting which isn't neccessarily the first post, but this is perfect for me :)
Title: Re: Share This Topic
Post by: HunterP on March 21, 2011, 12:13:06 PM

When I think of it, we only want to see the button (only Twitter) in the first posting, to link to the first posting. With my fix, the posting in which the button appears keeps on changing, so if you can make a fix which shows the button allways in the first posting, also when show_newest_first is true.
Title: Re: Share This Topic
Post by: Suki on March 21, 2011, 12:19:28 PM
please  do not create multiple messages, edit your previous one if you have something more to say.


I was gonna, say it, your fix isn't really a fix, I'm going to release and update with a proper fix when I have enough time to test properly.
Title: Re: Share This Topic
Post by: HunterP on March 21, 2011, 12:20:16 PM

#1 Sorry :(
#2 Thanks :)
Title: Re: Share This Topic
Post by: BartB on March 21, 2011, 02:31:38 PM
Hi there, thanks for a great mod!  I use the FB and Twitter buttons only, but it sure looks good.

One thing though: If I click the LikeThis (FB) button, my FB profile shows the 'Like' but with the wrong icon. It uses an icon that belongs to one "extra userfield" (in this case a Youtube-channel-URL that users can advertise in their profile)

Any idea how to solve that?

(Mod in effect on http://www.keyboardforum.nl in case you want to try yourself :-)
Title: Re: Share This Topic
Post by: Suki on March 21, 2011, 02:35:27 PM
facebook "scans"  your page looking for any images to use to display the like comment,  if you want to use your very own cuotm image you will have to edit your theme's index.template  to be able to use your custom image

http://developers.facebook.com/docs/opengraph/

Title: Re: Share This Topic
Post by: BartB on March 21, 2011, 02:53:04 PM
Quote from: Miss All Sunday on March 21, 2011, 02:35:27 PM
facebook "scans"  your page looking for any images to use to display the like comment,  if you want to use your very own cuotm image you will have to edit your theme's index.template  to be able to use your custom image

http://developers.facebook.com/docs/opengraph/


I'd just like it to use my Favicon.ico or something :-) (And use the title of the page, the mod seems to use a 'generic' page title to describe the liked-link...
Title: Re: Share This Topic
Post by: Suki on March 21, 2011, 04:10:57 PM
please see the link I posted, it explains how can you add facebook metatags to your forum.

the mod actually uses your <title>  and its not only this mod,  every like button does that, if a metatag isnt declared, facebook will use <title>,  and if an image metatag isn't declared, facebook will take one of the images in the specific page.

in previous versions of this mod, you did actually specify an image, but a lot of people got confuse or simply didn't know how to use it,  and also, theres no way to add  the "xmlns:fb="http://www.facebook.com/2008/fbml"   in the <html>  tag without making a template edit, which is something I do not plan to do.
Title: Re: Share This Topic
Post by: Scratching my Head on March 25, 2011, 09:42:21 PM
When I like something, the "Comment" box is hidden (see screen shot attached)
How to make this visible?
Title: Re: Share This Topic
Post by: Suki on March 25, 2011, 09:55:32 PM
theres a setting in the mod's settings to specify the facebook like  height:


height of the facebook like button
minimun height is 35 (set automatically by facebook)

just put  somthing a little bit higher  unitl your happy with the actual height.
Title: Re: Share This Topic
Post by: Scratching my Head on March 25, 2011, 11:51:11 PM
(Tips hat) Worked!

:D
Title: Re: Share This Topic
Post by: italo_anonimo on March 28, 2011, 06:06:26 AM
thanks for mod!!
Title: Re: Share This Topic
Post by: sona67 on March 29, 2011, 02:49:40 PM
Hi

I really loved this mod alot. It's very useful.

I have installed the mod with no problems. However, I have 3 questions:

- when a FB user and forum user like the topic, does the mod post the like on the FB user's newsfeed too? If it's suppose to do that, I cannot find it on the newsfeed. (sorry if it's a dumb question)

- I'm getting a truncated image of the FB user. Please see attached picture. Sorry I have blurred away the text because my forum is still in beta stage, and not ready to show.

- the Like doesn't appear for a non-FB user? Meaning if a topic had been "liked" by 10 persons, and a non-FB user visits the topic, the 10 "likes" are not shown?

I have tried the above scenarios with 3browsers : Chrome., IE, and Firefox.

My settings:
SMF version: SMF ver. 1.1.13
TP version: TP ver. 1.102
Default Forum Language: English UTF8
Theme name and version: SMF default




Title: Re: Share This Topic
Post by: Suki on March 29, 2011, 04:12:57 PM
Quote
- when a FB user and forum user like the topic, does the mod post the like on the FB user's newsfeed too? If it's suppose to do that, I cannot find it on the newsfeed. (sorry if it's a dumb question)

there's  no such thing as a dumb question ;)

no, the mod does not automatically put a comment on the user's wall, is up to the users if they want to leave a short message after the click on the like button,  if they do, this message will appear in the user's wall with a link back to your topic.


Quote
- I'm getting a truncated image of the FB user. Please see attached picture. Sorry I have blurred away the text because my forum is still in beta stage, and not ready to show.

please see a few post above this one:

Quote from: Miss All Sunday on March 25, 2011, 09:55:32 PM
theres a setting in the mod's settings to specify the facebook like  height:


height of the facebook like button
minimun height is 35 (set automatically by facebook)

just put  somthing a little bit higher  unitl your happy with the actual height.



Quote
- the Like doesn't appear for a non-FB user? Meaning if a topic had been "liked" by 10 persons, and a non-FB user visits the topic, the 10 "likes" are not shown?

when a non-facebook user see your topic, they will see the like button and the number of "likes", when they click the button they will be redirected to a login/register page for facebook
Title: Re: Share This Topic
Post by: sona67 on March 30, 2011, 02:54:49 PM
@Miss All Sunday

Just coming back to say thanks!!


Quoteno, the mod does not automatically put a comment on the user's wall, is up to the users if they want to leave a short message after the click on the like button,  if they do, this message will appear in the user's wall with a link back to your topic.
Yes - it worked :) Fixed the truncated image too


Quotewhen a non-facebook user see your topic, they will see the like button and the number of "likes", when they click the button they will be redirected to a login/register page for facebook
Based on my testing, when a non-FB user, or FB user who had not login yet, he/she will not be able to see the number of "likes". Am I missing out something?

Title: Re: Share This Topic
Post by: Suki on March 30, 2011, 03:02:51 PM
the user will see just this:  "x  users likes  a page, login to see..."  it will show the number of likes, thats all, the user will not see the faces or names of the people who like that topic.     


the number of "likes"  sometimes can be missed due to facebook servers not responding.
Title: Re: Share This Topic
Post by: Eudemon on April 02, 2011, 10:24:15 PM
i want to add a <br /> before the button images on post
where do i insert, couldn't find it... :o
Title: Re: Share This Topic
Post by: Suki on April 02, 2011, 10:51:42 PM
on your Display.php  file, find:



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

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




and replace with:



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

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

 
Title: Re: Share This Topic
Post by: Eudemon on April 02, 2011, 11:05:12 PM
tried. didn't work  :(
cleared cache n tested
Title: Re: Share This Topic
Post by: Suki on April 02, 2011, 11:08:40 PM
well. you want to add a <br />   before the icons right?

whats your url?


the icons already have a <p />  on your ShareThis.php file find:

return '<p class="share_icons">'. $social_icons. '</p>';


and before $social_icons  you can add your <br /> tag
Title: Re: Share This Topic
Post by: Eudemon on April 02, 2011, 11:29:05 PM
Quotereturn '<p class="share_icons">'. $social_icons. '</p>';


and before $social_icons  you can add your <br /> tag

tried and works, thx

yeah <p> should automatic create a space after the last message but mine didn't
that's why i want to add a <br /> to it
Title: Re: Share This Topic
Post by: Suki on April 02, 2011, 11:32:59 PM
you can also modify the share_icons  class in function share_headers()  on the same file   to add as much space as you want, thats why we added that class so user can modify the way icons and buttons are displayed.
Title: Re: Share This Topic
Post by: Eudemon on April 02, 2011, 11:38:46 PM
btw i'm not sure if it's related but this is what i found
from ur simple spoiler mod

here is an example

the first image shows after spoiler tag closed, there are 2 line spaces

the second image shows the actual post, but there is only 1 line space
Title: Re: Share This Topic
Post by: Suki on April 02, 2011, 11:40:29 PM
if you have issues with the simple spoiler mod, post in the simple spoiler mod support topic.
Title: Re: Share This Topic
Post by: Eudemon on April 02, 2011, 11:44:33 PM
i mean the same thing happened to this mod
where the buttons are in <p>tags, so it should create a line space after last message
but there is no line space after last message
the buttons were stuck to the last message
that's why i wanted to add a <br />
Title: Re: Share This Topic
Post by: Suki on April 02, 2011, 11:48:46 PM
the space that the <p>  tags creates  relies entirely  on your theme's css style sheet,   thats why I told you about the share_icons  class, with that class you can specify how much space you want for that particular <p>  tag
Title: Re: Share This Topic
Post by: Eudemon on April 02, 2011, 11:53:51 PM
alright, i will move that post to ur spoiler thread

thx for the help
Title: Re: Share This Topic
Post by: Bugo on April 08, 2011, 11:33:45 AM
Please update russian translation.
Title: Re: Share This Topic
Post by: crustybum on April 11, 2011, 07:03:34 AM
I have a small problem where the icons and buttons show up in every section, even though i have alterd it to only show up on certain boards...any ideas?
Title: Re: Share This Topic
Post by: Suki on April 14, 2011, 09:35:42 PM
@crustybum    Can you please attach your Sources/Display.php file
Title: Re: Share This Topic
Post by: crustybum on April 15, 2011, 05:29:35 AM
Apologies for not getting back, its sorted now, and i dont know how ;D anyway, think this is one of the best "share type" mods about..
Title: Re: Share This Topic
Post by: TheListener on April 15, 2011, 06:53:29 PM
Hey MAS any images available to show what the mod looks like when installed?
Title: Re: Share This Topic
Post by: HunterP on April 21, 2011, 07:36:02 AM

Miss,

Quote from: Miss All Sunday on March 21, 2011, 11:43:06 AM
ahh, the problem is, when the "Show most recent posts at the top"  is enable, the "first"  message  have  1  instead of 0,   when is disable, the first message have 0, thats why when you enable that feature, the buttons and icons does not show because theres  no 0,  it starts from 1, dunno why.

Would it be possible to add one more option? I don't want to see the button(s) along with all postings, but I'd like to see it on the top of each page.
Title: Re: Share This Topic
Post by: Suki on April 21, 2011, 09:02:14 AM
There's a setting to only show it in the first message.


it can be show in the top of the page, problem is it will require a template modification, and that is something I want rather to avoid,  also, this mod takes the url from the sources file (Display.php)  so you will need to also modify that file, not to mention you will not be able to use most of the mod's settings.
Title: Re: Share This Topic
Post by: HunterP on April 21, 2011, 11:04:04 AM
Quote from: Miss All Sunday on April 21, 2011, 09:02:14 AM
There's a setting to only show it in the first message.

That's what we've discussed before and doesn't work correct when someone wants to show newest messages first :)
Title: Re: Share This Topic
Post by: HunterP on April 24, 2011, 07:59:46 AM
Quote from: HunterP on April 21, 2011, 07:36:02 AM
Would it be possible to add one more option? I don't want to see the button(s) along with all postings, but I'd like to see it on the top of each page.

Hmmmm... This forum seems to have exactly what I mean :

http://shopinja.com/forum/index.php?topic=654.0
Title: Re: Share This Topic
Post by: Suki on April 24, 2011, 04:40:48 PM
That forum is using another mod, there's plenty of facebook related mods in the mod site.
Title: Re: Share This Topic
Post by: HunterP on April 24, 2011, 05:20:15 PM
Quote from: Miss All Sunday on April 24, 2011, 04:40:48 PM
That forum is using another mod, there's plenty of facebook related mods in the mod site.

Facebook? It does Twitter too. Does anyone know which mod that could be?
Title: Re: Share This Topic
Post by: Suki on April 24, 2011, 06:04:56 PM
I don't know how other mods work, you can search on the mod site for it, this support topic is solely for the Share this topic mod.
Title: Re: Share This Topic Translate to PT-BR
Post by: douglas.chagas on April 26, 2011, 02:48:20 PM
Hi all, I´m really interested translating it to PT-BR.
Could you send me the strings and I can translate it for you.

My forum is on PT_BR, and when I install the package, on configuration page there is no text. Is there a way to use this MOD on my forum?

Thanks,
Douglas Chagas
Title: Re: Share This Topic
Post by: Suki on April 26, 2011, 02:59:03 PM
Hi, thank you for your interest.

the strings are located in the  /Themes/default/language/ShareThis.english.php  file  you could simply translate those and then send me the file  as an attachment in here.

once you translated the whole file  renamed it to  ShareThis.portuguese_br.php   <= I think thats the correct name, not so sure thought,   and you will have your mod translated, don't forget to clean your cache if you are using SMF 2.0
Title: Re: Share This Topic
Post by: Leemy on April 26, 2011, 10:44:34 PM
When I go to install, I get

Fatal error: require() [function.require]: Failed opening required '/home/[username]/public_html/discuss/Packages/temp/./database.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/[username]/public_html/discuss/Sources/Packages.php on line 945

I made a temp folder for this and made it 777. Advise? Thanks
Title: Re: Share This Topic
Post by: Suki on April 27, 2011, 03:33:41 PM
You can manually install the mod, that is, move all the files and folders to their apropiate location and then run  database.php  in your browser, exmaple:   mysite.com/smf/database.php
Title: Re: Share This Topic
Post by: Leemy on April 27, 2011, 05:25:27 PM
Yeah I ended up doing that.  Thanks for the mod. A few suggestions:

- to have all buttons/badges together. not fb_like/twitter/others up top and the row of buttons on the bottom
- have larger icons (not 16x16px, maybe 64x64px), and have a setting to allow the admin to pick what size they want.
- the fb_like height can be changed from 35 on up. It would be nice if it dynamically had the height it needed (like if there are no people who've liked it, its 35px. if 1 row of pictures is there, it goes up to 60px, etc).

I see the "likes" on my friend's wall, but not in his newsfeed. is this expected behavior?

The links on facebook include a PHP session. What are the effects/use of this?
Title: Re: Share This Topic
Post by: Suki on April 27, 2011, 06:04:15 PM
Quote- to have all buttons/badges together. not fb_like/twitter/others up top and the row of buttons on the bottom

either the top or the button will look too full and stuffed.


Quote- have larger icons (not 16x16px, maybe 64x64px), and have a setting to allow the admin to pick what size they want.

The buttons don't have any hard code size, you can simply replace the icons in the "share" folder with the wants you prefer, but again, having bigger icons will make the messages look to stuffed, specially if you have the icons enable for every message.

Quote- the fb_like height can be changed from 35 on up. It would be nice if it dynamically had the height it needed (like if there are no people who've liked it, its 35px. if 1 row of pictures is there, it goes up to 60px, etc).

-This is actually something I been working on lately ;)


QuoteI see the "likes" on my friend's wall, but not in his newsfeed. is this expected behavior?

If the user left a comment then it will appear in his/her newsfeed

QuoteThe links on facebook include a PHP session. What are the effects/use of this?

None,  the session is added by your forum, this mod only graps the url SMF sends, if you have sesisons enable it will show the url with session.

Title: Re: Share This Topic
Post by: Aaron10 on April 28, 2011, 11:51:38 AM
Hi

Any way to add a tab (like above the "Jump To:" tab) to put these in instead of in the post itself (so when people click 'like' for example it takes them to the original post for that topic no matter which page they're on?) or is this not possible?

Great mod though thanks.
Title: Re: Share This Topic
Post by: Suki on April 28, 2011, 12:24:42 PM
Quote from: Aaron10 on April 28, 2011, 11:51:38 AM
Hi

Any way to add a tab (like above the "Jump To:" tab) to put these in instead of in the post itself (so when people click 'like' for example it takes them to the original post for that topic no matter which page they're on?) or is this not possible?

Great mod though thanks.


Hi, I don't clearly understand what you're saying, can you elaborate a little bit more please.
Title: Re: Share This Topic
Post by: Aaron10 on April 29, 2011, 08:39:47 PM
Sorry for late reply, adding a bar above the 'jump to' bar (where the red line is below):

(http://i55.tinypic.com/16iuurd.jpg)

And able to put the facebook, twitter etc. in a row if possible? And say if they are on page 2 of a topic if they choose to share then it would link them to the first page of the topic.
Title: Re: Share This Topic
Post by: Suki on April 29, 2011, 08:47:10 PM
Yes its possible, however the buttons will be linked only to the first message,  since it cannot be done by page.

Attach your sources/Display.php  and Themes/your_theme/Display.template.php
Title: Re: Share This Topic
Post by: Aaron10 on April 29, 2011, 08:52:49 PM
So it will apply to all pages in a topic but only link to the first page? If so yeah thats how I want it.

Thanks.
Title: Re: Share This Topic
Post by: Suki on April 29, 2011, 09:41:47 PM
ok, try this 2
Title: Re: Share This Topic
Post by: HunterP on April 30, 2011, 08:41:10 AM
Quote from: Miss All Sunday on April 29, 2011, 09:41:47 PM
ok, try this 2

Missy, this is more or less the same request as I did earlier. When I apply this, without removing the original code, which displays the buttons twice (for testing purposes) the original tweet indicator shows 5 tweets, the new one (on every page) shows only 2. Any idea what can cause this difference?

Example : http://www.hulpverleningsforum.nl/forum/index.php?topic=46763.0
Title: Re: Share This Topic
Post by: Suki on April 30, 2011, 08:52:46 AM
Hi, those files are for 1.1.x only, attach your own files and tell me exactly where do you want to locate the butotns and the icons.
Title: Re: Share This Topic
Post by: HunterP on April 30, 2011, 08:58:47 AM
Quote from: Miss All Sunday on April 30, 2011, 08:52:46 AM
Hi, those files are for 1.1.x only, attach your own files and tell me exactly where do you want to locate the butotns and the icons.

Ah stupid me...  SMF 2.0, just where you can see it in my example ;)

http://www.hulpverleningsforum.nl/forum/index.php?topic=46763.0

On top of each topic. The example needs one <br /> removal, but that shouldn't be the biggest issue at this point :)
Title: Re: Share This Topic
Post by: Aaron10 on April 30, 2011, 08:31:38 PM
Yeah thats how I wanted it thanks. I have the Facebook Like and Twitter Tweet buttons on my main site too but with the following codes:

Facebook
<script type="text/javascript">//<![CDATA[
(function() {
    document.write('<fb:like href="" send="false" layout="button_count" width="92" show_faces="false" font="verdana"></fb:like>');
    var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0];
    s.type = 'text/javascript';
    s.async = true;
    s.src = 'http://connect.facebook.net/en_US/all.js#xfbml=1';
    s1.parentNode.insertBefore(s, s1);
})();//]]></script>


Twitter
<script type="text/javascript">//<![CDATA[
(function() {
    document.write('<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal">Tweet</a>');
    var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0];
    s.type = 'text/javascript';
    s.async = true;
    s.src = 'http://platform.twitter.com/widgets.js';
    s1.parentNode.insertBefore(s, s1);
})();//]]></script>


Which are both valid XHTML 1.0 Transitional, any way to implement those? If not its no big deal.
Title: Re: Share This Topic
Post by: Suki on April 30, 2011, 11:12:46 PM
well, the facebook one won't work unless you include their code into your <html> tag  and also to add some metatags in your theme's  index.template.php file:

http://developers.facebook.com/docs/opengraph/


I use the iframe  version because its easy for forum admins, less edits and less headaches with same functionality.


The twitter button, I haven't test it yet, maybe twitter has already updated the button, in that case I should update the mod with the latest version of each button.


Title: Re: Share This Topic
Post by: Suki on May 03, 2011, 12:49:20 PM
Ok, new version  :)

2.8.1
-Fixed an issue with the "check all" option.
-Fixed a bug when the "show newer first" option was enable, thanks to HunterP for the report.
-Made the facebook like button height a little bit higher, before: 35, now 80, this will show the comment box and the avatars completely.
-Cut off some file edits in 2.0, less edits means less headaches! (and less support :P )


Added a few screen shots in the mod's page.




And an open question to everyone, would you like to see more options for the facebook like button such as  Layout Style , Width, Show Faces, Verb to display, Color Scheme  and Font ?
Title: Re: Share This Topic
Post by: mpaezalv on May 03, 2011, 11:16:52 PM
I have just installed it on SMF 2.0 RC5 and I got an error when opening a post. I got this error when I added the following lines in display.php:


// share this topic start

    // Lets check if there are some boards where the buttons will NOT be show
    if (!empty($modSettings['share_options_boards']))
{
$share_denied_boards = explode(",", preg_replace("/[^0-9,]/", "", $modSettings['share_options_boards']));
foreach ($share_denied_boards as $key => $value) if ($value == "") unset($share_denied_boards[$key]);
}
else $share_denied_boards[] = '';

// define some parameters
$parameters = array(
'url' => $scripturl . '?topic=' . $topic . '.msg' . $message['id_msg'] . '#msg' . $message['id_msg'],
// :)
  $suki =  share_this($parameters);
  $mirahalo = share_icons($parameters);

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

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

// special case for when the "recent first" option is enable
if (empty($modSettings['share_all_messages']) && $counter == 1 && $options['view_newest_first'] == 0 && !in_array($board_info['id'], $share_denied_boards))
$message['body'] = ($suki.$message['body'].$mirahalo);

    // Share this topic mod end


Title: Re: Share This Topic
Post by: Suki on May 04, 2011, 09:45:06 AM
mpaezalv can you attach your Display.php file.
Title: Re: Share This Topic
Post by: mpaezalv on May 04, 2011, 01:01:38 PM
here you have it

Title: Re: Share This Topic
Post by: DrBermant on May 04, 2011, 02:08:14 PM
http://www.simplemachines.org/community/index.php?topic=334955.msg2988094#msg2988094

New mod crashes the patch you made. Pages are no longer visible. had to restore to older version.

If you look soon enough will see the mess before the site restore:

http://www.abodybeautiful.com/forum/index.php

Please what went wrong?

It is my own fault not for asking ahead of time if the patch would be a problem for the update.

Thank you for any help.

Michael Bermant, M.D.
Title: Re: Share This Topic
Post by: Suki on May 04, 2011, 04:02:25 PM
There was a silly, silly  mistake of mine...


to fix it, on your Display.php file  find:


// share this topic start

    // Lets check if there are some boards where the buttons will NOT be show
    if (!empty($modSettings['share_options_boards']))
{
$share_denied_boards = explode(",", preg_replace("/[^0-9,]/", "", $modSettings['share_options_boards']));
foreach ($share_denied_boards as $key => $value) if ($value == "") unset($share_denied_boards[$key]);
}
else $share_denied_boards[] = '';

// define some parameters
$parameters = array(
'url' => $scripturl . '?topic=' . $topic . '.msg' . $message['id_msg'] . '#msg' . $message['id_msg'],
// :)
  $suki =  share_this($parameters);
  $mirahalo = share_icons($parameters);

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

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

// special case for when the "recent first" option is enable
if (empty($modSettings['share_all_messages']) && $counter == 1 && $options['view_newest_first'] == 0 && !in_array($board_info['id'], $share_denied_boards))
$message['body'] = ($suki.$message['body'].$mirahalo);

    // Share this topic mod end



and replace with:


// share this topic start

    // Lets check if there are some boards where the buttons will NOT be show
    if (!empty($modSettings['share_options_boards']))
{
$share_denied_boards = explode(",", preg_replace("/[^0-9,]/", "", $modSettings['share_options_boards']));
foreach ($share_denied_boards as $key => $value) if ($value == "") unset($share_denied_boards[$key]);
}
else $share_denied_boards[] = '';

// define some parameters
$parameters = array(
'url' => $scripturl . '?topic=' . $topic . '.msg' . $message['id_msg'] . '#msg' . $message['id_msg'],
);

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

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

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

// special case for when the "recent first" option is enable
if (empty($modSettings['share_all_messages']) && $counter == 1 && $options['view_newest_first'] == 0 && !in_array($board_info['id'], $share_denied_boards))
$message['body'] = ($suki.$message['body'].$mirahalo);

    // Share this topic mod end




I have updated the mod with the fix.
Title: Re: Share This Topic
Post by: DrBermant on May 04, 2011, 04:54:23 PM
Quote from: Miss All Sunday on May 04, 2011, 04:02:25 PM
There was a silly, silly  mistake of mine...


to fix it, on your Display.php file  find:


// share this topic start

    // Lets check if there are some boards where the buttons will NOT be show
    if (!empty($modSettings['share_options_boards']))
{
$share_denied_boards = explode(",", preg_replace("/[^0-9,]/", "", $modSettings['share_options_boards']));
foreach ($share_denied_boards as $key => $value) if ($value == "") unset($share_denied_boards[$key]);
}
else $share_denied_boards[] = '';

// define some parameters
$parameters = array(
'url' => $scripturl . '?topic=' . $topic . '.msg' . $message['id_msg'] . '#msg' . $message['id_msg'],
// :)
  $suki =  share_this($parameters);
  $mirahalo = share_icons($parameters);

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

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

// special case for when the "recent first" option is enable
if (empty($modSettings['share_all_messages']) && $counter == 1 && $options['view_newest_first'] == 0 && !in_array($board_info['id'], $share_denied_boards))
$message['body'] = ($suki.$message['body'].$mirahalo);

    // Share this topic mod end



and replace with:


// share this topic start

    // Lets check if there are some boards where the buttons will NOT be show
    if (!empty($modSettings['share_options_boards']))
{
$share_denied_boards = explode(",", preg_replace("/[^0-9,]/", "", $modSettings['share_options_boards']));
foreach ($share_denied_boards as $key => $value) if ($value == "") unset($share_denied_boards[$key]);
}
else $share_denied_boards[] = '';

// define some parameters
$parameters = array(
'url' => $scripturl . '?topic=' . $topic . '.msg' . $message['id_msg'] . '#msg' . $message['id_msg'],
);

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

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

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

// special case for when the "recent first" option is enable
if (empty($modSettings['share_all_messages']) && $counter == 1 && $options['view_newest_first'] == 0 && !in_array($board_info['id'], $share_denied_boards))
$message['body'] = ($suki.$message['body'].$mirahalo);

    // Share this topic mod end




I have updated the mod with the fix.

I had to have the forum restored from a back up. So the mod is no longer in place. It crashed the mySql file. Can the new mod be applied? It just took me a great deal of time to get back up to where I was before the mod application and I am afraid of having to do it again.

What do I do next? It would be great to undo the special file fix and restore it to the original and have the issues managed alone by the mod itself. Is that possible? 

What do you suggest?

Thank you for the time you took to work this out. But I am lost as what to do next.

Michael Bermant, M.D.
Title: Re: Share This Topic
Post by: Suki on May 04, 2011, 05:14:17 PM


If you have or had custom coding, then  installing this new version will not restore your custom coding,  thats the problem with custom coding and I remember told you about it,  it would have been so much better if you would have asked my about it,  this new version only fix very particular issues and does not add any new feature, so it would be just fine if you would have stayed with the old one with custom coding on it.



But no, after further testing I discover another few bugs,  thats why I'm going to remove the package until I have it tested properly and the mod is stable enough for public use.
Title: Re: Share This Topic
Post by: DrBermant on May 04, 2011, 05:30:39 PM
Quote from: Miss All Sunday on May 04, 2011, 05:14:17 PM


If you have or had custom coding, then  installing this new version will not restore your custom coding,  thats the problem with custom coding and I remember told you about it,  it would have been so much better if you would have asked my about it,  this new version only fix very particular issues and does not add any new feature, so it would be just fine if you would have stayed with the old one with custom coding on it.



But no, after further testing I discover another few bugs,  thats why I'm going to remove the package until I have it tested properly and the mod is stable enough for public use.

The mod is up and working as it did before I tried the newest version. The modified files were just as they were changed. Before applying any future updates of this mod, I will certainly ask as it took way too much work restoring the site.

How will I know if future mods will need custom coding work? The simplest answer will be to ask anytime there is an update.

Again thank you for your help.

It also sometimes pays not to be the first on the block with a change. Let others be the testing grounds.

You can see the mod working here in the older version:

http://www.abodybeautiful.com/forum/index.php/topic,263.0.html

Michael Bermant, M.D.
Title: Re: Share This Topic
Post by: Arantor on May 04, 2011, 06:04:24 PM
Quote from: DrBermant on May 04, 2011, 05:30:39 PM
It also sometimes pays not to be the first on the block with a change. Let others be the testing grounds.

Hopefully not everyone does that otherwise nothing would ever be tested...
Title: Re: Share This Topic
Post by: Suki on May 04, 2011, 06:09:04 PM
I guess I'm not allowed to make mistakes...     good thing about this is that it let me know that this mod is actually being used :)


And no, I do not have a beta testers team or otherwise people to test this before it gets public.
Title: Re: Share This Topic
Post by: Arantor on May 04, 2011, 06:12:27 PM
Quote from: Miss All Sunday on May 04, 2011, 06:09:04 PM
I guess I'm not allowed to make mistakes...     good thing about this is that it let me know that this mod is actually being used :)

Everyone makes mistakes. Anyone who never made mistakes either never made anything, never learnt anything or never tried anything new.

Making mistakes is good. Helps you learn, keeps you fresh. You should see how many mistakes I made when developing.
Title: Re: Share This Topic
Post by: DrBermant on May 04, 2011, 06:37:26 PM
Quote from: Miss All Sunday on May 04, 2011, 06:09:04 PM
I guess I'm not allowed to make mistakes...     good thing about this is that it let me know that this mod is actually being used :)


And no, I do not have a beta testers team or otherwise people to test this before it gets public.
Actually everyone makes mistakes. My issue is that as a Plastic Surgeon, I have a harder time fixing behind the scenes server issues like the crash that happened where a more experienced programmer could take the crash in stride and not have to involve others to rebuild the forum from a back up. When I do new things for my patients, I am able to compensate for new methodology since I have those back up skills to manage the issues. I needed to call for help from others to get the forum back up and working.

From my role as a surgeon trying to educate the public I must be careful on risks I take. I will need to reevaluate the advantage of the fix outside the norm vs the advantages of the look it gives. From the standpoint of a free mod and forum system, the weird needs of the few cannot outweigh the practical methods of upgrades.

Oh, and I have done beta testing for many years. One neat program I still have the disks for was the first version Microsoft Word before it was ever released to the public. But that was so many decades ago.

If there is a outside the box fix that several are using, perhaps a warning on an upgrade that it will cause issues could help. Otherwise, perhaps incorporating some of the issues into the general mod might be an option. Another option is the figure out how to get the separate facebook mod to work with a share it mod.

I have marveled over your work here in the forum, how you manage issues and help others. I certainly do not expect such a system to have beta testers but that is why I spent so much time documenting the crash and getting you to look at the issue (which you did in a fantastically quick fashion).

Again thank you for your help.

Michael Bermant, M.D.
Title: Re: Share This Topic
Post by: Suki on May 04, 2011, 08:08:54 PM
I'm  not a programmer... nor a "real programmer" either.   

I have  a Degree in Sociology which has nothing to do with coding or programing.

I made mods out of fun, and release those hoping it could help other people never expecting something in return.

I never took a programmer class or otherwise any code-related course, all I know I learned it from administrating SMF forums, reading and trying to understand other people code or mods.

And yes, I have a hard time figuring out server issues as much as you do, except that I do not have anyone to call and I'm expected to fix the issue as soon as possible.

Contrary to the general believe, this new version wasn't suppose to add more bugs or cause problems to people's sites...   it was a rather silly mistake of mine for trying to cut off file edits in SMF 2.0, you know, so regular users can install and use the mod without the hassle that involves manual installations, template files edits or manual file edits in general.


Sad part is,  the mod author (or in this case maintainer ) is always remembered when things go wrong... never the other way around.
Title: Re: Share This Topic
Post by: Arantor on May 04, 2011, 08:14:08 PM
QuoteSad part is,  the mod author (or in this case maintainer ) is always remembered when things go wrong... never the other way around.

Truth, right there. And you're expected to keep adding new stuff or make it exactly how others want it, instead of just making what you wanted in the first place.

I'm amazed people write mods. I'm more amazed how people spend time looking after what others have done. And all with generally so little appreciation.
Title: Re: Share This Topic
Post by: DrBermant on May 04, 2011, 09:38:55 PM
Quote from: Once Upon A Star on May 04, 2011, 08:14:08 PM
Sad part is,  the mod author (or in this case maintainer ) is always remembered when things go wrong... never the other way around.

Quote from: DrBermant on May 04, 2011, 06:37:26 PM
I have marveled over your work here in the forum, how you manage issues and help others. I certainly do not expect such a system to have beta testers but that is why I spent so much time documenting the crash and getting you to look at the issue (which you did in a fantastically quick fashion).

Again thank you for your help.

As I have said before, you do a great job. Thank you for your work.

Michael Bermant, M.D.
Title: Re: Share This Topic
Post by: poetra on May 06, 2011, 07:11:16 AM
Where is the mod?

I can see it on mod page,...???
Title: Re: Share This Topic
Post by: HunterP on May 06, 2011, 07:27:04 AM
Quote from: poetra on May 06, 2011, 07:11:16 AM
Where is the mod?
I can see it on mod page,...???

Please read the topic (or at least recent replies) before you post :

Quote from: Miss All Sunday on May 04, 2011, 05:14:17 PM
after further testing I discover another few bugs,  thats why I'm going to remove the package until I have it tested properly and the mod is stable enough for public use.
Title: Re: Share This Topic
Post by: Richard Wing on May 06, 2011, 09:57:06 AM
I need to inform you that the download link is missing for this mod. It says that it was last updated yesterday. Please advise?

Thanks
Title: Re: Share This Topic
Post by: Suki on May 06, 2011, 09:59:21 AM
Quote from: Miss All Sunday on May 04, 2011, 05:14:17 PM

But no, after further testing I discover another few bugs,  thats why I'm going to remove the package until I have it tested properly and the mod is stable enough for public use.



Title: Re: Share This Topic
Post by: DrBermant on May 06, 2011, 02:06:27 PM
Quote from: Miss All Sunday on May 04, 2011, 05:14:17 PM

But no, after further testing I discover another few bugs,  thats why I'm going to remove the package until I have it tested properly and the mod is stable enough for public use.

This is another example of why I appreciate the work that you offer to users of your mod.

Quoteit was a rather silly mistake of mine for trying to cut off file edits in SMF 2.0, you know, so regular users can install and use the mod without the hassle that involves manual installations, template files edits or manual file edits in general.

I wish I understood what you were talking about.

But I think it makes great sense to make the mod so that there are no needs for manual edits. Were there other issues other than the conflict with the Anti-Spam Links mod I discovered and you so nicely helped me out with the file edits mentioned above? If that is the case, thank you for trying to fix the mod so those of us using that mod can just upgrade the mod without having to make a mess of our sites. If there were other other fixes that did not address that specific conflict, that is still a good goal.

again, thank you for your efforts.

Michael Bermant, M.D.
Title: Re: Share This Topic
Post by: Suki on May 06, 2011, 04:22:30 PM
anyway... 2.8.2 is now available.


@DrBermant   you do not need to upgrade, specially if you have custom code in your files,  this version only patches 2 bugs, one that is very specific,   here's the changes so you can add those manually and not have to worry about the upgrade:

to fix the "check all" for the icons, on your ShareThis.php  find:


// Ugly, ugly way to show a "check all" checkbox... I know!
'<input name="checkall" type="checkbox" id="checkall" value="checkall" onclick="checkAll();"/> ',$txt['share_like_select_all'],'<script language="JavaScript">
function checkAll() {
var nodoCheck = document.getElementsByTagName("input");
var varCheck = document.getElementById("checkall").checked;
for (i=0; i<nodoCheck.length; i++){
if (nodoCheck[i].type == "checkbox" && nodoCheck[i].name != "checkall" && nodoCheck[i].name != "share_all_messages" && nodoCheck[i].name != "share_diggbutton_enable" && nodoCheck[i].name != "share_twibutton_enable"  && nodoCheck[i].name != "share_articles" && nodoCheck[i].name != "share_boardnews_block" && nodoCheck[i].name != "share_buzzbutton_enable" && nodoCheck[i].name != "share_likebutton_enable" && nodoCheck[i].name != "share_icons_enable" && nodoCheck[i].name != "share_buttons_enable" && nodoCheck[i].disabled == false) {
nodoCheck[i].checked = varCheck;}}}</script>',



and replace with:


// Ugly, ugly way to show a "check all" checkbox... I know!
'<input name="checkall" type="checkbox" id="checkall" value="checkall" onclick="checkAll();"/> ',$txt['share_like_select_all'],'<script language="JavaScript">
function checkAll() {
var nodoCheck = document.getElementsByTagName("input");
var varCheck = document.getElementById("checkall").checked;
for (i=0; i<nodoCheck.length; i++){
if (nodoCheck[i].type == "checkbox" && nodoCheck[i].name != "checkall" && nodoCheck[i].name != "share_buttons_enable" && nodoCheck[i].name != "share_articles" && nodoCheck[i].name != "share_boardnews_block" && nodoCheck[i].name != "share_all_messages" && nodoCheck[i].name != "share_diggbutton_enable" && nodoCheck[i].name != "share_twibutton_enable"  && nodoCheck[i].name != "share_buzzbutton_enable" && nodoCheck[i].name != "share_likebutton_enable" && nodoCheck[i].name != "share_icons_enable" && nodoCheck[i].disabled == false) {
nodoCheck[i].checked = varCheck;
}
}
}</script>',



for the other one,  (this only applies if you have the "Show most recent posts at the top." theme option on)

in your Sources/Display.php file  find:


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


replace with:


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

// special case for when the "recent first" option is enable
if (empty($modSettings['share_all_messages']) && $counter == 1 && $options['view_newest_first'] == 1 && !in_array($board_info['id'], $share_denied_boards))
$message['body'] = ($suki.$message['body'].$mirahalo);



Title: Re: Share This Topic
Post by: DrBermant on May 06, 2011, 09:24:06 PM
Thank you so much. I do not use the check all option, but I applied the manual first fix anyway. Site works fine. Should I test anything for you to see if it is working?


I did not apply second patch since I also do not put most recent post first and do not conceive of needing to to that.

As I was looking over the mod controls I wondered why I had disabled the Ask button. I now remember that it is not currently working. I get an error message that Server not found: Firefox can't find the server at mystuff.ask.com.

I unchecked that box. In looking at the current share this options for supported services, Ask is no longer listed. They currently have:

    aim
    bebo
    blinklist
    blogger
    businessweek
    care2
    current
    dealsplus
    delicious
    digg
    dilgo
    facebook
    fark
    faves
    fresqui
    friendfeed
    funp
    gbuzz
    google_bmarks
    kirsty
    linkedin
    meaneame
    messenger (Microsoft)
    mister_wong
    mixx
    myspace
    n4g
    newsvine
    oknotizie
    propeller
    reddit
    simpy
    slashdot
    sonico
    sphinn
    stumbleupon
    technorati
    twackle
    twine
    twitter
    windows_live
    xanga
    yahoo_bmarks
    ybuzz
    yigg

http://help.sharethis.com/customization/chicklets

Now I am NOT asking for any of these, just passing on my research and reporting a button not working that I can just as easily leave turned off. You can see my current selection on a post on the forum:

http://www.abodybeautiful.com/forum/index.php/topic,263.0.html

Sorry, I am not smart enough to know if the selection I have picked is good or otherwise. I use the twitter and facebook most often. It is neat watching what happens when tweeting a post with my twitter following of over 100K. With the search engine bot showing for adm, it is interesting to watch the bots from google etc take off after the post instantaneously.

Again, thank you for taking the time to maintain the mod and help me with the conflict fix.

Michael Bermant, M.D.
Title: Re: Share This Topic
Post by: mpglivecarlo on May 09, 2011, 05:00:06 AM
Hi,

thx for the mod just installed it no custom mod or anything.

When i use the like FB button, the post updates and adds my profile picture to the post, but in my FB wall there is no update, is this normal behavior of the mod?

using SMF 2 RC5 and mod version 2.8.1

thx.
Title: Re: Share This Topic
Post by: Suki on May 09, 2011, 12:32:44 PM
When you  "like"  a post,   and you do not leave a comment, then your post will not be showed in your wall,   you need to leave a comment in order to see the post in your wall.
Title: Re: Share This Topic
Post by: mpglivecarlo on May 09, 2011, 02:38:46 PM
Quote from: Miss All Sunday on May 09, 2011, 12:32:44 PM
When you  "like"  a post,   and you do not leave a comment, then your post will not be showed in your wall,   you need to leave a comment in order to see the post in your wall.

Hi thx for the answer, i am leaving a comment and still does not show :S
Title: Re: Share This Topic
Post by: Suki on May 10, 2011, 12:29:09 PM
does your topics are available to guest?  can you post a link to your forum?
Title: Re: Share This Topic
Post by: mpglivecarlo on May 22, 2011, 06:01:59 PM
Quote from: Miss All Sunday on May 10, 2011, 12:29:09 PM
does your topics are available to guest?  can you post a link to your forum?

Must have been something in the installation because i reinstalled it and now it works thx.
Title: Re: Share This Topic
Post by: RvG on May 23, 2011, 12:34:41 AM
Ms. MAS :)
thank you for your mod. However, I would like to ask why when I send a link to twitter still it shows as zero.
Title: Re: Share This Topic
Post by: Suki on May 23, 2011, 11:06:32 AM
Can you post a link to a topic where the tweet are suppose to appear?
Title: Re: Share This Topic
Post by: DrBermant on May 23, 2011, 11:53:39 AM
Quote from: Miss All Sunday on May 23, 2011, 11:06:32 AM
Can you post a link to a topic where the tweet are suppose to appear?

I have a feeling it is a function of twitter. I tweet every one of my forum posts. When I reviewed just one forum this morning in response to this question, I found the twitter counter over 1 for almost all of the posts. Example of one recent set of posts and tweet count working on a Gynecomastia Forum:

http://www.abodybeautiful.com/forum/index.php/board,25.0.html

Yet, the other day, all of the counts were at zero well after the initial tweets. I do know that right after the tweet, I do not remember ever seeing a count change directly. I have yet to document the time lag between tweet and the count showing.

As I went through post after post checking for tweet count, here is one example of one I know I never tweeted:

http://www.abodybeautiful.com/forum/index.php/topic,230.0.html

check its post count as of making this topic was 62 compared to the 100 - 400 views for the other posts.

http://www.abodybeautiful.com/forum/index.php/topic,337.0.html

was just posted this am and the tweet count of 1 is right 3 hours later with a view count of 136.

Here is a post I did tweet and no record of that tweet 6 weeks later:

http://www.abodybeautiful.com/forum/index.php/topic,230.0.html

I am almost certain that I tweeted it, the read count is right there with the other ones with one tweet. Some posts have been tweeted more than once, but not by me showing the code is up and working by others.

I have never done as thorough a look at the tweet numbers but casual reference in the past, I thought that number count was not a consistent thing. If one of these posts I have documented comes up with a zero tweet count in the future, I will screen capture the image and post it here. That will prove my theory about this being a twitter centric issue.

Anyway, your mod works great and thank you for all of the time you put in here to help others.

Michael Bermant, M.D.
Title: Re: Share This Topic
Post by: DrBermant on May 23, 2011, 12:17:03 PM
Quote from: Miss All Sunday on May 23, 2011, 11:06:32 AM
Can you post a link to a topic where the tweet are suppose to appear?

After posting I went back and looked at another forum on my site: Otoplasty Forum:
http://www.abodybeautiful.com/forum/index.php/board,1.0.html

and this brings up another variable I may have missed in my prior analysis. Date when tweeted. I tend to tweet a post shortly after writing it.

I am putting this up as a separate post to keep the links to each subforum separate to minimize confusion. This post will not include observations noted in the prior one.

Checking through the posts on this part of the site, most have a tweet count of 0 yet, they probably all were twitted just like the other forum. Post read counts confirm. Here are a few sample posts with a zero tweet count:

http://www.abodybeautiful.com/forum/index.php/topic,316.0.html
http://www.abodybeautiful.com/forum/index.php/topic,168.0.html
http://www.abodybeautiful.com/forum/index.php/topic,108.0.html

all were with zero in that field. I scanned through each post and there is no rhyme nor reason date wise if the count is recorded. I am not certain I can correlate by time of day. Yet other posts do have a tweet count of one or more.

Sorry if this is confusing, but this is just an observation and further evidence of the variable here: twitter, not the mod's code unless I am missing an update to the mod that fixed something with an older post reporting to twitter. The other forum section (gynecomastia) is with newer posts than the one for this section (otoplasty).

Michael Bermant, M.D.
Title: Re: Share This Topic
Post by: Suki on May 23, 2011, 01:40:24 PM
Yes, its difficult to determinate why exactly a tweet, digg or the buzz button doesn't count properly, there are several factors such as server issues or JavaScript issues,  this is beyond my range of support,  this mod only provides a way to show those buttons in a clean and efficient way but I have no control over the full process,  I can, however, pay attention to the updates and changes from those external sites and applied those changes to the mod to keep it updated.
Title: Re: Share This Topic
Post by: DrBermant on May 23, 2011, 02:19:42 PM
Quote from: Miss All Sunday on May 23, 2011, 01:40:24 PM
Yes, its difficult to determinate why exactly a tweet, digg or the buzz button doesn't count properly, there are several factors such as server issues or JavaScript issues,  this is beyond my range of support,  this mod only provides a way to show those buttons in a clean and efficient way but I have no control over the full process,  I can, however, pay attention to the updates and changes from those external sites and applied those changes to the mod to keep it updated.

Thank you for your answer and time.

Michael Bermant, M.D.
Title: Re: Share This Topic
Post by: protonxl on May 28, 2011, 01:56:23 PM
hey, id like to add too that even after i tweet it still shows up at 0 tweets.

from what i can tell the link of the website is using prettyurl which is .net/this-is-post-title while twitter shares .net/index.php?topic=####

for some reason it also posts whole link.. can it be shorturl?
Title: Re: Share This Topic
Post by: Suki on May 28, 2011, 05:42:10 PM
this mod is not compatible with pretty urls mod.

the tweet button replies on javascript and twitter servers to function properly, if one of those fails, its very likely your tweet butotn will not show the number of tweets.
Title: Re: Share This Topic
Post by: hotwheels on May 28, 2011, 10:46:00 PM
Okay, i have installed this mod and it won't share any attachments from posts.......here are the changes i tried to make in display.php

// define some parameters
$parameters = array(
'url' => $scripturl . '?topic=' . $topic . '.msg' . $message['ID_MSG'] . '#msg' . $message['ID_MSG'], $attachment['thumbnail']['href'],

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

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

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

    // Share this topic mod end

// Do the censor thang.
censorText($message['body']);
censorText($message['subject']);

// Run BBC interpreter on the message.
$message['body'] = parse_bbc($message['body'], $message['smileysEnabled'], $message['ID_MSG'], $attachment['ID_THUMB']);

// Compose the memory eat- I mean message array.
$output = array(
'attachment' => loadAttachmentContext($message['ID_MSG']),
'alternate' => $counter % 2,
'id' => $message['ID_MSG'],
'href' => $scripturl . '?topic=' . $topic . '.msg' . $message['ID_MSG'] . '#msg' . $message['ID_MSG'], $attachment['ID_THUMB'],
'link' => '<a href="' . $scripturl . '?topic=' . $topic . '.msg' . $message['ID_MSG'] . '#msg' . $message['ID_MSG'] . '">' . $message['subject'] . '</a>',
'member' => &$memberContext[$message['ID_MEMBER']],
'icon' => $message['icon'],
'icon_url' => $settings[$context['icon_sources'][$message['icon']]] . '/post/' . $message['icon'] . '.gif',
'subject' => $message['subject'],
'time' => timeformat($message['posterTime']),
'timestamp' => forum_time(true, $message['posterTime']),
'counter' => $counter,
'modified' => array(
'time' => timeformat($message['modifiedTime']),
'timestamp' => forum_time(true, $message['modifiedTime']),
'name' => $message['modifiedName']
),
'body' => $message['body'],
'new' => empty($message['isRead']),
'first_new' => isset($context['start_from']) && $context['start_from'] == $counter,
'can_modify' => (!$context['is_locked'] || allowedTo('moderate_board')) && (allowedTo('modify_any') || (allowedTo('modify_replies') && $context['user']['started']) || (allowedTo('modify_own') && $message['ID_MEMBER'] == $ID_MEMBER && (empty($modSettings['edit_disable_time']) || $message['posterTime'] + $modSettings['edit_disable_time'] * 60 > time()))),
'can_remove' => allowedTo('delete_any') || (allowedTo('delete_replies') && $context['user']['started']) || (allowedTo('delete_own') && $message['ID_MEMBER'] == $ID_MEMBER && (empty($modSettings['edit_disable_time']) || $message['posterTime'] + $modSettings['edit_disable_time'] * 60 > time())),
'can_see_ip' => allowedTo('moderate_forum') || ($message['ID_MEMBER'] == $ID_MEMBER && !empty($ID_MEMBER)),


);

if (empty($options['view_newest_first']))
$counter++;
else
$counter--;

return $output;
}


what am i missing here?
Title: Re: Share This Topic
Post by: hotwheels on May 29, 2011, 06:57:10 AM
Here is another set of coding i tried and still can't pull an attachment from my board:

// share this topic start

    // Lets check if there are some boards where the buttons will NOT be show
    if (!empty($modSettings['share_options_boards']))
{
$share_denied_boards = explode(",", preg_replace("/[^0-9,]/", "", $modSettings['share_options_boards']));
foreach ($share_denied_boards as $key => $value) if ($value == "") unset($share_denied_boards[$key]);
}
else $share_denied_boards[] = '';

// define some parameters
$parameters = array(
'url' => $scripturl . '?topic=' . $topic . '.msg' . $message['ID_MSG'] . '#msg' . $message['ID_MSG'], $attachment['thumbnail']['href'],

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

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

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

    // Share this topic mod end

// Do the censor thang.
censorText($message['body']);
censorText($message['subject']);

// Run BBC interpreter on the message.
$message['body'] = parse_bbc($message['body'], $message['smileysEnabled'], $message['ID_MSG'], $attachment['ID_THUMB']);

// Compose the memory eat- I mean message array.
$output = array(
'attachment' => loadAttachmentContext($message['ID_MSG'], $attachment['ID_ATTACH']),
'alternate' => $counter % 2,
'id' => $message['ID_MSG'], $attachment['ID_THUMB'],
'id' => $attachment['ID_THUMB'],
'href' => $scripturl . '?topic=' . $topic . '.msg' . $message['ID_MSG'] . '#msg' . $message['ID_MSG'], $attachment['ID_THUMB'],
'link' => '<a href="' . $scripturl . '?topic=' . $topic . '.msg' . $message['ID_MSG'] . '#msg' . $message['ID_MSG'] . '">' . $message['subject'] . '</a>',
'member' => &$memberContext[$message['ID_MEMBER']],
'icon' => $message['icon'],
'href' => $scripturl . '?action=dlattach;topic=' . $topic . '.0;attach=' . $attachment['ID_THUMB'] . ';image',
'link' => '<a href="' . $scripturl . '?action=dlattach;topic=' . $topic . '.0;attach=' . $attachment['ID_ATTACH'] . '">' . htmlspecialchars($attachment['filename']) . '</a>',
'icon_url' => $settings[$context['icon_sources'][$message['icon']]] . '/post/' . $message['icon'] . '.gif',
'subject' => $message['subject'],
'time' => timeformat($message['posterTime']),
'timestamp' => forum_time(true, $message['posterTime']),
'counter' => $counter,
'modified' => array(
'time' => timeformat($message['modifiedTime']),
'timestamp' => forum_time(true, $message['modifiedTime']),
'name' => $message['modifiedName']
),
'body' => $message['body'],
'new' => empty($message['isRead']),
'first_new' => isset($context['start_from']) && $context['start_from'] == $counter,
'can_modify' => (!$context['is_locked'] || allowedTo('moderate_board')) && (allowedTo('modify_any') || (allowedTo('modify_replies') && $context['user']['started']) || (allowedTo('modify_own') && $message['ID_MEMBER'] == $ID_MEMBER && (empty($modSettings['edit_disable_time']) || $message['posterTime'] + $modSettings['edit_disable_time'] * 60 > time()))),
'can_remove' => allowedTo('delete_any') || (allowedTo('delete_replies') && $context['user']['started']) || (allowedTo('delete_own') && $message['ID_MEMBER'] == $ID_MEMBER && (empty($modSettings['edit_disable_time']) || $message['posterTime'] + $modSettings['edit_disable_time'] * 60 > time())),
'can_see_ip' => allowedTo('moderate_forum') || ($message['ID_MEMBER'] == $ID_MEMBER && !empty($ID_MEMBER)),


);

if (empty($options['view_newest_first']))
$counter++;
else
$counter--;

return $output;
}
Title: Re: Share This Topic
Post by: Apllicmz on May 29, 2011, 11:10:50 AM
Good Mod
When Update dont forget to Update

Attach Portuguese Linguage
Title: Re: Share This Topic
Post by: Suki on May 29, 2011, 12:04:44 PM
@hotwheels   this mod does not share the attachments at all, it doesn't say anything regardinf attachments  in the mod 's description.

this mod can't share attachments, this mod is using the iframe version of the like button, this means there's no parameter for the image to show,  once you "liked"  a topic, facebook will scan the page and show to the user several images and its up to the user if (s)he want to display an image or not.


@Joomlamz   thank you, I will update the mod shortly.
Title: Re: Share This Topic
Post by: hotwheels on May 29, 2011, 09:24:11 PM
I fully understand the description.....I have just been looking at the code and noticed if a user places a picture from a link via (//), it will show up as a choice to like. It would seem to me that there should be a parameter available to grab an actual attachment since it is basically the same thing as an image, but instead of an offsite link, it should be able to grab the id of the attachment onsite............

basically you have been the only one willing to even look at the code so i am just sharing my thoughts and steps. I will get it figured out eventually, i had to do the same thing with my vbulletin site...which has a share this mod, which pulls attachments....I am just comparing codes and they are quite a bit different.....

Thanks for your replies.....i do appreciate them.

doug
Title: Re: Share This Topic
Post by: venex on June 01, 2011, 10:25:27 PM
Hello!! Hopefully I'm not too late to ask a new feature for next update!

Google came up with what they called "+1". I would like to have the opportunity to add that to my page. You can check out the Google +1 on this page: http://www.google.com/+1/button/

=D
Title: Re: Share This Topic
Post by: Suki on June 02, 2011, 01:36:23 PM
sure, let me see how that thing works :P    is it gonna replace the google buzz button or is it a complte different one?

since quite a lot of time I has thinking in deleting the buzz button from this mod, from all the 4 (facebook, digg, twitter and buzz)  buzz seems to be the less popular one :P
Title: Re: Share This Topic
Post by: briggz5d on June 03, 2011, 10:13:41 AM
i simply wanted a facebook and twitter share button for all topics. since the ADDTHIS mod doesnt work on smf 2.0 i decided to try this one.. i can currently BOAST of over 5000 error logs all related to SHARETHISa and saying something about "newest first" a simple edit should be shown to warn users that they need to manually edit .. not everyone has the luxury to detect errors and come report them and use the solutions u provide here.

Anyways.. mod uninstalled untill further notice..
Manual edits to files Ended the life of my 1.1.13 use.. i wont make the same mistake manually editing every mod on this smf 2.0
Title: Re: Share This Topic
Post by: DrBermant on June 03, 2011, 12:52:57 PM
Quote from: Miss All Sunday on June 02, 2011, 01:36:23 PM
sure, let me see how that thing works :P    is it gonna replace the google buzz button or is it a complte different one?

since quite a lot of time I has thinking in deleting the buzz button from this mod, from all the 4 (facebook, digg, twitter and buzz)  buzz seems to be the less popular one :P

I like the Twitter the most, next is facebook like, then Digg. I do not use the buzz. I occasionally use some of the lower buttons and it would be interesting to learn which of them have proven useful to others or not working like I reported one in a prior post.

I am not sure about the value of the google plus tool but have seen some write ups saying it was important to have it on your site. However, how valid were these comments? Not able to assess with any certainty.

Thank you for your work on this mod.

Michael Bermant, M.D.
Title: Re: Share This Topic
Post by: mastro on June 05, 2011, 01:36:13 PM
Hi there.
I tried to move the buttons to the moderatorbar but with no luck.
Changed my display.template.php to this <div class="smalltext reportlinks">',$mirahalo,'';
And then changed my display.php to this:

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 && $options['view_newest_first'] == 0 &&  !in_array($board_info['id'], $share_denied_boards))
$message['body'] = ($suki.$message['body']);

// special case for when the "recent first" option is enable
if (empty($modSettings['share_all_messages']) && $counter == 1 && $options['view_newest_first'] == 1 && !in_array($board_info['id'], $share_denied_boards))
$message['body'] = ($suki.$message['body']);


I didn't see any change...What am I doing wrong??
I don't care that the buttons are inside the moderatorbar, I just want to be anywhere below the post.
Title: Re: Share This Topic
Post by: Suki on June 05, 2011, 05:42:16 PM
soki2ng   if you do not give enough info about your issue I can't help....  complain isnt gonna solve your problem....


what language are you using?   what are the errors on your error log?

did you use a custom theme?


@DrBermant   I did check the icons when I released the 2.0 version I believe, an that time I removed several bookmark sites that were no longer on line, maybe its time to do that again.


@mastro   atach both your Sources/Display.php and your theme's Display.template.php
Title: Re: Share This Topic
Post by: DrBermant on June 05, 2011, 06:10:53 PM
Quote from: Miss All Sunday on June 05, 2011, 05:42:16 PM
@DrBermant   I did check the icons when I released the 2.0 version I believe, an that time I removed several bookmark sites that were no longer on line, maybe its time to do that again.

You do so much good work that should not be needed. I was hoping others using the mod would help. For me it was easy, try them and if it did not work just turn it off. But that is no help to others, which is what I was trying to stimulate here.

I really do not know enough about the value of Google +1 though, and was also hoping to see more discussion about that module. Sorry, but I have not tried to test the other buttons. I should do it for the work you have done. Just have to find the time.

I was just admiring how nice your Facebook like button works on the post. Here is another mind bender that I do not expect an answer, just a tease about possibilities. I do not know enough about the coding issues to even know if it is possible or just leave it alone:

Here is that post that I just liked and tweeted once:

http://www.abodybeautiful.com/forum/index.php/topic,367.msg445.html

Just checked it again and tweets up to 3.

Now, look at a node level such as:

http://www.abodybeautiful.com/forum/index.php/board,25.0.html

which is the gynecomastia section of the forum. No like buttons, no twitter or other buttons. My guess is that if messing with templates for larger issues there may be conflicts. Perhaps it is a bad idea to tweet or like such a ULR, but entry points to the forum or sub forums might warrant consideration for that option. If such a feature were to be added in the future, my suggestion would be to make it something the user could turn off or on. I would also be satisfied to learn that liking tweeting or whatever social network promoting of that type of node is not a good idea.

Anyway, thank you for answering. Your help is always appreciated.

Michael Bermant, M.D.
Title: Re: Share This Topic
Post by: Suki on June 05, 2011, 11:01:26 PM
DrBermant   this mod only works on a per topic and a per message level, it does not work on a board level, thats why you do not see any facebook like button or other button on the topic's list.
Title: Re: Share This Topic
Post by: DrBermant on June 06, 2011, 12:08:26 AM
Quote from: Miss All Sunday on June 05, 2011, 11:01:26 PM
DrBermant   this mod only works on a per topic and a per message level, it does not work on a board level, thats why you do not see any facebook like button or other button on the topic's list.

Thank you
Title: Re: Share This Topic
Post by: mastro on June 06, 2011, 05:17:51 PM
Quote from: Miss All Sunday on June 05, 2011, 05:42:16 PM
@mastro   atach both your Sources/Display.php and your theme's Display.template.php
Of course!! Also, my beautiful forum is www.hdforum.gr !!!!

Title: Re: Share This Topic [SMFBlog]
Post by: go- on June 06, 2011, 07:45:18 PM
Hello,
is it possible to activate this mod for the normal SMFBlog Mod (http://custom.simplemachines.org/mods/index.php?mod=793)?

The Mod displays the first post of every new topic in a previously "use as blog" marked board.
So "Share This Topic" would be very fitting in there.
Title: Re: Share This Topic
Post by: Suki on June 06, 2011, 08:54:19 PM
@mastro   do you only want to show the buttons and not the icons?

do you use the buttons on every message or just the first one?


@go-   there's a simple way to add the buttons and the icons on your mod, the only thing you need to have its a valid url to share, what SMF are you using?

if you are using 2.o you just need to ad this at your template:

// define some parameters
      $parameters = array(
         'url' => 'url to share',   
      );   
         
      // :)
        $suki =  share_this($parameters);
        $mirahalo = share_icons($parameters);


and thats all,    $suki holds the buttons meanwhile $mirahalo holds the icons, you cna put those variables whereever you want on your template.  for 1.1.x its pretty much the same, you just need to call the ShareThis.php file  with:

global $sourcedir;
require_once($sourcedir . '/ShareThis.php');


at the beginning of your template file.
Title: Re: Share This Topic
Post by: go- on June 06, 2011, 09:03:18 PM
Quote from: Miss All Sunday on June 06, 2011, 08:54:19 PM
@go-   there's a simple way to add the buttons and the icons on your mod, the only thing you need to have its a valid url to share, what SMF are you using?

if you are using 2.o you just need to ad this at your template:

// define some parameters
      $parameters = array(
         'url' => 'url to share',   
      );   
         
      // :)
        $suki =  share_this($parameters);
        $mirahalo = share_icons($parameters);


and thats all,    $suki holds the buttons meanwhile $mirahalo holds the icons, you cna put those variables whereever you want on your template.  for 1.1.x its pretty much the same, you just need to call the ShareThis.php file  with:

global $sourcedir;
require_once($sourcedir . '/ShareThis.php');


at the beginning of your template file.

Thanks for your reply.

I'm using SMF 1.1.13

here's the code of the Blog.template.php
Maybe you can tell me where to put the code above so it will appear the way it is ususal in topics.
<?php
// Version: 0.1 Beta; Blog

// Stuff displayed on top of the blog...
function template_blog_above()
{
echo '
<div style="padding: 3px;">'
theme_linktree(), '</div>';
}

// ... and stuff displayed below it.
function template_blog_below()
{
global $context;

// Please do not remove the copyright. If you really must, please contact me
// (Daniel15) so we can arrange something. Removing the copyright without
// permission is illegal!
echo '
<div style="text-align: center" class="smalltext">
Powered by <a href="http://www.dansoftaustralia.net/products/smf-mods/blog.htm" title="A (very) simple blogging system for SMF">SMFBlog</a> '
$context['blog_version']['version'], ' (build '$context['blog_version']['build'], ') by <a href="http://www.dansoftaustralia.net/">DanSoft Australia</a>.
</div>'
;
}

// The blog index.
function template_index()
{
global $context$scripturl$txt;

echo '
<table width="100%" cellpadding="5" cellspacing="0" border="0" class="tborder" style="margin-top: 1.5ex;">
<tr><td class="titlebg">'
$txt['blog'], ' - '$txt['blog_blogs'], '</td></tr>
<tr valign="top" class="windowbg2">
<td style="padding-bottom: 2ex;">'
;

// Loop through all blog boards.
foreach ($context['blog_boards'] as $board)
echo '
<div class="blog_listing">
<a class="blog_link" href="'
$scripturl'?action=blog;sa=view_blog;name='$board['alias'], '">'$board['name'], '</a>
<blockquote class="blog_desc">'
$board['description'], '</blockquote>
</div>'
;

echo '
</td>
</tr>
</table>'
;
}

// Viewing a blog itself.
function template_view()
{
global $context$modSettings$scripturl$txt;
echo '
<h2>'
$context['blog']['name'], '</h2>
'
$context['blog']['pageindex'];

$alternating 1;
// Loop through each post.
foreach ($context['blog']['posts'] as $post)
{
// Output this post.
echo '
<div class="windowbg2 blog_post blog_post_'
$alternating'">
<a class="blog_post_heading" href="'
$scripturl'?action=blog;sa=view_post;id='$post['id'], (!empty($modSettings['blog_enable_rewrite']) ? ';blog_name=' $context['blog']['alias'] : ''), '">'$post['icon'], ' '$post['subject'], '</a>
<div class="smaller">'
$post['time'], ' '$txt[525], ' '$post['poster']['link'], '</div>

<div class="blog_post_body" style="padding: 2ex 0;">'
$post['body'], '</div>
</div>'
;

$alternating = ($alternating == 1) ? 1;
}

// Page numbers at the bottom
echo '
'
$context['blog']['pageindex'];

}

// Viewing a blog post.
function template_view_post()
{
global $context$scripturl$txt;

echo '
<h2 class="blog_heading">'
$context['blog_post']['subject'], '</h2>';

// Output the blog post itself.
echo '
<div class="windowbg2 blog_post">
<div class="blog_post_heading">'
$context['blog_post']['icon'], ' '$context['blog_post']['subject'], '</div>
<div class="smaller">'
$context['blog_post']['time'], ' '$txt[525], ' '$context['blog_post']['poster']['link'], '</div>

<div class="blog_post_body">'
$context['blog_post']['body'], '</div><br /><br />
</div>

<h2 class="blog_heading">'
$txt['blog_write_comment'], ':</h2>';
// Not logged in? No commenting for you!
// !!! Check the permissions!!
if (!$context['user']['is_logged'])
echo '
'
,$txt['blog_error_login'];
else
echo '
<form action="'
$scripturl'?action=post2" method="post" accept-charset="'$context['character_set'], '" name="postmodify" id="postmodify" onsubmit="submitonce(this);">
<input type="hidden" name="topic" value="' 
$context['blog_post']['id'] . '" />
<input type="hidden" name="sc" value="'
$context['session_id'], '" />
<input type="hidden" name="seqnum" value="'
$context['form_sequence_number'], '" />
<input type="hidden" name="blog_post" value="'
$context['blog_post']['id'], '" />', (!empty($context['blog_name']) ? '
<input type="hidden" name="blog_name" value="' 
htmlentities($context['blog_name']) . '" />' ''), '

<table border="0" width="100%" align="center" cellspacing="1" cellpadding="3"> <!--class="bordercolor"-->
<tr>
<td align="right" style="font-weight: bold;" id="caption_subject">
'
$txt[70], ':
</td>
<td>
<input type="text" name="subject" value="Re: '
$context['blog_post']['subject'], '" tabindex="'$context['tabindex']++, '" size="80" maxlength="80" />
</td>
</tr>
'
theme_postbox(''), '
<tr>
<td align="center" colspan="2">
<span class="smalltext"><br />'
$txt['smf16'], '</span><br />
<input type="submit" name="post" value="'
$txt[10], '" tabindex="'$context['tabindex']++, '" onclick="return submitThisOnce(this);" accesskey="s" />
<input type="submit" name="preview" value="'
$txt[507], '" tabindex="'$context['tabindex']++, '" onclick="return event.ctrlKey || previewPost();" accesskey="p" />
</td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
</table>
</form>'
;

echo '
<a name="comments"></a>
<h2 class="blog_heading">'
$txt['blog_comments'], ':</h2>';

// No replies? Too bad! :P.
if ($context['blog_post']['reply_count'] == 0)
echo '
'
$txt['blog_no_comments'];
else
{
// Page numbers, please!
echo '
'
$context['blog_post']['pageindex'];

// Now, go through all replies...
foreach ($context['blog_post']['replies'] as $post)
{
echo '
<a name="msg'
$post['id'], '"></a>', ($post['is_last'] ? '<a name="new"></a>' ''), '
<div id="msg'
$post['id'], '" class="windowbg2 blog_reply">
<div class="blog_reply_heading">'
$post['icon'], ' '$post['subject'], ' ('$txt['ssiTopic_reply'], ' '$post['number'], ') </div>
<div class="smaller">'
$post['time'], ' '$txt[525], ' '$post['poster']['link'], '</div>

<div class="blog_reply_body">'
$post['body'], '</div>
</div>'
;
}

// Again, some page numbers on the bottom this time!
echo '
'
$context['blog_post']['pageindex'];
}
}
?>



Thanks.
Title: Re: Share This Topic
Post by: Suki on June 06, 2011, 09:13:58 PM
OK, I couldn't find any url parameter on that template, this mod needs to have an url parameter in order to work properly.
Title: Re: Share This Topic
Post by: go- on June 06, 2011, 09:26:05 PM
Quote from: Miss All Sunday on June 06, 2011, 09:13:58 PM
OK, I couldn't find any url parameter on that template, this mod needs to have an url parameter in order to work properly.

Thank you very much.

So is there anything I can do about this?


It's currently 3.30AM here, so I will read your reply tomorrow.
Title: Re: Share This Topic
Post by: Suki on June 06, 2011, 09:31:51 PM
you can ask the mod author if there is a variable that holds the url for the blog.
Title: Re: Share This Topic
Post by: mastro on June 07, 2011, 02:36:13 AM
Quote from: Miss All Sunday on June 06, 2011, 08:54:19 PM
@mastro   do you only want to show the buttons and not the icons?

do you use the buttons on every message or just the first one?

I use them on every message!!
Title: Re: Share This Topic
Post by: Suki on June 07, 2011, 10:35:52 AM
@mastro     do you want to show just the buttons?    otherwise it will be to tight to have both the buttons and the icons on that little space.
Title: Re: Share This Topic
Post by: mastro on June 07, 2011, 12:52:36 PM
Quote from: Miss All Sunday on June 07, 2011, 10:35:52 AM
@mastro     do you want to show just the buttons?    otherwise it will be to tight to have both the buttons and the icons on that little space.

Anything that is easier for you to tell me.
If it's easy to explain both situations it would be even better.

I would be also pleased if there was a way to just put them anywhere below the post. I just don't like them above..that's all.
Title: Re: Share This Topic
Post by: Suki on June 07, 2011, 01:42:39 PM
yes, but you haven't asnwer my question,  there are two  separate things, one is the "buttons"  which includes the facebook like, the digg, buzz and twitter buttons.


the other part is the "icons"  which includes all the little 16 x 16 images linked to several social bookmarking sites.

I guess you are talking about the Buttons and that you do not use the icons, if thats the case and you only want to show the buttons below the message, then on your Sources/Display.php find:


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




and replace with:


if (!empty($modSettings['share_all_messages']) &&  !in_array($board_info['id'], $share_denied_boards))
$message['body'] = ($message['body'].$mirahalo.$suki);
Title: Re: Share This Topic
Post by: mastro on June 07, 2011, 02:13:29 PM
Quote from: Miss All Sunday on June 07, 2011, 01:42:39 PM
yes, but you haven't asnwer my question,  there are two  separate things, one is the "buttons"  which includes the facebook like, the digg, buzz and twitter buttons.


the other part is the "icons"  which includes all the little 16 x 16 images linked to several social bookmarking sites.

I guess you are talking about the Buttons and that you do not use the icons, if thats the case and you only want to show the buttons below the message, then on your Sources/Display.php find:


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




and replace with:


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


I only use the buttons. That didn't work. Anyway ....Many thanks!!
Title: Re: Share This Topic
Post by: Suki on June 07, 2011, 02:18:01 PM
link to your forum?
Title: Re: Share This Topic
Post by: mastro on June 07, 2011, 02:23:38 PM
Quote from: Miss All Sunday on June 07, 2011, 02:18:01 PM
link to your forum?

It's www.hdforum.gr but don't worry. I realized that this module is about liking a topic. I wanted someone that could like each post individually.
Title: Re: Share This Topic
Post by: Suki on June 07, 2011, 02:32:31 PM
you can like each post individually....   if you select to show the buttons on every message the like button for every message will like individually each message as every message has its own individual url to share.

this is the only mod that has that feature... all other mods are made based on topics only.
Title: Re: Share This Topic
Post by: mastro on June 07, 2011, 02:48:07 PM
Quote from: Miss All Sunday on June 07, 2011, 02:32:31 PM
you can like each post individually....   if you select to show the buttons on every message the like button for every message will like individually each message as every message has its own individual url to share.

this is the only mod that has that feature... all other mods are made based on topics only.

I know that but something had stuck and it showed me that I liked every post if I clicked on the first one. Seems that works now...So...the buttons after the post? I think that this should be an option on the configuration menu.
Title: Re: Share This Topic
Post by: mastro on June 08, 2011, 02:40:16 PM
ahahah I made it!! 8)
This is the code if someone is interested
// Show "� Last Edit: Time by Person �" if this post was edited.
if ($settings['show_modify'] && !empty($message['modified']['name']))
$parameters = array(
'url' => $scripturl . '?topic=' . $topic . '.msg' . $message['id_msg'] . '#msg' . $message['id_msg'],
);

// :)
  $suki =  share_this($parameters);
echo '
&#171; <em>', $txt['last_edit'], ': ', $message['modified']['time'], ' ', $txt['by'], ' ', $message['modified']['name'], '</em> &#187;';

echo '
</div>
<div class="smalltext reportlinks">',$suki,'';


This puts the buttons inside above the report this moderator bar...Then you can style the share this div so it fits your needs\
Unfortunately when I press the like button returnes an error that it doesn't get the address....so don't do that.
I finally decided to just put it below the post with this:
if (!empty($modSettings['share_all_messages']) &&  !in_array($board_info['id'], $share_denied_boards))
$message['body'] = ($message['body'].$mirahalo.$suki);



With a little styling you can make it look like this
Title: Re: Share This Topic
Post by: Ascot on June 10, 2011, 02:20:51 PM
is it possible to change font color to the annouce "Be the first of your friends on like this" next to Like button?
Because my forum background is black and you can't see this line.
Thanks in advance.
Title: Re: Share This Topic
Post by: Suki on June 11, 2011, 09:16:03 AM
Yes, on your Sources/ShareThis.php file find:

colorscheme=light

and change with

colorscheme=dark


light, dark and "evil"  are the only choices you can make to change the colors for the button, facebook, do not let your specify your own.
Title: Re: Share This Topic
Post by: Suki on June 12, 2011, 07:17:52 PM
I remember someone posting on this regarding the update and how this mod actually appear even if the mod is not installed anymore after an upgrade, maybe the person deleted the message, I dunno, I saw it on the morning and I couldn't reply.


The answer is simply, this mod, uses the SMF hooks, when you perform the upgrade, this mod will nor be deleted,    it will still be fullt funtional, if you do not want to keep this mod, yu just need to install it  and then uninstalled,  this will completly erease this mod from your forum.
Title: Re: Share This Topic
Post by: eric1234 on June 13, 2011, 11:52:35 AM
Is this mods compatible to 2.0 gold version?
Title: Re: Share This Topic
Post by: Suki on June 13, 2011, 12:27:31 PM
yes, the only thing youneed to do is emulate version 2.0  on install.   I will release a proper version when I have some time to include the translations, review the icons and add the google +1 button.
Title: Re: Share This Topic
Post by: eric1234 on June 13, 2011, 01:05:50 PM
I see. Hopefully, you will got some time soon to release a proper version ^^ I am waiting for you to release a proper version before i use it. ^^ Thank you and appreciated ! :)
Title: Re: Share This Topic
Post by: snooks on June 13, 2011, 01:17:51 PM
Miss all Sunday if i have just noticed this is no longer working on my site although its installed and enabled could you give me some advice please

I presume all the mods that are like yours in this image are not working too so if you can help me with the share topic i think the answer will apply to my others too

http://imageshack.us/photo/my-images/809/334yb.jpg/

Can you see i dont have a [uninstall] option like the others i have tried deleting it and re-download and install again but it just looks the same and it doesnt work in the forums although its enabled

any advice please
Thanks
Title: Re: Share This Topic
Post by: Suki on June 13, 2011, 01:25:35 PM
thats because you upgrade it to a SMF version this mod does not support.    this mod officially only supports RC4 and RC5 so far.

did you perform an upgrade?     


this mod uses the hooks and some file edits, if you upgrade to SMF 2.0  then all the hook parts are continue to operate, but the file edits doesn't.



you can use the emulate option at the end of the list,  (click on advanced link)   change SMF 2.0 to  SMF 2.0RC5  and you will see the install/uninstall link
Title: Re: Share This Topic
Post by: snooks on June 13, 2011, 01:28:57 PM
Quote from: Miss All Sunday on June 13, 2011, 01:25:35 PM
thats because you upgrade it to a SMF version this mod does not support.    this mod officially only supports RC4 and RC5 so far.

did you perform an upgrade?     


this mod uses the hooks and some file edits, if you upgrade to SMF 2.0  then all the hook parts are continue to operate, but the file edits doesn't.



you can use the emulate option at the end of the list,  (click on advanced link)   change SMF 2.0 to  SMF 2.0RC5  and you will see the install/uninstall link

Many thanks miss  ;D
Title: Re: Share This Topic
Post by: DrBermant on June 14, 2011, 08:00:29 AM
New mod just added Google Plus One.

http://custom.simplemachines.org/mods/index.php?mod=3053

Here is example of it working with Share This Topic on a Gynecomastia Forum

http://www.abodybeautiful.com/forum/index.php/topic,379.0.html

It adds to the first post only. I could not find any adm options for that mod. Here is an example to a multiple answer post:

http://www.abodybeautiful.com/forum/index.php/topic,263.0.html

The plus 1 count added right when pressed button and signed into my google account to confirm the plus one.

I post this just to see something you are working on, not as criticism nor complaint. If it helps fine, if not, sorry.

The install did not require any special patches to not have conflict with the spam prevention mod. This was tested on a RC5 site.

I would rather have all in one mod. If the new version mod did not require patches to avoid conflicts, that would be especially awesome. Here is the link to the conflict patch you so nicely helped with in the past.

Thank you for all of you hard work and efforts.

Hope this helps,

Michael Bermant, M.D.
Title: Re: Share This Topic
Post by: DarioRed on June 15, 2011, 09:45:53 AM
Quote from: Miss All Sunday on September 06, 2009, 05:09:23 AM
Share this Topic

Link to mod  (http://custom.simplemachines.org/mods/index.php?mod=2111) | Comments on this Mod (http://www.simplemachines.org/community/index.php?topic=334955.0)


Hi! When we can expect SMF 2.0 Gold compatible version and do you plan to add google +1? and when?

Thanks, great mod!
Title: Re: Share This Topic
Post by: Suki on June 15, 2011, 08:15:41 PM
Quote from: Miss All Sunday on June 13, 2011, 12:27:31 PM
yes, the only thing youneed to do is emulate version 2.0  on install.   I will release a proper version when I have some time to include the translations, review the icons and add the google +1 button.


my SMF time this week is limited and I make support request a priority,  perhaps next week I will have mose time.
Title: Re: Share This Topic
Post by: drotha2 on June 22, 2011, 11:41:14 AM
Hello,
I do not work on SMF 2.0 gold, so try it in RC5, was installed without problems but does not leave any buttons.

Update to version 2.0 will work in gold or show me how to install it??
Sorry my bad English!

Thank you very much.
Title: Re: Share This Topic
Post by: Suki on June 22, 2011, 11:43:32 AM
please explain "but does not leave any buttons"

do you have any errors on install? 
do you use another language besides English on your forum?
did you activate the buttons and icons on the mod's settings page?
Title: Re: Share This Topic
Post by: Suki on June 23, 2011, 12:22:36 PM
Ok, for those who are waiting for an update, I got two news.


first one, I finished all the improvements I had planned such as revamp the settings panel, added the +1 button, removed the nonworking icons, etc.

the second one is that I cannot create a facebook app to redesign the facebook like button and use the JavaScript SDK, suddenly facebook wants my credit card or my cellphone number...  to be able to create a new app...  I gave up and finally put my phone number on it...  its been 5 days and I am still waiting for the activation code :(


The reason I want to rebuild the facebook like buttons is because the current (iframe) one doesn't have that many features and it seems that facebook doesn't care about the iframe version anymore,  since it does not recognize its own settings like the Color Scheme, Width and Layout Style...


I'm also considering dropping support for the 1.1.x versions,  as I want this mod to fully uses the SMF hooks and avoid template edits as much as possible.
Title: Re: Share This Topic
Post by: hellbent64 on June 23, 2011, 09:13:18 PM
i am getting an error after i upgraded to 1.1.14
"8: Undefined index: view_newest_first
File: D:\Hosting\4508226\html\APforums\Sources\Display.php
Line: 1008"

it seems to point to this mod.  any possible fix or should i just uninstall the mod?
Title: Re: Share This Topic
Post by: Suki on June 23, 2011, 09:39:23 PM
this mod does not have a string with that name, but attach your \Sources\Display.php file here.
Title: Re: Share This Topic
Post by: Staind on June 25, 2011, 03:05:31 AM
i downloaded the mod and emulated it to be compatible with smf 2.0.
however it wasnt what i was expecting,i some forums i see SHARE ME just beneath the last post with big icons and in some is sideways...
:-\
mine appears just beneath the posts
Title: Re: Share This Topic
Post by: Suki on June 25, 2011, 08:16:19 AM
this mod does not do what you want,  please see the screen shots in the mod's page  to see how this mod looks like when installed:

http://custom.simplemachines.org/mods/index.php?mod=2111
Title: Re: Share This Topic
Post by: Staind on June 25, 2011, 08:57:54 AM
yeah, i saw that...
However do you know the mod used in that picture?
Title: Re: Share This Topic
Post by: snooks on June 25, 2011, 02:55:45 PM
Any news on the update miss please and if i may ask is it possible to add a bold "Share this topic" above the icons ? so people with not much know how understands why they are there ? just a question

thank you
Title: Re: Share This Topic
Post by: Suki on June 25, 2011, 03:17:09 PM
@Staind  No, I don't know that mod.

@snooks for news on update please see:

http://www.simplemachines.org/community/index.php?topic=334955.msg3085940#msg3085940

to show a text right above the icons try this, on your Sources/ShareThis.php  find:


      // show the icons
      if(!empty($modSettings['share_icons_enable']))
         return '<p class="share_icons">'. $social_icons. '</p>';


and replace with:


      // show the icons
      if(!empty($modSettings['share_icons_enable']))
         return '<p class="share_icons"><span style="font-weight:bold;">"Share this topic"</span><br />'. $social_icons. '</p>';
Title: Re: Share This Topic
Post by: snooks on June 25, 2011, 03:24:46 PM
Quote from: Miss All Sunday on June 25, 2011, 03:17:09 PM

@snooks for news on update please see:

http://www.simplemachines.org/community/index.php?topic=334955.msg3085940#msg3085940

to show a text right above the icons try this, on your Sources/ShareThis.php  find:


      // show the icons
      if(!empty($modSettings['share_icons_enable']))
         return '<p class="share_icons">'. $social_icons. '</p>';


and replace with:


      // show the icons
      if(!empty($modSettings['share_icons_enable']))
         return '<p class="share_icons"><span style="font-weight:bold;">"Share this topic"</span><br />'. $social_icons. '</p>';

Yes thats working but its a little close to the actual text in the post, is there away to either drop it down a touch or even add a ________ to separate it

Sorry for all this miss and yes i was referring to your update post if there was any news on that :)

thnx again miss
Title: Re: Share This Topic
Post by: Suki on June 25, 2011, 06:38:00 PM
the icons have its own class:  share_icons  which is on Sources/ShareThis.php  at the end:

.share_icons img{
padding-left:2px;
overflow:auto;
}

you can add your own css there to make the icons separate from the text, something like this:

.share_icons {

margin: 10px 0 0 0;

}
Title: Re: Share This Topic
Post by: snooks on June 26, 2011, 03:32:20 AM
before i attempt this let me make sure we are talking about the same thing, the "share me" extra you gave me is perfect next to the icons but what i mean now is the actual contents of a post is very close to the "share me" and icons

this is what its like now http://imageshack.us/photo/my-images/215/unledfnk.jpg/

would be nice if possible to either make spaces or a ___ http://imageshack.us/photo/my-images/543/unledwx.jpg/

If what you have posted is doing just that then great i shall have a go :)

Thanks for your time
Title: Re: Share This Topic
Post by: Suki on June 26, 2011, 08:46:25 AM
Yes it is exactly the same :)   th sahre_icons will have a margin top of 10px  that is, the "share" along with the icons will have a separation of 10px form the post' content.
Title: Re: Share This Topic
Post by: snooks on June 26, 2011, 10:17:23 AM
Quote from: Miss All Sunday on June 26, 2011, 08:46:25 AM
Yes it is exactly the same :)   th sahre_icons will have a margin top of 10px  that is, the "share" along with the icons will have a separation of 10px form the post' content.

Sorry think i am confused here, i added the margin: 10px 0 0 0; and what this did was a margin between "Share me" and the icons that's not what i am wanting or trying to explain miss

See this image i have drawn a line to where i want the margin to be placed http://imageshack.us/photo/my-images/543/unledwx.jpg/ using the code above places the margin between "share me" and icons
By using the above code the text of a posters post is still the same distance between the share me txt and icons

Sorry if my explanation is not formal enough
thank you
Title: Re: Share This Topic
Post by: Suki on June 26, 2011, 12:20:21 PM
I will test it further on local later this day,  I did understood what you were saying and I thought this edit will suffice that request.
Title: Re: Share This Topic
Post by: divecall on June 27, 2011, 06:59:36 PM
after the installation, ihave a full error log with:

undefined index: view_newest_first

in .../sources/display.php

line 1370

can somebody help, please?

Thank you in advance!
Title: Re: Share This Topic
Post by: Suki on June 27, 2011, 07:06:17 PM
in your Sources/Display.php find:


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

// special case for when the "recent first" option is enable
if (empty($modSettings['share_all_messages']) && $counter == 1 && $options['view_newest_first'] == 1 && !in_array($board_info['id'], $share_denied_boards))
$message['body'] = ($suki.$message['body'].$mirahalo);



and replace with:


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

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

// special case for when the "recent first" option is enable
if (empty($modSettings['share_all_messages']) && $counter == 1 && !empty($options['view_newest_first']) && !in_array($board_info['id'], $share_denied_boards))
$message['body'] = ($message['body'].$mirahalo.$suki);

Title: Re: Share This Topic
Post by: hellbent64 on June 28, 2011, 01:16:56 PM
hi, was your last post in response to the view_newest_first error?
i made the changed and now get this error when trying to access my website.
Fatal error: Maximum execution time of 30 seconds exceeded in D:\Hosting\4508226\html\APforums\Sources\Subs.php on line 321
Title: Re: Share This Topic
Post by: Suki on June 28, 2011, 01:39:01 PM
What version of SMF are you using?

what other mods do you had installed?

attach you \Sources\Subs.php file here.
Title: Re: Share This Topic
Post by: divecall on June 28, 2011, 08:11:33 PM
Thank you, Miss All Sunday, this problem was fixing.

ありがとう

But i have another issue:
8: Undefined index: share_boardnews_block
File: .../Sources/PortalBlocks.php
Line: 1506

(RC5 with SP 2.3.3)

Maybe you can fix this, too?  ;)

Thank you in advance.
Title: Re: Share This Topic
Post by: Suki on June 28, 2011, 08:32:52 PM
Please attach that file here.


Title: Re: Share This Topic
Post by: divecall on June 28, 2011, 08:42:28 PM
OK, here it is...
Title: Re: Share This Topic
Post by: Suki on June 28, 2011, 08:48:19 PM
do you use the icons and buttons on your simple portal board news block?  did you have that option checked?

try this one
Title: Re: Share This Topic
Post by: Suki on June 28, 2011, 09:56:41 PM
OK, this mod is now updated, ehres the change log:

3.0
-Added support for SMF 2.0 only
-Added support for the google +1 button
-Fixed the "check all boxes" check on icons
-Revamp of the admin section.
-Revamp the language strings
-Fixed the "undefined index: view_newest_first"  error.
-Added JavaScript to show/hide the buttons/icons
-Dropped support for Simple Portal blocks
-Dropped support for 1.1.x


it will be great if I can have some input about the new location of the buttons,   consider this version as a beta as I just couldn't think of a better position for the buttons,  keep in mind that not doing template edits  reduce drastically the spaces fro the buttons to appear but you gain a better install and compatibility with any theme.
Title: Re: Share This Topic
Post by: DrBermant on June 29, 2011, 12:41:11 AM
Thank you for the update.

I removed the share this after reversing the patch and uninstalling old mod in emulation mode. This was no problem. I then installed the new mod just fine. There is still the same conflict in mods. Is the patch you defined before still available for fixing this conflict?  Here are the links here for your work before.
Quote
http://www.simplemachines.org/community/index.php?topic=334955.msg2988094#msg2988094

modified both
Sources/Display.php

Display.template.php


http://www.simplemachines.org/community/index.php?topic=334955.msg2988163#msg2988163


http://www.simplemachines.org/community/index.php?topic=334955.msg3037531#msg3037531

Text in administrator panel for google plus 1 does not show up. It works when unlabeled box is checked. Alignment of plus 1 button looks off, top of button higher than others.

Your help has been wonderful.

Michael Bermant, M.D.
Title: Re: Share This Topic
Post by: Suki on June 29, 2011, 09:36:49 AM
N,o unfortunately this will not solve your mod's conflict as it is something specific to your site and needs, I can, however,  do the manual changes again   but I don't know how the new way of displaying the butotns will fit in your template.


Thanks for the reports, I will update the package with the fixes later today.
Title: Re: Share This Topic
Post by: DrBermant on June 29, 2011, 10:17:06 AM
Quote from: Miss All Sunday on June 29, 2011, 09:36:49 AM
N,o unfortunately this will not solve your mod's conflict as it is something specific to your site and needs, I can, however,  do the manual changes again   but I don't know how the new way of displaying the butotns will fit in your template.


Thanks for the reports, I will update the package with the fixes later today.

I can post screen shots or PM you with link to test forum. I cannot post link to test forum here as not for public use. If OK, to PM in this situation, will give links to examples of conflict and working examples. Which would you prefer?  My live forum is still in the older before gold format.

Michael Bermant
Title: Re: Share This Topic
Post by: snooks on June 29, 2011, 10:43:08 AM
I seem to have a spare check button and a blank space is this normal ? i have checked the check box but nothing different appeared in my posts any ideas please also thanks for fixing the space between text and images :) your a star and i prefer the new location of them

  http://imageshack.us/photo/my-images/163/unledpz.jpg/

edit: ok i see now google + in my posts but still a blank space int he settings
Title: Re: Share This Topic
Post by: Suki on June 29, 2011, 10:48:24 AM
@DrBermant Sure, pm the link and tell me exactly where do oyu want the buttons to appear.


@snooks  yes, when I upload the package I forgot to update that text string, I'm updating another mod right now, when Im done with that one I will update this one.
Title: Re: Share This Topic
Post by: Obcy on June 29, 2011, 02:25:00 PM
How to change language google + ?
I tried to add ShareThis.php
if(!empty($modSettings['share_plusone_enable']))
$context['html_headers'] .= '<script type="text/javascript" src="https://apis.google.com/js/plusone.js">
                                        {lang: 'pl'}
                                         </script>';

unfortunately does not work
Is there another way ?
Title: Re: Share This Topic
Post by: Suki on June 29, 2011, 02:46:21 PM
Try this code:


if(!empty($modSettings['share_plusone_enable']))
$context['html_headers'] .= '<script type="text/javascript" src="https://apis.google.com/js/plusone.js">
  {lang: \'pl\'}
</script>';



I will add language support for the +1 button  probably on the next release.
Title: Re: Share This Topic
Post by: Obcy on June 29, 2011, 03:59:36 PM
Thank you very much works very well.
Title: Re: Share This Topic
Post by: divecall on June 29, 2011, 05:40:38 PM
Arigato, Miss All Sunday.

日本へのご挨拶

Title: Re: Share This Topic
Post by: DrBermant on June 30, 2011, 12:14:09 AM
Quote from: Miss All Sunday on June 29, 2011, 09:36:49 AM
N,o unfortunately this will not solve your mod's conflict as it is something specific to your site and needs, I can, however,  do the manual changes again   but I don't know how the new way of displaying the butotns will fit in your template.


Thanks for the reports, I will update the package with the fixes later today.

Actually this conflict is not specific to my forum. This is an issue with a conflict of the powerful mod:

http://custom.simplemachines.org/mods/index.php?mod=2404

Anti-Spam Links

which is in use on this SMF public forum with 2655 downloads vs Share this 10245 downloads. This seems to be quite a powerful tool that many use that only came to be offered in 2009.

I have sent you the links as requested in a PM. Your help in the new modifications for my forum would be appreciated. Once they are made, can I uninstall and install you mod without crashes? The manual removal of code back to the before alter state to uninstall or install an update is quite a bit of extra work. Well worth it to be able to use both mods, but there is no harm in asking.

Again thank you for all of your work on this mod.

Michael Bermant, M.D.
Title: Re: Share This Topic
Post by: DarioRed on June 30, 2011, 09:52:53 AM
I see new version is available, I installed it and my whole server is now 500 internal server error?
Title: Re: Share This Topic
Post by: Joe B on June 30, 2011, 09:54:15 PM
I installed this and when I make a new post the windowbg disappears but when I reply to it the windowbg reappears with the Enable the share icons is enabled for Facebook on a custom theme. I cant tell if it is disappearing on the default theme as its white no matter what...
Title: Re: Share This Topic
Post by: Suki on June 30, 2011, 10:15:21 PM
url to your furm?  errors on your error log?   perhaps a screen shot?
Title: Re: Share This Topic
Post by: Joe B on June 30, 2011, 10:17:24 PM
http://www.tx3bass.com/?topic=851.0  and there are no errors
Title: Re: Share This Topic
Post by: Suki on June 30, 2011, 10:21:16 PM
I can see your forum just fine...  can you post a screen shot of your problem?
Title: Re: Share This Topic
Post by: Joe B on June 30, 2011, 10:26:30 PM
There is no black background with a single post and tested on FF and IE
Title: Re: Share This Topic
Post by: Suki on June 30, 2011, 10:40:24 PM
I can see your site just fine with Opera, Chrome en IE9,  perhaps its a theme issue, what theme are you using?


the code this mod adds to the post's body shows no html errors or missing divs


your site has some server issue though, your css urls are showed with the a php session  which causes all the blanks when you first enter the the site.,  the same issue happen here:  Forum Layout Problem (http://www.simplemachines.org/community/index.php?topic=438142.0)

that topic also contains a solution.
Title: Re: Share This Topic
Post by: Joe B on June 30, 2011, 10:49:01 PM
can you if it loads right now I removed the Remove Index.Php From URL mod see and I am using ZenBlue_20 theme
Title: Re: Share This Topic
Post by: Suki on June 30, 2011, 11:02:26 PM
looks like you disable/un installed the mod.
Title: Re: Share This Topic
Post by: Joe B on July 01, 2011, 06:57:03 AM
ya I disabled it. I am sure the problem is with the custom theme....I just wanted to know if the site loads fine now...
Title: Re: Share This Topic
Post by: Suki on July 01, 2011, 08:43:15 AM
It does load fine now.
Title: Re: Share This Topic
Post by: Joe B on July 01, 2011, 05:28:18 PM
thanks for the help.
Title: Re: Share This Topic
Post by: Joe B on July 01, 2011, 05:38:16 PM
Ok So now I looaded the Blue Moonlight theme from SMF and it does the same thing. So that is telling me it is in the mod itself but I am far from a pro to this php coding...
Title: Re: Share This Topic
Post by: Suki on July 01, 2011, 05:49:22 PM
as a guess  I still see your older theme:  TX3Bass  and it does have the background color.
Title: Re: Share This Topic
Post by: Joe B on July 01, 2011, 06:15:59 PM
Sorry I put the blue moon theme on and this is the post http://www.tx3bass.com/index.php?topic=847.0 It should have a blue background like this post http://www.tx3bass.com/index.php?topic=816.0. I see the same problem on 2 different PCs and a netbook on a different IP...
Title: Re: Share This Topic
Post by: Suki on July 01, 2011, 06:34:59 PM
But on both topics you have the facebook icon,  the one with the background and the one without the background,  I can't see hoe this mod is related to this issue,  try uninstalling the mod and see if this does keep happening.
Title: Re: Share This Topic
Post by: Joe B on July 01, 2011, 06:38:21 PM
the icon is there. the problem is the background is being removed i.e. windowsbg
Title: Re: Share This Topic
Post by: Suki on July 01, 2011, 06:42:38 PM
yes, but  in both topics you posted the icons are there, you say this mod is causing that issue, if so,  both topics will have to have no background.
Title: Re: Share This Topic
Post by: Joe B on July 01, 2011, 06:50:54 PM
share 1 image= no windowbg background  Icon setting enabled
share 2 image = windowbg background Icon setting disabled
When I uninstall mod or disable the mod the windowbg background is fine and this happens on different themes
The Icon is Not the problem it is what it does to the background...  hope you understand this...
Title: Re: Share This Topic
Post by: Suki on July 01, 2011, 07:03:44 PM
I will try to replicate this on local later at home,  I still don't know how it windowbg and this mod can be related, perhaps a missing div  or something.
Title: Re: Share This Topic
Post by: Joe B on July 01, 2011, 07:06:28 PM
I dont either and hope you can figure it out because I really like this mod... Thanks
Title: Re: Share This Topic
Post by: bruce86 on July 04, 2011, 07:54:32 AM
I like the button not working, why? It is also possible to insert the button share? Thanks again ..:)
Title: Re: Share This Topic
Post by: Suki on July 04, 2011, 10:18:09 AM
Quote from: bruce86 on July 04, 2011, 07:54:32 AM
I like the button not working, why? It is also possible to insert the button share? Thanks again ..:)


Can you please elaborate?     url to your forum?   smf version?   errors on your error log?  screen shot perhaps?   I DO need all those details to be able to help you.
Title: Re: Share This Topic
Post by: DarioRed on July 04, 2011, 10:55:26 AM
Quote from: DarioRed on June 30, 2011, 09:52:53 AM
I see new version is available, I installed it and my whole server is now 500 internal server error?
It's happened because of changing file permissions on installation.


Any solution to this problem...?
Title: Re: Share This Topic
Post by: Suki on July 04, 2011, 11:04:13 AM
Changing permissions is something that SMF itself  does with every mod you install,  its not particularly related to this mod,  some server's configurations do have problems with the way SMF manage file permissions.

There is no solution as I don't know your server configuration and not everyone has the same configuration.
Title: Re: Share This Topic
Post by: bruce86 on July 04, 2011, 12:46:12 PM
Quote from: Miss All Sunday on July 04, 2011, 10:18:09 AM
Quote from: bruce86 on July 04, 2011, 07:54:32 AM
I like the button not working, why? It is also possible to insert the button share? Thanks again ..:)


Can you please elaborate?     url to your forum?   smf version?   errors on your error log?  screen shot perhaps?   I DO need all those details to be able to help you.
- My Forum: http://www.passiongames.it/forum/index.php
- SMF Version 2.0
- no errors about the mod.
- default theme.
Thank you..:)
Title: Re: Share This Topic
Post by: Suki on July 04, 2011, 12:50:55 PM
It's working just fine for me....  can oyu please elaborate as to why it isn't working for you?


as I already had explained several times in this topic,   this mod does only guarantee the correct visualization of the buttons and icons,  this mod cannot be responsible for any issued directly related to external sources.
Title: Re: Share This Topic
Post by: bruce86 on July 04, 2011, 01:01:32 PM
ok thank you..
Title: Re: Share This Topic
Post by: DarioRed on July 04, 2011, 03:42:04 PM
Quote from: Miss All Sunday on July 04, 2011, 11:04:13 AM
Changing permissions is something that SMF itself  does with every mod you install,  its not particularly related to this mod,  some server's configurations do have problems with the way SMF manage file permissions.

There is no solution as I don't know your server configuration and not everyone has the same configuration.

Can you tell me what file permissions should be(files that are edited during installation) so I can change them before installing?
Title: Re: Share This Topic
Post by: Suki on July 04, 2011, 03:56:02 PM
Sure,   the following folders are modified when you install this mod:

Sources/
/Themes/default
/Themes/default/images


the following files are edited on installation as well:

./Sources/Load.php
./Sources/Display.php
Title: Re: Share This Topic
Post by: shubha on July 06, 2011, 06:42:26 AM
This is not support "curve theme" of 2.0 . plz help..........as i get the knowledge from SF 2.X support that now CURVE THEME is the default theme.
Title: Re: Share This Topic
Post by: Suki on July 06, 2011, 09:13:11 AM
what do you mean? this mod doesn't even have to support curve because it doesn't do template edits

can you elaborate whats the issue that you  have ???
Title: Re: Share This Topic
Post by: luuuciano on July 08, 2011, 04:18:12 PM
Great mod Miss!
Thanks for Share This Topic, I mean, Mod! :)

btw: you may want to erase the Thumbs.db trash file
btw2: it looks like the +1 option have no language string? I just see an empty place there
Title: Re: Share This Topic
Post by: shubha on July 09, 2011, 11:20:19 AM
Quote from: Miss All Sunday on July 06, 2011, 09:13:11 AM
what do you mean? this mod doesn't even have to support curve because it doesn't do template edits

can you elaborate whats the issue that you  have ???
I have install the MOD but there is no option to select the curve theme and install in it,it will show the core theme theme only.
Title: Re: Share This Topic
Post by: Suki on July 09, 2011, 06:51:16 PM
Like I said, this mod does not modify any theme at all, it will work on every theme you have installed,  there is no option because there is no need for the option to be displayed,  if a mod does not modify any template at all, the option to install in other themes is not displayed.

are you sure you are using this mod?

http://custom.simplemachines.org/mods/index.php?mod=2111


are you using SMF 2.0?

Title: Re: Share This Topic
Post by: Eudemon on July 12, 2011, 08:13:19 PM
i think one of the members have mentioned this
confirm that i get the same problem
see screenshots

the first one is regular
the second one is when share mod is installed
Title: Re: Share This Topic
Post by: Suki on July 12, 2011, 08:21:51 PM
This new version is buggy,  I will temporally put this on archived so I can work on a more stable version.
Title: Re: Share This Topic
Post by: Eudemon on July 13, 2011, 11:26:10 AM
how come on the mod site it says
QuoteThis is an outdated mod that is no longer supported by its author. Use at your own risk
Title: Re: Share This Topic
Post by: Suki on July 13, 2011, 12:04:39 PM
because I archived the mod until I release a more stable version.
Title: Re: Share This Topic
Post by: marci_n on July 17, 2011, 03:49:16 PM
Where i can this get mod for SMF 1.1.x ?
Title: Re: Share This Topic
Post by: Suki on July 17, 2011, 06:51:10 PM
unfortunately this mod will no longer support 1.1.x  versions.
Title: Re: Share This Topic
Post by: luuuciano on July 20, 2011, 06:35:01 PM
btw, all the utf8 language files are starting with BOM... it will be better to change them to without BOM
Title: Re: Share This Topic
Post by: Suki on July 20, 2011, 07:11:41 PM
thanks, tracked:     http://missallsunday.com/project.2/
Title: Re: Share This Topic
Post by: MoskmaN on July 22, 2011, 03:45:01 PM
how align the icons to the bottom right corner?
Title: Re: Share This Topic
Post by: Soulmaster on July 26, 2011, 02:00:11 PM
i'm getting this error in my logs

Undefined variable: mirahalo
on line 1289 in sources/Display.php
Title: Re: Share This Topic
Post by: Suki on July 26, 2011, 02:02:05 PM
attach your sources/Display.php  file here.
Title: Re: Share This Topic
Post by: Soulmaster on July 26, 2011, 02:04:17 PM
oke here he is.  and wow you're quick with your reaction :)
Title: Re: Share This Topic
Post by: Suki on July 26, 2011, 02:11:05 PM
You had some code twice I deleted the old code, try this one.
Title: Re: Share This Topic
Post by: Soulmaster on July 26, 2011, 02:13:53 PM
may i kiss you? :D

fixed :D
Title: Re: Share This Topic
Post by: Soulmaster on July 26, 2011, 11:11:41 PM
i wonder i've it is possible to add the dutch nujij button to it. www.nujij.nl
Title: Re: Share This Topic
Post by: Suki on July 27, 2011, 08:31:08 AM
I'm going to rewrite this mod, one thing that will be included is the option to easily add your own icons or buttons :)
Title: Re: Share This Topic
Post by: Soulmaster on July 27, 2011, 11:43:32 AM
wow great.tnx a lot
Title: Re: Share This Topic
Post by: dinmix on August 01, 2011, 12:01:58 PM
I am using SMF 2.0 Gold. I like to align the icons to the right and make the Facebook Share I icon smaller. May I ask which file to edit if I want to make adjustment to the layout? Thank you
Title: Re: Share This Topic
Post by: Suki on August 01, 2011, 12:13:02 PM
The file to edit will be Sources/ShareThis.php

from there you can change the style for every button and icon.
Title: Re: Share This Topic
Post by: dinmix on August 01, 2011, 12:22:31 PM
Quote from: Miss All Sunday on August 01, 2011, 12:13:02 PM
The file to edit will be Sources/ShareThis.php

from there you can change the style for every button and icon.

Thank you very much for the fast response. Really appreciate it. I'll try to do it now. I want to float all the icons to the left while the Facebook Like button float on the left. This can be achieved by modifiying the stylesheet in that page right?
Title: Re: Share This Topic
Post by: Suki on August 01, 2011, 12:32:27 PM
yes, each button and icon has a unique ID so oyu should be able to modify the style for every buttons you like.
Title: Re: Share This Topic
Post by: dinmix on August 01, 2011, 12:40:17 PM
Thank you very much. Now I saw it. Hope I can make the modification myself. ;D
Title: Re: Share This Topic
Post by: virtualdave on August 11, 2011, 01:06:38 PM
Quote from: Miss All Sunday on July 12, 2011, 08:21:51 PM
This new version is buggy,  I will temporally put this on archived so I can work on a more stable version.

Thanks for this Mod, very useful. I'm happy that you are sticking with it. I have it on a SMF 2.0 RC4 forum and a SMF 2.0 Gold forum. With very different results. I'm attaching a screen shot of each for your reference. Looking forward to your updated release.
thanks

SMF20RC4
(http://img.photobucket.com/albums/v102/virtualdave/F247%202011/SMF20RC4.jpg)

SMF20Gold
(http://img.photobucket.com/albums/v102/virtualdave/F247%202011/SMF20Gold.jpg)

Title: Re: Share This Topic
Post by: Suki on August 11, 2011, 01:40:09 PM
Thats because you are probably using a different version of this mod for every SMF install you have.

This mod is in the archive category,   I will not be providing support for it until I can release an stable version.
Title: Re: Share This Topic
Post by: Odin on September 19, 2011, 03:32:22 PM
Funciona correctamente en 2.0.1.? Lo tenía instalado en 1.1., pero en el 2.0. no me lo reconoce :(

El paquete que estas intentando descargar o instalar está dañado o no es compatible con esta versión de SMF.
Title: Re: Share This Topic
Post by: Suki on September 19, 2011, 05:51:03 PM
Odin you should use English when posting on this board.

This mod is marked as outdated  and I will not provide any support for it until I find the time/willing to update this mod...
Title: Re: Share This Topic
Post by: Odin on September 20, 2011, 08:14:13 AM
Ok, thank you.
Do you know about some mod like this?
Best Regards;
Title: Re: Share This Topic
Post by: Soulmaster on October 30, 2011, 02:57:40 PM
already news about the upgrade?
Title: Re: Share This Topic
Post by: nram on December 07, 2011, 03:45:00 AM
G+ don't work. Someone fix this?
Title: Re: Share This Topic
Post by: Suki on December 07, 2011, 08:47:27 AM
Quote from: nram on December 07, 2011, 03:45:00 AM
G+ don't work. Someone fix this?

If you could show me your forum url of some examples I may be able to help you, to say a mod does not work and not provide evidence to back up your words it's just useless.

Quote from: nram on December 07, 2011, 03:45:00 AM
Someone fix this,

please?
Title: Re: Share This Topic
Post by: dnshare on December 12, 2011, 02:34:18 PM
Hi

I tried to install this mod in version 2.0.1 but I get a warning saying that is recommended not to install it because seems to be a problem caused by incompatibility with other mods or versions. how can I get more details about the cause to use this mod?

Thank you!
Title: Re: Share This Topic
Post by: Suki on December 12, 2011, 02:56:51 PM
If you scroll down you will see a list of the changs this mod does to your forum, usually a failed step will be highlighted in red.
Title: Re: Share This Topic
Post by: kattara on December 22, 2011, 04:45:04 PM
Will you be making this mod available for 2.0.1?
Title: Re: Share This Topic
Post by: Suki on December 22, 2011, 04:53:48 PM
Yes.

I'm slowly (really slowly) porting all my mods to 2.0.x.

Some mods needs fixes here and there, others (like this one)  needs to be rewritten entirely and some other just need an update in the package-info.xml.

Title: Re: Share This Topic
Post by: kattara on December 31, 2011, 05:27:47 PM
Quote from: Suki on December 22, 2011, 04:53:48 PM
Yes.

I'm slowly (really slowly) porting all my mods to 2.0.x.

Some mods needs fixes here and there, others (like this one)  needs to be rewritten entirely and some other just need an update in the package-info.xml.

Oh, ok.  Thanks!!  I'll wait patiently while you work on it.  :D
Title: Re: Share This Topic
Post by: humbleworld on January 12, 2012, 01:37:28 AM
I'm patiently waiting for this MOD to be updated. Thanks for the hard work.
Title: Re: Share This Topic
Post by: Suki on January 12, 2012, 08:57:26 AM
I'm on it right now, the addthis script will replace the icons, its written in oop which means you can easily manipulate the buttons
or use them in other places like a portal news block for example   
It uses jquery to show the buttons on hover with a  nice effect

of course there is no template edits

Im still need to do some test and do some css work
Title: Re: Share This Topic
Post by: Suki on January 13, 2012, 08:14:01 PM
OK, here it is!  a brand new version of Share This Topic mod:

Changelog


4.0
-Re-written code.
-Compatible with SMF 2.0.x
-Added the ShareThis script to share common pages such as profile, board index and topics.
-Added a jquery effect to show the buttons by hovering the message.


I still want to include some features like letting the admins to chose which actions they want to share with the AddThis script and add a way to use the buttons outside the topics, for example, in a portal block or custom pages. hopefully this will serve as a base for that.

anyway, heres the new version, uninstall the previous one and install this one.

-Tested on php 5.3.8 and Opera 11.60, IE9, Firefox dunno/dont care version and Chrome very very long version number.
Title: Re: Share This Topic
Post by: kattara on January 13, 2012, 09:01:50 PM
Awesome!!  I'm gonna test this on my forum right now!
Title: Re: Share This Topic
Post by: kattara on January 13, 2012, 09:10:25 PM
OK, I added this to my forum, but I don't see a change?  :S

Can you check it out?

The Mobile Hangout (http://www.katzkorner.com/forum)

EDIT:  Oh, it shows up only when you hover on your post... weird...  Am I doing something wrong?

I love this mod, tho!!  My users like it, too!!
Title: Re: Share This Topic
Post by: busterone on January 13, 2012, 09:30:55 PM
Nice work. Thanks.  :)


-----ooops---
I really do not like being one of the first to post an issue with any mod or mod update.  :)
The mod installed perfectly with no errors. It is activated and displaying as it should, no issue there. The problem is that I input several boards to ignore, but it still displays on those boards.
My ignore boards list is 2,6,9,10,17,18,34,41,43,46,54,55,67,71,94,104,107
I thought it might make a difference by placing a comma at the end such as  2,6,9,10,17,18,34,41,43,46,54,55,67,71,94,104,107,
but that didn't change it either.
I am in no rush, I can deal with it as it is and just let the members know not to share certain boards that require login.  I just wanted to post it and wait and see if others have this issue as well. If not, then it is something specific to my forum I should look for.
Title: Re: Share This Topic
Post by: luuuciano on January 13, 2012, 11:34:56 PM
This will work ok?
7.    Extraer Archivo    ./Themes/default/scripts//jquery.hoverIntent.minified.js


I have installed it... some texts looks bigger than usual now... lol
(on the share topi admin)

Where should I see the buttons now? I see nothing :(

Im using firefox 9.0.1
Tried to find something using firebug, it shows this error "jQuery("#msg_99887").hoverIntent is not a function"... any idea?

(going out for a while, no time to check further)
btw, without javascript people will see nothing?
Title: Re: Share This Topic
Post by: Suki on January 14, 2012, 09:34:39 AM
Quote
EDIT:  Oh, it shows up only when you hover on your post... weird...  Am I doing something wrong?


Yes, is the intended behavior, I use the jquery.hoverIntent.minified.js to prevent the annoying default behavior that .hover() have.


@busterone  attach your Sources/Display.php and Sources/ShareThis.php   I believe I uploaded the version I was testing on my site but it appears I didn't.

@luuuciano  go to ?action=admin;area=sharethis  did you see anything?  if not is very likely the hooks didn't install properly, you can upload the install.php file and run it with your browser to do a manual install.



I'm going to check the file I uploaded, it seems that I end up uploading a test version and not the revised one.
Title: Re: Share This Topic
Post by: busterone on January 14, 2012, 10:18:46 AM
Sure- here ya go.
Title: Re: Share This Topic
Post by: Suki on January 14, 2012, 10:25:55 AM
Yeah, I uploaded the wrong file LOL

Use this one
Title: Re: Share This Topic
Post by: busterone on January 14, 2012, 10:28:59 AM
No problem at all.  I was not in any hurry, but thanks for looking into it so quickly.   :)
Title: Re: Share This Topic
Post by: Suki on January 14, 2012, 10:30:23 AM
Quote from: busterone on January 14, 2012, 10:28:59 AM
No problem at all.  I was not in any hurry, but thanks for looking into it so quickly.   :)

Wait!  use this one instead
Title: Re: Share This Topic
Post by: busterone on January 14, 2012, 10:35:50 AM
OK, I got the second one, but it still displays on the boards that it shouldn't.   ;D
Title: Re: Share This Topic
Post by: Suki on January 14, 2012, 10:40:53 AM
go to the Share this topic admin page (where you set the boards ID) and click the button to save the settings again, that should trigger this code:


if (isset($_GET['save']))
{
$share_options_boards = explode(',', preg_replace('/[^0-9,]/', '', $_POST['share_options_boards']));

foreach ($share_options_boards as $key => $value)
if ($value == '')
unset($share_options_boards[$key]);

$_POST['share_options_boards'] = implode(',', $share_options_boards);

checkSession();
saveDBSettings($config_vars);
redirectexit('action=admin;area=sharethis;sa=general');
}


That should do it.
Title: Re: Share This Topic
Post by: busterone on January 14, 2012, 10:43:46 AM
Nope, I tried that several times, by disabling and then re-enabling it.  :)

No errors in log, all seems very smooth other than that.
Title: Re: Share This Topic
Post by: Suki on January 14, 2012, 10:47:24 AM
OK, clean your cache toWipeout the $modSettings array then save the settings to trigger the code and generate the array the mod needs and it should work.
Title: Re: Share This Topic
Post by: Suki on January 14, 2012, 11:11:19 AM
OK I updated the mod, hopefully I cover all the mistakes I made on the previous one.

Title: Re: Share This Topic
Post by: luuuciano on January 14, 2012, 11:13:43 AM
Quote from: Suki on January 14, 2012, 09:34:39 AM
@luuuciano  go to ?action=admin;area=sharethis  did you see anything?  if not is very likely the hooks didn't install properly, you can upload the install.php file and run it with your browser to do a manual install

I'm going to check the file I uploaded, it seems that I end up uploading a test version and not the revised one.

Yep, I can see the admin section, but it changes texts sizes... that odd thing happened to me on other mod, it was  something on text files (do not remember if it was a wrong charset, new lines outside php init/end, a BOM intruder or something else... I bet it was the BOM)

About your las sentence, the package on the directory was wrong? do I have to uninstall and install it again downloading it ?
Title: Re: Share This Topic
Post by: busterone on January 14, 2012, 11:15:51 AM
Sorry I didn't get back to you, I have lost all browser connections to all my sites on the same server. Seems to be DNS issue, so I will look into that and get back once I can get back in. Odd, I have ftp and SSH access, but no http. Has to be dns. Thanks, and I will post back.
Title: Re: Share This Topic
Post by: Suki on January 14, 2012, 11:22:08 AM
@luuuciano  probably the spanish language files are the cause, try uninstalling and installing the new zip I upload, I fixed the BOM on the UTF8 files.
Title: Re: Share This Topic
Post by: busterone on January 14, 2012, 11:54:01 AM
Ok I am back. The server side is ok now. I tried your suggestion, even uninstalled the mod, deleted the file and then uploaded your newly edited zip. Installed it and set my no display boards as before, and still have the same thing.  I am wondering if it is just something in my forum causing it, not your mod itself. I will make another copy of my site as a test and play around with some ideas to see if I can narrow it down. Unless several others report the same thing, do not worry about it. 
I like the mod even as it is.  :)
Title: Re: Share This Topic
Post by: Suki on January 14, 2012, 12:10:43 PM
I got the same problem with my test and live sites and the code I put before and an explode in Display.php:


/* We need an array */
if (!empty($modSettings['share_options_boards']))
$share_options_boards = explode(',', $modSettings['share_options_boards']);

else
$share_options_boards = array();


solved that for me, you now got both codes and in theory it should work, you can  use a var_dump() on $share_options_boards variable to see if $share_options_boards is indeed an array:

On Display.php find:

/* Define the url to share */

above add

      if ($context['user']['is_admin'])
         var_dump($share_options_boards);



That should show to the admin only the content of $share_options_boards for every message, it should look like this:

array(7) {
Title: Re: Share This Topic
Post by: luuuciano on January 14, 2012, 12:29:57 PM
I have installed the latest version, the text sizes on admin is solved... but I can not see anything on my threads...
Firebug continues showing the same error:
jQuery("#msg_100120").hoverIntent is not a function

In share this Options... I have just 4 checks, is that ok?
Title: Re: Share This Topic
Post by: Suki on January 14, 2012, 12:33:53 PM
Upload the jquery.hoverIntent.minified.js file to /Themes/yourhteme/scripts/
Title: Re: Share This Topic
Post by: busterone on January 14, 2012, 12:59:45 PM
this is what displays, the correct board ids are present
array(17) {
Title: Re: Share This Topic
Post by: Suki on January 14, 2012, 01:05:49 PM
mmm, is there any error in the error log?

do you have $board_info  globalized on Display.php?

global $board_info;


That is indeed weird
Title: Re: Share This Topic
Post by: luuuciano on January 14, 2012, 01:06:49 PM
Well, for some unknown reason the file wasnt there...
But it was installed on the default theme (the link call to it was ok anyway)... so, the problem was not that?... mmm
Title: Re: Share This Topic
Post by: Suki on January 14, 2012, 01:08:23 PM
Quote from: luuuciano on January 14, 2012, 01:06:49 PM
Well, for some unknown reason the file wasnt there...
But it was installed on the default theme (the link call to it was ok anyway)... so, the problem was not that?... mmm

Is it solved?
Title: Re: Share This Topic
Post by: busterone on January 14, 2012, 01:11:14 PM
no errors in the log. I am not sure I understand what you mean by   
Quotedo you have $board_info  globalized on Display.php?

global $board_info;
I am not much of a coder myself. I understand a small amount, but mainly just enough to edit files where needed. 
I must need some more coffee  :)
Yes, this is from Display.php
// Callback for the message display.
function prepareDisplayContext($reset = false)
{
global $settings, $txt, $modSettings, $scripturl, $options, $user_info, $smcFunc;
global $memberContext, $context, $messages_request, $topic, $attachments, $topicinfo;
global $board_info;
Title: Re: Share This Topic
Post by: Suki on January 14, 2012, 01:17:26 PM
Well, I'm sure you do have $board_info, otherwise an undefined error  will appear on your error log.


I honestly don't have any idea why your forum do that, I tested the new version on 2 local installations and on 2 live sites with different configurations and it all seems to work fine.


@luuuciano  can you reproduce this problem too?
Title: Re: Share This Topic
Post by: busterone on January 14, 2012, 01:21:33 PM
Yes, see my above edit.
Maybe I missed something, was I supposed to insert this into the file as well? If so, in what part of the file?
/* We need an array */
if (!empty($modSettings['share_options_boards']))
$share_options_boards = explode(',', $modSettings['share_options_boards']);

else
$share_options_boards = array();
Title: Re: Share This Topic
Post by: Suki on January 14, 2012, 01:23:57 PM
nope, that code is supposedly already on your Display.php file, but if you want attach it here again and I will review it.
Title: Re: Share This Topic
Post by: busterone on January 14, 2012, 01:26:27 PM
OK, I am still thinking I have something a bit off in my forum itself, maybe another mod interfering.
Title: Re: Share This Topic
Post by: luuuciano on January 14, 2012, 01:29:30 PM
Quote from: Suki on January 14, 2012, 01:17:26 PM
@luuuciano  can you reproduce this problem too?

Will read all the previous posts and try to understand it... eheheh

My problem continues there, firebug shows the same error, on line 493, thats the message content (including the share this code)
For example, here: http://ikers.com.ar/index.php/topic,6289.0.html
Title: Re: Share This Topic
Post by: luuuciano on January 14, 2012, 01:38:05 PM
Quote from: Suki on January 14, 2012, 01:17:26 PM
@luuuciano  can you reproduce this problem too?

No, it works ok on my forum... I have setup several boards to not have ShareThis... and the ST code is not there...
Title: Re: Share This Topic
Post by: Suki on January 14, 2012, 01:54:25 PM
You have a lot of jquery plugins called at once, one of those may interfere with jquery.hoverIntent.minified.js


Also, you do have a lot of calls to jquery, try to removes some of those calls and leave just one.

You can try to load jquery.hoverIntent.minified directly in your Index.template.php file, since this mod prints the call on a very early stage (just before $context['html_headers'] is defined)  it is very possible that the call to  jquery.hoverIntent.minified is made before jquery is loaded.
Title: Re: Share This Topic
Post by: busterone on January 14, 2012, 03:34:03 PM
I just tried it on a clean install test forum. 2.0.2, no other mods, default theme, and the behavior is the same. I created 3 boards, listed 2 of them for no display of sharethis, and it still displays on those boards and all topics in those boards.   
At this point I am baffled too, since it works as it should for others.
I am sure you have other things to do, so unless it becomes a real issue for a bunch of other forums, I am leaving it as it is.
Thanks for trying.  :)
Title: Re: Share This Topic
Post by: luuuciano on January 14, 2012, 07:06:14 PM
Quote from: Suki on January 14, 2012, 01:54:25 PM
You have a lot of jquery plugins called at once, one of those may interfere with jquery.hoverIntent.minified.js


Also, you do have a lot of calls to jquery, try to removes some of those calls and leave just one.

You can try to load jquery.hoverIntent.minified directly in your Index.template.php file, since this mod prints the call on a very early stage (just before $context['html_headers'] is defined)  it is very possible that the call to  jquery.hoverIntent.minified is made before jquery is loaded.

Thanks!
I have searched all the jquery calls and erased them, leaving just one... it works now!

Now Im thinking about the hover efect...
It would be usefull when you activate to show the SharIt section on all the posts... I think... (to not annoy showing it everywhere)
But, when someone selects to show ShareIt on 1st post... it would be better to show it always I think....



One question... I have activated the Enable AddThis option, to see it working... but I do not see anything else...
Just see facebook like, twitter & google +1... where should I see the AddThis thing?
Facebook, twitter & +1 are the only sharing things now?
Title: Re: Share This Topic
Post by: Suki on January 15, 2012, 09:57:17 AM
What do you mean by "show the SharIt"  what is SharIt ?

The buttons van be show in all messages, you just need to check that option


The AddThis script is showed under the menu, it uses jquery to insert the script after the div with ID #header  if you have a custom theme or youe theme doesn't have that ID then the script will not appear.

The AddScript will share the entire page.
Title: Re: Share This Topic
Post by: busterone on January 15, 2012, 11:16:31 AM
I believe I figured it out. I think that maybe I misunderstood a part of how this works.
I am not using the post buttons whatsoever, just the share button that is right below the main menu on the board index, etc.  I was playing around with the test forum install and noticed that if I enable the post buttons either by show on all posts or first post only, that the board restriction works. The post buttons do not display on any topic in those boards. I was thinking that the board restriction would remove the share button immediately under the main menu on those boards as well, but it doesn't. 
Is that by design? If so, I am at fault for misunderstanding.
Title: Re: Share This Topic
Post by: Suki on January 15, 2012, 11:40:14 AM
Oh!, well,  the AddThis script is there to share the whole page, so, for example, if it is in a topic, it will share the topic url, for example this topic url:

http://www.simplemachines.org/community/index.php?topic=334955.msg3252689;topicseen#msg3252689

Since the Script takes the url currently showing.

I really didn't think about using the board restriction for the script too, it makes sense to do so now that you mention it.


I was planing to include the AddThis script along with the rest of the buttons (as a replacement for the old icons), the script has some parameters to share multiple urls on a single page, and adding new buttons is now more easy, however, when I added the script, the css part got all mess up.


I'm thinking if adding that script to share a whole page is a good idea or not, relying on a #header ID is probably not a good idea, I just didn't want to do template edits or modify template layers to include the script.


Do you think is worth to have the AddThis script to share a complete page or should I include it on the buttons?
Title: Re: Share This Topic
Post by: busterone on January 15, 2012, 11:50:06 AM
I guess it is good both ways myself, depending on each forum admin's preference really.  I am perfectly ok with it as it is myself, but if you decide to change it to make the board restrictions work for the whole page as well, that would be good too. I have already informed the members that if they share something in a restricted board that the visitor following the link will get directed to a login/register page, so they are all ok with that.
It is your call of course.  :)
Title: Re: Share This Topic
Post by: Suki on January 15, 2012, 11:58:27 AM
Adding the restriction will not be a problem, however, I'm more worry about the way I use to show the script,  not every theme has a header ID  or some themes have a weird css and the script can appear in a weird place (for example, my site).

I need to find a way to show the script in a good place without doing template edits  and I also need to build an admin interface so admins can select in what actions/pages they want the script to appear/not to appear, of course since there is nothing set to stone regarding actions/pages, this mod in combination with a mod, for example a portal that adds multiple pages, actions or subactions, can result in unsuspected behavior.
Title: Re: Share This Topic
Post by: busterone on January 15, 2012, 12:07:45 PM
True. I use Simpleportal and do have a couple of pages. I also use the custom action mod with several non standard actions added in.  I have 14 member selectable themes installed, and only about a third of them are based on curve.  There are a lot of possible mess ups there.
If you figure it out, great, but like I said, I am ok with it as it is.  The less chances for something to go wrong the better. 
Title: Re: Share This Topic
Post by: Suki on January 15, 2012, 12:30:15 PM
I believe I'm going to withdraw the script as it is and will include it with the rest of the buttons,  however, I will add a way to easily use the mod on external pages, something like this:

$buttons = new ShareThis($url);
$buttons->CreateButtons();

where $url is obviously the url you want to share  or if empty use the current url in the browser and then use:

$buttons->CustomDisplay();

where you want the buttons to appear, may be a better alternative and will offer more flexibility me thinks.

I'm open to suggestions.
Title: Re: Share This Topic
Post by: busterone on January 15, 2012, 12:58:31 PM
I'm afraid I can't offer much in the coding side of it myself. I can barely follow an already written script, just enough to get a very basic understanding of what is going on, and to make some minor edits when needed.   ;)  Manually adding mods is no problem to me, but writing a script from scratch is beyond my ability. 

For my own use, I don't have any custom pages or actions that need public sharing, they are all for members, and some of them or for only certain members. I am sure there are many more admins that do have info on custom pages that they would like shared to increase their forum traffic though. 
Title: Re: Share This Topic
Post by: Suki on January 15, 2012, 01:03:08 PM
I'm more after suggestions on how to implement the mod/what new features want to see rather than coding part ;)
Title: Re: Share This Topic
Post by: busterone on January 15, 2012, 01:22:30 PM
Ok,  :)
Simple is best in my opinion. Leave the buttons on the post pages as they are, with the admin option as it is- first post or every post.
The share script under the menu is fine as is if you can easily include it with the board exclusions for the post buttons.
If that present too much of a potential issue, you could remove the script from under the main menu for pages altogether, and have it display in the same area that the post buttons do. Then give admins the choice to display either the script, the buttons, or both.
Title: Re: Share This Topic
Post by: krash661 on January 18, 2012, 11:58:17 AM
Quote from: Suki on January 14, 2012, 03:00:09 PM
This mod is marked as outdated, please use this one instead:

http://custom.simplemachines.org/mods/index.php?mod=2111

Suki, Thank you very much..I appreciate this massively..And so far it's working great.

I have a question,it's more of I dont understand kind of thing.
IN the image below it says,
(http://i1228.photobucket.com/albums/ee460/krash661/1-3.png)
 
Enable the AddThis script.
This will add the addthis script below the menu on the following pages:
-BoardIndex
-Profile
-Topic page.
the Addthis script will share the entire page rather than an specific part of the forum.

MY question is,what/where exactly is the menu? cause it's only showing at the top of my site on every page in the described list.
the image below is a screen shot of where it's located on my site.
(http://i1228.photobucket.com/albums/ee460/krash661/2-6.png)
Title: Re: Share This Topic
Post by: luuuciano on January 18, 2012, 09:20:42 PM
Have you clicked on it?
It will show you several options to share that page...
Title: Re: Share This Topic
Post by: npereira on January 19, 2012, 08:29:12 AM
I like this mod but I have an issue, I want to move the ShareThis button to another location, see attached screenshot...

It`s currently located bellow the main menu (I use the default theme). I want to move it right to the left of the reply button.

How can this be done?
Title: Re: Share This Topic
Post by: krash661 on January 19, 2012, 12:39:29 PM
Quote from: npereira on January 19, 2012, 08:29:12 AM
I like this mod but I have an issue, I want to move the ShareThis button to another location, see attached screenshot...

It`s currently located bellow the main menu (I use the default theme). I want to move it right to the left of the reply button.

How can this be done?

That is an interesting place for it. I like that idea. My issue is it's at the top of my site

(http://i1228.photobucket.com/albums/ee460/krash661/2-6.png)
Title: Re: Share This Topic
Post by: Suki on January 19, 2012, 03:38:04 PM
@krash661   link to your site and tell me an exat position where you want the script to be placed.

@npereira  It's doable, only if you don't mind to have the button to appear 2 times, since the div that controls those buttons is actually displayed 2 times per page.
Title: Re: Share This Topic
Post by: npereira on January 19, 2012, 03:54:53 PM
Quote from: Suki on January 19, 2012, 03:38:04 PM
@npereira  It's doable, only if you don't mind to have the button to appear 2 times, since the div that controls those buttons is actually displayed 2 times per page.

Top and bottom correct?  if so, no i dont mind
Title: Re: Share This Topic
Post by: Suki on January 19, 2012, 04:10:04 PM
Open Sources/ShareThis.php file

find:

jQuery(\'#header\').append(\'<a class="addthis_button"


replace with:

jQuery(\'.pagesection\').append(\'<a class="addthis_button"


Using css you can place the script in the exact place you want it to appear.


Please do note that this will reduce the button to only appear inside a topic page and will no longer will appear on other pages, for example, the profile page.
Title: Re: Share This Topic
Post by: luuuciano on January 20, 2012, 02:30:34 AM
Nice tips about how to "move it"... it would be cool to add it to the mod description, or something similar... so people will read and use it
Title: Re: Share This Topic
Post by: krash661 on January 20, 2012, 01:30:44 PM
Quote from: Suki on January 19, 2012, 03:38:04 PM
@krash661   link to your site and tell me an exat position where you want the script to be placed.

@npereira  It's doable, only if you don't mind to have the button to appear 2 times, since the div that controls those buttons is actually displayed 2 times per page.

Suki, I'm thinking that Npereria comments is a cool place for it on his attachment image.below the menu or both locations.But the below menu spot is good enough for me.
QuoteIt`s currently located bellow the main menu (I use the default theme). I want to move it right to the left of the reply button.

http://www.performancetradingconcepts.com/index.php
Title: Re: Share This Topic
Post by: Suki on January 20, 2012, 02:57:33 PM
@Everyone   I made some changes, so far:

-Added the AddThis script for every message.
-Change the position for the general AddThis button.
-Added the board restrictions for the AddThis script.
-Added "via @forum_name" and the topic name in the twitter button.


You can download the new version at github:  https://github.com/MissAllSunday/Share-This-Topic   or use the attached zip,  any feedback is welcome.


@krash661   use this new version, it will relocate the AddThis script in the linktree section


Edit, removed the attachment, try the new version instead.
Title: Re: Share This Topic
Post by: luuuciano on January 20, 2012, 05:41:57 PM
Is it not an oficial version? will be?
Title: Re: Share This Topic
Post by: kattara on January 20, 2012, 05:57:17 PM
Quote from: Suki on January 14, 2012, 09:34:39 AM
Quote
EDIT:  Oh, it shows up only when you hover on your post... weird...  Am I doing something wrong?


Yes, is the intended behavior, I use the jquery.hoverIntent.minified.js to prevent the annoying default behavior that .hover() have.



Oh!  OK.  :)  Is there a way so I can have it show all the time?
Title: Re: Share This Topic
Post by: luuuciano on January 20, 2012, 06:29:20 PM
Quote from: Suki on January 14, 2012, 09:34:39 AM
Quote
EDIT:  Oh, it shows up only when you hover on your post... weird...  Am I doing something wrong?

Yes, is the intended behavior, I use the jquery.hoverIntent.minified.js to prevent the annoying default behavior that .hover() have.

BTW, Which  is the difference between the hover and hoverIntent?

Finally, I think I liked that behavior... it output a cleaner forum/posts/content... and if you need the sharing button its easy to have them...
Title: Re: Share This Topic
Post by: Suki on January 20, 2012, 07:16:31 PM
@kattara  I will probably add a check to disable the Jquery effect and show the buttons all the time.

@luuuciano   it will be an official version and about the difference between hover and hoverIntent: http://cherne.net/brian/resources/jquery.hoverIntent.html

Title: Re: Share This Topic
Post by: kattara on January 20, 2012, 07:23:10 PM
Quote from: Suki on January 20, 2012, 07:16:31 PM
@kattara  I will probably add a check to disable the Jquery effect and show the buttons all the time.


Oh, that would be awesome!  Thanks!!
Title: Re: Share This Topic
Post by: busterone on January 20, 2012, 07:23:20 PM
Quick work indeed. 
I will check out the new version sometime tonight or in the morning.   :)
Title: Re: Share This Topic
Post by: luuuciano on January 21, 2012, 03:05:10 AM
Suki, as that is your current nickname...
How much do you think I can share/pay/give you for this?
In fact, I liked a few properties of the previous versions (anyway, im not missing that a lot)... but I think that anyway you deserve it, as you already did a huge work and I know how you care what you do...
I want to to give you some bucks...
so... Im asking you about that, to have an idea.... (about the amount)
Title: Re: Share This Topic
Post by: Suki on January 21, 2012, 11:46:02 AM
OK, a new version, just added the check to disable the jQuery effect and some proper code documentation, maybe later this day I will add the new strings to the Spanish files and upload the new version in the mode site (4.1).

I'm pretty sure this mod will not work properly on a php4 server, perhaps I should add a warning for that too.


@luuuciano  Thank you, there is a donate page in my site: http://missallsunday.com/donate/   whatever amount is just fine and would be highly appreciated :D


Edit, attachment removed, please use the one in the mod site instead.
Title: Re: Share This Topic
Post by: busterone on January 21, 2012, 12:03:56 PM
I just tried it out on my test site. It works fantastic and exactly how I had envisioned it. I am implementing it live in just a few minutes.
Great work and many thanks.  :)
Title: Re: Share This Topic
Post by: krash661 on January 21, 2012, 02:47:51 PM
Awesome,

I have a question, just so i understand,
Is the home page the board index? cause now its not showing on the home page at all.
Title: Re: Share This Topic
Post by: Suki on January 21, 2012, 03:36:34 PM
Yes, currently the AddThis script does not show on the board Index, that is because I haven't found a clean way to show it without interfering with the other conditionals I use to show the script only in certain areas.

There is some bugs, for exmaple the script will appear in the posting action and other areas where the buttons just doesn't need to appear, I have to take a deep look at how to implement the Script.
Title: Re: Share This Topic
Post by: krash661 on January 21, 2012, 03:44:24 PM
Quote from: Suki on January 21, 2012, 03:36:34 PM
Yes, currently the AddThis script does not show on the board Index, that is because I haven't found a clean way to show it without interfering with the other conditionals I use to show the script only in certain areas.

There is some bugs, for exmaple the script will appear in the posting action and other areas where the buttons just doesn't need to appear, I have to take a deep look at how to implement the Script.

O.k, no problem. I just wanted to make sure.other than it not showing on the home page, It's working great for me. I adjusted the settings and it's showing exactly how i needed/wanted it..

THANKS SUKI SO MUCH, THIS IS VERY AND MASSIVELY APPRECIATED..  ;)
Title: Re: Share This Topic
Post by: Suki on January 21, 2012, 08:13:43 PM
OK, heres the new version:

4.1
-Several bugs fixed
-Added the AddThis script for messages too.
-Added the forum name and the topic name in the twitter button
-Added a check to disable the jquery effect (Show the buttons all the time)
-Added an option to show the buttons above or below the messages.


I fixed a silly bug in the share url and now the addthis script does appear in the board index
Title: Re: Share This Topic
Post by: Vlada87 on January 22, 2012, 03:27:38 PM
Great upgrade to 2.0.2 tnx ;)

One question.... my tweet and FB buttons is on center, how to move them to the down right corner fo the post!?
Title: Re: Share This Topic
Post by: Suki on January 22, 2012, 04:09:49 PM
do you mean the individual buttons are centered or you you mean the entire set of buttons are in the center?
Title: Re: Share This Topic
Post by: Buneduggy on January 23, 2012, 03:16:48 AM
I have installed this mod but the admin menu is not correct. When I am redirected I can see the general settings and the button settings but when clicked on they don't show me anything?

I am running 2.0.2 with Military theme. I did try the default theme and get the same results? I have uninstalled the mod and re-installed with the same results. Any help would be appreciated.
Title: Re: Share This Topic
Post by: Suki on January 23, 2012, 09:04:04 AM
any error on install?  any error in your error log?  do you use a different language?
Title: Re: Share This Topic
Post by: Buneduggy on January 23, 2012, 10:31:01 AM
No errors on install. Use standard english.

I did find this error in the error log.

8: Undefined index: post_urlFile: /var/www/html/forum/Themes/default/languages/ManageSettings.english.php (show_settings sub template - eval?)
Line: 775


Website is www.norcalwheelers.com/forum

I am off to work. Will check this later tonight. Thanks,
Title: Re: Share This Topic
Post by: Suki on January 23, 2012, 10:40:33 AM
do you see the admin panel?  do you see the admin settings?   what happen if you click on the save button?

does the Faq.english.php file exist in /Themes/default/language/  ?

what php version are you using?
Title: Re: Share This Topic
Post by: kattara on January 24, 2012, 03:24:37 PM
Wow!  Awesome!  Thanks for the quick work and update, Suki!

I have another suggestion, tho...  Can you make it so that it is maybe 2 lines below the last line of the post?  And how come the ShareThis button is now on the board index by default?  I can't seem to take it off.  It didn't use to be there by default...  And yes, I think I did check the correct settings...

http://www.katzkorner.com/forum (http://www.katzkorner.com/forum)
Title: Re: Share This Topic
Post by: Suki on January 24, 2012, 03:37:12 PM
Yeah, its a bug in the long "if" logic that  I'm using to show the AddThis script, will check that later.

The buttons are controlled by css, take a look at Sources/Sharethis.php  at the Headers method:

#sharethis
{
   '. (!empty($modSettings['share_disable_jquery']) ? 'display:visible' : 'display:none;') . '
   position:relative;
   top:5px;
   left:5px;
   z-index:100;
   min-height:30px;
}

if you want the buttons to be more separated from the message just change the  top:5px;   to some higher number:  top:20px;
Title: Re: Share This Topic
Post by: kattara on January 24, 2012, 03:39:15 PM
Quote from: Suki on January 24, 2012, 03:37:12 PM
Yeah, its a bug in the long "if" logic that  I'm using to show the AddThis script, will check that later.

The buttons are controlled by css, take a look at Sources/Sharethis.php  at the Headers method:

#sharethis
{
   '. (!empty($modSettings['share_disable_jquery']) ? 'display:visible' : 'display:none;') . '
   position:relative;
   top:5px;
   left:5px;
   z-index:100;
   min-height:30px;
}

if you want the buttons to be more separated from the message just change the  top:5px;   to some higher number:  top:20px;

Ah, ok.  Where is this exactly?

Thanks!!  Once again, you are SO AWESOME!!!
Title: Re: Share This Topic
Post by: Buneduggy on January 24, 2012, 11:18:34 PM
Quote from: Suki on January 23, 2012, 10:40:33 AM
do you see the admin panel? Yes but the two buttons only

do you see the admin settings? No, that is the issue I have no settings to change

what happen if you click on the save button?  It does nothing


does the Faq.english.php file exist in /Themes/default/language/  ?  No

what php version are you using?  This I am unsure of??
Title: Re: Share This Topic
Post by: Suki on January 25, 2012, 09:11:33 AM
Then upload the Faq.english.php file to that location.
Title: Re: Share This Topic
Post by: Vlada87 on January 25, 2012, 09:48:22 AM
Quote from: Suki on January 22, 2012, 04:09:49 PM
do you mean the individual buttons are centered or you you mean the entire set of buttons are in the center?

Never mind i had some issues whit application in Chrom who stop tracking FB connections, now i saw all buttons and they are correct set in left position of messages body.

My other question is, whats going on whit counting how many shares was done by clicking on buttons!? When i share whit Google +1, countig is OK, but when i share some post over the Twitter buttons, count shows 0 (zero) every time!?

Just to mention, i sucessfly share content via twitter, and post show on twitter regulary, just dont count shares on board on button.
Title: Re: Share This Topic
Post by: Suki on January 25, 2012, 09:52:07 AM
I cannot do anything regarding that, it is a external issue, this mod just provides a way to show those buttons but cannot handle the counts and server response.

Twitter usually shows the count a day later, at least it does for me.
Title: Re: Share This Topic
Post by: Vlada87 on January 25, 2012, 10:01:43 AM
Ahaaa.... ok then, great, tnx once again for this great plugin ;)

Cheers
Title: Re: Share This Topic
Post by: Suki on January 25, 2012, 02:51:27 PM
OK new version, fixes a couple of bugs:

4.1.1
-Fixed bug on install/remove.php, silly bug, I know I shouldn't use $boarddir... copy/paste things from old code is evil!
-Fixed bug on logic for showing the AddThis script on BoardIndex.
Title: Re: Share This Topic
Post by: Daegaladh on January 25, 2012, 05:34:49 PM
AddThis still appears in user profiles even though is disabled...
Title: Re: Share This Topic
Post by: Buneduggy on January 25, 2012, 10:45:15 PM
Quote from: Suki on January 25, 2012, 09:11:33 AM
Then upload the Faq.english.php file to that location.

I unpacked the .zip and did not see this file listed? Did I miss it or missread what you meant??

Here is a screen of what I see when it's installed.
Title: Re: Share This Topic
Post by: kattara on January 25, 2012, 11:17:41 PM
Sorry, Suki.  I'm dumb at SMF.  Where is the file to change the spacing?
Title: Re: Share This Topic
Post by: Suki on January 26, 2012, 09:03:48 AM
Quote from: Buneduggy on January 25, 2012, 10:45:15 PM
Quote from: Suki on January 25, 2012, 09:11:33 AM
Then upload the Faq.english.php file to that location.

I unpacked the .zip and did not see this file listed? Did I miss it or missread what you meant??

Here is a screen of what I see when it's installed.


My bad, it is the ShareThis.english.php file

What is your php version?  this mod wont work on a php4 or even php5.2

Quote from: kattara on January 25, 2012, 11:17:41 PM
Sorry, Suki.  I'm dumb at SMF.  Where is the file to change the spacing?

It's on Sources/ShareThis.php file
Title: Re: Share This Topic
Post by: Daegaladh on January 26, 2012, 09:18:12 AM
Quote from: Daegaladh on January 25, 2012, 05:34:49 PM
AddThis still appears in user profiles even though is disabled...

What about that bug?
Title: Re: Share This Topic
Post by: Suki on January 26, 2012, 09:18:50 AM
Quote from: Daegaladh on January 26, 2012, 09:18:12 AM
Quote from: Daegaladh on January 25, 2012, 05:34:49 PM
AddThis still appears in user profiles even though is disabled...

What about that bug?


I'm working on it?
Title: Re: Share This Topic
Post by: Daegaladh on January 26, 2012, 09:20:50 AM
Ah, ok thanks, you didn't say a word about it, so I though you didn't read my post or something, sorry.
Title: Re: Share This Topic
Post by: luuuciano on January 26, 2012, 05:07:59 PM
I have liked on a topic... then looking my facebook profile do not see that "liked page"... is that ok?
I thought that the page liked will be showed there...
Title: Re: Share This Topic
Post by: kattara on January 26, 2012, 06:31:09 PM
Quote from: Suki on January 26, 2012, 09:03:48 AM

It's on Sources/ShareThis.php file

OK, got it!  But it didn't make any change?  I changed it first to 20, then 100.  But still see no difference...   :-\
Title: Re: Share This Topic
Post by: Suki on January 26, 2012, 08:07:45 PM
Quote from: luuuciano on January 26, 2012, 05:07:59 PM
I have liked on a topic... then looking my facebook profile do not see that "liked page"... is that ok?
I thought that the page liked will be showed there...

It relies on facebook servers, I only provide a way to insert the service in your forum but I do not control the service itself.


@kattara attach your ShareThis.php file here and post a link to your forum or a link to an specific message with this mod on it.
Title: Re: Share This Topic
Post by: kattara on January 26, 2012, 08:10:54 PM
http://www.katzkorner.com/forum (http://www.katzkorner.com/forum)

Here you go!
Title: Re: Share This Topic
Post by: Suki on January 26, 2012, 08:15:42 PM
OK, try this one, if you need even more space then in the same file find:  padding-top: 30px;  and change 30 with a higher number
Title: Re: Share This Topic
Post by: kattara on January 26, 2012, 08:20:15 PM
Quote from: Suki on January 26, 2012, 08:15:42 PM
OK, try this one, if you need even more space then in the same file find:  padding-top: 30px;  and change 30 with a higher number

There's padding, but not padding-top?  :-\
Title: Re: Share This Topic
Post by: Suki on January 26, 2012, 08:21:14 PM
You haven't downloaded the file I modify.

download the file I attached in my last message.
Title: Re: Share This Topic
Post by: kattara on January 26, 2012, 08:25:54 PM
Quote from: Suki on January 26, 2012, 08:21:14 PM
You haven't downloaded the file I modify.

download the file I attached in my last message.

Ohhh!!  Sorry.  lol
Title: Re: Share This Topic
Post by: kattara on January 26, 2012, 08:26:31 PM
That's PERFECT, Suki!  Thanks!!
Title: Re: Share This Topic
Post by: Buneduggy on January 26, 2012, 08:54:01 PM
Quote from: Suki on January 26, 2012, 09:03:48 AM
Quote from: Buneduggy on January 25, 2012, 10:45:15 PM
Quote from: Suki on January 25, 2012, 09:11:33 AM
Then upload the Faq.english.php file to that location.

I unpacked the .zip and did not see this file listed? Did I miss it or missread what you meant??

Here is a screen of what I see when it's installed.


My bad, it is the ShareThis.english.php file

What is your php version?  this mod wont work on a php4 or even php5.2

Ok so the ShareThis.english.php file is there. But I did find that my PHP version may be PHP 5.1.6? I have mail to my webhost to see if this is correct. Sounds like this is not current enough version??
Title: Re: Share This Topic
Post by: distante on January 29, 2012, 09:17:08 AM
Hello Suki!

I'm trying the last version of this mod, all works fine but I'm having a lot of undefined index error's in my log regarding this line (ShareThis.php 595)

Code (8: Undefined index: current_board) Select
if (!empty($modSettings['share_addthisbutton_enable']) && (!isset($_REQUEST['action']) && isset($_REQUEST['board']) && !in_array($context['current_board'], $share_options_boards) || !empty($context['current_topic'])) || (!empty($_REQUEST['action']) && in_array($_REQUEST['action'], $addthis_show)) || (!empty($modSettings['share_addthisbutton_enable']) && !isset($_REQUEST['topic']) && !isset($_REQUEST['board']) && !isset($_REQUEST['action'])))

I am tempted to add the @ in the var to mute the error but I guest will be better if first ask and report this to you :D
Title: Re: Share This Topic
Post by: Suki on January 29, 2012, 10:51:53 AM
suppressing the error isn't a good idea.


change this:

&& !in_array($context['current_board'], $share_options_boards)

to this:

&& isset($context['current_board']) && !in_array($context['current_board'], $share_options_boards)
Title: Re: Share This Topic
Post by: distante on January 29, 2012, 03:18:40 PM
;) danke!
Title: Re: Share This Topic
Post by: kattara on January 29, 2012, 03:57:53 PM
Just wanted to say... Suki, you're the best!!  Thank you for this awesome mod and the fast work you do when we have problems!  Thank you, thank you, thank you!! :laugh: :laugh:
Title: Re: Share This Topic
Post by: Suki on January 29, 2012, 06:49:23 PM
Cool, glad you found it useful :D
Title: Re: Share This Topic
Post by: webspawner on January 31, 2012, 01:34:23 PM
Hi, great mod but I have a problem.

I looked at one forum and the add this bar that appeared came up twice.

So I uninstalled the mod to reinstall it but as soon as I uninstalled it the forums went to a white page and will not work now.

I understand I need to manually remove the mods code references from files to get it back up running?

Where do I go and what do I remove - please help! My forum is down,

Many thanks,
Title: Re: Share This Topic
Post by: kattara on January 31, 2012, 01:42:03 PM
Quote from: webspawner on January 31, 2012, 01:34:23 PM
Hi, great mod but I have a problem.

I looked at one forum and the add this bar that appeared came up twice.

So I uninstalled the mod to reinstall it but as soon as I uninstalled it the forums went to a white page and will not work now.

I understand I need to manually remove the mods code references from files to get it back up running?

Where do I go and what do I remove - please help! My forum is down,

Many thanks,

That's weird!  I never had that problem.  And I've uninstalled this mod several times to update it each time Suki adds something to it.   :o
Title: Re: Share This Topic
Post by: webspawner on January 31, 2012, 01:43:58 PM
What can I do? any idea's?
Title: Re: Share This Topic
Post by: webspawner on January 31, 2012, 01:59:36 PM
ok, I looked in the error logs and removed the code reference in the load.php that the error_log was referring to.

I then reinstall the sharethis mod and all is working again and forum is up but I have my original issue of the share this buttons appearing twice (a duplicate in the same area (first post).

I have show in first post option only and then the master enable, twitter, facebook, google+ buttons checked.

How can I stop it loading twice?

Thanks,
Title: Re: Share This Topic
Post by: Suki on January 31, 2012, 02:13:15 PM
@webspawner  Attach your Sources/Display.php file.
Title: Re: Share This Topic
Post by: webspawner on January 31, 2012, 02:46:10 PM
Hi Suki,

Here it is,

Thanks
Title: Re: Share This Topic
Post by: Suki on January 31, 2012, 02:48:23 PM
Use this one.
Title: Re: Share This Topic
Post by: webspawner on January 31, 2012, 03:00:30 PM
Brilliant, thank you.

What did you do?
Title: Re: Share This Topic
Post by: Suki on January 31, 2012, 03:07:18 PM
You have some code twice.
Title: Re: Share This Topic
Post by: Acetech on February 06, 2012, 12:50:19 PM
Just wanted to say thanks for the great mod and after support you have been providing, I too needed the file you attached previously to space the buttons from the bottom of the post but found the answer without having to ask, great work!
Title: Re: Share This Topic
Post by: Suki on February 07, 2012, 10:32:15 AM
Cool :)
Title: Re: Share This Topic
Post by: ctec67 on February 10, 2012, 12:48:29 PM
Hello,

I found this code, where it says show_faces=false, but they do show.
Can you please tell me what I need to change, so on the Facebook button
no faces show?

Thank You!

<iframe src="http://www.facebook.com/plugins/like.php?href='. $this->url .'&amp;layout=standard&amp;show_faces=false$amp;send=true&amp;width=250&amp;action=like&amp;colorscheme=light&amp;height=:80" scrolling="no" frameborder="0" style="border:none; overflow:visible; width:250px; height:80px;" allowTransparency="true"></iframe>

Sincerely
Carola
Title: Re: Share This Topic
Post by: Suki on February 10, 2012, 04:59:16 PM
I cannot control what facebook does, I only provide the tools to show the buttons, if facebook doesn't want to follow their own code then there's no much I can do about it.

I set up the button following facebook recomendations and using the code they provide.


You can use javascript SDK but that is problematic and doesn't guarantee that the faces won't show up.
Title: Re: Share This Topic
Post by: mill3num on February 12, 2012, 07:39:14 PM
Error:


Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /web/portal/Sources/ShareThis.php on line 61
Title: Re: Share This Topic
Post by: Suki on February 12, 2012, 08:17:26 PM
Attach that file here.
Title: Re: Share This Topic
Post by: mill3num on February 12, 2012, 08:21:14 PM
attached
Title: Re: Share This Topic
Post by: Suki on February 12, 2012, 08:27:28 PM
What php version are you using?

You need php 5.2 or greater to use this mod.
Title: Re: Share This Topic
Post by: mill3num on February 12, 2012, 08:29:23 PM
php 4


how can I disable?
before everything was working

sorry, my english and bad  ::)
Title: Re: Share This Topic
Post by: Suki on February 12, 2012, 08:34:56 PM
uninstall it with the parser:


http://custom.simplemachines.org/mods/index.php?action=parse;mod=2111;attach=196076;smf_version=2.0.2

do the contrary of what it says there.

when all the edits are done, upload the remove.php file and call it with your browser:

mysite.com/forum/remove.php



Title: Re: Share This Topic
Post by: mill3num on February 12, 2012, 08:42:54 PM
I'm calling in the browser and he gets the error  :-\
Title: Re: Share This Topic
Post by: Suki on February 12, 2012, 08:45:16 PM
open the Sources/ShareThis.php  and delete all the code inside and just leave the <?php  part,   then you will be able to uninstall it via the package manager
Title: Re: Share This Topic
Post by: mill3num on February 12, 2012, 08:58:45 PM
Fatal error: Undefined class name 'sharethis' in/web/portal/Sources/Load.php on line 1624
Title: Re: Share This Topic
Post by: Suki on February 12, 2012, 08:59:53 PM
meh...

open the same file and below <?php

add

class ShareThis
{
}
Title: Re: Share This Topic
Post by: mill3num on February 12, 2012, 09:01:37 PM
Parse error: parse error, unexpected ']', expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /web/sites/Sources/ShareThis.php on line 4
Title: Re: Share This Topic
Post by: Suki on February 12, 2012, 09:02:47 PM
re-read my previous post:

class ShareThis
{
}


is {}
Title: Re: Share This Topic
Post by: mill3num on February 12, 2012, 09:04:38 PM
Fatal error: Call to undefined function: headers() in /web/sites/Sources/Load.php on line 1624
Title: Re: Share This Topic
Post by: Suki on February 12, 2012, 09:06:48 PM
Did you removed all the code from this mod with the parser?

see the parser and remove all the code this mod added.
Title: Re: Share This Topic
Post by: mill3num on February 12, 2012, 10:20:59 PM
Thank you! I saved!  :)
Title: Re: Share This Topic
Post by: Bancherd on February 13, 2012, 09:05:45 AM
Could someone please confirm?  I seem to have problems with this mod and "Simple Audio Video Embedder (http://custom.simplemachines.org/mods/index.php?mod=2681)" mod installed together.  The latter mod generates a lot of errors whenever it was installed(where I had Share This installed first and working without any errors).
Title: Re: Share This Topic
Post by: Suki on February 13, 2012, 09:19:39 AM
And what are those errors?


what do you want to confirm?
Title: Re: Share This Topic
Post by: Kindred on February 13, 2012, 09:29:44 AM
I would assume that it is a conflict in the javascript functions...   

any javascript which inserts content into the thread/message display ends up conflicting and throwing all sorts of errors with OTHER code which also inserts, especially with the facebook like code.

I have noted a conflict between facebook and AEVA, SAVE, Glossary and Highslide -- and probably many others.

Since this (and most other) facebook inclusions use the code form facebook itself, I am not certain there is anything that can be done about it...   I'd suggest chasing it down with the author of the other mod (who MIGHT be able to change his code -- facebook almost definitely won't)
Title: Re: Share This Topic
Post by: MacX on February 13, 2012, 11:33:53 AM
Hey Suki,

I was very exciting to try this mod instead of programming and adding it by myself to the forum.
But i have a little problem :)

I dont see any text on my configuration page for the mod:
http://www.mysiste.comforo/index.php?action=admin;area=sharethis

Look at this image i took:
http://desmond.imageshack.us/Himg42/scaled.php?server=42&filename=capturadepantalla201202al.png&res=medium

I seems like the HTML code is there but not the strings you get from the arrays.
I have tried it in english (as i use spanish_es-utf8) and it doesn't work either. Same problem.

Oh, and i am NOT using default theme.

Any idea?
Thanks.
Title: Re: Share This Topic
Post by: Suki on February 13, 2012, 02:02:21 PM
Quote from: Kindred on February 13, 2012, 09:29:44 AM
I would assume that it is a conflict in the javascript functions...   

any javascript which inserts content into the thread/message display ends up conflicting and throwing all sorts of errors with OTHER code which also inserts, especially with the facebook like code.

I have noted a conflict between facebook and AEVA, SAVE, Glossary and Highslide -- and probably many others.

Since this (and most other) facebook inclusions use the code form facebook itself, I am not certain there is anything that can be done about it...   I'd suggest chasing it down with the author of the other mod (who MIGHT be able to change his code -- facebook almost definitely won't)


Does it happens with the facebook script only?


Moving the ShareThis code after the call to parser_bbc()

   // Run BBC interpreter on the message.
   $message['body'] = parse_bbc($message['body'], $message['smileys_enabled'], $message['id_msg']);

should cover all possible conflicts me things.


@MacX  do you have the ShareThis.spanish_es-utf8.php file in Themes/default/languages/  if not, upload it there.
Title: Re: Share This Topic
Post by: MacX on February 13, 2012, 02:31:41 PM
Quote from: Suki on February 13, 2012, 02:02:21 PM
@MacX  do you have the ShareThis.spanish_es-utf8.php file in Themes/default/languages/  if not, upload it there.
Ok,now i have. But... why this had took place? Should i install all mods on default theme and then in mine?

And another thing. At the spanish_es-ut8 you dont have all the strings translated.
This ones aren't in that file:


$txt['share_addthismessages_enable'] = 'Enable the AddThis script for the messages.';
$txt['share_addthisbutton_enable'] = 'Enable the AddThis script.';
$txt['share_addthisbutton_enable_sub'] = 'This will add the addthis script below the menu on the following pages:<br />-BoardIndex<br />-Profile<br />-Topic page.<br />
the Addthis script will share the entire page rather than an specific part of the forum.';
$txt['share_plusone_enable'] = 'Enable the Google Plus Button.';

If you dont have them translated, better to have them in english at least :) (some of them like$txt['share_addthismessages_enable']  is not even in the english uf8 version)

Thanks.
Title: Re: Share This Topic
Post by: MacX on February 13, 2012, 02:39:35 PM
Ok, i have tried it again. I dont see any change at the forum. No buttons appear anywhere :)
What's wrong now?
Title: Re: Share This Topic
Post by: Suki on February 13, 2012, 02:54:15 PM
did you get errors on install? are you really using spanish_es-utf8?

errors on error log?
Title: Re: Share This Topic
Post by: Suki on February 13, 2012, 03:18:24 PM
Fixed on github, you can obtain the new language files from there:

https://github.com/MissAllSunday/Share-This-Topic/commit/29c32be3fa73974d54254a171424f164fbaa3e38
Title: Re: Share This Topic
Post by: MacX on February 13, 2012, 03:35:43 PM
Quote from: Suki on February 13, 2012, 02:54:15 PM
did you get errors on install? are you really using spanish_es-utf8?

errors on error log?
No erros in the log (appart form the ones i solved of the language)
And yeah i ams using spanis_es-utf8, now i am able to see the texts at the configuration panel.
¿Any idea?
Title: Re: Share This Topic
Post by: Suki on February 13, 2012, 03:38:23 PM
Well, if you are viewing the text strings now then is OK no?

what other errors you have?

what SMF version are you using?

what php version are you using?

link to your forum or a topc where I can see the mod working?

errors on install?

did you get the new language files from github?
Title: Re: Share This Topic
Post by: MacX on February 13, 2012, 03:44:15 PM
Quote from: Suki on February 13, 2012, 03:38:23 PM
Well, if you are viewing the text strings now then is OK no?

what other errors you have?

what SMF version are you using?

what php version are you using?

link to your forum or a topc where I can see the mod working?

errors on install?

did you get the new language files from github?
As i said in a previous post, the language problem is solved. The actual problem is that i dont see any button. (no facebook like, no twitter share...)
It is like the mod has never been installed.

I have the mod activated with all checks in the option buttons and the other 3 checks in general options.
Title: Re: Share This Topic
Post by: Suki on February 13, 2012, 03:46:04 PM
You didn't answer my questions...

Please do answer all my questions, otherwise I will not be able to help.
Title: Re: Share This Topic
Post by: MacX on February 13, 2012, 03:51:42 PM
Quote from: Suki on February 13, 2012, 03:38:23 PM
Well, if you are viewing the text strings now then is OK no?
Yea
Quote from: Suki on February 13, 2012, 03:38:23 PM
what other errors you have?
No others.

Quote from: Suki on February 13, 2012, 03:38:23 PM
what SMF version are you using?
The last one. (2.0.2??) I made the upgrade yesterday night.

Quote from: Suki on February 13, 2012, 03:38:23 PM
what php version are you using?
5.2.17

Quote from: Suki on February 13, 2012, 03:38:23 PM
link to your forum or a topc where I can see the mod working?

Quote from: Suki on February 13, 2012, 03:38:23 PM
errors on install?
As far as i remember there was no error installing it.
BUT, now, when i have tried to uninstall it, there are erros. Look at this screenshot:
http://s2.subirimagenes.com/privadas/1758484captura-de-pantalla.png

Quote from: Suki on February 13, 2012, 03:38:23 PM
did you get the new language files from github?
No, i just modified my file. But there are no more errors there.

Hope it can help.
Title: Re: Share This Topic
Post by: Suki on February 13, 2012, 03:54:17 PM
It looks like the packager manager didn't  do all the necessary edits to your file use the mod's parser to manually apply all the edits:

http://custom.simplemachines.org/mods/index.php?action=parse;mod=2111;attach=196076;smf_version=2.0.2

there is a tutorial on Spanish boards on how to use the parser.
Title: Re: Share This Topic
Post by: MacX on February 13, 2012, 03:55:47 PM
The log shows erros when when i try to uninstall it in the screen i posted in the last post.

http://www.mysite.com/foro/index.php?action=admin;area=packages;sa=uninstall;package=ShareThis.zip;pid=12: unlink(/home/todopeta/public_html/foro//Packages/temp/SMF1-1/Sources.xml) [<a href='function.unlink'>function.unlink</a>]: Permission deniedArchivo: /home/todopeta/public_html/foro/Sources/Subs-Package.php
Línea: 1601

http://www.mysite.com/foro/index.php?action=admin;area=packages;sa=uninstall;package=ShareThis.zip;pid=12: unlink(/home/todopeta/public_html/foro//Packages/temp/SMF2-0/Sources.xml) [<a href='function.unlink'>function.unlink</a>]: Permission deniedArchivo: /home/todopeta/public_html/foro/Sources/Subs-Package.php
Línea: 1601

There are plenty of them and all in the lin Línea: 1601
Title: Re: Share This Topic
Post by: Suki on February 13, 2012, 03:56:53 PM
Those errors aren't related to this mod but rather with the packager manager and your server with bad permissions.
Title: Re: Share This Topic
Post by: MacX on February 13, 2012, 03:58:59 PM
Quote from: Suki on February 13, 2012, 03:54:17 PM
It looks like the packager manager didn't  do all the necessary edits to your file use the mod's parser to manually apply all the edits:

http://custom.simplemachines.org/mods/index.php?action=parse;mod=2111;attach=196076;smf_version=2.0.2

there is a tutorial on Spanish boards on how to use the parser.
Can i do it in any other way?
I really dont want to modify my files manually. Then it sucks if i want to uninstall it or if i want to do an upgrade or any other stuff... I have done it in the past and it really sucks...
Title: Re: Share This Topic
Post by: Suki on February 13, 2012, 04:01:49 PM
Unless you fix your issues with permissions then you won't be able to install any mod via the packager manager.

This mod only do 3 edits, the rest is made via hooks, which means that it will work even after an upgrade or a file replacement, you will only need to do those 3 edits and thats it. besides the manual edits are simple and doesn't interfere with an other mod edits.
Title: Re: Share This Topic
Post by: MacX on February 13, 2012, 04:03:40 PM
Quote from: Suki on February 13, 2012, 04:01:49 PM
Unless you fix your issues with permissions then you won't be able to install any mod via the packager manager.
Do you have any idea what folder or files permissions i should change to be able to install any other package?
Title: Re: Share This Topic
Post by: Suki on February 13, 2012, 04:05:11 PM
You should ask in the general support boards, this topic is for support for this mod only.
Title: Re: Share This Topic
Post by: MacX on February 13, 2012, 04:12:08 PM
Quote from: MacX on February 13, 2012, 03:55:47 PM
The log shows erros when when i try to uninstall it in the screen i posted in the last post.

http://www.mysite.com/foro/index.php?action=admin;area=packages;sa=uninstall;package=ShareThis.zip;pid=12: unlink(/home/mysite/public_html/foro//Packages/temp/SMF1-1/Sources.xml) [<a href='function.unlink'>function.unlink</a>]: Permission deniedArchivo: /home/mysite/public_html/foro/Sources/Subs-Package.php
Línea: 1601

http://www.mysite.com/foro/index.php?action=admin;area=packages;sa=uninstall;package=ShareThis.zip;pid=12: unlink(/home/mysite/public_html/foro//Packages/temp/SMF2-0/Sources.xml) [<a href='function.unlink'>function.unlink</a>]: Permission deniedArchivo: /home/mysite/public_html/foro/Sources/Subs-Package.php
Línea: 1601

There are plenty of them and all in the lin Línea: 1601
Title: Re: Share This Topic
Post by: Suki on February 13, 2012, 04:15:21 PM
Quote from: Suki on February 13, 2012, 04:05:11 PM
You should ask in the general support boards, this topic is for support for this mod only.

The problem is the permissions and the packager manager, not this mod.
Title: Re: Share This Topic
Post by: Suki on February 13, 2012, 07:36:28 PM
OK new version everyone:

4.1.2
-Fixed issues with the Spanish_es/latin strings.
-Fixed the Addthis script showing on the profile editing pages.
-Moved the append after the call to parse_bbc() this should cover most of the problems with other mods.
-Added an option to separate the message from the buttons, just enter any number, the higher the number the larger will be the space between the message and the buttons.

To upgrade just uninstall the previous version and install the new one.
Title: Re: Share This Topic
Post by: Bancherd on February 14, 2012, 08:13:06 AM
Installed 4.1.2, working like a charm along with other mods such as Simple Audio and Video Embedder. ;D


Thank you very much!  :D
Title: Re: Share This Topic
Post by: Andres. on February 14, 2012, 03:54:40 PM
I updated to the new version but the Addthis script is still showing on the profile editing pages. Am I doing anything wrong?

Thank you.
Title: Re: Share This Topic
Post by: Suki on February 14, 2012, 04:33:53 PM
It shouldn't appear.

On ShareThis.php  find

empty($_REQUEST['area'])

and replace with: !isset($_REQUEST['area']) && empty($_REQUEST['area'])
Title: Re: Share This Topic
Post by: Andres. on February 15, 2012, 02:25:33 AM
Quote from: Suki on February 14, 2012, 04:33:53 PM
It shouldn't appear.

On ShareThis.php  find

empty($_REQUEST['area'])

and replace with: !isset($_REQUEST['area']) && empty($_REQUEST['area'])

I made the modification but it's still showing. It doesn't matter, I just wanted you to know.
Title: Re: Share This Topic
Post by: Sakae on February 15, 2012, 05:34:47 AM
Hum.

Installed on my SMF 2.0 RC4 (security Patch), but..

Fatal error: Class 'ShareThis' not found in xxxxxxxx/Sources/Load.php on line 1683
Title: Re: Share This Topic
Post by: Suki on February 15, 2012, 07:59:24 AM
Any error on installation?
Does the ShareThis.php file exists on your Sources/ folder?


I can't remember if all the hooks this mod use are present in RC4, thus, this mod is only recommended to install on 2.0 or greater.
Title: Re: Share This Topic
Post by: Sakae on February 15, 2012, 08:31:09 AM
No error. Actually, the ShareThis.php wasn't extracted on install (see screenshot).

I'm emulating for SMF 2.0.2. It might be that?
Title: Re: Share This Topic
Post by: Suki on February 15, 2012, 08:42:54 AM
Sure, all files must be in it's correct place for the mod to work properly, just do a manual check to see if all files are in their correct places and all the edits were made and it should be fine.
Title: Re: Share This Topic
Post by: Kindred on February 15, 2012, 09:53:37 AM
wow...   emulating UP is sure to cause problems... 
BTW: You really need to update RC4 to the full release version.
Title: Re: Share This Topic
Post by: shubha on February 23, 2012, 05:07:49 AM
Its shows some type of error in wap version. I am using 2.0.2
Title: Re: Share This Topic
Post by: Suki on February 23, 2012, 09:41:34 AM
Can you explain what type of error?  maybe a screen shot?
Title: Re: Share This Topic
Post by: shubha on February 23, 2012, 11:00:19 AM
jQuery(document).ready(function($){jQuery(function(){jQuery("#msg_149").css("min-height", "50px");jQuery("#msg_149").hoverIntent(function(){jQuery("#msg_149").css("overflow-y", "hidden");jQuery(".sharethis_149").delay(100).fadeIn();},function(){jQuery(".sharethis_149").delay(300).fadeOut();});});});Tweet

You may also check in wap version.
Title: Re: Share This Topic
Post by: Suki on February 23, 2012, 11:28:34 AM
Yeah, seems like an issue, I'll add some code to check for wap version later, that should do it.
Title: Re: Share This Topic
Post by: shubha on February 24, 2012, 12:42:26 AM
I am having the old one but it is not compataible with it 2.0.2 Therefore i have delete it.Old one is better. Just make it compaitable with 2.0.2.
Title: Re: Share This Topic
Post by: Suki on February 24, 2012, 09:36:02 AM
I'm sorry, the old one is... old and I have no plans for it no more.

The code you put on the error is form the new version, not the old one, the old one didn't have jquery.
Title: Re: Share This Topic
Post by: Joseph H on February 25, 2012, 03:59:23 PM
I uploaded the mod to my 2.0.1 and it worked ok, but when i uninstalled it i could no longer login to my admin panel

i get a message ''share this'' not found in /home/public_html/sources/who.php on line 733

so what do i do? Please help me
Title: Re: Share This Topic
Post by: Suki on February 25, 2012, 04:47:42 PM
Please do not pm for support.


How do you exactly uninstalled it?  manually or via the package manager, it seems like you just deleted the files and forgot about the hooks, thus, SMF is still calling the ShareThis.php file.
Title: Re: Share This Topic
Post by: Joseph H on February 26, 2012, 01:13:05 AM
I uninstalled it at the package manager, i dont know where i went wrong, but im sure i didn't delete it
Title: Re: Share This Topic
Post by: Joseph H on February 26, 2012, 03:56:27 AM
Guys i couldnt find the word ''sharethis'' in who.php

i realy dont want to loose my data
Title: Re: Share This Topic
Post by: Suki on February 26, 2012, 08:18:34 AM
You won't lose any data...  your data is safe in the database...

what is the exact error you have?


on the other topic you open you talk about a different error...
Title: Re: Share This Topic
Post by: Joseph H on February 26, 2012, 08:36:52 AM
The erro that i have is whenever i want to enter admin mode, i get a message

''share this'' not found in /home/public_html/source/who.php on line 733''

That was after uninstalling the mod
Title: Re: Share This Topic
Post by: Suki on February 26, 2012, 08:43:32 AM
attach the Who.php file here
Title: Re: Share This Topic
Post by: Joseph H on February 26, 2012, 10:58:59 AM
Here is the who.php file
Title: Re: Share This Topic
Post by: Suki on February 26, 2012, 11:01:05 AM
No, that is not the file I'm looking for.

Open your ftp program How do I use FTP? / What is FTP? (http://wiki.simplemachines.org/smf/How_do_I_use_FTP)

browse your site to the Sources folder, inside that folder, there is a file called Who.php, download that file and upload that file here please.
Title: Re: Share This Topic
Post by: Joseph H on February 26, 2012, 12:47:25 PM
Here is the file,
Title: Re: Share This Topic
Post by: Suki on February 26, 2012, 06:04:32 PM
No, sorry, is still not the file I'm looking for, it is the same file you previously attached, just with a different name.

Do you have access to cpanel or something similar?
Title: Re: Share This Topic
Post by: Joseph H on February 27, 2012, 02:59:33 AM
The problem is now solved @Suki

Im 100% sure that the files i attached were who.php that i found on my site. That was the error

so changes had to be made, and that file was once named who.php~

so thnx my dear
Title: Re: Share This Topic
Post by: Kindred on February 27, 2012, 07:46:41 AM
Don... I am glad you fixed it, but those files were NOT php source files. Those files were the parsed and displayed version from a web browser.
Title: Re: Share This Topic
Post by: d-gr on February 27, 2012, 04:00:21 PM
I have installed the mod on smf 2.0.2 and I have a small problem.
I want to move this little downward as shown in photo 1 and photo 2.
Especially on the photo 2 turns out  below the message and does not look very good.
In what file can I find the position and what to change?

thank you Dimitris

(http://img860.imageshack.us/img860/3414/photo1l.png) (http://imageshack.us/photo/my-images/860/photo1l.png/)


(http://img69.imageshack.us/img69/2919/photo2nw.png) (http://imageshack.us/photo/my-images/69/photo2nw.png/)
Title: Re: Share This Topic
Post by: Suki on February 27, 2012, 04:12:14 PM
Sources/ShareThis.php is where all the css is located.
Title: Re: Share This Topic
Post by: Odin on March 01, 2012, 08:33:18 AM
Hola Suki,

Es posible combinar el Share this topic con el Addthis??

Intento instalar el Addthis parseando a 2.0.RC3 y no me lo instala, teniendo instalado el Share this topic.
Muchas gracias.
Saludos Odin.
Title: Re: Share This Topic
Post by: Suki on March 01, 2012, 09:37:33 AM
You should use English on this board.

You don't need that mod, I merged those 2 in to one, you only need to install this mod.
Title: Re: Share This Topic
Post by: Odin on March 02, 2012, 07:27:35 AM
Sorry Suki, what mod do I need?
With Share this topic I haven´t any social networks, but with Addthis I could be have all the social networks that I need.
Best Regards.
Title: Re: Share This Topic
Post by: Suki on March 02, 2012, 09:59:13 AM
If you want to show the facebox, google+, twitter and the AddThis script in your messages (every message or just first message)  then you only need this mod.

This mod already have the AddThis script included.
Title: Re: Share This Topic
Post by: luuuciano on March 07, 2012, 11:38:03 AM
What about the ability to configure the twitter "via" section? I mean for example:

"A REMAR!!! Juntada para remar en Kayak en el dique la quintana, SABADO 10 de mar http://ikers.com.ar/index.php/topic,6637.msg103504.html#msg103504 via @Foro_de_cbabikes"

that "via @Foro_de_cbabikes"... maybe someone wants to have via @cbabikes... or #cbabikesforo... (with #, as maybe they have not an user, and wants to use just a hash tag)


EDIT: BTW2, what about the ability to configure de addthis code? so people can see they own forum analytics... it is made with a addthis code?
Title: Re: Share This Topic
Post by: Suki on March 07, 2012, 12:07:00 PM
The via @  only works with @  and not for hastags #something


By default it is set to se the forum name but if you want to change that then just go to Sources/ShareThis.php find:

data-via="'. $this->forum_name .'"


and replace with whatever you want to appear:

data-via="something"
Title: Re: Share This Topic
Post by: d-gr on March 07, 2012, 12:44:42 PM
Quote from: Suki on February 27, 2012, 04:12:14 PM
Sources/ShareThis.php is where all the css is located.

hello to everyone
i have a question about one problem that i have
i had change the command lines and i added google+ and twiter buttons ,but i couldnt found the button  "like facebook".
where is it? where i can find it?  thanks for your support!!!
Title: Re: Share This Topic
Post by: Suki on March 07, 2012, 01:02:03 PM
What exactly do you want to do?


you dont need to add those buttons... those buttons are there by default.
Title: Re: Share This Topic
Post by: d-gr on March 07, 2012, 02:46:46 PM
the buttons google+ and twitter are above the message , so i moved the command lines (top:+10px;) and the buttons moved little down and it looks like i want ,i couldnt found how to move the share facebook button to looked like the others....


.sharethis_twitter, .sharethis_google
{
'. (!empty($modSettings['share_likebutton_enable']) ? '
   position: relative;
   top: +10px;
' : '') .'
}
Title: Re: Share This Topic
Post by: Suki on March 07, 2012, 05:30:47 PM
Each button is contained on a li:

<li class="sharethis_'. $a['name'] .'">

so, if you want to change the css for the facebook butto, then the class is

.sharethis_facebook
{
// css here
}

just add that class below this:


.sharethis_twitter, .sharethis_google
{
'. (!empty($modSettings['share_likebutton_enable']) ? '
   position: relative;
   top: +10px;
' : '') .'
}
Title: Re: Share This Topic
Post by: d-gr on March 08, 2012, 08:40:47 AM
Thank all very ok  :D
Title: Re: Share This Topic
Post by: italo_anonimo on March 08, 2012, 11:51:16 AM
thanks for mod,

how to  not see icon on post for guest?? (guest not see icons.) because i'm install Registered Links mod and see You are not allowed to view links. 'Register' or  'Login' for every icon....

thanks again.
Title: Re: Share This Topic
Post by: Suki on March 08, 2012, 12:03:50 PM
What version are you using?

with the latest version, I moved the call to ShareThis after SMF parse_bbc() funciton is called, that means the buttons aren't manipulated by any code in parse_bbc(), that includes registered links since as far as I remember, that mod modifies parse_bbc().


Use the latest version.
Title: Re: Share This Topic
Post by: GlitchPC on March 08, 2012, 03:07:01 PM
Suki...

Thanks for this mod.  I like it a lot better than the other one I had tested from the SMF mod section.

However, I still can't get the correct image to show up on Facebook when I click like and then add a comment....and click post.  Don't get me wrong...the like shows up on FB...it just grabs any image from the page it's on.  Even after I added the following to the html tag and header tag:

HTML tag...

<html xmlns="http://www.w3.org/1999/xhtml"
  xmlns:og="http://ogp.me/ns#"
      xmlns:fb="http://www.facebook.com/2008/fbml"', $context['right_to_left'] ? ' dir="rtl"' : '', '>


Meta tag...

<meta property="og:image" content="http://glitchpc.net/Themes/default/images/glitchpc.png" />

Also...jquery effect does not work and Share This shows up on Index and Profile but, not Topic.


Am I missing something?  Thanks, in advance...
Title: Re: Share This Topic
Post by: Suki on March 08, 2012, 04:03:59 PM
This mod does not use the facebook XFBML version of the like button, is just too troublesome to use is, specially for this mod that is intended to work with a large variety of forums, so no, even if you add those meta tags, the button won't load the correct image unless you use the XFBML version at full, ie, <fb:like ref="top_left"></fb:like> instead of the iframe that this mod uses.

About the AddThis script, I'm aware of that, I haven't have the time to properly fix it, I commited some code to github but it appears it didn't work as the AddThis script is still visible on some pages.

The AddThis script doesn't have any jquery effect, it only shows on the exact same line as the linktree.


If you mean the jquery effect in general, then you need to check if some other mod already loads jquery, this mod does check if jquery is already loaded but cannot do nothing if some other mods loads jquery indiscriminately or loads it wrong.
Title: Re: Share This Topic
Post by: GlitchPC on March 08, 2012, 04:29:42 PM
Thank you, very much, for the reply and information...
Title: Re: Share This Topic
Post by: Suki on March 08, 2012, 04:52:25 PM
You disable the mod, however it seems that you had the jquery effect off, this mod has a setting to enable/disable that setting.

I checked the source and it looks like you had that setting disable, thus, the jquery effect doesn't appear and the buttons appear all the time.
Title: Re: Share This Topic
Post by: GlitchPC on March 08, 2012, 04:59:40 PM
I've tried it with the jquery enabled...and it didn't work.  Thanks for the reply, though.  I know there must be a conflicting mod, somewhere...but, I don't have time to sort that out at the moment.  I will look into it, further.  However, just thought I'd let you know...I am looking into other alternatives.

Thanks, again for the quick replies...I really appreciate that.
Title: Re: Share This Topic
Post by: Suki on March 08, 2012, 05:04:30 PM
You are free to use any mod you want, you don't have to tell me you are looking for alternatives...  My mods are there for those who wants to use it.


I take the blame on the AddThis sccript as it's a bug in the mod.

With the setting off or the mod uninstalled there is no much I can do to debug and see where is the conflict.
Title: Re: Share This Topic
Post by: Suki on March 08, 2012, 07:48:27 PM
Version 4.1.3
-Fixed once and for all the annoying AddThis bug

Now the AddThis script it's displayed on Board Index, Message Index. Topic page and Profile page.

To upgrade just uninstall the old version and install the new one, you won't lose any setting.
Title: Re: Share This Topic
Post by: GlitchPC on March 09, 2012, 02:28:46 AM
Downloaded the latest package...yet it still reads version 4.1.2 in Package Manager.

This has definitely fixed the issue with the AddThis script not showing on Message Index and Topic page.  Nice job!  Edit:  I spoke too soon...  It worked, once.  Now...the AddThis script does not show on the Message Index, or Topic page.

I still can't get the jquery effect to work, though.  I run SMF 2.0.2 and SimplePortal 2.3.4 on a heavily modded board...and "yes"...I have the option unticked to disable jquery effect.

I will be back later today to check for topic status.
Title: Re: Share This Topic
Post by: italo_anonimo on March 09, 2012, 06:59:17 AM
Quote from: italo_anonimo on March 08, 2012, 11:51:16 AM
thanks for mod,

how to  not see icon on post for guest?? (guest not see icons.) because i'm install Registered Links mod and see You are not allowed to view links. 'Register' or  'Login' for every icon....

thanks again.

Quote from: Suki on March 08, 2012, 12:03:50 PM
What version are you using?

with the latest version, I moved the call to ShareThis after SMF parse_bbc() funciton is called, that means the buttons aren't manipulated by any code in parse_bbc(), that includes registered links since as far as I remember, that mod modifies parse_bbc().


Use the latest version.

hi, installed latest version, it's ok

version smf (2.0.2)

thansk for mod.
Title: Re: Share This Topic
Post by: Suki on March 09, 2012, 09:40:34 AM
@GlitchPC You have a conflict with another mod that is also using jquery, check al the mods that uses jquery and remove all the calls to it, you just need one call.

Alsoo, it appears that other mods are replacing the entire $context['html_headers']  instead of appending content to it like they should be:

$context['html_headers'] .=

Since this mod loads content to that variable just after the variable is set, if another mod replaces that variable with new content then the data for this mod will never be showed.

I have seen just too many mods that do this, they use $context['html_headers'] but they do not care if there is another mod that is already using that variable and just replace the entire content with their content, making my mod useless.

I'll have to find yet another way to place my code on the head tag without using $context['html_headers']


For your problem, you can just move the Headers() function in ShareThis.php directly to your index.template.php file
Title: Re: Share This Topic
Post by: GlitchPC on March 09, 2012, 09:53:23 AM
Suki...

Thanks for replying...

I hate to sound stupid...but, I know absolutely nothing about scripting and/or coding.  I know just enough to get me into trouble...and when you say I have a conflict with another mod...that, I can understand.  However, when you say that I need to go through all my mods...which are about 50 in total...and remove all the calls to jquery...then, I'm lost.

I'm not trying to be a pain...but, when you speak of jquery calls and moving a function...can you be a little more specific...without getting too annoyed and lead be by the hand as best as possible?  I don't want to end up removing something that's going to bring the site down...or cause another conflict with a mod I've already installed.


Thanks, in advance...
Title: Re: Share This Topic
Post by: Suki on March 09, 2012, 10:01:26 AM
Open your theme's index.template.php file, find

// Output any remaining HTML headers. (from mods, maybe?)

and above add this:



/* Share this topic mod */
/* JQuery here please */
if (!empty($modSettings['share_buttons_enable']) || !empty($modSettings['share_addthisbutton_enable']))
echo '
<!-- Share This Topic Mod -->
<script type="text/javascript">!window.jQuery && document.write(unescape(\'%3Cscript src="http://code.jquery.com/jquery.min.js"%3E%3C/script%3E\'))</script>
<script type="text/javascript" src="', $settings['default_theme_url'] ,'/scripts/jquery.hoverIntent.minified.js"></script>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4f0f3b943805e0af"></script>
';

/* Don't show this if the mod is not enable */
if (!empty($modSettings['share_buttons_enable']) || !empty($modSettings['share_addthisbutton_enable']))
echo '
<style type="text/css">
#sharethis
{
', (!empty($modSettings['share_disable_jquery']) ? 'display:visible' : 'display:none;') ,'
position:relative;
top:5px;
left:5px;
z-index:100;
min-height:30px;
', (!empty($modSettings['share_options_show_space']) && !empty($modSettings['share_options_position']) && $modSettings['share_options_position'] == 'below' ? 'padding-top: '. $modSettings['share_options_show_space'] .'px' : '') ,'
}
#sharethis ul
{
margin: 0;
padding: 0;
list-style-type: none;
text-align: left;
list-style-position:inside !important;
}
#sharethis ul li
{
display: inline;
}
', (!empty($modSettings['share_addthismessages_enable']) ? '
#sharethis ul li.sharethis_addthis
{
float:left;
margin-right:15px;
}
' : '') ,'


.sharethis_twitter, .sharethis_google
{
', (!empty($modSettings['share_likebutton_enable']) ? '
position: relative;
top: -60px;
' : '') ,'
}

', (!empty($modSettings['share_addthisbutton_enable']) ? '
.sharethis_addthis_script
{
float: right;
display:inline;
position:relative;
top: -20px;
}
' : '') ,'

</style>';

if(!empty($modSettings['share_plusone_enable']) && !empty($modSettings['share_buttons_enable']))
echo '<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>';

if (!empty($modSettings['share_twibutton_enable']) && !empty($modSettings['share_buttons_enable']))
echo '<script type="text/javascript">!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>';

/* We need an array */
if (!empty($modSettings['share_options_boards']))
$share_options_boards = explode(',', $modSettings['share_options_boards']);

else
$share_options_boards = array();

/* By default this is set to disable */
$AddThisEnable = false;

/* Are we in the profile action without any subaction? */
if ($context['current_action'] == 'profile' && !isset($_GET['sa']) && !isset($_GET['area']))
$AddThisEnable = true;

/* Are we in a topic? */
if (isset($_GET['topic']) && !isset($_GET['sa']) && !isset($_GET['action']))
$AddThisEnable = true;

/* Are we in a board? */
if (isset($_GET['board']) && !isset($_GET['sa']) && !isset($_GET['action']))
$AddThisEnable = true;

/* Are we in the BoardIndex? */
if (!isset($_GET['action']) && !isset($_GET['topic']) && !isset($_GET['board']))
$AddThisEnable = true;

if ($AddThisEnable && !empty($modSettings['share_addthisbutton_enable']))
echo '
<script type="text/javascript">
jQuery(document).ready(function($)
{
jQuery(function()
{
jQuery(\'.navigate_section\').append(\'<span class="sharethis_addthis_script"><a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=250&amp;pubid=xa-4f0f51eb17eb2a19"><img src="http://s7.addthis.com/static/btn/v2/lg-share-en.gif" width="125" height="16" style="border:0"/></a></span>\');
});
});
</script>';
/* Share this topic mod */



Then open Sources/Load.php file, find and remove this:

ShareThis::Headers();

Do a back up of your file first.
Title: Re: Share This Topic
Post by: GlitchPC on March 09, 2012, 10:49:02 AM
Suki...

Thank you for that information.  I have made the requested changes and the AddThis script seems to be working fine on all pages.

Now...if I can just get the jquery script to function properly...that would be another plus.

I want you to know I really appreciate your taking the time to guide me through this...

Edit...

By the way...can the AddThis script be disabled for certain boards?
Title: Re: Share This Topic
Post by: Suki on March 09, 2012, 11:11:44 AM
It looks like the hoverintent library is loaded too soon, on your index.template find:

<script type="text/javascript" src="', $settings['default_theme_url'] ,'/scripts/jquery.hoverIntent.minified.js"></script>


remove and then find your </head> tag and add th same line before:


<script type="text/javascript" src="', $settings['default_theme_url'] ,'/scripts/jquery.hoverIntent.minified.js"></script></head>
Title: Re: Share This Topic
Post by: GlitchPC on March 09, 2012, 11:22:29 AM
Suki...

Made the change, as you requested...and that did not make any difference.  It still does not work.
Title: Re: Share This Topic
Post by: Suki on March 09, 2012, 11:36:08 AM
Do you use another mod that uses .hoverIntent() ?

Open Sources/ShareThis.php find:

            jQuery(function()
{
jQuery("#msg_'. $this->msgID .'").css("min-height", "50px");
jQuery("#msg_'. $this->msgID .'").hoverIntent(function()
{
jQuery("#msg_'. $this->msgID .'").css("overflow-y", "hidden");
jQuery(".sharethis_'. $this->msgID .'").delay(100).fadeIn();
},function(){
jQuery(".sharethis_'. $this->msgID .'").delay(300).fadeOut();
});
});


and replace with


jQuery(function()
{
jQuery("#msg_'. $this->msgID .'").css("min-height", "50px");
jQuery("#msg_'. $this->msgID .'").hover(function()
{
jQuery("#msg_'. $this->msgID .'").css("overflow-y", "hidden");
jQuery(".sharethis_'. $this->msgID .'").fadeIn();
},function(){
jQuery(".sharethis_'. $this->msgID .'").delay(300).fadeOut();
});
});



You will lose the hoverintent retarding effect
Title: Re: Share This Topic
Post by: GlitchPC on March 09, 2012, 12:16:41 PM
QuoteDo you use another mod that uses .hoverIntent() ?

I do not know...

I made the edit you suggested...no effect.

All of the mods I currently have installed....prepare yourself.

1.   httpBL  2.5.1
2.   Stop Spammer  2.3.9
3.   Add Stars To Profile  1.0.1
4.   Extended Help  1.0
5.   Contact Page  3.0
6.   Welcome Topic Mod  2.1
7.   SimplePortal  2.3.4
8.   Topic Solved  1.1.1
9.   Auto Merge Double Post  1.5
10.   InLine Attachments  1.11
11.   Glossary  0.3.1
12.   Activity Bar  1.1
13.   SMF 2.0.1 Update  1.0
14.   TopicStarter Mod  1.7
15.   Disable Image Toggle  1.1
16.   Adk Back To Top  1.0
17.   AjaxChat Integration  3.2.2b
18.   Users Online Today  2.0
19.   Referrals System  3.0.3
20.   NoFollow All Links  1.2.1
21.   VB Style Board Index  1.91
22.   Justify BBCode  2.3.2
23.   RSS Feed Poster  3.0.2a
24.   SMF Arcade  2.5
25.   OS & Browser Detection  1.5
26.   Sitemap  2.2.0
27.   Highslide 4 SMF  0.8
28.   Global Headers Footers  2.0
29.   Google Analytics Code  1.4
30.   Share This Topic  4.1.2
31.   SMF Links  2.4
32.   Custom Form Mod  1.7
33.   SMF Staff Page  1.7
34.   SMF 2.0.2 Update
35.   More Spiders  1.2
36.   NiceTooltips  1.8
37.   Google Member Map  2.6
38.   SMF Gallery Lite  3.1.1a
39.   PM Readed  1.1
40.   Mark Personal Messages as Read  1.0.5
41.   Separate the sticky topics  1.0.0
42.   Stars And Badges  2.2
43.   RSS Feed Icon  1.1
44.   Auto Refresh Who Index  1.1
45.   Additional Home page Title | S-Ace  3.5
46.   Treasury  2.10
47.   SA KB  Beta 5 R16
48.   SMF Quiz  1.0.8 beta4
49.   Additional Instant Messengers  1.0.1
50.   Bad Behavior mod  1.5.8
51.   Add Social Media Icons To Profiles  1.0.5

Edit...

Suki,

I've reverted all of the changes we made since the start of this request for support.  No offense but, I'm just trying to find a social networking mod that does what it's supposed to do without the need for a lot of edits...or, without it conflicting with other mods.  Granted...due to the large number of mods I have installed...this, may be impossible.

I have been going through the list of my mods...uninstalling those which were added in haste or, were really not being used...in an effort to clean up my board.

Thanks for the support...and no need to waste your time, anymore, with this particular issue.
Title: Re: Share This Topic
Post by: shubha on March 14, 2012, 09:58:52 PM
Again do the wrong.
Now they are not show in one line if i will chose "below" where i have not try at "above".
Title: Re: Share This Topic
Post by: Suki on March 14, 2012, 10:37:07 PM
Quote from: shubha on March 14, 2012, 09:58:52 PM
Again do the wrong.
Now they are not show in one line if i will chose "below" where i have not try at "above".

Please be more specific.

Post the errors you may have and an url to your forum/topic example.


@GlitchPC  I do take the offense... it seems like it is my fault or my mod's fault the fact that this mod doesn't  meet your requirements... or that you need to do a lot of edits... This mod is by far the most easy to install of all the social mods out there, there is no template edits, uses hooks and loads jquery only if necessary.

It is not my fault that other mods overwrite the $context['html_headers']  var completely or that you load multiple times the jquery library... is not something I can control so it's unfair on your part to say that my mod doesn't do what it suppose to do, specially on a forum so heavily modified like yours.

I'm sorry, I just cannot build a mod just for your site or your requirements...
Title: Re: Share This Topic
Post by: shubha on March 14, 2012, 11:18:04 PM
Thanks that the JQUERY (4.1.1 version) problem has been solved in wap version, which i already provide the error .Please update to everyone to update this version.

QuoteAgain do the wrong.
Now they are not show in one line if i will chose "below" where i have not try at "above".

If i will not enable the "Add this " in button settings. The G+ is very close to facebook icon. Therefore i have enable the "Add this" in button settings also.
Title: Re: Share This Topic
Post by: GlitchPC on March 15, 2012, 02:49:39 AM
Well...if it makes you feel any better...yours is the one I'm currently using...even though there's a conflict with another mod...or maybe more for that matter.

I'm not using the jquery, or the AddThis option of your mod, though.

I don't understand some of the responses I get from you, though.  It seems every time I make a comment about one of your mods you seem to think it's a personal attack on you...which it is not.

Just because I install another mod, or mods that conflict with yours does not make it my fault, either....now, does it?

And by the way...at no time did I ever make a personal request for you to design a mod, specifically, for my website.
Title: Re: Share This Topic
Post by: Skyflash on March 15, 2012, 08:38:13 AM
When a visitor clicks on the Retweet button, the mod creates a message like this:

https://twitter.com/?utm_campaign=BloggerStanco&utm_content=180247732890513408&utm_medium=fb&utm_source=fb#!/BloggerStanco/status/180247732890513408

and ends the message with "via @$name", where "$name" is a name totally "invented" by the button and that has no relevance. Can you add a config for custmize the Twitter @username?
Title: Re: Share This Topic
Post by: Suki on March 15, 2012, 10:11:16 AM
Quote from: Skyflash on March 15, 2012, 08:38:13 AM
When a visitor clicks on the Retweet button, the mod creates a message like this:

https://twitter.com/?utm_campaign=BloggerStanco&utm_content=180247732890513408&utm_medium=fb&utm_source=fb#!/BloggerStanco/status/180247732890513408

and ends the message with "via @$name", where "$name" is a name totally "invented" by the button and that has no relevance. Can you add a config for custmize the Twitter @username?


The via name is not invented...  please take a look closer to the source file before making any statement...

      /* Replace the spaces (if any) in the forum name to  make a cool "via @my_forum_name" for twitter */
      $this->forum_name = str_replace(' ', '_', $context['forum_name']);

Yes I will include a setting for that.
Title: Re: Share This Topic
Post by: Suki on March 15, 2012, 10:25:35 AM
Quote from: GlitchPC on March 15, 2012, 02:49:39 AM
Well...if it makes you feel any better...yours is the one I'm currently using...even though there's a conflict with another mod...or maybe more for that matter.

I'm not using the jquery, or the AddThis option of your mod, though.

I don't understand some of the responses I get from you, though.  It seems every time I make a comment about one of your mods you seem to think it's a personal attack on you...which it is not.

Just because I install another mod, or mods that conflict with yours does not make it my fault, either....now, does it?

And by the way...at no time did I ever make a personal request for you to design a mod, specifically, for my website.

You constantly make statements about my FAQ mod on other mod's support topic... about how my my mod is useless and stuff... which is unfair... my FAQ mod wasn't built to "compete" with the other mod, it doesn't have as much features as the other mod because it wasn't built to have that many features... it was built to be a lightweight mod.

You constantly say to me that after using one of my mods and found something you don't like you will use another mod...it feels almost as if you were threatened me: "I want to let you know that I'm not going to use your mod anymore and going to use x mod instead".

How would you feel if I start to post on your forum, found something I don't like and start telling everybody about leaving to another forum, then I'll go to that other forum and start telling about how bad your forum is?

How would that make you feel?

Quote
Just because I install another mod, or mods that conflict with yours does not make it my fault, either....now, does it?

You are the responsible for putting code on your forum, not me! I'm not forcing you to put bad code on your forum... I did as much as I as can on this mod to make it compatible with the vast majority of mods available, unfortunately, I can't control the way other people do code...
Title: Re: Share This Topic
Post by: Suki on March 15, 2012, 10:26:35 AM
Quote from: shubha on March 14, 2012, 11:18:04 PM
Thanks that the JQUERY (4.1.1 version) problem has been solved in wap version, which i already provide the error .Please update to everyone to update this version.

QuoteAgain do the wrong.
Now they are not show in one line if i will chose "below" where i have not try at "above".

If i will not enable the "Add this " in button settings. The G+ is very close to facebook icon. Therefore i have enable the "Add this" in button settings also.


You can fix that using css, every button has a class, you only need to apply a padding/margin to the g+ button.
Title: Re: Share This Topic
Post by: GlitchPC on March 15, 2012, 11:10:37 AM
QuoteYou constantly make statements about my FAQ mod on other mod's support topic... about how my my mod is useless and stuff...

Show me where I said this...

QuoteYou constantly say to me that after using one of my mods and found something you don't like you will use another mod...it feels almost as if you were threatened me: "I want to let you know that I'm not going to use your mod anymore and going to use x mod instead".

Now...that's my prerogative...isn't it?  If I don't like a mod...it's my decision whether or not I want to use someone else's...correct?  It's common courtesy to let you know this.  It's not a personal attack on you...or your mod.  I just found something better.  Again...show me where I "constantly" say this...

QuoteHow would you feel if I start to post on your forum, found something I don't like and start telling everybody about leaving to another forum, then I'll go to that other forum and start telling about how bad your forum is?

I want to know, verbatim, where you've seen me write/post something...telling anyone how bad your mod is.  I want you to quote exactly what I said and post it here.  If you want to go to my forum and spam it...by all means...go right ahead.

Your behavior towards me has been nothing but childish...and I'm moving on from your mods and this thread.

I'd wish you luck but, personally, I could care less.
Title: Re: Share This Topic
Post by: Suki on March 15, 2012, 03:06:20 PM
Please do not use any of my mods and if you do, I'm sorry, you are on your own, I'm just gonna ignore your requests.

You have all the right in the world to use whatever you want on your forum, it's your forum, not mine.

You have all the right of the world to say anything about my mods when you have something to say, for example, if my mods are full of bugs or are extremely difficult to install or doesn't install on your SMF version and you have to emulate and do template edits to make it work,  if that was the case, then yes, by all means do complain...

But when you complain because my mod doesn't work on your heavily modified forum and you tell me your "gonna find one mod that does just what I want" (like if I have the fault on that...)  then I'm sorry,   first of all, you won't find any mod that magically will suit your heavily modified forum right away...  this mod is the closest thing you will get, and yet you are complaining because it doesn't work as you want... and walk away telling me you will find something better even when I was given support to you...

If my mods are full of bugs and destroyed your whole forum then yes, complain as much as you want... but that was not the case... 

You uninstalled the FAQ mod because I refuse to add more features, not because my mod was bad...

You uninstalled this mod because this mod doesn't have the open graph crap facebook uses (yes is crap because it makes you modify a lot of things, add some metatags that brakes validation and it doesn't even guarantee the functionality that they claim to provide).

That's why I don't use the open graph thing, it is difficult already for one website to implement, imagine how difficult it is to make it work on thousands of forums with thousands of configurations.

I told you how can you disable the jquery effect, it was a couple of edits to the own mod file, which means it will never gonna brake your forum since you aren't touching your own forum files, yet, you decide to use another mod, and I'm pretty sure you had to do a lot more edits to make it work...  edits directly on your template files, which means it will only work on one theme.

That's why I don't understand when you clam that you will use something better...  does better to you means doing a lot of template edits?

It annoys me that if you have to do some small edits then suddenly you're gonna "find something better" and then you tell me that your gonna find something better: "hey fix my issue or else I'm gonna use something else"... that's the attitude I see when you say you are gonna use another mod... giving the impression that my mod doesn't work when in fact I'm given you support to make it work on your heavily modified forum... it is unfair...


If you found something better, good for you, please keep it to yourself, I'm not interested in knowing it, I don't find it to be courtesy, I find it as a way to put pressure on me to help you solve your issues...  which I don't mind doing it, but I also would like if you do not threaten me with "using something better"  if I don't fix your issues the way you want...  I'm sorry, I don't work like that.

Quote from: GlitchPC on March 08, 2012, 04:59:40 PM
However, just thought I'd let you know...I am looking into other alternatives.


Quote from: GlitchPC on March 09, 2012, 12:16:41 PM

Suki,

I've reverted all of the changes we made since the start of this request for support.  No offense but, I'm just trying to find a social networking mod that does what it's supposed to do without the need for a lot of edits...or, without it conflicting with other mods.

Quote from: GlitchPC on January 29, 2012, 11:26:42 AM

I had been using Suki's FAQ mod...but, decided against it...for numerous reasons.  To each, his own, I guess.  Personally...I'm liking this one much better and just want to thank you for an awesome mod!


Quote from: http://glitchpc.net/index.php?topic=263.msg871#newNo offense to the mod author but, I'd like to find a mod that has no conflicts with other mods...and simply does what I want it to do....which is share topics and posts to a user's social network the way it's supposed to.


I'm sorry, does my mod doesn't do what it's suppose to?


That is a serious claim you know, if you are gonna say something like that then you better have some evidence to back up your words.
Title: Re: Share This Topic
Post by: GlitchPC on March 15, 2012, 05:47:02 PM
Funny how you see things in YOUR own mind...and how you put words into other people's mouths at your own discretion.
QuoteYou uninstalled the FAQ mod because I refuse to add more features, not because my mod was bad...

This is untrue.  I uninstalled it, because it was using way too many queries.  After I uninstalled it...you decided to recode the mod for file caching instead of using the database.
QuoteYou uninstalled this mod because this mod doesn't have the open graph crap facebook uses (yes is crap because it makes you modify a lot of things, add some metatags that brakes validation and it doesn't even guarantee the functionality that they claim to provide).

Partially true...  I uninstalled this mod due to the OpenGraph issue, yes.  Also for the other reason I stated...and this reason was due to the numerous mods I have installed which may be conflicting with it.  Which I did state in this thread.  Again...you're telling me why...and you really have no clue...only your pre-conceived assumptions as to what I may be thinking.  Apparently, you must be missing something in the translator you're using to translate my replies.

I said...
QuoteSuki,

I've reverted all of the changes we made since the start of this request for support.  No offense but, I'm just trying to find a social networking mod that does what it's supposed to do without the need for a lot of edits...or, without it conflicting with other mods.

Make sure you read the entire quote above.

You said...
QuoteThat is a serious claim you know, if you are gonna say something like that then you better have some evidence to back up your words.

I made no claims...I just stated what I wanted from a mod....without the need for edits...or, conflicting with other mods.  Which is what you said my installed mods were doing with your mod.

QuotePlease do not use any of my mods and if you do, I'm sorry, you are on your own, I'm just gonna ignore your requests.

You have absolutely no worries there...I removed all of those hours ago.

You have given me nothing but "attitude" from the get-go when I installed your FAQ mod and made a feature request.  You commented in that mod that I was "demanding" my request(s).  I'd like all who are reading this thread to read the posts I made in your FAQ mod to see if, at any time, I "demanded" anything.  Again...I think this has a lot to do with your translator and I will not make any further attempts to reply to any of your attempts to get me to do so.

What I find "hilarious"...is that while I was, at no time, rude or offensive...you, on the other hand, were "snotty" and "curt".

I have uninstalled all of your mods and have moved on.
Title: Re: Share This Topic
Post by: Suki on March 15, 2012, 06:15:52 PM
It's funny how you don't comment about my explanation on how I feel and see your "I'm going to use another mod" phrases.  I did explained what I feel and yet you take the tangent and blame a translator, which BTW I don't use, so you are making the exact same "pre-conceived assumptions" you say I'm doing.


I told you I find it rude when you say "I'm going to use other mods".

Again, I was providing support to you, I told you how to disable the jquery effect, I did the changes myself instead of telling you how to do it, I was being nice but you decided suddenly to "find a better mod", if you  will do that anyway, why do you even post for support here then?  why waste your time?

It is unfair when you say this:

Quote
Suki,

I've reverted all of the changes we made since the start of this request for support.  No offense but, I'm just trying to find a social networking mod that does what it's supposed to do without the need for a lot of edits...or, without it conflicting with other mods.

Specially since you know you won't find a mod that will magically work on your heavily modified mod, so the claim that you will find a better mod is false, you aren't gonna find that mod, there is no mod that will fit your forum perfectly unless you write it yourself or pay for it.

It's unfair when you say my mod doesn't do what is suppose to do, just because you have to do manual edits doesn't mean my mod doesn't do what it suppose to do, it's unfair on your part to say that.

There aren't that many mods that uses hooks, that means the vast majority do file edits, template edits, naturally, this will cause conflicts with other installations, it's natural and it happens very often due the nature of SMF; however, this doesn't mean the mod doesn't do what it suppose to do like you say.


Every heavily modified forum will need to do manual edits, it is illogic to think that you will find mods that will work without doing any changes.

I think it's unfair on your part to say this mod doesn't do what it suppose to do just because you have to do manual edits.

If you have a clean 2.0.2 SMF installation and you install this mod and it doesn't work as expected, then yes, it is my fault and I will fix any issue.


anyway, I explained what I feel about your "comments", I just want to ask you to not do that again please.
Title: Re: Share This Topic
Post by: Kindred on March 15, 2012, 08:15:31 PM
just to be clear here...   both the FAQ and the Share This Topic mods installed with no problems and no conflicts on my test forum with 160 other mods.................
Title: Re: Share This Topic
Post by: busterone on March 15, 2012, 09:23:54 PM
160 huh?  Wow, I do remember reading about that test forum sometime back now.
I don't have near that many, only 28 mods installed, but it installed cleanly on mine as well.

Thanks Suki. It works well for me.  :)
Title: Re: Share This Topic
Post by: luuuciano on March 15, 2012, 11:29:11 PM
Question... about the addthis analytics...
Can we change something to get analytics from our own website? do you know how addthis habdle that?
Maybe each domain/website has a code, that we can include... or something similar?

(it would be a nice feature too)

best regards
Title: Re: Share This Topic
Post by: Suki on March 16, 2012, 09:35:30 AM
I use a generic code for the AddThis script, if you want to have analytics then you need to register on their website, and they will give you your unique code/key.

It is to complex to add that as a feature due to the steps it needs, it will confuse some users.

It's pretty straight forward to change the code for your unique addthis script and with a few changes I plan to make for the next version, you won't even need to change code at all.
Title: Re: Share This Topic
Post by: Bancherd on March 17, 2012, 01:56:12 AM
Using the latest version, working great.  Thanks.  :D
Title: Re: Share This Topic
Post by: [Lucien] on March 21, 2012, 08:59:27 AM
Wow very nice mod!!

I'm using SMF E-arcade, how can i show the AddThis button on the arcade pages?
Title: Re: Share This Topic
Post by: Suki on March 21, 2012, 09:22:56 AM
What is the action name for the arcade?  is it  action=arcade ?
Title: Re: Share This Topic
Post by: [Lucien] on March 21, 2012, 10:18:24 AM
Quote from: Suki on March 21, 2012, 09:22:56 AM
What is the action name for the arcade?  is it  action=arcade ?

Yes it's /index.php?action=arcade :)
Title: Re: Share This Topic
Post by: Suki on March 21, 2012, 11:12:01 AM
Open Sources/ShareThis.php  find.

      /* Are we in the BoardIndex? */
      if (!isset($_GET['action']) && !isset($_GET['topic']) && !isset($_GET['board']))
         $AddThisEnable = true;

add below:

      /* Are we in the arcade action? */
      if (isset($context['current_action']) && $context['current_action'] == 'arcade')
         $AddThisEnable = true;
Title: Re: Share This Topic
Post by: [Lucien] on March 21, 2012, 11:14:33 AM
Thank you! That works great  :D
Title: Re: Share This Topic
Post by: Stanyy on March 24, 2012, 04:21:45 AM
Hi Suki, thank you for this great mod.
But one thing is that i do not like the Like button format. I only want the Like button to show the simple count box instead of the long... be the first of your friends to like this... Please what do i have to edit. Thanks in advance.
Title: Re: Share This Topic
Post by: Suki on March 24, 2012, 10:15:53 AM
The count box and the count button are only avaliable with the XFBML version of the like button, this mod sues the iframe version, you will need to implement the  JavaScript SDK to be able to use the count ox and/or the count button.
Title: Re: Share This Topic
Post by: Suki on March 26, 2012, 03:31:43 PM
OK new version 4.2:

-Added a way to show the buttons outside messages and topics.
-Added an option to add custom buttons.
-Added a "via" setting to specify the username in twitter button.
-Added the board check the the AddThis Script.

Now you can use the buttons outside the messages, is as simple as this placing this code wherever you want the buttons to appear:

$share = new ShareThis($url);
$share->CreateButtons();


$where $url is the custom url you want to share, after that just put this:

$share->CustomDisplay();

Wherever you want the buttons to appear.


Also, now you can add custom buttons without the need to edit the files, using the same example:


$share = new ShareThis($url);
$share->CreateButtons($custombutton);

$custombutton can be either a single array or a multidimensional array, the array must have the following:

name - the name to identify your button
code - the script for your code, in the "url" parameter you will use "%s"  later the mod will replace that with the correct url
enable - set as 1 to show it or 0 to hide it.

as a single array:

            $array = array(
                  'name' => 'test',
                  'code' => '<a href="%s">test name</a>',
                  'enable' => 1

            );

as a multidimensional array:

            $array = array(
               0 => array(
                  'name' => 'test',
                  'code' => '<a href="%s">test name</a>',
                  'enable' => 1
               )
            );

that is the most basic button, it will show a simple link.


I'll post a more detailed guide on my site later today.
Title: Re: Share This Topic
Post by: Brown Recluse on March 31, 2012, 10:32:02 AM
I installed this app.  the share buttons work just fine but the like button does not.  when I click the like button I am prompted tol log into FB and I enter my info and hit log in.  The popup window disappears and nothing happens.
  I am running 2.0.2  with the curve theme.
Thank you

phasethreeforum.com is my site
Title: Re: Share This Topic
Post by: Suki on March 31, 2012, 10:40:00 AM
To properly use the Like button, you need to be already logged in to facebook, just go to facebook, log in, click to remember you, now the next time you like something you don't need to log in again.
Title: Re: Share This Topic
Post by: Brown Recluse on March 31, 2012, 11:05:45 AM
I tried that but it did not work. I don't think the problem is the app.  I added the following to the index.php  page just to test it out.
<html>
    <head>
      <title>My Great Web page</title>
    </head>
    <body>
       <iframe src="https://www.facebook.com/plugins/like.php?href=YOUR_URL"
        scrolling="no" frameborder="0"
        style="border:none; width:450px; height:80px"></iframe>
    </body>
</html>

The like button appeared at the top of the page and the same thing happens... I log in and the like does not appear on my FB page.  I m not sure what the problem is.

Title: Re: Share This Topic
Post by: Suki on March 31, 2012, 11:11:25 AM
Well, Facebook, removed the like on webpage from it's own page a while ago, I dunno why they did it, I guess it was to prevent abuse.

Basically, if you like an external page using the like button, this "like" isn't gonna appear on your facebook wall like it used to (unless you left a comment), at least I am unable to find where exactly can you see your "likes" on your own facebook wall, it appears that the only "likes" that appear are the ones from inside facebook only.

Or perhaps is because I'm using the iframe version instead of the SDK version.
Title: Re: Share This Topic
Post by: daviloco on April 09, 2012, 06:12:41 PM
Congratulation Miss...Thank you...
Gracias Miss. Gran trabajo. Estaba buscando algo asi....
Title: Re: Share This Topic
Post by: simon36 on May 01, 2012, 03:32:45 PM
Nice mod,

Is there a way to line the buttons up at the bottom right of the message, near to the ip logged icon?
Title: Re: Share This Topic
Post by: Suki on May 01, 2012, 03:46:57 PM
Yes you could, but it would require template edits.

Just look at the parser and move the instance of ShareThis class to your Display.template.php file wherever you want to show the icons.
Title: Re: Share This Topic
Post by: daviloco on May 05, 2012, 05:17:08 PM
Miss..Que tal soy latino y quisiera saber como agregarle CSS a tu Mod...porque solo se ve asi sin nada...
quisiera agregarle un marco o border con sombras o con fondos etc como lo haria??'
Title: Re: Share This Topic
Post by: Texan78 on May 15, 2012, 04:55:09 PM
I just installed this with no problem and I like it. It's simple and nice and doesn't over power the page. Only issue I am having is I have the box ticked "Show the buttons every message?" but it does not show it at all. If I uncheck it so it will only show on the first post it doesn't show ether. It shows fine on the board index and topic page. I have even unticked that thinking maybe only one option could be selected and that didn't work ether. So at the moment it only shows on the board index and topic page at the top under the menu. Any suggestions?

-Thanks
Title: Re: Share This Topic
Post by: crustybum on May 16, 2012, 07:49:02 AM
Help...i have just lost my forum when installing this..(2.02) get this

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/content/html/theforum/Sources/ShareThis.php on line 61
Title: Re: Share This Topic
Post by: Suki on May 16, 2012, 08:30:03 AM
What php version you have?

download the mod, unzip it  upload the remove.php to your forums root,  call it with your browser:  myforum.com/remove.php

then delete the Sources/ShareThis.php

Attach the following files

Sources/Display.php
Sources/Load.php
Sources/Who.php
Title: Re: Share This Topic
Post by: crustybum on May 16, 2012, 08:43:25 AM
Done now...removed via FTP...phew!
Title: Re: Share This Topic
Post by: Suki on May 16, 2012, 08:46:31 AM
You still to do the remove.php part  and manually remove the edits on the files I mentioned.

I assume you have php4 and that is why you got that error after installing.
Title: Re: Share This Topic
Post by: Texan78 on May 26, 2012, 10:06:19 PM
How is the share button added on the index page? The code doesn't even modify the index.template.php, so how dose it get on there. I would like to change where it is at.

-Thanks
Title: Re: Share This Topic
Post by: Suki on May 26, 2012, 10:11:13 PM
It's added via $context['html_headers'] and Jquery.  Once the DOM is ready jquery finds the class navigate_section and appends the share button to it.

If you want to change the button, it is located on Sources/ShareThis.php


<script type="text/javascript">
jQuery(document).ready(function($)
{
jQuery(function()
{
jQuery(\'.navigate_section\').append(\'<span class="sharethis_addthis_script"><a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=250&amp;pubid=xa-4f0f51eb17eb2a19"><img src="http://s7.addthis.com/static/btn/v2/lg-share-en.gif" width="125" height="16" style="border:0"/></a></span>\');
});
});
</script>


The code looks for an specific class or ID and append the button to it, if you want to change the position then you will have to find another unique ID or class within your page. I chose .navigate_section because it is present on every page and because it is easily reachable.
Title: Re: Share This Topic
Post by: Texan78 on May 27, 2012, 01:49:03 AM
Thank you, that is a big help. So would it be possible to make a new class for it all together rather then just assigning it to different one. I am actually just trying to tweak the location of it to line it up with some other icons. Does it have independent style settings or does it inherit the navigate_section style?

If I create a new class for it how would I call it on a page?

Thanks
Title: Re: Share This Topic
Post by: Suki on May 27, 2012, 07:38:43 AM
If you want to change the location then you will have to manually put the code on your template file, as it is right not it doesn't provide any alternatives.

Just take the code  from the span tag until the span tag closes, as you can see, the span tag has it's own class, that class can be changed in the same file a few lines below
Title: Re: Share This Topic
Post by: belgium-gravure on June 02, 2012, 03:10:23 PM
Traduc in french? 

dank'u
Title: Re: Share This Topic
Post by: Suki on June 04, 2012, 10:20:24 AM
Currently there aren't any translations besides Spanish and English, my level of French isn't enough to translate the mod.
Title: Re: Share This Topic
Post by: simon36 on June 06, 2012, 05:31:41 PM
This is a great mod but I wish someone would make it line up neatly with the bottom of the topic.
Title: Re: Share This Topic
Post by: Suki on June 06, 2012, 05:34:50 PM
Is possible, but you will have to make template edits which basically defeats the purpose of this mod.
Title: Re: Share This Topic
Post by: timetraveller on June 21, 2012, 07:22:49 PM
Hiya.

I've just installed this mod and, finger crossed, it looks like it is working properly. It's passed its first few tests at any rate ;)

Two questions:

(1) I'm trying to disable the buttons for some of the boards, but entering the board IDs in the appropriate box doesn't seem to be having any effect.
(2) The Add This box at the top of each page is pushing the top of the board buttons (New Topic, New Poll etc.) across when there is no obvious need. Can this be fixed?
Title: Re: Share This Topic
Post by: Suki on June 21, 2012, 08:03:39 PM
How are you entering the board IDs?

Link to your forum?
Title: Re: Share This Topic
Post by: HecticZA on June 22, 2012, 06:41:43 AM
Quote from: timetraveller on June 21, 2012, 07:22:49 PM
Hiya.

I've just installed this mod and, finger crossed, it looks like it is working properly. It's passed it's first few tests at any rate ;)

Two questions:

(1) I'm trying to disable the buttons for some of the boards, but entering the board IDs in the appropriate box doesn't seem to be having any effect.
(2) The Add This box at the top of each page is pushing the top of the board buttons (New Topic, New Poll etc.) across when there is no obvious need. Can this be fixed?

I have the same problem with regards to the Board ID. What is a Board ID? Is it the Board name? ie Admin room,Global mods room, etc?
The one I noticed is when I write the Board ID in the required field, it disappears when I click on "Save" I suppose it should stay in the field?

The mentioned rooms are hidden to the normal user, but I have added the "Welcome" board to the list where it should not display.
I have only added G+ for the moment and only to the first post
My site: consoleracing.co.za

My web page knowledge level: Noob

Thank you for any feedback.
Title: Re: Share This Topic
Post by: Kindred on June 22, 2012, 07:02:44 AM
boardID is the NUMBER of the board.... i.e. this board, Modifications and Packages is BoardID=59
Title: Re: Share This Topic
Post by: HecticZA on June 22, 2012, 07:19:46 AM
Quote from: Kindred on June 22, 2012, 07:02:44 AM
boardID is the NUMBER of the board.... i.e. this board, Modifications and Packages is BoardID=59
Thank you for you super fast help.
:)
Told you I was noob.
:D
Title: Re: Share This Topic
Post by: lhkorlwh on June 22, 2012, 07:40:28 AM
Hi, I installed this mod and it works fine. However, there is a problem bothering me, the "facebook likes" automatically disappear after about two weeks... is there any way to fix this problem? Thank you.
Title: Re: Share This Topic
Post by: Suki on June 22, 2012, 09:45:38 AM
That is up to Facebook to handle really, this mod only provides a way to show their services but has no interference on how Facebook handles the likes.
Title: Re: Share This Topic
Post by: lhkorlwh on June 22, 2012, 05:44:43 PM
Quote from: Suki on June 22, 2012, 09:45:38 AM
That is up to Facebook to handle really, this mod only provides a way to show their services but has no interference on how Facebook handles the likes.

Thanks for the reply! Those "likes" are still shown on facebook, but they disappeared from the fourm.
Title: Re: Share This Topic
Post by: timetraveller on June 23, 2012, 06:58:03 AM
I'm entering board numbers ie. 14,16,23

I'm enabling the AddThis script rather than the individual buttons though. Will this make a difference?

Forum is http://www.joe-music.net/forum/index.php
Title: Re: Share This Topic
Post by: Suki on June 23, 2012, 07:58:52 PM
Quote from: timetraveller on June 23, 2012, 06:58:03 AM
I'm entering board numbers ie. 14,16,23

I'm enabling the AddThis script rather than the individual buttons though. Will this make a difference?

Forum is http://www.joe-music.net/forum/index.php

I can see the AddThis on your forum on the mentioned boards just fine.
Title: Re: Share This Topic
Post by: kattara on June 29, 2012, 01:37:16 PM
Hi Suki!

I am LOVING your mod!  But I've noticed one issue:  when someone tweets a post, it doesn't change the tweet count on the icon.  What can I do to correct this?  Here is an example:  http://www.themobilehangout.com/index.php/topic,25.new.html#new (http://www.themobilehangout.com/index.php/topic,25.new.html#new).

Again, thanks for the AWESOME work and support!!

EDIT:  OK, I checked out a different post, and that one has the number count increase.  So, I guess not all of them work correctly?  I'm befuddled...   ???
Title: Re: Share This Topic
Post by: Suki on July 01, 2012, 09:39:34 PM
Quote from: kattara on June 29, 2012, 01:37:16 PM
Hi Suki!

I am LOVING your mod!  But I've noticed one issue:  when someone tweets a post, it doesn't change the tweet count on the icon.  What can I do to correct this?  Here is an example:  http://www.themobilehangout.com/index.php/topic,25.new.html#new (http://www.themobilehangout.com/index.php/topic,25.new.html#new).

Again, thanks for the AWESOME work and support!!

EDIT:  OK, I checked out a different post, and that one has the number count increase.  So, I guess not all of them work correctly?  I'm befuddled...   ???

This entirely depends on twitter, this mod only provides a way to show their buttons but I actually can't do anything about their services. Facebook has similar issues, they don't display the like on the people's wall anymore, unfortunately I can't do anything regarding those kind of issues.
Title: Re: Share This Topic
Post by: kattara on July 03, 2012, 12:17:34 AM
Quote from: Suki on July 01, 2012, 09:39:34 PM
Quote from: kattara on June 29, 2012, 01:37:16 PM
Hi Suki!

I am LOVING your mod!  But I've noticed one issue:  when someone tweets a post, it doesn't change the tweet count on the icon.  What can I do to correct this?  Here is an example:  http://www.themobilehangout.com/index.php/topic,25.new.html#new (http://www.themobilehangout.com/index.php/topic,25.new.html#new).

Again, thanks for the AWESOME work and support!!

EDIT:  OK, I checked out a different post, and that one has the number count increase.  So, I guess not all of them work correctly?  I'm befuddled...   ???

This entirely depends on twitter, this mod only provides a way to show their buttons but I actually can't do anything about their services. Facebook has similar issues, they don't display the like on the people's wall anymore, unfortunately I can't do anything regarding those kind of issues.

Ah, ok.  I thought maybe I messed up the code somewhere.  Thanks for the reply!  I love your mod!
Title: Re: Share This Topic
Post by: rommul on July 03, 2012, 03:44:16 PM
just installed the mod and I get

Fatal error: Call to undefined function share_headers() in /home/.../public_html/forum/Sources/Load.php on line 1578
Title: Re: Share This Topic
Post by: rommul on July 03, 2012, 04:01:28 PM
and yes, I do have the ShareThis.php file in the Sources directory.

the index.php file did not had the - require_once($sourcedir . '/ShareThis.php'); - I add it

lines 1577 and 1578 on Load.php are:

// Before anything else, set some header stuff, share this topic mod
share_headers();
Title: Re: Share This Topic
Post by: Arantor on July 03, 2012, 04:01:54 PM
rommul, what version of SMF do you have?
Title: Re: Share This Topic
Post by: rommul on July 03, 2012, 04:11:28 PM
2.0.2
Title: Re: Share This Topic
Post by: Suki on July 04, 2012, 09:50:35 AM
You didn't have to add the require_once statement as the pre_include hook takes care of that.

Did you installed this manually?

also, it seems you are sing an old version, the new version uses static functions: ShareThis::Headers(); and the place to look in Load.php has changed too.
Title: Re: Share This Topic
Post by: rommul on July 04, 2012, 12:11:01 PM
No, I installed using the upload package function in admin.
The version it's the one that I downloaded from the modifications section.

I remove the mod anyway, I'll give a try to another one.
Thanks.
Title: Re: Share This Topic
Post by: timetraveller on July 05, 2012, 08:26:56 PM
Quote from: Suki on June 23, 2012, 07:58:52 PM
Quote from: timetraveller on June 23, 2012, 06:58:03 AM
I'm entering board numbers ie. 14,16,23

I'm enabling the AddThis script rather than the individual buttons though. Will this make a difference?

Forum is http://www.joe-music.net/forum/index.php

I can see the AddThis on your forum on the mentioned boards just fine.

Thanks for the reply and apologies for the delay in responding.

These are the boards where I *don't* want the AddThis button. You probably can't see some of those boards as a guest anyway. I've added board 12 to the list - Announcements and Forum Guidelines - http://www.joe-music.net/forum/index.php?board=12.0 - which is a board that everyone can see. You will see that the AddThis button is still there? Am I doing something wrong?
Title: Re: Share This Topic
Post by: kattara on July 06, 2012, 02:14:58 PM
Quote from: rommul on July 04, 2012, 12:11:01 PM
No, I installed using the upload package function in admin.
The version it's the one that I downloaded from the modifications section.

I remove the mod anyway, I'll give a try to another one.
Thanks.

Download the one in the OP?
Title: Re: Share This Topic
Post by: timetraveller on July 14, 2012, 04:55:34 PM
Quote from: timetraveller on July 05, 2012, 08:26:56 PM
Quote from: Suki on June 23, 2012, 07:58:52 PM
Quote from: timetraveller on June 23, 2012, 06:58:03 AM
I'm entering board numbers ie. 14,16,23

I'm enabling the AddThis script rather than the individual buttons though. Will this make a difference?

Forum is http://www.joe-music.net/forum/index.php

I can see the AddThis on your forum on the mentioned boards just fine.

Thanks for the reply and apologies for the delay in responding.

These are the boards where I *don't* want the AddThis button. You probably can't see some of those boards as a guest anyway. I've added board 12 to the list - Announcements and Forum Guidelines - http://www.joe-music.net/forum/index.php?board=12.0 - which is a board that everyone can see. You will see that the AddThis button is still there? Am I doing something wrong?

Is there any answer to this. Would really like to get this solved as otherwise it's a very nice mod, easily visible but unobtrusive.
Title: Re: Share This Topic
Post by: Suki on July 14, 2012, 08:13:33 PM
The mod entirely depends on how you enter your ignored board, you need to enter the numbers only separated by commas:  1,2,3,4,5,6

If the mod is showing on a board it means that this board is not presented on the ignore boards list:


/* Are we in a topic? */
if (isset($_GET['topic']) && !isset($_GET['sa']) && !isset($_GET['action']) && isset($context['current_board']) && !in_array($context['current_board'], $share_options_boards))
$AddThisEnable = true;

/* Are we in a board? */
if (isset($_GET['board']) && !isset($_GET['sa']) && !isset($_GET['action']) && isset($context['current_board']) && !in_array($context['current_board'], $share_options_boards))
$AddThisEnable = true;


perhaps there is still a flaw there, need to do some more test I guess.
Title: Re: Share This Topic
Post by: timetraveller on July 16, 2012, 04:40:01 PM
This is what I have entered:

(http://www.joe-music.net/forum/gallery/1_16_07_12_8_39_08.jpeg)
Title: Re: Share This Topic
Post by: Suki on July 16, 2012, 07:05:37 PM
Open your Sources/ShareThis.php file, find this:

if ($AddThisEnable && !empty($modSettings['share_addthisbutton_enable']))
$context['html_headers'] .= '
<script type="text/javascript">
jQuery(document).ready(function($)
{
jQuery(function()
{
jQuery(\'.navigate_section\').append(\'<span class="sharethis_addthis_script"><a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=250&amp;pubid=xa-4f0f51eb17eb2a19"><img src="http://s7.addthis.com/static/btn/v2/lg-share-en.gif" width="125" height="16" style="border:0"/></a></span>\');
});
});
</script>';
}


and replace it with this:


if ($AddThisEnable && !empty($modSettings['share_addthisbutton_enable']))
$context['html_headers'] .= '
<script type="text/javascript">
jQuery(document).ready(function($)
{
jQuery(function()
{
jQuery(\'.navigate_section\').append(\'<span class="sharethis_addthis_script"><a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=250&amp;pubid=xa-4f0f51eb17eb2a19"><img src="http://s7.addthis.com/static/btn/v2/lg-share-en.gif" width="125" height="16" style="border:0"/></a></span>\');
});
});
</script>';

if ($context['user']['is_admin'])
{
echo '<pre>';

print_r($context['current_board']);
print_r($share_options_boards);

echo '</pre>';
}
}


Then go to your board 12 and post whatever is on the top
Title: Re: Share This Topic
Post by: timetraveller on July 19, 2012, 05:14:23 PM
Quote from: Suki on July 16, 2012, 07:05:37 PM
Then go to your board 12 and post whatever is on the top

Can you explain what you mean by this please?
Title: Re: Share This Topic
Post by: luuuciano on July 19, 2012, 05:41:16 PM
         print_r($context['current_board']);
         print_r($share_options_boards);

will show information to the admin user (only), at top (of board 12?)
Title: Re: Share This Topic
Post by: Suki on July 20, 2012, 08:44:33 AM
Quote from: timetraveller on July 19, 2012, 05:14:23 PM
Quote from: Suki on July 16, 2012, 07:05:37 PM
Then go to your board 12 and post whatever is on the top

Can you explain what you mean by this please?

Go to your board with ID 12, ie: http;//myforum.com/index.php?board=12.0
Title: Re: Share This Topic
Post by: ibzsol on August 13, 2012, 05:17:45 PM
somebody will help me i have uninstalled share this from my by package manager now its showing
Fatal error: Class 'ShareThis' not found in /home/ibzsol/public_html/ibzBoard/Sources/Load.php on line 1595
now i cant access my board m affraid of to lost all the data kindly help me out please
Title: Re: Share This Topic
Post by: Suki on August 13, 2012, 05:19:11 PM
Welcome to SMF.

Attach your Sources/Load.php here.
Title: Re: Share This Topic
Post by: ibzsol on August 13, 2012, 05:59:22 PM
here are they
WHO
Load
Title: Re: Share This Topic
Post by: Suki on August 13, 2012, 06:05:40 PM
Use this two:
Title: Re: Share This Topic
Post by: ibzsol on August 13, 2012, 06:09:08 PM
you mean i will upload these two to sources folder by ftp??
Title: Re: Share This Topic
Post by: ibzsol on August 13, 2012, 06:12:45 PM
after uploading now i found that message

Fatal error: Call to undefined function activity_bar_css() in /home/ibzsol/public_html/ibzBoard/Sources/Load.php on line 1602
Title: Re: Share This Topic
Post by: Suki on August 13, 2012, 06:15:43 PM
Do you have the activity bar mod installed?  if not just open the file and remove this line:

/* Activity Bar Mod */
   $context['html_headers'] .= Activity_Bar_css();
Title: Re: Share This Topic
Post by: ibzsol on August 13, 2012, 06:19:49 PM
i didnt get will you explain me please
you mean Load file or WHo file i will open and amend
Title: Re: Share This Topic
Post by: Suki on August 13, 2012, 06:21:17 PM
The error clearly says:  Fatal error: Call to undefined function activity_bar_css() in /home/ibzsol/public_html/ibzBoard/Sources/Load.php on line 1602

Either way, I suspect you installed both mods more than once, just use the parser and remove all the file edits on both files.
Title: Re: Share This Topic
Post by: ibzsol on August 13, 2012, 06:29:45 PM
you are such a great personality ;D ;D ;D ;D Thanks you so much to dig out me from drain dear
now site is ok and working, i was really wondering about, please tell me other precautions to avoid such failure and maintain my board or can i again install the share this mod thanks
Title: Re: Share This Topic
Post by: ibzsol on August 13, 2012, 06:37:04 PM
oopps now what about this when i clicked on topic showing me this error

Fatal error: require_once() [function.require]: Failed opening required '/home/ibzsol/public_html/ibzBoard/Sources/MetaTags.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ibzsol/public_html/ibzBoard/Sources/Display.php on line 381

what should i amen in Display file now
Title: Re: Share This Topic
Post by: Suki on August 13, 2012, 06:39:30 PM
Those errors aren't comming form this mod, you need to ask the mod author about those errors.
Title: Re: Share This Topic
Post by: ibzsol on August 13, 2012, 06:43:49 PM
alright but if you can give any clue to resolve the issue i will be very thankful to you
Title: Re: Share This Topic
Post by: Suki on August 13, 2012, 06:50:23 PM
Just follow the mod's parser, check the code it adds and remove that code from your file.

Compare the files I sent to you with the files you sent me first, check what I removed, you will do the same but with the other mod's code.
Title: Re: Share This Topic
Post by: Jonas1975 on September 16, 2012, 07:11:43 AM
I'm using this mod and I wanted to know if it's possible (if so, how) I can:

1. Remove Twitter count as it isn't working very well in my case (it shows 0 even if when I click it, it shows that it's been shared);

2. Adding a standalone StumbleUpon icon next to Google+

Thanks
Title: Re: Share This Topic
Post by: Suki on September 16, 2012, 02:27:32 PM
For number one, thats not possible, the twitter count is actually controlled by twitter, not this mod, all this mod do is to show the button but is up to twitter to show it properly.

As to number 2, yes you can add your own buttons, when I rewrote this mod I added the possibility to add your own buttons, can't remember exactly how since its been a long time.

Post your button code here and I will take a look to remember how to add external buttons.
Title: Re: Share This Topic
Post by: Jonas1975 on September 16, 2012, 03:09:16 PM
Quote from: Suki on September 16, 2012, 02:27:32 PM
For number one, thats not possible, the twitter count is actually controlled by twitter, not this mod, all this mod do is to show the button but is up to twitter to show it properly.
Ok, but isn't there a way to have another twitter button that doesn't show how many tweets?  Because it's shows 0 (zero) but when I click it, it returns 1 tweet, even if I know that it has been tweeted more times.  I see other mods (that I don't like that much) working better, like this one: http://www.simplemachines.org/community/index.php?topic=454418.0

Quote from: Suki on September 16, 2012, 02:27:32 PM
As to number 2, yes you can add your own buttons, when I rewrote this mod I added the possibility to add your own buttons, can't remember exactly how since its been a long time.

Post your button code here and I will take a look to remember how to add external buttons.
I don't have a button code for StumbleUpon...  I do see it like the mod I just mention or on StumbleUpon homepage: http://www.stumbleupon.com/dt/badges/create (I like the 3rd one).
Title: Re: Share This Topic
Post by: Suki on September 16, 2012, 09:38:14 PM
The code for twitter on the mod you mentioned and the code for twitter on this mod are exactly the same.
Title: Re: Share This Topic
Post by: Jonas1975 on September 17, 2012, 05:40:04 AM
Quote from: Suki on September 16, 2012, 09:38:14 PM
The code for twitter on the mod you mentioned and the code for twitter on this mod are exactly the same.
Regarding the Twitter, I was looking for something more like this: http://custom.simplemachines.org/mods/index.php?mod=2827
Where there is no number of tweets shown.

Even so, the most important for me was really adding StumbleUpon button...
Title: Re: Share This Topic
Post by: taysan on September 18, 2012, 09:39:53 AM
First off, thanks for a nicely made mod.  Seems to work well.  I'm running SMF 2.0.2 along with Simple Portal 2.3.4 and a custom theme, and it's working well.  I just installed the most recent version, replacing the previous one.

However - I do have one quibble / question.  The mod pics up an image to use with the Facebook Like posting, and I don't have any control over it.  I'd like the option of either turning that feature off, and even better, specifying an image for the mod to use.

It's grabbing a thumbnail off my page that has nothing to do with the post being 'Liked'.  I haven't dived into the code of the mod to see where it's picking the image up from, and don't trust my skills to change it without breaking something.  If you could point me in the right direction, I'd greatly appreciate it.

My board - www.dotheton.com
Title: Re: Share This Topic
Post by: Suki on September 18, 2012, 10:10:22 AM
The mod uses the old iframe version of the like button, on that version, facebook scans the page that was liked in search for images, is the default behavior.

The mod doesn't add the image, its facebook crawling your page looking for an image to show.

If you want to post a steady image, you will need to use the sdk version of the button. theres a mod that uses that version.

Facebook changes its API so fast that is almost ridiculous, it makes it really difficult to update the mod, not to mention their sdk version is highly buggy and doesn't play well with forum posts (their like button is designed for pages, not multiple post inside a page), thats why I chose to use the old iframe version.
Title: Re: Share This Topic
Post by: taysan on September 18, 2012, 10:15:58 AM
Thanks - much appreciated.  I did scan through the PHP file and couldn't find any comments or indication of your mod picking up an image, but it's nice to confirm.  I will unfortunately have to explore other options as FB is picking up one of my advertiser's images and using it consistently, including when one of my other advertiser 'Likes' a post related to them, which is a bit of an issue :)
Title: Re: Share This Topic
Post by: Suki on September 18, 2012, 10:18:19 AM
Facebook does give you options to show other images as it usually crawls more than 1 image, but most users doesn't bother to select an appropriate image.

I tried using the sdk version a while ago, it was a mess and highly unreliable, it breaks the xhtml validation too
Title: Re: Share This Topic
Post by: Jonas1975 on September 28, 2012, 06:30:46 AM
Quote from: Jonas1975 on September 17, 2012, 05:40:04 AM
Quote from: Suki on September 16, 2012, 09:38:14 PM
The code for twitter on the mod you mentioned and the code for twitter on this mod are exactly the same.
Regarding the Twitter, I was looking for something more like this: http://custom.simplemachines.org/mods/index.php?mod=2827
Where there is no number of tweets shown.

Even so, the most important for me was really adding StumbleUpon button...
Any news on this?
Title: Re: Share This Topic
Post by: Suki on September 28, 2012, 09:05:39 AM
I need a code example for both buttons
Title: Re: Share This Topic
Post by: ESLLOL on October 04, 2012, 06:05:43 AM
I'm having a little trouble installing this mod and wondered if anyone can help me?

When I go to install the package it brings up the error

Database Error
SQL logic error or missing database
near "NOT": syntax error
File: /home/a8409673/public_html/Packages/temp/tagsql2.php
Line: 20

Title: Re: Share This Topic
Post by: Suki on October 04, 2012, 07:27:17 AM
There is no tagsql2.php file on this mod, chances are you are looking at the wrong mod.
Title: Re: Share This Topic
Post by: ESLLOL on October 05, 2012, 05:18:36 AM
Quote from: Suki on October 04, 2012, 07:27:17 AM
There is no tagsql2.php file on this mod, chances are you are looking at the wrong mod.

Sorry, you're absolutely right, I've got it working now, I'm a completely noob to SMF.

Thanks so much for the mod, it's exactly what I was looking for. Just one quick question, is there any way to reduce the space between the facebook like button and the tweet button?

I'll attach a screen shot so you can see what i mean.

Thanks again.
Title: Re: Share This Topic
Post by: Suki on October 05, 2012, 07:19:11 AM
Sure, every button has a class, for facebook, that class is sharethis_facebook  with that class you can manipulate the padding and margin of the buttons via css.
Title: Re: Share This Topic
Post by: ESLLOL on October 05, 2012, 07:26:06 AM
Quote from: Suki on October 05, 2012, 07:19:11 AM
Sure, every button has a class, for facebook, that class is sharethis_facebook  with that class you can manipulate the padding and margin of the buttons via css.

I'm sorry I really am a complete noob at this, how exactly do I edit the css?

I've already completely crashed my site 2 times and I had to start from scratch so I'm being extra cautious!

I appreciate your help a lot.
Title: Re: Share This Topic
Post by: Suki on October 05, 2012, 07:38:21 AM
Another alternative is to resize the button itself, go to your Sources/ShareThis.php file, find:


<iframe src="http://www.facebook.com/plugins/like.php?href='. $this->url .'&amp;layout=standard&amp;show_faces=false$amp;send=true&amp;width=350&amp;action=like&amp;colorscheme=light&amp;height=:80" scrolling="no" frameborder="0" style="border:none; overflow:visible; width:350px; height:80px;" allowTransparency="true"></iframe>


Theres the number 350 two times there, change both to a smaller number, keep in mind that with a smaller number, the button might not be displayed properly.
Title: Re: Share This Topic
Post by: Apllicmz on October 14, 2012, 01:24:42 PM
Yes good work
dont forget to add portuguese files

Title: Re: Share This Topic
Post by: Dutchi00 on November 10, 2012, 02:17:47 PM
Can someone tell me how I can change the way the Facebook button is displayed? The colors of the text and button don't match my theme. :(

Other then that, good mod!
Title: Re: Share This Topic
Post by: Suki on November 12, 2012, 08:28:31 AM
Quote from: Suki on October 05, 2012, 07:38:21 AM
Go to your Sources/ShareThis.php file, find:


<iframe src="http://www.facebook.com/plugins/like.php?href='. $this->url .'&amp;layout=standard&amp;show_faces=false$amp;send=true&amp;width=350&amp;action=like&amp;colorscheme=light&amp;height=:80" scrolling="no" frameborder="0" style="border:none; overflow:visible; width:350px; height:80px;" allowTransparency="true"></iframe>


This, this is the part where the code for facebook is, you just need to change a few parameters, take a look at their documentation.
Title: Re: Share This Topic
Post by: kattara on December 06, 2012, 02:30:03 PM
Hey Suki, I just noticed on my forum that the G+ button disappeared.  How do I get it back? (ie. http://www.themobilehangout.com/index.php/topic,202.0.html (http://www.themobilehangout.com/index.php/topic,202.0.html))

Title: Re: Share This Topic
Post by: Suki on December 06, 2012, 02:40:00 PM
I can see the google button just fine, make sure you don't have any script blokers like ghostery.

Since the buttons relies on third party servers, sometimes they have problems and cannot deliver the buttons properly.
Title: Re: Share This Topic
Post by: kattara on December 06, 2012, 02:43:31 PM
Quote from: Suki on December 06, 2012, 02:40:00 PM
I can see the google button just fine, make sure you don't have any script blokers like ghostery.

Since the buttons relies on third party servers, sometimes they have problems and cannot deliver the buttons properly.

Ohhh... I see the problem now.  The button shows up on IE, but not on Firefox...
Title: Re: Share This Topic
Post by: Suki on December 06, 2012, 02:57:06 PM
Yeah, I don't see it on my regular browser because I have ghostery installed but on my other casual browsers I can see the button just fine.
Title: Re: Share This Topic
Post by: kattara on December 06, 2012, 03:02:56 PM
Quote from: Suki on December 06, 2012, 02:57:06 PM
Yeah, I don't see it on my regular browser because I have ghostery installed but on my other casual browsers I can see the button just fine.

Ok.  Thanks for checking it out!
Title: Re: Share This Topic
Post by: emrahseral on December 16, 2012, 09:59:03 AM
Hi everyone, hi Suki, how goes it?

I use 2.0.2 and a custom theme.

As can be seen in the attachment, I've an alignment problem with this mod where the top buttons move left (please note the bottom buttons are not affected by this). This problem manifests itself in every board and topics within every board.

Would anyone, particularly Suki, be able to help me correct this?,

Thanks in advance.
Title: Re: Share This Topic
Post by: emrahseral on December 18, 2012, 03:00:06 AM
Hello?
Title: Re: Share This Topic
Post by: Suki on December 18, 2012, 08:28:46 AM
All the css that his mod sues can be found in Sources/ShareThis.php  is just a matter of changing the css for the AddThis button.

Without a link to a topic where the error occur I cannot do much.

Also, support for all my modifications will only be provided at my site.
Title: Re: Share This Topic
Post by: spiros on December 18, 2012, 09:10:41 AM
Great mod, thanks. One small issue, how can I disable it for Dragoon's mobile theme? http://smf-media.com/smf4mobile/

I can see this piece of code in display.php which makes sure it does not show on the wireless theme, how can we make it not show in the mobile too?

/* Share This topic mod start */
if (!empty($modSettings['share_buttons_enable']) && !WIRELESS)
{
Title: Re: Share This Topic
Post by: Suki on December 18, 2012, 09:45:40 AM
I never seen that mod but if it uses something similar to the WIRELESS constant then you can add that on the same place you mention, just like the constant, can be a constant too or a simple var, theres gotta be something that mod uses to let other people know about it.
Title: Re: Share This Topic
Post by: spiros on December 18, 2012, 10:01:47 AM
I think it uses mobile, how do I add that?
By the way, it is a theme, but it has a mod to automatically use that theme if accessing the site from mobile device.

To redirect to the theme it uses this:

forum/index.php?thememode=mobile;redirect=
Title: Re: Share This Topic
Post by: Suki on December 18, 2012, 10:27:07 AM
I don't know anything about that mod and I can't download it either, better ask the mod/theme author if there is a constant, a var or any other way to know if the current user is using the theme.

Once you have that you can add it jut like the wireless constant in Display.php
Title: Re: Share This Topic
Post by: spiros on December 18, 2012, 01:29:24 PM
I am a total ignoramus when it comes to programming, and I just tried

/* Share This topic mod start */
if (!empty($modSettings['share_buttons_enable']) && !mobile)
{


which does the trick. Apparently it is not rocket science to me, to you it should be a piece of cake.

My question is how to make this apply for both WIRELESS and the mobile theme, that is, how can I use a logical operator OR in php in this string. Would it be

    /* Share This topic mod start */
if (!empty($modSettings['share_buttons_enable']) && !mobile || !WIRELESS)
{


No, I just tried and did not work.
Title: Re: Share This Topic
Post by: Suki on December 18, 2012, 01:48:13 PM
So the mod does have a constant.

Using && and || operators in PHP does have its quote of difficulty, it is mostly related to math.


If you want to apply the check to both then sue the following:

      /* Share This topic mod start */
   if (!empty($modSettings['share_buttons_enable']) && !mobile && !WIRELESS)
   {

which reads:

If the mod is enable and we aren't in wireless and we aren't in mobile  then...

meaning it has to comply with all 3 checks, in your example the check only needed to pass 2 of them.
Title: Re: Share This Topic
Post by: spiros on December 19, 2012, 07:56:02 AM
Thanks, checking again, I realized that adding mobile stopped your mod from showing in the mobile theme, but it stopped it from showing in the main theme too  :(
Title: Re: Share This Topic
Post by: spiros on December 19, 2012, 06:03:37 PM
Solution found:

if (!empty($modSettings['share_buttons_enable']) && !WIRELESS && empty($context['smf4mobile_version']))
Title: Re: Share This Topic
Post by: arqueologiadigital on December 28, 2012, 03:06:21 AM
Hi there! It is actually compatible with 2.0.3?
Title: Re: Share This Topic
Post by: Kindred on December 28, 2012, 08:32:50 AM
Yes. Use the version emulate option
Title: Re: Share This Topic
Post by: Suki on December 28, 2012, 09:43:21 AM
There is no need to emulate anything... the mod has a wider range that includes versions up to 2.0.99. That and modifying as less files as possible plus using hooks, highly increases the compatibility with newer versions.

Heres a protip, on the mod's page in the modsite, select 2.0.3 and click the parse button, if it does parse it means the mod will install on that particular version without the need to emulate, this is useful if you need to know before actually download it if a mod would need emulation or not.

If the mod does not parse it means the range for install/uninstall does not cover the selected version and you will need to apply emulation.
Title: Re: Share This Topic
Post by: caper12 on January 04, 2013, 07:09:51 PM
This mod is great, but I have one thing that would be nice to change.

Does anyone know of a way to make it use an image or logo to display on the FB page? Right now it displays some tiny little .GIF with a white square around it on the FB post
Title: Re: Share This Topic
Post by: PokémonS on January 05, 2013, 01:03:19 AM
Quote from: caper12 on January 04, 2013, 07:09:51 PM
Does anyone know of a way to make it use an image or logo to display on the FB page? Right now it displays some tiny little .GIF with a white square around it on the FB post

Put this code in the <head> of HTML

<link rel="image_src" href="http://LINKTOLOGO" />
Title: Re: Share This Topic
Post by: outsideofthebox on January 13, 2013, 06:06:24 AM
Suki...

I apologize if these questions have been addressed already, I just don't have enough time to read 80+ pages to get an idea if this mod will work.

I'm looking for a social sharing mod that would also integrate with a credit or point system. I really don't need these to be site wide, I need them to function in a specific social networking board.

Ideally, a member would need xx points to make a topic in the board/thread/forum and earns points by sharing existing posts in that specific board/thread/forum via tweet, google plus, FB like, etc.

I was considering a WP bridge for this part of my site and using something like cube points plugin but I really would prefer to keep everything inside of SMF if possible.

Title: Re: Share This Topic
Post by: Suki on January 13, 2013, 11:36:29 AM
It depends on how exactly your point system works really.

Also, this mod doesn't log or record any like or share actions (It doesn't have or need to), it simply displays the buttons on specific parts, it doesn't do any integration with the forum besides injecting the buttons on the messages, so, even if you have a points system, there is no way to let the points system know that some user clicked a like button because those events are handled by the third party site (facebook, twitter, google+, etc) and not by your forum.
Title: Re: Share This Topic
Post by: akbora on January 13, 2013, 07:56:53 PM
Can be possible the option only first post and last post no all posts..
Title: Re: Share This Topic
Post by: Suki on January 13, 2013, 08:01:04 PM
Sure is possible but not very useful as the last post will change constantly anyway.
Title: Re: Share This Topic
Post by: StepKlong on January 17, 2013, 02:12:11 AM
Excuse me. I'm novice for smf and PHP

Q: How to delete Point ? (you can see this picture)
(http://upicy.com/image-D4AA_50F7A48C.jpg)

Please help me.
Title: Re: Share This Topic
Post by: Suki on January 17, 2013, 12:57:13 PM
Make sure you have the proper static method in Sources/ShareThis.php:

Sharethis::Headers()


Also, make sure you call that method in your Sources/Load.php:

ShareThis::Headers();
Title: Re: Share This Topic
Post by: MarkS on February 09, 2013, 08:27:55 AM
after installing every facebook twitter mod smf have i finally found this one! that will actually let you post on your wall and not just a like

Thank you Suki ;)

now to find out how to show a image in the facebook wall post rather than the www.globe
Title: Re: Share This Topic
Post by: Suki on February 09, 2013, 08:38:29 AM
Heres the answer, a few messages above:

Quote from: PokémonS on January 05, 2013, 01:03:19 AM
Quote from: caper12 on January 04, 2013, 07:09:51 PM
Does anyone know of a way to make it use an image or logo to display on the FB page? Right now it displays some tiny little .GIF with a white square around it on the FB post

Put this code in the <head> of HTML

<link rel="image_src" href="http://LINKTOLOGO" />
Title: Re: Share This Topic
Post by: MarkS on February 09, 2013, 08:43:02 AM
ok thanks, im a total noob so i need to no where that is sorry
Title: Re: Share This Topic
Post by: Suki on February 09, 2013, 08:54:31 AM
That would be on your theme's Index.template.php file. You ned to use an FTP client: How do I use FTP? / What is FTP? (http://wiki.simplemachines.org/smf/How_do_I_use_FTP) and a code editor (such as notepad++) to make changes to your file.
Title: Re: Share This Topic
Post by: MarkS on February 09, 2013, 09:07:30 AM
got it, in cool with ftp and thanks ive grabbed notepad++ i was just using windows nope pad thank you
ok nood again sorry there are too parts in Index.template.php that have <head> so i dont no where to put it im still lurning
if you could tel me what to find and where to paste it please

Quote<link rel="image_src" href="http://LINKTOLOGO" />
<link rel="image_src" href="http://www.africancichlidtalk.co.uk/Themes/inferno_20a/images/custom/logo.png" />

like so ^^^^^^^
Title: Re: Share This Topic
Post by: Suki on February 09, 2013, 09:12:53 AM
there should be just one tag like this one:  </head>  just put the code before that:

<link rel="image_src" href="http://LINKTOLOGO" /></head>
Title: Re: Share This Topic
Post by: MarkS on February 09, 2013, 09:21:47 AM
ok si i have this now but it still shows a green globe in the wall post
guess im still doing it wrong :-[
// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'];

echo '
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
<link rel="image_src" href="http://www.africancichlidtalk.co.uk/Themes/inferno_20a/images/custom/logo.png" /></head>
<body>';
}

function template_body_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;

echo '
<div id="header">
<div class="wrapper">
<div id="logo">
<a href="'.$scripturl.'" title=""></a>
Title: Re: Share This Topic
Post by: Suki on February 09, 2013, 09:26:11 AM
I believe the image must be within certain height and width (at least thats the last thing I heard, facebook does love to make unexpected changes very often) and also, the image will only work for new comments, it will not work on already published ones.
Title: Re: Share This Topic
Post by: MarkS on February 09, 2013, 09:28:10 AM
ok so i can upload any image i want as log as its the right size and i direct it to the right location ?
Title: Re: Share This Topic
Post by: MarkS on February 09, 2013, 09:47:54 AM
ok i made a small .png http://www.africancichlidtalk.co.uk/Themes/inferno_20a/images/custom/Facebook.png
and its working.
so any thing ive liked before will not show the new image ?


lastly is the coke ok or better looking like this

echo '
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
        <link rel="image_src" href="http://www.africancichlidtalk.co.uk/Themes/inferno_20a/images/custom/Facebook.png"/>
</head>
<body>';
}

function template_body_above()

Title: Re: Share This Topic
Post by: pastorvictor on February 12, 2013, 05:47:10 PM
Quote from: PokémonS on January 05, 2013, 01:03:19 AM
Quote from: caper12 on January 04, 2013, 07:09:51 PM
Does anyone know of a way to make it use an image or logo to display on the FB page? Right now it displays some tiny little .GIF with a white square around it on the FB post

Put this code in the <head> of HTML

<link rel="image_src" href="http://LINKTOLOGO" />

Please help, I already added that to my theme's index.template.php file but it still doesn't show the logo on Facebook when sharing a topic. Does it need to go on the index.template of the theme I've set for all users, or on the one for the default template? What else could've gone wrong?
Title: Re: Share This Topic
Post by: Suki on February 12, 2013, 05:50:43 PM
If you have multiple themes and you allow your users to chose their theme then yes, you must add it to all of your themes.

Keep in mind that the logo needs to have an specified height and width (can't remember whats the max size).

The logo will only be applied to new topics, older topics will not be modified.
You image must be a valid image and it needs to be accessible by guest.
Title: Re: Share This Topic
Post by: pastorvictor on February 12, 2013, 05:57:30 PM
Thank you for your reply, Suki. I've actually set a theme and I'm not allowing users to change it, so that's why I just added it to that theme's index.template file. I had to create a fb app for another mod, and I'm using the "primary icon" that Facebook asked for (75x75). When I say I'm using it, I mean that I'm even using the facebook URL for the image. Do I have to upload it to my server? If so, how would I make it accessible by guest?
Title: Re: Share This Topic
Post by: Suki on February 12, 2013, 06:00:56 PM
The image doesn't have to be on your server, it only needs to be a valid and callable image with the height and width that facebook requires.

Sometimes Facebook doesn't correctly pick the image when sharing a topic, there is no fix for that since this mod heavily depends on facebook servers.
Title: Re: Share This Topic
Post by: pastorvictor on February 12, 2013, 06:40:22 PM
Okay, thank you, Suki. I guess I'll have to live without the image for now :\
One more question: how do I translate the text that says "Be the first of your friends to like this."?
Title: Re: Share This Topic
Post by: Suki on February 12, 2013, 06:53:57 PM
Open your Sourcedir/ShareThis.php and find:


<iframe src="http://www.facebook.com/plugins/like.php?href='. $this->url .'&amp;layout=standard&amp;show_faces=false$amp;send=true&amp;width=350&amp;action=like&amp;colorscheme=light&amp;height=:80" scrolling="no" frameborder="0" style="border:none; overflow:visible; width:350px; height:80px;" allowTransparency="true"></iframe>


follow facebook doc to properly change the language: http://developers.facebook.com/docs/reference/plugins/like/ this mod uses the "iframe" iframe version.

Keep im mind that facebook very ofetn doesn't respect their very own settings... so, even if you put a language string, it might not pick it up correctly.
Title: Re: Share This Topic
Post by: pastorvictor on February 12, 2013, 07:12:02 PM
This is what Facebook says:

src="http://www.facebook.com/plugins/like.php?locale=fr_FR&..."

So just to be sure, would it end up looking like this?

<iframe src="http://www.facebook.com/plugins/like.php?locale=es_ES'. $this->url .(rest of the code)
Title: Re: Share This Topic
Post by: Suki on February 12, 2013, 07:24:07 PM
Sort of. you need to separate each value with an "&" so:


<iframe src="http://www.facebook.com/plugins/like.php?locale=es_ES&amp;'. $this->url .(rest of the code)
Title: Re: Share This Topic
Post by: pastorvictor on February 12, 2013, 11:23:50 PM
Uh oh....I added the code exactly like that and now the whole thing is gone :S I noticed that there's a href in the original code, like this:

like.php?href='.

But it's not in the new one:

like.php?locale=es_ES&amp;'.

Could that be the problem, maybe?
Title: Re: Share This Topic
Post by: Suki on February 13, 2013, 10:44:42 AM
Use this one:


<iframe src="http://www.facebook.com/plugins/like.php?href='. $this->url .'&amp;layout=standard&amp;show_faces=false$amp;send=true&amp;width=350&amp;action=like&amp;colorscheme=light&amp;height=:80;locale=es_ES&amp;" scrolling="no" frameborder="0" style="border:none; overflow:visible; width:350px; height:80px;" allowTransparency="true"></iframe>


The mod used to have a way to select your language from the admin settings but a lot of people just couldn't figure it out how to do so even when all they need to do was select their language from a drop-down and also, facebook loves to skip their own documentation and continuously ignored the language and other parameter such as "show faces" and the height and width.
Title: Re: Share This Topic
Post by: pastorvictor on February 13, 2013, 06:19:00 PM
Thank you, Suki. I added the above and now the button and the text are back, but still in English. What else could I try?
Title: Re: Share This Topic
Post by: Suki on February 13, 2013, 07:04:50 PM
Well, technically, there isn't anymore things to add, like I said, facebook loves to ignore their own settings, that is why there are so many angry devs.
Title: Re: Share This Topic
Post by: pastorvictor on February 14, 2013, 02:10:17 AM
Yes, I can see that....by the way, the buttons seem to be adding a lot of extra space at the bottom or at the top of the actual post (depending on where I put them). Is there any way to decrease this space? I already tried with just a "1" in the AP settings, but they still take up too much space.
Title: Re: Share This Topic
Post by: Suki on February 14, 2013, 07:55:45 AM
The extra space is for the comment box that the facebook button uses. But if you do not want it, in the Sources/ShareThis.php near the end is all the css code his mod uses, you can remove the space from there.
Title: Re: Share This Topic
Post by: pastorvictor on February 14, 2013, 10:19:54 PM
You mean this part?

.sharethis_twitter, .sharethis_google
{
'. (!empty($modSettings['share_likebutton_enable']) ? '
   position: relative;
   top: -60px;
' : '') .'
}
Title: Re: Share This Topic
Post by: Suki on February 15, 2013, 09:50:07 AM
let me check, is been ages since the last time I saw this mod in action but I do remember that the extra spaec was the only reasonable way to show the facebook comment box.
Title: Re: Share This Topic
Post by: pastorvictor on February 15, 2013, 09:33:04 PM
Ok, thank you, Suki. I'm just not very good with css.
Title: Re: Share This Topic
Post by: johnpaul2k2 on February 16, 2013, 01:46:46 AM
CAN THIS WORK WITH 2.0.4?
Title: Re: Share This Topic
Post by: Suki on February 16, 2013, 09:33:00 AM
Quote from: johnpaul2k2 on February 16, 2013, 01:46:46 AM
CAN THIS WORK WITH 2.0.4?

Yes...   theres no need to ask (much less in capitals...)... ProTip: if you go to the mods page, select 2.0.4 and click in the "parse" button and the mod does parse, it means it can and would work on 2.0.4...
Title: Re: Share This Topic
Post by: pastorvictor on February 16, 2013, 12:41:50 PM
It works perfectly. I'm using it in 2.0.4.
Title: Re: Share This Topic
Post by: Suki on February 16, 2013, 12:54:28 PM
Yes, and it will work on any minor 2.0 version, up to 2.0.99. It will even work on 2.1 too (although I explicitly left out any 2.1 compatibility).

Back when I was a lead customizer I explicitly told mod authors to expand their compatibility ratio to 2.0.99 (dunno if that still applies), this cuts off having to update every time there is a new security patch and it also helps if for some reason the mod author isn't around anymore to properly update the mod.

But even with those measures, people just do not read, do not bother to search.
Title: Re: Share This Topic
Post by: pastorvictor on February 20, 2013, 01:00:07 AM
Suki, I've messing with with the css section of ShareThis.php but I've just been unable to decrease the space between the buttons and the signature. Would you be able to let me know which part I need to modify to accomplish this?
Title: Re: Share This Topic
Post by: Suki on February 20, 2013, 06:35:19 PM
Actually, the height is been controlled by the iframe, so go to Sources/ShareThis.php and find:

width:350px; height:80px;" allowTransparency="true"

and change the 80 with something lower, keep in mind that your users won't be able to leave a comment when they like a topic or message.
Title: Re: Share This Topic
Post by: pastorvictor on February 20, 2013, 10:51:26 PM
Thank you, Suki! That helped. I lowered it to 50px but now the Twitter button is not aligned with the other two buttons. How can I fix this? I am attaching an image to show you how it looks.
Title: Re: Share This Topic
Post by: Suki on February 21, 2013, 09:23:49 AM
Thats just pure css trickery to align the buttons at the top, on your Sources/shareThis.php file find:


.sharethis_twitter, .sharethis_google
{
'. (!empty($modSettings['share_likebutton_enable']) ? '
position: relative;
top: -60px;
' : '') .'
}


and change the -60 with a more appropriate number, it will depend on the number you set for the facebook iframe so you need to test a few numbers to see which one suits your needs.
Title: Re: Share This Topic
Post by: perfec2 on April 10, 2013, 01:18:23 PM
I started using it when it support  smf 1.1x it seems it does not support this version anymore. I want to add google+ share buttion in it, please what are the steps to do that. I'm using smf 1.1.18?
Title: Re: Share This Topic
Post by: Suki on April 11, 2013, 04:49:24 PM
It's been a long time now since any of my mods supported SMF 1.1.x, none of them has support for an outdated version sorry. I do not have any old release of this mod that still support 1.1.x either.

There are plenty of this kind of mods on the mod site, some of them might still support 1.1.x.
Title: Re: Share This Topic
Post by: joeyjojoshabadoo on April 17, 2013, 08:29:59 PM
Guys thanks alot for the free mod.

Question - Is there any way at all that I can have this show in only the first message and last message? I know I can get it in the first message, but I don't want to have it in all of them as I think it looks messy. I do think that it would be most useful in the last message, as that's when people might be most likely to share.

Is there any way to do it?

many thanks
Title: Re: Share This Topic
Post by: stewpot007 on April 09, 2016, 10:30:16 AM
HI,

Just did a repair_settings.php and used the link to auto delete the Repair_Settings.php file from the server and it caused the following error.  Can you help

Fatal error: Class 'ShareThis' not found in /home/wwwcurr/public_html/curry/Sources/Load.php on line 1582

Link to forum: http://www.curry-recipes.co.uk/curry/index.php

I am running the latest version.

Any suggestions?

see this topic as the MOD suggested I contact you for help: http://www.simplemachines.org/community/index.php?topic=544981.0
Title: Re: Share This Topic
Post by: Suki on April 09, 2016, 11:00:24 AM
Download the mod again, unzip it.

If you have the mod installed, upload the ShareThis.php file to your Sources dir via ftp or your file manager tool

If you do not have the mod installed, upload the file named "remove.php" to your forum's root dir and call it with your browser:  mysite.com/remove.php  it should show just a blank page, delete the file afterwards.
Title: Re: Share This Topic
Post by: HDB on May 16, 2016, 10:51:55 PM
I installed this modification on my 2.0.11 forum and since I have an SSL cert it won't work as the browser blocks the unsecure content that the modification must be pulling from one or more of the social media sites.

What would it take in the way of custom edits to allow the SSL process on my forum to be satisfied with the things the mod is currently relying on from unsecured sources?
Title: Re: Share This Topic
Post by: Biology Forums on May 17, 2016, 01:35:43 AM
Would be nice if someone could share a picture of this in action...
Title: Re: Share This Topic
Post by: HDB on May 17, 2016, 09:37:50 AM
Quote from: Shuban on May 17, 2016, 01:35:43 AM
Would be nice if someone could share a picture of this in action...
Not much to show. The social media graphics that the mod is pulling from the unsecure sites get blocked and the green padlock in the URL bar for the SSL cert still shows in green but with the addition of a "!" ( exclamation mark) surrounded by a triangle which is to alert that unsecure content was blocked.
Title: Re: Share This Topic
Post by: Suki on May 17, 2016, 10:18:28 AM
Ah yes this mod is quite old and it doesn't support ssl, will take a look at and and release a new version. I honestly cannot remember the mod's code so I cannot give you a quick n dirty fix for it but a quick search with notepad++ for http// and replace it with // (schema less urls) on this mod's source file should do the trick.
Title: Re: Share This Topic
Post by: HDB on May 17, 2016, 10:30:54 AM
Thanks Suki.

I will give the notepad++ trick a try. That makes sense now that you mention it.

If you could update it I think myself and others would be grateful now that SSL use is becoming more and more the direction forums will go.

It is a well laid out mod. Your admin panel that the mod installs provides a great deal of control. Well done IMO.

Thanks.
Title: Re: Share This Topic
Post by: HDB on October 01, 2016, 04:48:37 PM
Quote from: Suki on May 17, 2016, 10:18:28 AM
Ah yes this mod is quite old and it doesn't support ssl, will take a look at and and release a new version. I honestly cannot remember the mod's code so I cannot give you a quick n dirty fix for it but a quick search with notepad++ for http// and replace it with // (schema less urls) on this mod's source file should do the trick.
Just to follow up, I did the suggested edit and this Modification works great on a SSL (https) forum now. Thanks!!
Title: Re: Share This Topic
Post by: spiros on December 11, 2016, 05:41:57 AM
Gives some xhtml errors like

there is no attribute "data-url"
there is no attribute "allowTransparency"
there is no attribute "data-text"
there is no attribute "data-via"
there is no attribute "size"
there is no attribute "href"
element "g:plusone" undefined

http://www.simplemachines.org/community/index.php?topic=550498.0

https://validator.w3.org/check?uri=https%3A%2F%2Fwww.translatum.gr%2Fforum%2Findex.php%3Ftopic%3D454720.0;accept=text%2Fhtml%2Capplication%2Fxhtml%2Bxml%2Capplication%2Fxml%3Bq%3D0.9%2Cimage%2Fwebp%2C%2A%2F%2A%3Bq%3D0.8;accept-language=en-US%2Cen%3Bq%3D0.8%2Cel%3Bq%3D0.6
Title: Re: Share This Topic
Post by: pocttopus on May 17, 2017, 05:16:12 PM
I had download the latest version which is 4.2 but after installation there is 4.1.2 version
How can I update to 4.2?

I also went for manual installation but with no result
Forum version 2.0.14

Thanks!
Title: Re: Share This Topic
Post by: dabigben on January 30, 2018, 07:00:12 AM
Works fine, thanks a lot. But too bad it does'nt share any content from the message, only the topic URL. You cannot put a thumbnail on facebook or something like that. But thanks anyway !
Title: Re: Share This Topic
Post by: njtweb on April 25, 2018, 03:45:24 PM
You are the best! This is exactly what I was looking for! Thank you.
Title: Re: Share This Topic
Post by: palmdoc on October 22, 2018, 10:46:38 AM
INstalled v 4.2 on 2.015 Sunrise theme
I get Twitter and G+ buttons but not Facebook
ANy tips?
Title: Re: Share This Topic
Post by: landyvlad on December 03, 2018, 10:39:25 PM
So is this working well? 

I'd appreciate a screenshot of how it looks when a post or thread is shared to facebook, for example.
Title: Re: Share This Topic
Post by: Ranami on August 10, 2019, 03:56:39 PM
I hope one can still get support on this mod here. Thing is I have this mod version 4.1.2 installed on SMF 2.0.15, but the Facebook and add this buttons are not visible on most browsers. The twitter button seems to be okay with different browsers though.

Is there something I can do to make all the buttons appear in all browsers? Thanks in advance.
Title: Re: Share This Topic
Post by: Ranami on August 10, 2019, 05:28:44 PM
Quote from: Suki on May 17, 2016, 10:18:28 AM
Ah yes this mod is quite old and it doesn't support ssl, will take a look at and and release a new version. I honestly cannot remember the mod's code so I cannot give you a quick n dirty fix for it but a quick search with notepad++ for http// and replace it with // (schema less urls) on this mod's source file should do the trick.
Never mind. Tried this solution and it worked, thanks.
Title: Re: Share This Topic
Post by: Biology Forums on August 11, 2019, 10:21:53 PM
What's the advantage to using this when you can just use an Addthis script instead? Asking out of pure curiosity.
Title: Re: Share This Topic
Post by: Diego Andrés on August 13, 2019, 11:57:50 PM
Some social mods have aged and this one isn't the exception.
Addthis coincidentally rebranded itself to what we know today on the exact year this mod was last updated :P
Title: Re: Share This Topic
Post by: Biology Forums on August 14, 2019, 10:33:41 AM
Quote from: Diego Andrés on August 13, 2019, 11:57:50 PM
Some social mods have aged and this one isn't the exception.
Addthis coincidentally rebranded itself to what we know today on the exact year this mod was last updated :P

2009 was 10 years ago! If anyone needs help implementing this (https://www.addthis.com), PM me.
Title: Re: Share This Topic
Post by: Douglas on September 20, 2021, 11:29:04 AM
Hey, @Suki? Any chance you can update this to work with 2.1?
Title: Re: Share This Topic
Post by: Diego Andrés on September 20, 2021, 03:12:14 PM
You're probably better off manually inserting the share buttons and stuff
Title: Re: Share This Topic
Post by: njtweb on March 07, 2023, 06:48:36 AM
This mod still works fine on my site except the "add this" image no longer works. Can anyone help with this? Thanks to all in advance.addthis.jpg
Title: Re: Share This Topic
Post by: vicente127 on September 08, 2023, 07:00:31 AM
I can't download the mod, it says the ID is wrong, or smth like that :(