Share this topic SMF Mod

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

Previous topic - Next topic

Branko.

Sharethis::ShareThisWho(), is part of Share This by Suki...  :)
<file name="$sourcedir/Who.php">
<operation>
<search position="replace"><![CDATA[ 'mods' => array(]]></search>
<add><![CDATA[ 'mods' => array(
Sharethis::ShareThisWho(),]]></add>
</operation>
</file>


$txt['subjectcopy'] is part of ChangeAllSubjects by runic
/file>
<file name="$sourcedir/Who.php">
<operation>
<search position="replace" whitespace="loose"><![CDATA[ 'mods' => array(]]></search>
<add><![CDATA[ 'mods' => array( $txt['subjectcopy'],]]></add>
</operation>
</file>


All is related with copyright
Strong people don't put others down, they lift them up.
A clever person solves a problem. A wise person avoids it.

Arantor

That's where I was going :P I just didn't recognise which mod had subjectcopy in it...

Kimmie

Ok so the error is coming from the Change All Subjects mod? I had that one, and decided to uninstall it and go with the "Edit All Message Titles" mod. It looks like the uninstall left this code even though I didn't get any test fails when I uninstalled it. I should just be able to remove this line right?

$txt['subjectcopy']


Asking before hand as I don't want to mess anything up. This is the parse code for it. I need to also remove the , at the end right?


Branko.

The reverse action
Find
'mods' => array( $txt['subjectcopy'],

replace with
'mods' => array(
Strong people don't put others down, they lift them up.
A clever person solves a problem. A wise person avoids it.

Kimmie

Quote from: Branko. on August 31, 2014, 05:25:18 PM
The reverse action
Find
'mods' => array( $txt['subjectcopy'],

replace with
'mods' => array(


That doesn't work anymore because there are two other mod codes in between that. I just wasn't sure about the comma at the end


*/
'mods' => array(
SaShop_Who(),
Sharethis::ShareThisWho(), $txt['subjectcopy'],
),

Arantor

The comma at the end is fine, you just need to ensure you don't have extra commas with nothing in them.

This would be bad:
*/
'mods' => array(
SaShop_Who(),
Sharethis::ShareThisWho(), ,
),


But if you're removing the mod, this would be correct:
*/
'mods' => array(
SaShop_Who(),
Sharethis::ShareThisWho(),
),

Kimmie

Thanks Arantor. That is what I needed to know :)

aaronhall

Quote from: Dzonny 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
// 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

Mine does not show up to enable under Features and Options.
It was under Configuration but when I enable it...nothing happens still.

shadav

Quote from: aaronhall on May 01, 2021, 08:33:43 AM
Mine does not show up to enable under Features and Options.
It was under Configuration but when I enable it...nothing happens still.

a few questions that might help you to get your answer

what version of smf are you using? Any other mods installed? What theme are you using?
When you installed it, did you press the boxes to install it on to all themes?
Does it work with the default theme?
Were there any errors when you installed it?

Advertisement: