News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Best 3 mod (Best Member - Best Topic - Best Moderator)

Started by islam2hamy, March 30, 2009, 12:58:05 AM

Previous topic - Next topic

islam2hamy

Quote from: chrisb on April 22, 2009, 06:49:13 AM
as a idea, can you advise us , if there has been any changes as you stated the last edited date was today and put it as versions, so we can follow

ok, sorry about that
by the way if the edit is only add new language i will not writing the Reason of modify  :P

Quote from: fighter_nl on April 22, 2009, 08:09:36 AM
Quote from: islam2hamy on April 22, 2009, 02:05:57 AM
in every mod page there is a Feature Called (Manual Install Instructions for SMF ) Choose  your smf Version and click (Parse)

update 22-04-2009

Allright. Thats the info i was missing. I tried the parse button choosing my version. But thats result in an error page. But now i'm looking at the right mods aspecialy for the version 1.1.8. Now i can modify some lines in some files and the mods are working.

Thanks.  :D

You are welcome  :D

Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





CesarManara

#41
Modifications.portuguese_brazilian.php


//best3 mode for SMF by islam2hamy
$txt['admin_best3'] = 'Configurações da Modificação Best3 Para SMF';
$txt['best3_mode_enable'] = 'Habilitar a modificação Best3?';
$txt['admin_best3_user'] = 'Melhor Membro :';
$txt['admin_best3_topic'] = 'Melhor Tópico :';
$txt['admin_best3_moderator'] = 'Melhor Moderador :' ;
$txt['best3_user'] = 'Melhor Membro';
$txt['best3_topic'] = 'Melhor Tópico';
$txt['best3_moderator'] = 'Melhor Moderador' ;

islam2hamy


Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





ZeUsSaN

ukrainian

//Best3 mod for SMF by islam2hamy - translating into Ukrainian by ZeUsSaN
$txt['admin_best3'] = 'Налаштування Best3 mode';
$txt['best3_mode_enable'] = 'Ввімкнути Best3 mode?';
$txt['admin_best3_user'] = 'Кращий Користувач :';
$txt['admin_best3_topic'] = 'Краща Тема :';
$txt['admin_best3_moderator'] = 'Кращий Модератор :' ;
$txt['best3_user'] = 'Кращий Користувач';
$txt['best3_topic'] = 'Краща Тема';
$txt['best3_moderator'] = 'Кращий модератор' ;

islam2hamy

Quote from: ZeUsSaN on May 03, 2009, 09:41:26 PM
ukrainian

//Best3 mod for SMF by islam2hamy - translating into Ukrainian by ZeUsSaN
$txt['admin_best3'] = 'Налаштування Best3 mode';
$txt['best3_mode_enable'] = 'Ввімкнути Best3 mode?';
$txt['admin_best3_user'] = 'Кращий Користувач :';
$txt['admin_best3_topic'] = 'Краща Тема :';
$txt['admin_best3_moderator'] = 'Кращий Модератор :' ;
$txt['best3_user'] = 'Кращий Користувач';
$txt['best3_topic'] = 'Краща Тема';
$txt['best3_moderator'] = 'Кращий модератор' ;


Tank you,
language added .

Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





nikoskar

For Greek People

$txt['admin_best3'] = 'Best3 Επιλογή - Ρυθμίσεις';
$txt['best3_mode_enable'] = 'Ενεργοποίηση Best3 Επιλογή?';
$txt['admin_best3_user'] = 'Καλύτερο Μέλος :';
$txt['admin_best3_topic'] = 'Καλύτερο Θέμα :';
$txt['admin_best3_moderator'] = Καλύτερος Συντονιστής:' ;
$txt['best3_user'] = 'Καλύτερο Μέλος';
$txt['best3_topic'] = 'Καλύτερο Θέμα';
$txt['best3_moderator'] = 'Καλύτερος Συντονιστής' ;

islam2hamy

Quote from: nikoskar on May 15, 2009, 06:55:29 AM
For Greek People

$txt['admin_best3'] = 'Best3 Επιλογή - Ρυθμίσεις';
$txt['best3_mode_enable'] = 'Ενεργοποίηση Best3 Επιλογή?';
$txt['admin_best3_user'] = 'Καλύτερο Μέλος :';
$txt['admin_best3_topic'] = 'Καλύτερο Θέμα :';
$txt['admin_best3_moderator'] = Καλύτερος Συντονιστής:' ;
$txt['best3_user'] = 'Καλύτερο Μέλος';
$txt['best3_topic'] = 'Καλύτερο Θέμα';
$txt['best3_moderator'] = 'Καλύτερος Συντονιστής' ;


Tank you ,
language added.

Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





TheListener

This is a fantastic mod.

Can 'Best Topic" be replaced with something like Top Gamer?

as in arcade

islam2hamy

Quote from: TheListener on May 17, 2009, 07:25:49 PM
This is a fantastic mod.

Thank you

Quote
Can 'Best Topic" be replaced with something like Top Gamer?

as in arcade

Yes you can do that , edit the "Modifications" file and the image in your "images" directory .

Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





Verso

I have installed this mod but it didn't install to my theme:- DS-Natural from Dziner Studio




islam2hamy

Quote from: Verso on May 21, 2009, 08:41:42 AM
I have installed this mod but it didn't install to my theme:- DS-Natural from Dziner Studio

edit the "index.template.php" file

Find:
// The main content should go here.

Add Before:


//best3 mode for SMF by islam2hamy
   if (!empty($modSettings['best3_mode_enable']))
echo'
<br/>
      <div align="center">
        <table border="1"  align="center">
<tr>
            <td align="center" class="catbg" valign="center"><font size="4">' ,$txt['best3_user'], '</font></td>
            <td align="center" class="catbg" valign="center"><font size="4">' ,$txt['best3_topic'], '</font></td>
<td align="center" class="catbg" valign="center"><font size="4">' ,$txt['best3_moderator'], '</font></td>
</tr>
<tr>
            <td align="center" class="catbg2" valign="center"><img width="128" height="128" border="0" title="' ,$txt['best3_user'], '" alt="' ,$txt['best3_user'], '" src="' . $settings['images_url'] . '/user.png" /></td>
<td align="center" class="catbg2" valign="center"><img width="128" height="128" border="0" title="' ,$txt['best3_topic'], '" alt="' ,$txt['best3_topic'], '" src="' . $settings['images_url'] . '/topic.png" /></td>
<td align="center" class="catbg2" valign="center"><img width="128" height="128" border="0" title="' ,$txt['best3_moderator'], '" alt="' ,$txt['best3_moderator'], '" src="' . $settings['images_url'] . '/moderator.png" /></td>
</tr>
<tr>
            <td align="center" class="catbg" valign="center">', !empty($modSettings['admin_best3_user']) ? $modSettings['admin_best3_user'] : '', '</td>
<td align="center" class="catbg" valign="center">', !empty($modSettings['admin_best3_topic']) ? $modSettings['admin_best3_topic'] : '', '</td>
<td align="center" class="catbg" valign="center">', !empty($modSettings['admin_best3_moderator']) ? $modSettings['admin_best3_moderator'] : '', '</td>
</tr>
    </table>
  </div>';
//End best3

Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





Atty

Is there a way to link the name in mast mod and best user to that person profile page and same with best topic links to that topic

also it would be nice to add extra settings that auto pick people like best user would be the user that made the most post in the past X days. and best topic would be the wone with most new posts in past X days

is any of that possable?

PS im am not good at editing so and update file woudl be much better for me :P

Norwegian
$txt['admin_best3'] = 'Best3 modus for SMF - Innstillinger';
$txt['best3_mode_enable'] = 'Aktiver Best2 modus?';
$txt['admin_best3_user'] = 'Beste Medlem :';
$txt['admin_best3_topic'] = 'Beste Emne :';
$txt['admin_best3_moderator'] = 'Beste Moderatorer :' ;
$txt['best3_user'] = 'Beste Medlem';
$txt['best3_topic'] = 'Beste Emne';
$txt['best3_moderator'] = 'Beste Moderatorer' ;

islam2hamy

Quote from: Atty on June 12, 2009, 01:41:38 PM
Is there a way to link the name in mast mod and best user to that person profile page and same with best topic links to that topic
yes you can try this

<a href="URL to profile" target="_blank">username</a>

Quote
also it would be nice to add extra settings that auto pick people like best user would be the user that made the most post in the past X days. and best topic would be the wone with most new posts in past X days

is any of that possable?

thank you for the idea,
i will work on new Features in the summer holiday


Quote
Norwegian
$txt['admin_best3'] = 'Best3 modus for SMF - Innstillinger';
$txt['best3_mode_enable'] = 'Aktiver Best2 modus?';
$txt['admin_best3_user'] = 'Beste Medlem :';
$txt['admin_best3_topic'] = 'Beste Emne :';
$txt['admin_best3_moderator'] = 'Beste Moderatorer :' ;
$txt['best3_user'] = 'Beste Medlem';
$txt['best3_topic'] = 'Beste Emne';
$txt['best3_moderator'] = 'Beste Moderatorer' ;


thank you for the translation i will add it soon .

Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





TheListener

Having used this mod previously it was becoming popular on the forum.

However despite manual edits I have been unable to get the mod working on the new theme.

We use 2.0 RC1-1 with the blackrain v2 theme.

islam2hamy

Thank you.

search for :

   // Show the menu here, according to the menu sub template.
   template_menu();

   echo '
      <div id="bodyarea" style="padding: 1ex 0px 2ex 0px;">';
    theme_linktree2();


add after (your custom code) :

   //best3 mode for SMF by islam2hamy
   if (!empty($modSettings['best3_mode_enable']))
   echo'
   <br/>
      <div align="center">
        <table border="1"  align="center">
       <tr>
            <td align="center" class="catbg" valign="center"><font size="4">' ,$txt['best3_user'], '</font></td>
            <td align="center" class="catbg" valign="center"><font size="4">' ,$txt['best3_topic'], '</font></td>
         <td align="center" class="catbg" valign="center"><font size="4">' ,$txt['best3_moderator'], '</font></td>
       </tr>     
       <tr>
            <td align="center" class="catbg2" valign="center"><img width="128" height="128" border="0" title="' ,$txt['best3_user'], '" alt="' ,$txt['best3_user'], '" src="' . $settings['images_url'] . '/user.png" /></td>
         <td align="center" class="catbg2" valign="center"><img width="128" height="128" border="0" title="' ,$txt['best3_topic'], '" alt="' ,$txt['best3_topic'], '" src="' . $settings['images_url'] . '/topic.png" /></td>
         <td align="center" class="catbg2" valign="center"><img width="128" height="128" border="0" title="' ,$txt['best3_moderator'], '" alt="' ,$txt['best3_moderator'], '" src="' . $settings['images_url'] . '/moderator.png" /></td>
       </tr>
       <tr>
            <td align="center" class="catbg" valign="center">', !empty($modSettings['admin_best3_user']) ? $modSettings['admin_best3_user'] : '', '</td>
         <td align="center" class="catbg" valign="center">', !empty($modSettings['admin_best3_topic']) ? $modSettings['admin_best3_topic'] : '', '</td>
         <td align="center" class="catbg" valign="center">', !empty($modSettings['admin_best3_moderator']) ? $modSettings['admin_best3_moderator'] : '', '</td>
       </tr>
       </table>
     </div>';
   //End best3


or you can use file attach (and don't forget to copy the images to the new theme image folder)

Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





TheListener

Which piece of text should I remove to delete one of the two best 3s?

I have attached the index template for you to look at and also an image of the error.

I have added an image to my images folder as i want to change the 'best topic' to 'best game' but am unsure where the image should go and am also unsure of the location of the template where the best topic should be changed.


islam2hamy

ok i thing , you will need to change

$txt['admin_best3_topic'] = 'Best Topic :';

from the "Modifications.YOURLANGUAGE.php" file

to

$txt['admin_best3_topic'] = 'best game :';

and rename the "best game" image to "topic.png"
and add it to "Themes/BlackRainV220rc1/images/"

does that help??

Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





TheListener

Seems my tired eyes ( or old) can't find the modifications file.

islam2hamy


Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





TheListener

Woohoo sorted ( almost) just need an image lol

Are the images a certain size?

Advertisement: