Share This Topic

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

Previous topic - Next topic

SAFAD

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>
Best Regards
Sadaoui "SAFAD" Abderrahim - Lead Developer @ Electron Inc.

SAFAD

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
Best Regards
Sadaoui "SAFAD" Abderrahim - Lead Developer @ Electron Inc.

Arantor

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.
Holder of controversial views, all of which my own.


SAFAD

Best Regards
Sadaoui "SAFAD" Abderrahim - Lead Developer @ Electron Inc.

Arantor

If you'd like to supply the translation please do. I only speak two languages - English/British and rubbish.
Holder of controversial views, all of which my own.


SAFAD

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>

Best Regards
Sadaoui "SAFAD" Abderrahim - Lead Developer @ Electron Inc.

Pinball Nation

I have the Twitter mod installed.If i install this mod.We they conflicked with each other?

Arantor

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.
Holder of controversial views, all of which my own.


ElectricSquid

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?

Arantor

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.
Holder of controversial views, all of which my own.


ElectricSquid

Boo MySpace, for making it hard to do.

You have Twitter and Facebook on there though. For me, they're the important ones.

Arantor

That said, I'll take another look, and if it has changed I'll consider it.
Holder of controversial views, all of which my own.


ElectricSquid

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

Arantor

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.
Holder of controversial views, all of which my own.


ElectricSquid

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.

Arantor

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.
Holder of controversial views, all of which my own.


aw06

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]
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

Arantor

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.
Holder of controversial views, all of which my own.


aw06

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
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

Arantor

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...
Holder of controversial views, all of which my own.


Advertisement: