News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Edit and Align Categories

Started by deadhero, May 21, 2013, 04:09:25 PM

Previous topic - Next topic

deadhero

Link to Mod

Edit and Align Categories Mod

Features:

  • Select categories font type.
  • Select categories font size.
  • Align cateogires.






Settings:

Administration Center » Configuration » Modifiaction Settings






License:


Colin

"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

akaewn

dostum güzel çalışma :)
thanks :) good job

akbora

Well done. Very good mod and your mod doesn't include your web address. Thanks good job.
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

deadhero

#4
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.

ForumACK

Very nice ;)

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

deadhero


deadhero

Modification from the admin panel will be set soon. Please wait.

deadhero

#8
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.

deadhero

#9
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

deadhero


deadhero

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ı.

deadhero


deadhero

Mod updated to new SMF version.

Kacper

Thanks for the MOD. Hope you will update it each time new version of SMF will be released.

Colin

Nicely done DeadHero. Thanks for all of the updates!
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

deadhero

Modifiaction Updated.

Changelog:
- XHTML errors have been corrected.

MaccabeeY

#17
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>';


MaccabeeY

#18
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 [nofollow] and http://www.php.net/manual/en/control-structures.intro.php [nofollow]

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

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

deadhero

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.

MaccabeeY

Let's look at the code in the whole BoardIndex file and we'll work from there...
ED

Colin

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.
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

deadhero

#22
Modifiaction updated.

Fixed font and font size settings.

*Credits: MaccabeeY

Apllicmz

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>



d3vcho

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:



"Greeting Death as an old friend, they departed this life as equals"

Advertisement: