Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: deadhero on May 21, 2013, 04:09:25 PM

Title: Edit and Align Categories
Post by: deadhero on May 21, 2013, 04:09:25 PM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=3709)

Edit and Align Categories Mod

Features:






Settings:

Administration Center » Configuration » Modifiaction Settings






License:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.creativecommons.org%2Fl%2Fby-nc%2F3.0%2F88x31.png&hash=12b7850556cecf600818fc2c9f3f231099b6f6b2)
CC - BY-NC (http://creativecommons.org/licenses/by-nc/3.0/)
Title: Re: Edit and Align Categories
Post by: Colin on May 21, 2013, 04:10:06 PM
Nice work, thank you.
Title: Re: Edit and Align Categories
Post by: akaewn on May 21, 2013, 04:57:16 PM
dostum güzel çalışma :)
thanks :) good job
Title: Re: Edit and Align Categories
Post by: akbora on May 21, 2013, 05:01:20 PM
Well done. Very good mod and your mod doesn't include your web address. Thanks good job.
Title: Re: Edit and Align Categories
Post by: deadhero on May 22, 2013, 12:50:39 AM
Quote from: akbora on May 21, 2013, 05:01:20 PM
Well done. Very good mod and your mod doesn't include your web address. Thanks good job.

Thanks, i install in my adress.


I upgraded the mod.
Title: Re: Edit and Align Categories
Post by: ForumACK on June 02, 2013, 12:46:50 AM
Very nice ;)

Çok güzel olmuş eline sağlık :)
Title: Re: Edit and Align Categories
Post by: deadhero on June 02, 2013, 10:28:12 AM
Quote from: ForumACK on June 02, 2013, 12:46:50 AM
Very nice ;)

Çok güzel olmuş eline sağlık :)

Thank you.
Title: Re: Edit and Align Categories
Post by: deadhero on June 06, 2013, 03:59:39 PM
Modification from the admin panel will be set soon. Please wait.
Title: Re: Edit and Align Categories
Post by: deadhero on June 12, 2013, 03:56:36 PM
Changelog:

English:

Modifiaction Upgraded.

-Added Admin Settings (Align Categories, Font Size, Font Type)
-XHTML errors have been corrected.

Turkish:

Modifikasyon Güncellendi.

-Yönetim Ayarları Eklendi (Kategorileri Ortala, Yazı Boyutu, Yazı Tipi)
-XHTML hataları giderildi.
Title: Re: Edit and Align Categories
Post by: deadhero on June 13, 2013, 10:54:04 AM
English:

Modifiaction Upgraded.

-Mitigated Shadow Effect
-Now Modifiaction Seems Only Categories

Turkish:

Modifikasyon Güncellendi.

-Gölge Efekti Hafifletildi
-Modifikasyon Artık Sadece Kategorilerde Görünüyor
Title: Re: Edit and Align Categories
Post by: deadhero on June 18, 2013, 02:41:34 PM
Screenshots are updated.
Title: Re: Edit and Align Categories
Post by: deadhero on June 23, 2013, 03:12:51 PM
English:

Modifiaction Upgraded.

Changelog:

- Shadow effect removed.
- Some changes on admin settings.

Turkish:

Modifikasyon Güncellendi.

Değişiklikler:

- Gölge efekti kaldırıldı çünkü bazı temalarda kötü görünüyordu.
- Admin Ayarlarında bazı değişiklikler yapıldı.
Title: Re: Edit and Align Categories
Post by: deadhero on June 27, 2013, 01:50:43 AM
Modifiaction Upgraded.
Title: Re: Edit and Align Categories
Post by: deadhero on August 20, 2013, 02:41:56 PM
Mod updated to new SMF version.
Title: Re: Edit and Align Categories
Post by: Kacper on August 24, 2013, 03:53:12 PM
Thanks for the MOD. Hope you will update it each time new version of SMF will be released.
Title: Re: Edit and Align Categories
Post by: Colin on August 27, 2013, 08:47:59 PM
Nicely done DeadHero. Thanks for all of the updates!
Title: Re: Edit and Align Categories
Post by: deadhero on September 06, 2013, 12:55:34 PM
Modifiaction Updated.

Changelog:
- XHTML errors have been corrected.
Title: Re: Edit and Align Categories
Post by: MaccabeeY on December 26, 2013, 04:03:41 AM
I think the font functionality parts do not work quite right.  Here is a fix so all the font size and family will work
Enjoy,
Edward


      if (($modSettings['catalign'] == 1))
      {
         echo '
            <object><div class="eacm_center">';
//         if (($modSettings['editcat'] == 1)) //DOESN'T SEEM HE DIDN'T PUT IN A "editcat" setting
         if (!empty($modSettings['catsize']) || !empty($modSettings['catface']))
         {
            echo '
               <span style="';
            if (!empty($modSettings['catsize']))
               echo '
                  font-size:', $modSettings['catsize'], 'px;';
            if (!empty($modSettings['catface']))
               echo '
                  font-family:', $modSettings['catface'], ';';
            echo '
               ">', $category['link'], '</span>';
         }
         else
            echo '
               ', $category['link'];
         echo '
            </div></object>';
      }
      else
      {
         echo '
            ', $category['link'];
      }
         echo '
                     </h3>
                  </div>
               </td>
            </tr>
         </tbody>';

Title: Re: Edit and Align Categories
Post by: MaccabeeY on December 27, 2013, 04:41:17 PM
Hi, I like your mod.  Looking at your code I can tell you are not a professional programmer and that you do not quite understand what the elements in the language do, for example, I can tell you are unclear as how the braces, {...}, serve in flow control in IF statements.

Here are a couple references you may want to review http://www.w3schools.com/php/php_if_else.asp (http://www.w3schools.com/php/php_if_else.asp) and http://www.php.net/manual/en/control-structures.intro.php (http://www.php.net/manual/en/control-structures.intro.php)

Also, the use of the <font> tag is a deprecated (and discontinued) construct, http://www.w3schools.com/tags/tag_font.asp (http://www.w3schools.com/tags/tag_font.asp)

Regardless, despite you not being a pro, I admire your efforts.

Please know, the code I sent you does not generate errors.  My forum is running with the code I wrote for you and the error log is clean as a whistle.  If you are getting errors, either they are from some other part of your forum, or you put the code in your file incorrectly.

No harm, no foul, and if I can help explain anything to you, I would be happy to help.
Keep up the good work...
ED
Title: Re: Edit and Align Categories
Post by: deadhero on December 28, 2013, 04:18:35 AM
This mod is very old so i first created i don't know php well.

I pm to you for your code get syntax error but i look agein and you can add
                   </h3>
                  </div>
               </td>
            </tr>
         </tbody>';
to bottom. First i can't see that. Your code can't get error but it's can't work (change style and font size) i pm my last canges to you.
Title: Re: Edit and Align Categories
Post by: MaccabeeY on December 28, 2013, 08:26:52 AM
Let's look at the code in the whole BoardIndex file and we'll work from there...
ED
Title: Re: Edit and Align Categories
Post by: Colin on December 29, 2013, 02:01:51 AM
MaccabeeY,

I edited your post to wrap it in [code][/code].


         else
            echo '
               ', $category['link'];



Should be


         else
            echo $category['link'];


Also, thank you for providing some assistance.



Deadhero,

(Reiterating what MacaabeeY said) - It is imperative that you wrap all of your $modSettings[] in !empty(..) { } so SMF does not throw undefined index errors into the logs.
Title: Re: Edit and Align Categories
Post by: deadhero on January 03, 2014, 04:36:14 PM
Modifiaction updated.

Fixed font and font size settings.

*Credits: MaccabeeY
Title: Re: Edit and Align Categories
Post by: Apllicmz on October 28, 2014, 04:01:33 AM
Nice Work when Update portuguese dont forget
files here

<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
$txt['catalign'] = 'Alinhar Categorias';
$txt['catface'] = 'Categoria Tipo de Fonte';
$txt['catsize'] = 'Categoria Tamanho da Fonte';
$txt['eacm_title'] = '<div style="font-size: 13px; text-decoration: underline;">Editar e alinhar as configura&ccedil;&otilde;es da categorias </div>';
]]></add>
        </operation>
    </file>
    <file name="$languagedir/Help.portuguese_pt.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
$helptxt['catalign'] = 'Alinhar Categorias';
$helptxt['catface'] = 'Examplo: Arial, Tahoma, Verdana';
$helptxt['catsize'] = 'Examplo: 7, 3, 4';
]]></add>
        </operation>
    </file>
Title: Re: Edit and Align Categories
Post by: d3vcho on June 06, 2016, 01:52:42 PM
The mod has been updated not too much time ago and I decided to do an Spanish Translation for it. Here it is! Hope it will help! :laugh: