Advertisement:

Author Topic: Share this topic SMF Mod  (Read 36552 times)

Offline Dzonny

  • Localizer
  • SMF Super Hero
  • *
  • Posts: 11,789
  • Gender: Male
  • No sleep...
    • dzontra.nikola on Facebook
    • Dzonny on GitHub
    • dzontranikola on LinkedIn
    • @opusteniforum on Twitter
    • Samo opusteno
Share this topic SMF Mod
« on: January 30, 2009, 12:40:34 PM »
Share this topic v1.3 - SMF Mod



Author(s):
- ravac

Languages:
- English
- Serbian (Thanks to AlenNS)
- Turkish (Thanks to [istay10.com])
- Swedish (Thanks to Nas)
- Spanish (Thanks to 4kstore)
- Greek (Thanks to JohnKaL-)
- Brazilian-Portuguese (Thanks to gremiopoker)
- French

Compatibility:
- 1.1.x
- 2.x

Demo:
- www.ravac.comze.com

Note:
Turn on/of this mod in: ACP ~ Features and Options ~ Enable Share this topic



Translate will be appreciated, so if you want translate the mod, these are the strings:
languages/Modifications.language.php
Code: [Select]
// Share this topic SMF Mod - Translate by [name]
$txt['share_this_topic'] = 'Enable Share This Topic';
$txt['stt_1'] = 'Share this topic...';
$txt['stt_2'] = '<b>In a forum</b><br /><small>(BBCode)</small>';
$txt['stt_3'] = '<b>In a site/blog</b><br /><small>(HTML)</small>';
$txt['stt_t_1'] = 'Click here to copy this code, then paste it in a forum';
$txt['stt_t_2'] = 'Click here to copy this code, then paste it in a Web';



Changelogs:

Version 1.0 Jan 28, 2009
~ Modification Release
Version 1.1 Feb 06, 2009
~ New Languages Support: Serbian :: Turkish :: Swedish :: Spanish
~ New look of mod: Thanks to SunKing
Version 1.2 Feb 19, 2009
~ Added support for babylon theme
~ Mod box moved between quick moderation and quick reply
~ New Languages Support: Greek :: Brazilian-Portuguese
Version 1.3 Feb 23, 2009
~ Added collapse-expand option for default theme
~ New Language Support: French
« Last Edit: April 11, 2009, 10:49:46 AM by Ravac »

Offline Marcus Forsberg

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,608
  • Gender: Male
    • marcus.t.forsberg on Facebook
    • marcusforsberg on LinkedIn
    • @marcusforsberg on Twitter
    • marcusforsberg.net
Re: Share this topic SMF Mod
« Reply #1 on: January 30, 2009, 12:43:12 PM »
Swedish translation:

Code: [Select]
$txt['share_This_topic'] = 'Tillåt andra att dela detta ämne';
$txt['stt_1'] = 'Dela detta ämne...';
$txt['stt_2'] = 'I ett forum (BBKod)';
$txt['stt_3'] = 'På en hemsida/blogg (HTML)';
$txt['stt_t_1'] = 'Klicka här för att kopiera denna kod. Klistra sedan in den i ett forum.';
$txt['stt_t_2'] = 'Klicka här för att kopiera denna kod. Klistra sedan in den i en webbsida.';

Offline Sudhakar Arjunan

  • Sophist Member
  • *****
  • Posts: 1,226
  • Gender: Male
  • SMF is the best forum tool
    • IT Acumens - Webdesigning & Webhositing services in Chennai
Re: Share this topic SMF Mod
« Reply #2 on: January 30, 2009, 01:06:18 PM »
Really a nice idea RavacDS.

Will this mod have any issues with the mod which are using [url] links.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Offline TheDisturbedOne

  • SMF Hero
  • ******
  • Posts: 1,700
    • Disturbed Message Board
Re: Share this topic SMF Mod
« Reply #3 on: January 30, 2009, 02:01:33 PM »
An idea for a future version of this MOD, have an option for it to be noncollapsed or the way it is now.

Looks great though!

Offline Ravac

  • Full Member
  • ***
  • Posts: 580
  • Gender: Male
Re: Share this topic SMF Mod
« Reply #4 on: January 30, 2009, 02:21:13 PM »
@Nas - Thanks

@A.SK - No

@TheDisturbedOne - We will see something about that...

In future version will be option for selecting which board to show, will that be usefull?

Offline TheDisturbedOne

  • SMF Hero
  • ******
  • Posts: 1,700
    • Disturbed Message Board
Re: Share this topic SMF Mod
« Reply #5 on: January 30, 2009, 02:32:15 PM »
I think that would be a nice addition!

Offline 4Kstore

  • SMF Hero
  • ******
  • Posts: 4,314
  • Gender: Male
    • agustintari on Facebook
    • @agustintarifa on Twitter
    • SSIMPLE TEAM PAGE
Re: Share this topic SMF Mod
« Reply #6 on: January 30, 2009, 04:06:27 PM »
Nice mod!! thanks!

Spanish Traslation
Code: [Select]
$txt['share_This_topic'] = 'Permitir Share this topic';
$txt['stt_1'] = 'Compartir este Tema...';
$txt['stt_2'] = 'Para Foros (BBCode)';
$txt['stt_3'] = 'Para Sitios/Blogs (HTML)';
$txt['stt_t_1'] = 'Click acá para copiar el código, luego pegue esto en un foro';
$txt['stt_t_2'] = 'Click acá para copiar el código, luego pegue esto en una web';
¡¡NEW MOD: Sparkles User Names!!!

Offline [unplugged]

  • Sophist Member
  • *****
  • Posts: 1,312
  • Gender: Male
  • I know just enough to get me in trouble...
    • Empire of the Sun
Re: Share this topic SMF Mod
« Reply #7 on: January 31, 2009, 12:43:46 AM »
Very nice mod!

I prettied it up a bit by placing it in a "window" and rearranged the textual layout. You can see it here.

I have included the code below for anyone interested.

Code: (Display.template.php) [Select]
/*Share This Topic - SMF Mod by ravac*/
$share_This_topic = 1;
if (isset($modSettings['share_This_topic']) && $modSettings['share_This_topic'] == 1)

  echo'  <div class="tborder" style="margin-top: 0;">
  <div class="catbg" style="padding: 7px;">',$txt['stt_1'],'</div>
    <table class="bordercolor windowbg2" width="100%">
      <tr>
        <td width="13%" style="padding:5px;">', $txt['stt_2'] ,'</td>
        <td><textarea style="overflow:hidden;padding:0;margin:0;" readonly="readonly" rows="2" cols="50" onclick="this.select();" title="', $txt['stt_t_1'] ,'">
[url=' . $scripturl . '?topic=' . $context['current_topic'] .'.0]', $context['subject'], '[/url]
          </textarea></td>
      </tr>
      <tr>
        <td width="13%" style="padding:5px;">', $txt['stt_3'] ,'</td>
        <td><textarea style="overflow:hidden;padding:0;margin:0;" readonly="readonly" rows="2" cols="50" onclick="this.select();" title="', $txt['stt_t_2'] ,'">
<a href="' . $scripturl . '?topic=' . $context['current_topic'] .'.0">', $context['subject'], '</a>
            </textarea></td>';

  echo'      </tr>
    </table>
  </div>
  <br />';

Code: (Modifications.english.php) [Select]
$txt['share_This_topic'] = 'Enable Share This Topic';
$txt['stt_1'] = 'Share this topic...';
$txt['stt_2'] = '<b>In a forum</b><br /><small>(BBCode)</small>';
$txt['stt_3'] = '<b>In a site/blog</b><br /><small>(HTML)</small>';
$txt['stt_t_1'] = 'Click here to copy this code, then paste it in a forum';
$txt['stt_t_2'] = 'Click here to copy this code, then paste it in a Web';
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »


Offline Ravac

  • Full Member
  • ***
  • Posts: 580
  • Gender: Male
Re: Share this topic SMF Mod
« Reply #8 on: January 31, 2009, 06:29:42 AM »
Very nice SunKing, thanks

Offline 4Kstore

  • SMF Hero
  • ******
  • Posts: 4,314
  • Gender: Male
    • agustintari on Facebook
    • @agustintarifa on Twitter
    • SSIMPLE TEAM PAGE
Re: Share this topic SMF Mod
« Reply #9 on: January 31, 2009, 01:47:58 PM »
Very nice mod!

I prettied it up a bit by placing it in a "window" and rearranged the textual layout. You can see it here.

I have included the code below for anyone interested.

Code: (Display.template.php) [Select]
/*Share This Topic - SMF Mod by ravac*/
$share_This_topic = 1;
if (isset($modSettings['share_This_topic']) && $modSettings['share_This_topic'] == 1)

  echo'  <div class="tborder" style="margin-top: 0;">
  <div class="catbg" style="padding: 7px;">',$txt['stt_1'],'</div>
    <table class="bordercolor windowbg2" width="100%">
      <tr>
        <td width="13%" style="padding:5px;">', $txt['stt_2'] ,'</td>
        <td><textarea style="overflow:hidden;padding:0;margin:0;" readonly="readonly" rows="2" cols="50" onclick="this.select();" title="', $txt['stt_t_1'] ,'">
[url=' . $scripturl . '?topic=' . $context['current_topic'] .'.0]', $context['subject'], '[/url]
          </textarea></td>
      </tr>
      <tr>
        <td width="13%" style="padding:5px;">', $txt['stt_3'] ,'</td>
        <td><textarea style="overflow:hidden;padding:0;margin:0;" readonly="readonly" rows="2" cols="50" onclick="this.select();" title="', $txt['stt_t_2'] ,'">
<a href="' . $scripturl . '?topic=' . $context['current_topic'] .'.0">', $context['subject'], '</a>
            </textarea></td>';

  echo'      </tr>
    </table>
  </div>
  <br />';

Code: (Modifications.english.php) [Select]
$txt['share_This_topic'] = 'Enable Share This Topic';
$txt['stt_1'] = 'Share this topic...';
$txt['stt_2'] = '<b>In a forum</b><br /><small>(BBCode)</small>';
$txt['stt_3'] = '<b>In a site/blog</b><br /><small>(HTML)</small>';
$txt['stt_t_1'] = 'Click here to copy this code, then paste it in a forum';
$txt['stt_t_2'] = 'Click here to copy this code, then paste it in a Web';

Thanks !! now is perfect this mod ^^!!
¡¡NEW MOD: Sparkles User Names!!!

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,853
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: Share this topic SMF Mod
« Reply #10 on: February 01, 2009, 02:37:24 PM »
Very cool thanx!

Offline AlenNS

  • Full Member
  • ***
  • Posts: 617
  • Gender: Male
    • Baklja forum - Vaš forum
Re: Share this topic SMF Mod
« Reply #11 on: February 01, 2009, 09:51:14 PM »
Српски ћирилица

$txt['share_This_topic'] = 'Омогући Подели ову тему са другима модификацију';
$txt['stt_1'] = 'Подели ову тему са другима...';
$txt['stt_2'] = 'За форуме (BBКод)';
$txt['stt_3'] = 'За сајт/блог (HTML)';
$txt['stt_t_1'] = 'Кликни овде да копираш овај код, а онда га залепи на форум';
$txt['stt_t_2'] = 'Кликни овде да копираш овај код, а онда га залепи на сајт/блог';

Srpski latinica

$txt['share_This_topic'] = 'Omogući Podeli ovu temu sa drugima modifikaciju';
$txt['stt_1'] = 'Podeli ovu temu sa drugima...';
$txt['stt_2'] = 'Za forume (BBKod)';
$txt['stt_3'] = 'Za sajt/blog (HTML)';
$txt['stt_t_1'] = 'Klikni ovde da kopiraš ovaj kod, a onda ga zalepi na forum';
$txt['stt_t_2'] = 'Klikni ovde da kopiraš ovaj kod, a onda ga zalepi na sajt/blog';

Offline [istay10.com]

  • Jr. Member
  • **
  • Posts: 143
    • gothic gizemli karanlık
Re: Share this topic SMF Mod
« Reply #12 on: February 03, 2009, 09:30:17 AM »
Turkish translation


Code: [Select]
$txt['share_This_topic'] = 'Konuyu Paylaş Aktif Et';
$txt['stt_1'] = 'Konuyu Paylaş...';
$txt['stt_2'] = 'Forumunda Yayınla (BBCode)';
$txt['stt_3'] = 'Blog / Sitende Yayınla (HTML)';
$txt['stt_t_1'] = 'Forumda Yayınlamak için Kodu Kopyalayınız';
$txt['stt_t_2'] = 'Blog / Sitenizde Yayınlamak için Kodu Kopyalayınız';
istasy10 ====> kıvılcımı biz çakarız, yangını sen çıkarırsın.

Offline JohnKaL-

  • Semi-Newbie
  • *
  • Posts: 62
    • greek foot fetish
Re: Share this topic SMF Mod
« Reply #13 on: February 06, 2009, 11:38:57 PM »
Greek Translation

$txt['share_This_topic'] = 'Ενεργοποίηση μοιράσματος των θεμάτων';
$txt['stt_1'] = 'Μοίραστε αυτό το θέμα...';
$txt['stt_2'] = '<b>σε ένα forum</b><br /><small>(BBCode)</small>';
$txt['stt_3'] = '<b>σε ένα site/blog</b><br /><small>(HTML)</small>';
$txt['stt_t_1'] = 'Πατήστε εδώ για να αντιγραφεί ο κώδικας, μετά κάντε επικόλληση στο forum';
$txt['stt_t_2'] = 'Πατήστε εδώ για να αντιγραφεί ο κώδικας, μετά κάντε επικόλληση στο Web';

@RavacDS Nice mod thanks  ;)
« Last Edit: February 06, 2009, 11:42:29 PM by JohnKaL- »

Offline gremiopoker

  • Newbie
  • *
  • Posts: 9
Re: Share this topic SMF Mod
« Reply #14 on: February 08, 2009, 05:43:16 AM »
dont work to me....

SMF 2.0 RC1 theme babylon

I Enable Share This Topic on admin

see image:
hxxp:img4.imageshack.us/my.php?image=sharemodrt2.jpg [nonactive]

Brazilian Portuguese translation:

Code: [Select]
$txt['share_This_topic'] = 'Permitir Share this topic';
$txt['stt_1'] = 'Compartir este Tópico...';
$txt['stt_2'] = 'Para Forum (BBCode)';
$txt['stt_3'] = 'Para Sites/Blogs (HTML)';
$txt['stt_t_1'] = 'Click aqui para copiar esse código, após cole em um forum';
$txt['stt_t_2'] = 'Click aqui para copiar esse código, após cole em um website';

Offline gremiopoker

  • Newbie
  • *
  • Posts: 9
Re: Share this topic SMF Mod
« Reply #15 on: February 08, 2009, 06:58:36 AM »
working now

in Display.template.php i cant find this line to add before

Code: [Select]
$mod_buttons = array(
But I find this line...I add before this line and work

Code: [Select]
$moderationButtons = array();
theme babylon

Offline Ravac

  • Full Member
  • ***
  • Posts: 580
  • Gender: Male
Re: Share this topic SMF Mod
« Reply #16 on: February 08, 2009, 09:19:52 AM »
I changed Display.template.php just for default, not for babylon, that was the problem ;) will update it later.

Tnx for translation...

Offline chrisb

  • Jr. Member
  • **
  • Posts: 214
Re: Share this topic SMF Mod
« Reply #17 on: February 13, 2009, 11:13:59 PM »
i have installed and works a treat for me thanks

Offline Kimmie

  • SMF Hero
  • ******
  • Posts: 1,590
Re: Share this topic SMF Mod
« Reply #18 on: February 18, 2009, 10:18:58 PM »
any screenshots or a demo that we dont have to register on the site just to see it?

Offline [unplugged]

  • Sophist Member
  • *****
  • Posts: 1,312
  • Gender: Male
  • I know just enough to get me in trouble...
    • Empire of the Sun
Re: Share this topic SMF Mod
« Reply #19 on: February 18, 2009, 10:23:22 PM »
You can see it in action here (no login required).
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »