IUMQ - Install & Uninstall Mods Quickly (Fully Hook!)

Started by Hj Ahmad Rasyid Hj Ismail, August 08, 2010, 08:19:58 PM

Previous topic - Next topic

KensonPlays

Quote from: JohnCcCcCc on August 12, 2010, 02:46:28 PM
Quote from: S-Ace on August 12, 2010, 02:44:24 PM
Nice tools for mod developers , good job buddy

We should make this a core feature, not for the public, but for a homebrew version of smf lol
Yes, for my localhost install this would be nice!

Sabre™

lol guys, I was waiting for these replies, as I found the same when I used to use the old version for smf1.
One mod idea I found useful which I had integrated into this(old version), was after the package is installed, it auto redirects to the packages area without you having to click anything.
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Joker™

Quote from: Sabre™ on August 16, 2010, 06:59:19 PM
One mod idea I found useful which I had integrated into this(old version), was after the package is installed, it auto redirects to the packages area without you having to click anything.
You mean to the list area where all packages are shown ?
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Joker™

Quote from: blow on August 16, 2010, 04:24:35 PM
It's a very helpful mod, thank you.

Here are the words for: portuguese_br, portuguese_br-utf8, portuguese_pt and portuguese_pt-utf8:

$txt['click'] = 'Clique aqui para ';
$txt['reinstall'] = 'Reinstalar';
$txt['mod'] =' o Pacote';


;)
thanks , will add this in next update.

Thanks to all of you for great comments :).
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Joker™

Mod Updated - Version 1.2 - Change Log*

Added support for portuguese language. (Thanks to blow for providing the translation) .

Also added " Delete Button " on page that appears after uninstalling the mod . Now you can delete the mod directly after deleting the mod without going to mod list page .
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Bugo

Joker, please don't past differently encoded text in the same file. For russian language we may recommend you to use two files.

In the first file, for example russian.xml, past your code:

    <file name="$languagedir/Modifications.russian.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
// Install & Uninstall Mods Quickly
$txt['click'] = '';
$txt['reinstall'] = 'Переустановить';
$txt['mod'] =' мод';
]]></add>
        </operation>
    </file>

You have to save this file in ANSI coding and then you have to create second file which we call russian-utf8.xml and past code in there:

    <file name="$languagedir/Modifications.russian-utf8.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
// Install & Uninstall Mods Quickly
$txt['click'] = '';
$txt['reinstall'] = 'Переустановить';
$txt['mod'] =' мод';
]]></add>
        </operation>
    </file>

... save second file in the UTF8 coding without BOM.

Joker™

Bugo do i have to do the same thing for Portuguese language also ? , i've updated the package , please give a feedback if i made a mistake . (I've never used language files :P )
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Bugo

Simply try to save utf and non-utf translations in languages-utf8.xml and languages.xml files.
Of course use a good program for saving files (i.e. Notepad++).
You can't learn without damaging, as you can't learn how to walk without falling :)

Joker™

Quote from: Bugo on August 28, 2010, 08:03:02 AM
Simply try to save utf and non-utf translations in languages-utf8.xml and languages.xml files.
Of course use a good program for saving files (i.e. Notepad++).
You can't learn without damaging, as you can't learn how to walk without falling :)
I've upgraded the mod again , please have a look . Notepad ++ is quite a nice tool for programming .
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Bugo

Quote from: Joker™ on August 28, 2010, 10:16:17 AM
I've upgraded the mod again , please have a look
Fine. I make two files for all languages usually: languages.xml and languages-utf8.xml :)

Joker™

Quote from: Bugo on August 28, 2010, 10:57:10 AM
Fine. I make two files for all languages usually: languages.xml and languages-utf8.xml :)
kk, will separate language files in next upgrade in the manner you have shown ;) . Thanks for the tip.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

iPhoneDestek

translatıon ın turkısh



<file name="$languagedir/Modifications.turkish.php">
<operation>
  <search position="end" />
   <add><![CDATA[
// Insatll Uninstall Mod translation by SirtLanVadisi.net
    $txt['click'] = 'Buraya tıklayın ';
    $txt['reinstall'] = 'Yeniden Kurmak';
    $txt['mod'] =' Modifikasyon';
// End Insatll Uninstall Mod translation by SirtLanVadisi.net
   ]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.turkish-utf8.php">
<operation>
  <search position="end" />
   <add><![CDATA[
// Insatll Uninstall Mod translation by SirtLanVadisi.net
    $txt['click'] = 'Buraya tıklayın ';
    $txt['reinstall'] = 'Yeniden Kurmak';
    $txt['mod'] =' Modifikasyon';
// End Insatll Uninstall Mod translation by SirtLanVadisi.net
   ]]></add>
</operation>
</file>



$$  Q u a l i t y    I n f o r m a t i o n    L i n e  for iPhone $$



<   M O D  |  T R A N S L A T O R  |  TO  |  TUR  |  A N D   |  G E R   >


Joker™

#32
Quote from: ®SirtLan on September 14, 2010, 07:15:10 AM
translatıon ın turkısh



<file name="$languagedir/Modifications.turkish.php">
<operation>
  <search position="end" />
   <add><![CDATA[
// Insatll Uninstall Mod translation by SirtLanVadisi.net
    $txt['click'] = 'Buraya tıklayın ';
    $txt['reinstall'] = 'Yeniden Kurmak';
    $txt['mod'] =' Modifikasyon';
// End Insatll Uninstall Mod translation by SirtLanVadisi.net
   ]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.turkish-utf8.php">
<operation>
  <search position="end" />
   <add><![CDATA[
// Insatll Uninstall Mod translation by SirtLanVadisi.net
    $txt['click'] = 'Buraya tıklayın ';
    $txt['reinstall'] = 'Yeniden Kurmak';
    $txt['mod'] =' Modifikasyon';
// End Insatll Uninstall Mod translation by SirtLanVadisi.net
   ]]></add>
</operation>
</file>


Mod updated , thanks for translation :).
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

iPhoneDestek

where do I go to uninstall or reinstall modification. I find nothing in the admin panel ??????


$$  Q u a l i t y    I n f o r m a t i o n    L i n e  for iPhone $$



<   M O D  |  T R A N S L A T O R  |  TO  |  TUR  |  A N D   |  G E R   >


Joker™

Quote from: ®SirtLan on September 14, 2010, 07:34:03 PM
where do I go to uninstall or reinstall modification. I find nothing in the admin panel ??????
????? , see the pics on mod page , you don't have to go anywhere , the options appears automatically after you install or uninstall a mod.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

iPhoneDestek

translation in german





<file name="$languagedir/Modifications.german.php">
<operation>
  <search position="end" />
   <add><![CDATA[
// Insatll Uninstall Mod translation by SirtLanVadisi.net
    $txt['click'] = 'Bitte hier Klicken ';
    $txt['reinstall'] = 'Neuinstallation';
    $txt['mod'] =' Modifikation';
// End Insatll Uninstall Mod translation by SirtLanVadisi.net
   ]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.german-utf8.php">
<operation>
  <search position="end" />
   <add><![CDATA[
// Insatll Uninstall Mod translation by SirtLanVadisi.net
    $txt['click'] = 'Bitte hier Klicken ';
    $txt['reinstall'] = 'Neuinstallation';
    $txt['mod'] =' Modifikation';
// End Insatll Uninstall Mod translation by SirtLanVadisi.net
   ]]></add>
</operation>
</file>







$$  Q u a l i t y    I n f o r m a t i o n    L i n e  for iPhone $$



<   M O D  |  T R A N S L A T O R  |  TO  |  TUR  |  A N D   |  G E R   >


Joker™

Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

dougiefresh

Since installing this mod, I have been getting a lot of errors in the admin log during mod uninstalls on my forum.  I uninstalled this mod and the errors stopped.  Reinstall and the errors come back again during uninstalls.  So I modded the modification.xml file with this bit of text:
<file name="$themedir/Packages.template.php">
<operation>
<search position="replace"><![CDATA[ echo '
', $txt['package_uninstall_done'];
]]></search>
<add><![CDATA[ {
echo '
', $txt['package_uninstall_done']
, ' <br /><br /><a href="', $scripturl, '?action=admin;area=packages;sa=install;package=', $_REQUEST['package'], '"><strong>',$txt['click'], $txt['reinstall'], $txt['mod'],'</strong></a>
<br /><a href="', $scripturl, '?action=admin;area=packages;sa=remove;package=', $_REQUEST['package'], ';', $context['session_var'], '=', $context['session_id'], '"';
if (isset($package)) { echo $package['is_installed'] && $package['is_current'] ? ' onclick="return confirm(\'' . $txt['package_delete_bad'] . '\');"' : ''; }
echo '><strong>[ ', $txt['click'], $txt['package_delete'], $txt['mod'], ' ]</strong></a>';
}
]]></add>
</operation>
<operation>
This code checks to see if the $package variable exists.  If it does, then it processes the conditional with the $package array.  It solves my particular problem with this mod and I thought I'd share my solution.

Joker™

What were the errors in your error log, as I'm unable to replicate the issue on my test forum?
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

dougiefresh

#39
QuoteApply Filter: Only show the error messages of this URL
http://*****.net/board/index.php?action=admin;area=packages;sa=uninstall2;package=RC4_Theme_Fix.zip;pid=3
Apply Filter: Only show the errors with the same message
8: Undefined variable: package
Apply Filter: Only show the errors from this file
File: /****/******/public_html/xptsp.net/board/Themes/default/Packages.template.php
Line: 420
I'm attaching my Packages.template.php file.  It's a 2.0 RC3 file running on a RC5 forum, because I wanted the Sortable Packages (and Installed Time) mod working on my forum and it seemed like the easiest solution.  However, I haven't had any issues with doing so until I installed this mod......

Advertisement: