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

Kimmie

Thank you for that. This mod probably wouldnt be of any use if you have it turned off to guests. They cant see it unless they register. Although ... it could be an incentive for new members :)

[unplugged]

It would probably be pretty easy to allow guests to see.
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



Kimmie

I'm sure it would be however, if I did that I would have to turn my forum on to guests and Im not going to do that.

jayman2

Nice mod.  I just installed it on my smf 2.0 RC1, without any errors.  When I tested it, I found that the bbc part works great, but... when tried the html part, I copied the code and pasted it into a comment on my smf blog, but all that shows up in the blog comment is the name of the topic.  It's not a live link.  Then if I click on "edit", all that's left is the title of the post in the text input window.  The code is all removed.  Has anyone else seen this?

Ravac

Quote from: jayman2 on February 23, 2009, 04:31:53 PM
Nice mod.  I just installed it on my smf 2.0 RC1, without any errors.  When I tested it, I found that the bbc part works great, but... when tried the html part, I copied the code and pasted it into a comment on my smf blog, but all that shows up in the blog comment is the name of the topic.  It's not a live link.  Then if I click on "edit", all that's left is the title of the post in the text input window.  The code is all removed.  Has anyone else seen this?

"Job" of this mod is, that he give you a bbc and html links of some topic
eg.

[url=link_to_topic]Topic name[/url]

<a href="link_to_topic">Topic name</a>

So, that has nothing to do with this mod and smf blog

Impsat-1

#25
Mmm... hey Guys, can say me how I can do for centered box in display template? some like this? or well..., please tell me how can do thats... thanks for ask :)

// Share this topic SMF Mod - Translate by [name]
$txt['share_this_topic'] = '<center>Enable Share This Topic</center>';
$txt['stt_1'] = '<center>Share this topic...</center>';
$txt['stt_2'] = '<center><b>In a forum</b><br /><small>(BBCode)</small></center>';
$txt['stt_3'] = '<center><b>In a site/blog</b><br /><small>(HTML)</small></center>';
$txt['stt_t_1'] = '<center>Click here to copy this code, then paste it in a forum</center>';
$txt['stt_t_2'] = '<center>Click here to copy this code, then paste it in a Web</center>';


Now is in "left" but I want if can in center tell my how

Regards & Thanks for This Great MOD!!! 8).-

Note: Sorry for my english but I'm from Argentina :).-
Vive Cáda Momento De Tu Vida Como Si Fueras a Irte Mañana, Más Planificala Cómo Si Jamás Fueras a Irte ;).-

Ravac

@Nahuel-1

Which SMF version you are using?

Impsat-1

Uhhh... thanks Ravac for interested, mi SMF is 1.1.8... theme Default, see the image


is in left corner and I want in center or centered... Thanks again :)
Regards 8).-
Vive Cáda Momento De Tu Vida Como Si Fueras a Irte Mañana, Más Planificala Cómo Si Jamás Fueras a Irte ;).-

Impsat-1

Mmm... hey Guys, any suggestions???... thank's for ask :)

Regards 8).-
Vive Cáda Momento De Tu Vida Como Si Fueras a Irte Mañana, Más Planificala Cómo Si Jamás Fueras a Irte ;).-

Ravac

ohh i'm so sorry i totaly forgot about this :d

Try this code below...

Code (Find) Select
// Share this topic - SMF Mod
$share_this_topic = 1;
if (isset($modSettings['share_this_topic']) && $modSettings['share_this_topic'] == 1)

  echo'
  <br /><div class="tborder" style="margin-top: 0;">
  <div class="catbg" style="padding: 6px; vertical-align: middle; text-align: left; ">
  <a href="#" onclick="shrinkHeaderIC(!current_header_ic); return false;"><img id="upshrink_ic" src="', $settings['images_url'], '/', empty($options['collapse_header_ic']) ? 'collapse.gif' : 'expand.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin-right: 2ex;" align="right" /></a>
  ',$txt['stt_1'],'
  </div>
  <div id="upshrinkHeaderIC"', empty($options['collapse_header_ic']) ? '' : ' style="display: none;"', '>
    <table class="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>
</tr>
    </table>
  </div>
   </div>';



Code (Replace with) Select
// Share this topic - SMF Mod
$share_this_topic = 1;
if (isset($modSettings['share_this_topic']) && $modSettings['share_this_topic'] == 1)

  echo'
  <br /><div class="tborder" style="margin-top: 0;">
  <div class="catbg" style="padding: 6px; vertical-align: middle; text-align: left; ">
  <a href="#" onclick="shrinkHeaderIC(!current_header_ic); return false;"><img id="upshrink_ic" src="', $settings['images_url'], '/', empty($options['collapse_header_ic']) ? 'collapse.gif' : 'expand.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin-right: 2ex;" align="right" /></a>
  <center>',$txt['stt_1'],'</center>
  </div>
  <div id="upshrinkHeaderIC"', empty($options['collapse_header_ic']) ? '' : ' style="display: none;"', '>
    <table class="windowbg2" width="100%">
      <tr>
        <td width="30%" style="padding: 5px;" align="right">', $txt['stt_2'] ,'</td>
        <td width="50%"><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="30%" style="padding: 5px;" align="right">', $txt['stt_3'] ,'</td>
        <td width="50%"><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>
</tr>
    </table>
  </div>
   </div>';

Impsat-1

#30
Wow... Ravac is PERFECT!!! thanks, THANKS Master...


Regards... 8)

GREAT MOD... THANK YOU!!! for you support.-
Vive Cáda Momento De Tu Vida Como Si Fueras a Irte Mañana, Más Planificala Cómo Si Jamás Fueras a Irte ;).-

IvoLeite

Hello.

Is there a way to turn this (great) mod visible to guests?
Tks.

Ravac

Quote from: IvoLeite on May 05, 2009, 05:23:07 PM
Hello.

Is there a way to turn this (great) mod visible to guests?
Tks.

He is visible for guests.. :)

MaXiForum.cz


islam2hamy

nice mod

Arabic-utf8 translation :

// Share this topic SMF Mod - Translate by [islam2hamy]
$txt['share_this_topic'] = 'Enable Share This Topic';
$txt['stt_1'] = 'مشاركة هذا الموضوع ....';
$txt['stt_2'] = '<b>فى منتدى</b><br /><small>(BBCode)</small>';
$txt['stt_3'] = '<b>فى موقع/مدونة</b><br /><small>(HTML)</small>';
$txt['stt_t_1'] = 'إضغط هنا لنسخ الكود, ثم بعد ذلك قم بوضعه فى أى منتدى';
$txt['stt_t_2'] = 'إضغط هنا لنسخ الكود, ثم بعد ذلك قم بوضعه فى أى موقع/مدونة';


please before put the translation in the file be sure that the file encode is UTF-8

Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





Naveeddil

hey dears
when i activate the Mod
the windos shows up on Header of the page as in Screenshot
which area i suppose to edit in Template please

sAce

you have to edit the display.template.php of your theme

Naveeddil

Quote from: S-Ace on August 18, 2009, 01:08:26 AM
you have to edit the display.template.php of your theme
i know i have to edit the display.remplate but what part to copy paste somewhere else????

sAce

./Themes/default/Display.template.php

find


// Share this topic - SMF Mod
$share_this_topic = 1;
if (isset($modSettings['share_this_topic']) && $modSettings['share_this_topic'] == 1)

  echo'
  <br /><div class="tborder" style="margin-top: 0;">
  <div class="catbg" style="padding: 6px; vertical-align: middle; text-align: left; ">
  <a href="#" onclick="shrinkHeaderIC(!current_header_ic); return false;"><img id="upshrink_ic" src="', $settings['images_url'], '/', empty($options['collapse_header_ic']) ? 'collapse.gif' : 'expand.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin-right: 2ex;" align="right" /></a>
  ',$txt['stt_1'],'
  </div>
  <div id="upshrinkHeaderIC"', empty($options['collapse_header_ic']) ? '' : ' style="display: none;"', '>
    <table class="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>
</tr>
    </table>
  </div>
   </div>';



add before this
echo '<br />';

if ($context['can_reply'] && !empty($options['display_quick_reply']))

Naveeddil


Advertisement: