Advertisement:

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

Offline Kimmie

  • SMF Hero
  • ******
  • Posts: 1,590
Re: Share this topic SMF Mod
« Reply #20 on: February 18, 2009, 11:42:03 PM »
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 :)

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 #21 on: February 18, 2009, 11:58:19 PM »
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 »


Offline Kimmie

  • SMF Hero
  • ******
  • Posts: 1,590
Re: Share this topic SMF Mod
« Reply #22 on: February 19, 2009, 05:13:52 PM »
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.

Offline jayman2

  • Semi-Newbie
  • *
  • Posts: 92
Re: Share this topic SMF Mod
« Reply #23 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?

Offline Ravac

  • Full Member
  • ***
  • Posts: 580
  • Gender: Male
Re: Share this topic SMF Mod
« Reply #24 on: February 26, 2009, 01:17:28 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.

Code: [Select]
[url=link_to_topic]Topic name[/url]
Code: [Select]
<a href="link_to_topic">Topic name</a>
So, that has nothing to do with this mod and smf blog

Offline Impsat-1

  • Jr. Member
  • **
  • Posts: 320
Re: Share this topic SMF Mod
« Reply #25 on: April 10, 2009, 03:43:10 AM »
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 :)

Code: [Select]
// 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 :).-
« Last Edit: April 10, 2009, 03:01:19 PM by Nahuel-1 »
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 ;).-

Offline Ravac

  • Full Member
  • ***
  • Posts: 580
  • Gender: Male
Re: Share this topic SMF Mod
« Reply #26 on: April 11, 2009, 09:54:48 AM »
@Nahuel-1

Which SMF version you are using?

Offline Impsat-1

  • Jr. Member
  • **
  • Posts: 320
Re: Share this topic SMF Mod
« Reply #27 on: April 11, 2009, 08:46:38 PM »
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 ;).-

Offline Impsat-1

  • Jr. Member
  • **
  • Posts: 320
Re: Share this topic SMF Mod
« Reply #28 on: April 14, 2009, 03:11:32 AM »
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 ;).-

Offline Ravac

  • Full Member
  • ***
  • Posts: 580
  • Gender: Male
Re: Share this topic SMF Mod
« Reply #29 on: April 14, 2009, 08:51:00 AM »
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>';

Offline Impsat-1

  • Jr. Member
  • **
  • Posts: 320
Re: Share this topic SMF Mod
« Reply #30 on: April 17, 2009, 03:08:41 PM »
Wow... Ravac is PERFECT!!! thanks, THANKS Master...


Regards... 8)

GREAT MOD... THANK YOU!!! for you support.-
« Last Edit: April 17, 2009, 03:19:24 PM by Nahuel-1 »
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 ;).-

Offline IvoLeite

  • Semi-Newbie
  • *
  • Posts: 84
Re: Share this topic SMF Mod
« Reply #31 on: May 05, 2009, 05:23:07 PM »
Hello.

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

Offline Ravac

  • Full Member
  • ***
  • Posts: 580
  • Gender: Male
Re: Share this topic SMF Mod
« Reply #32 on: May 05, 2009, 07:10:51 PM »
Hello.

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

He is visible for guests.. :)

Offline MaXiForum.cz

  • Senior Translator
  • Full Member
  • *
  • Posts: 690
  • Gender: Male
  • Czech SMF support
    • MaxiFórum
Re: Share this topic SMF Mod
« Reply #33 on: June 11, 2009, 07:35:19 AM »
Nice mod!

Czech translate ;)

Offline islam2hamy

  • Sophist Member
  • *****
  • Posts: 1,364
  • Gender: Male
  • SMF أنا بحب
    • First Arabic Support Site For SMF
Re: Share this topic SMF Mod
« Reply #34 on: July 11, 2009, 03:36:11 AM »
nice mod

Arabic-utf8 translation :

Code: [Select]
// 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





Offline Naveeddil

  • Semi-Newbie
  • *
  • Posts: 72
  • Gender: Male
Re: Share this topic SMF Mod
« Reply #35 on: August 18, 2009, 12:37:58 AM »
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

Offline sAce

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,992
    • @sbplus_t on Twitter
    • SB+
Re: Share this topic SMF Mod
« Reply #36 on: August 18, 2009, 01:08:26 AM »
you have to edit the display.template.php of your theme

Offline Naveeddil

  • Semi-Newbie
  • *
  • Posts: 72
  • Gender: Male
Re: Share this topic SMF Mod
« Reply #37 on: August 18, 2009, 11:27:28 PM »
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????

Offline sAce

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,992
    • @sbplus_t on Twitter
    • SB+
Re: Share this topic SMF Mod
« Reply #38 on: August 18, 2009, 11:41:25 PM »
./Themes/default/Display.template.php

find
Code: [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>';


add before this
Code: [Select]
echo '<br />';

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

Offline Naveeddil

  • Semi-Newbie
  • *
  • Posts: 72
  • Gender: Male
Re: Share this topic SMF Mod
« Reply #39 on: August 19, 2009, 03:13:26 AM »
Nothing Happened Dear