Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=3709)
Edit and Align Categories Mod
Features:
- Select categories font type.
- Select categories font size.
- Align cateogires.
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/)
Nice work, thank you.
dostum güzel çalışma :)
thanks :) good job
Well done. Very good mod and your mod doesn't include your web address. Thanks good job.
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.
Very nice ;)
Çok güzel olmuş eline sağlık :)
Quote from: ForumACK on June 02, 2013, 12:46:50 AM
Very nice ;)
Çok güzel olmuş eline sağlık :)
Thank you.
Modification from the admin panel will be set soon. Please wait.
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.
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
Screenshots are updated.
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ı.
Modifiaction Upgraded.
Mod updated to new SMF version.
Thanks for the MOD. Hope you will update it each time new version of SMF will be released.
Nicely done DeadHero. Thanks for all of the updates!
Modifiaction Updated.
Changelog:
- XHTML errors have been corrected.
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>';
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
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.
Let's look at the code in the whole BoardIndex file and we'll work from there...
ED
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.
Modifiaction updated.
Fixed font and font size settings.
*Credits: MaccabeeY
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çõ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>
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: