News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Share this topic SMF Mod

Started by Dzonny, January 30, 2009, 12:40:34 PM

Previous topic - Next topic

Dzonny

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
// 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

Marcus Forsberg

Swedish translation:

$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.';

Sudhakar Arjunan

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

TheDisturbedOne

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!

Ravac

@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?

TheDisturbedOne

I think that would be a nice addition!

4Kstore

Nice mod!! thanks!

Spanish Traslation

$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!!!

[unplugged]

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 »



Ravac


4Kstore

Quote from: SunKing 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';


Thanks !! now is perfect this mod ^^!!

¡¡NEW MOD: Sparkles User Names!!!

Mick.


AlenNS

Српски ћирилица

$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';

[istay10.com]

Turkish translation


$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.

JohnKaL-

#13
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  ;)

gremiopoker

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:

$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';

gremiopoker

working now

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

$mod_buttons = array(

But I find this line...I add before this line and work

$moderationButtons = array();

theme babylon

Ravac

I changed Display.template.php just for default, not for babylon, that was the problem ;) will update it later.

Tnx for translation...

chrisb

i have installed and works a treat for me thanks

Kimmie

any screenshots or a demo that we dont have to register on the site just to see it?

[unplugged]

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 »



Advertisement: