Page 3 of 11

Re: Welcome Mod

Posted: 10 Apr 2010, 00:25
by Sir Xiradorn
Sir Xiradorn » 30 Mar 2010, 15:43 wrote: I have write also the subsilver template for this mod. There is on my board
Subsilver2 template :D

Code: Select all

       <!-- IF not S_IS_BOT -->
       <table class="tablebg" cellspacing="1" width="100%" style="margin-bottom:10px;">
          <tr>
             <th colspan="4" style="text-align:left;">Welcome to {SITENAME}</th>
          </tr>
          <tr>
             <td class="row1" width="10%" align="left">
                <!-- IF USER_AVATAR -->{USER_AVATAR}<!-- ELSE --><img src="{T_THEME_PATH}/images/no_avatar.gif"/><!-- ENDIF -->
             </td>
             <td class="row1" width="30%">
                    <p>{S_WELCOME}</p>
                    <span><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<br />{CURRENT_TIME}<!-- ELSE -->{CURRENT_TIME}<!-- ENDIF --><!-- IF S_USER_LOGGED_IN --><br /><br />{S_JOINED_DATE}<br />{MEMBER_FOR}<!-- ENDIF --></span>
             </td>
             <td class="row1" width="35%">
                    <span>{TOTAL_POSTS} &bull; {TOTAL_TOPICS}<br />{TOTAL_USERS}<br />{NEWEST_USER}
                       <!-- IF S_DISPLAY_ONLINE_LIST --><br /><br />{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<!-- ENDIF --></span>
             </td>
             <td class="row1" width="25%"></td>
          </tr>
       </table>
       <!-- ENDIF -->

Re: Welcome Mod

Posted: 10 Apr 2010, 00:29
by cisco007
could you at least remove the xiradorn_lab text from those edits! I am sure people don't really want your website text on their edits!

Re: Welcome Mod

Posted: 10 Apr 2010, 00:32
by Sir Xiradorn
Sorry....I made the correction

Re: Welcome Mod

Posted: 10 Apr 2010, 05:36
by wvmetaldedication
Thank you all so much! Image

Re: Welcome Mod

Posted: 10 Apr 2010, 05:45
by wvmetaldedication
One suggestion though, instead of this

Code: Select all

 <!-- IF USER_AVATAR -->{USER_AVATAR}<!-- ELSE --><img src="{T_THEME_PATH}/images/no_avatar.gif"/><!-- ENDIF -->
You try this

Code: Select all

 <!-- IF USER_AVATAR -->{USER_AVATAR}<!-- ELSE --><img src="{T_THEME_PATH}/images/whosonline.gif"/><!-- ENDIF -->
Just a suggestion :)

Re: Welcome Mod

Posted: 13 Apr 2010, 00:45
by tavito
Hello, this is excellent mod

Re: Welcome Mod

Posted: 18 Apr 2010, 15:01
by Richi Knight
Good afternoon from Spain, this is the Spanish translation:
Open language/en/common.php
Find:

Code: Select all

?>
Add before:

Code: Select all

// BEGIN Welcome Mod
$lang = array_merge($lang, array(
	'UP_LATE'             => 'Es tarde para estar despierto %1$s, ¿No debería estar durmiendo?',
	'UP_EARLY'             => 'Buenos días %1$s, hoy se ha despertado temprano',
	'GOOD_MORNING'           => 'Buenos días %1$s, hace una mañana hermosa',
	'GOOD_AFTERNOON'       => 'Buenas tardes %1$s, por fin usted está aquí',
	'GOOD_EVENING'           => 'Buenas tardes %1$s, nos alegramos de verle aquí',
   'GOOD_NIGHT'           => 'Buenas noches %1$s, hora de irse a la cama',
	'MEMBER_FOR'           => 'Miembro desde:',
	'WELCOME_GUEST'           => 'Invitado',
	'WELCOME_HOUR'           => 'Hora',
	'WELCOME_HOURS'           => 'Horas',
   'WELCOME_DAY'           => 'Día',
	'WELCOME_DAYS'           => 'Días',
	'WELCOME_MONTH'           => 'Mes',
	'WELCOME_MONTHS'       => 'Meses',
   'WELCOME_YEAR'           => 'Año',
	'WELCOME_YEARS'           => 'Años',
));
Open styles/prosilver/template/index_body.html
Find:

Code: Select all

<!-- INCLUDE overall_header.html -->
Add after:

Code: Select all

<!-- IF not S_IS_BOT -->
<div class="forabg">
		 <div class="inner"><span class="corners-top"><span></span></span>
		 <ul class="topiclist">
			<li class="header">
			   <dl class="icon">
				  <dt>Bienvenido a {SITENAME}</dt>
											  </dl>
			</li>
		 </ul>
		 <ul class="topiclist forums">
		 <li>
			<dl>
			   <dd style="padding:5px; text-align: center; border:none;">
			   <!-- IF USER_AVATAR -->{USER_AVATAR}<!-- ELSE --><img src="{T_THEME_PATH}/images/no_avatar.gif"/><!-- ENDIF -->
			   </dd>
			   <dd class="lastpost" style="padding:5px; width:40%;">
			   <p>{S_WELCOME}</p>
			   <span><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<br />{CURRENT_TIME}<!-- ELSE -->{CURRENT_TIME}<!-- ENDIF --><!-- IF S_USER_LOGGED_IN --><br /><br />{S_JOINED_DATE}<br />{MEMBER_FOR}<!-- ENDIF --></span>
			   </dd>
			   <dd class="lastpost" style="padding:5px; width:36%;"><span>{TOTAL_POSTS} &bull; {TOTAL_TOPICS}<br />{TOTAL_USERS}<br />{NEWEST_USER}
			   <!-- IF S_DISPLAY_ONLINE_LIST --><br /><br />{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<!-- ENDIF --></span>
			   </dd>
			</dl>
		 </li>
		 </ul>
<span class="corners-bottom"><span></span></span></div></div>
<!-- ENDIF -->
Demo: http://la-futboleria.com

[offtopic]Stoker: thanks for this mod I am very happy with it :thumbsup:[/offtopic]

Re: Welcome Mod

Posted: 18 Apr 2010, 17:43
by Marcuss
Hello!

This is a Top-Mod :thumbsup:

But i have a question:

Is it possible to indicate different texts guests and users? Since I would like to invite guests to register themselves, and users inspire to read not only in the forum, but also to write diligently contributions

Code: Select all

   case ($date < 1):
            // if the hour is 6pm-11pm (18-23)
            $s_welcome = sprintf($user->lang['GOOD_NIGHT'], $u_user_name);;
        break;
              
        case ($date < 24):
            // if the hour is 6pm-11pm (18-23_
            $s_welcome = sprintf($user->lang['GOOD_EVENING'], $u_user_name);;
Nevertheless, this is only one write error behind '//', or?

And what is with time between 12 pm and 1 am? Or if I misunderstand there something ;)

Re: Welcome Mod

Posted: 18 Apr 2010, 21:55
by Marcuss
Hello!

I have found a Solution:

Would you show Guests and Users different Text

open Index.php

find

Code: Select all

     
    case ($date < 1):
            // if the hour is 6pm-11pm (18-23)
            $s_welcome = sprintf($user->lang['GOOD_NIGHT'], $u_user_name);;
    break;
      
    case ($date < 4):
            // if the hour is 1-3 am 
            $s_welcome = sprintf($user->lang['UP_LATE'], $u_user_name);
    break;
        
    case ($date < 8):
            // if the hour is 4-7 am
            $s_welcome = sprintf($user->lang['UP_EARLY'], $u_user_name);
    break;
        
    case ($date < 12):
            // if the hour is 8-11 am
            $s_welcome = sprintf($user->lang['GOOD_MORNING'], $u_user_name);
    break;
        
    case ($date < 18):
            // if the hour is 12-5pm (12-17)
            $s_welcome = sprintf($user->lang['GOOD_AFTERNOON'], $u_user_name);
    break;
        
    case ($date < 24):
            // if the hour is 6pm-11pm (18-23_
            $s_welcome = sprintf($user->lang['GOOD_EVENING'], $u_user_name);;
    break;
} 
Replace with

Code: Select all

     case ($date < 1):
            // if the hour is 6pm-11pm (18-23)
            if ($user->data['is_registered']
            $s_welcome = sprintf($user->lang['GOOD_NIGHT_R'], $u_user_name);
            else
            $s_welcome = sprintf($user->lang['GOOD_NIGHT'], $u_user_name);;
     break;
      
     case ($date < 4):
            // if the hour is 1-3 am 
            if ($user->data['is_registered'])
            $s_welcome = sprintf($user->lang['UP_LATE_R'], $u_user_name);
            else
            $s_welcome = sprintf($user->lang['UP_LATE'], $u_user_name);
     break;
        
     case ($date < 8):
            // if the hour is 4-7 am
            if ($user->data['is_registered'])
            $s_welcome = sprintf($user->lang['UP_EARLY_R'], $u_user_name);
            else
            $s_welcome = sprintf($user->lang['UP_EARLY'], $u_user_name);
     break;
        
     case ($date < 12):
            // if the hour is 8-11 am
            if ($user->data['is_registered'])
            $s_welcome = sprintf($user->lang['GOOD_MORNING_R'], $u_user_name);
            else
            $s_welcome = sprintf($user->lang['GOOD_MORNING'], $u_user_name);
     break;
        
     case ($date < 18):
            // if the hour is 12-5pm (12-17)
            if ($user->data['is_registered'])
            $s_welcome = sprintf($user->lang['GOOD_AFTERNOON_R'], $u_user_name);
            else
            $s_welcome = sprintf($user->lang['GOOD_AFTERNOON'], $u_user_name);
     break;
        
     case ($date < 24):
            // if the hour is 6pm-11pm (18-23_
            if ($user->data['is_registered'])
            $s_welcome = sprintf($user->lang['GOOD_EVENING_R'], $u_user_name);
            else
            $s_welcome = sprintf($user->lang['GOOD_EVENING'], $u_user_name);;
     break;
} 
Open language/de/common.php

find

Code: Select all

            // BEGIN Welcome Mod
            $lang = array_merge($lang, array(
                'UP_LATE'             => 'Du bist spät unterwegs %1$s, solltest du nicht längst schlafen?',
                'UP_EARLY'            => 'Guten Morgen %1$s, du bist aber schon früh unterwegs.',
                'GOOD_MORNING'        => 'Guten Morgen %1$s, was für ein schöner Morgen.',
                'GOOD_AFTERNOON'      => 'Guten Tag %1$s, schön daß du da bist.',
                'GOOD_EVENING'        => 'Guten Abend %1$s, schön dich hier zu sehen.',
                'GOOD_NIGHT'          => 'Gute Nacht %1$s, es wird Zeit, schlafen zu gehen.',
                'MEMBER_FOR'          => 'Mitglied seit:',
                'WELCOME_GUEST'       => 'Gast',
                'WELCOME_HOUR'        => 'Stunde',
                'WELCOME_HOURS'       => 'Stunden',
                'WELCOME_DAY'         => 'Tag',
                'WELCOME_DAYS'        => 'Tage',
                'WELCOME_MONTH'       => 'Monat',
                'WELCOME_MONTHS'      => 'Monate',
                'WELCOME_YEAR'        => 'Jahr',
                'WELCOME_YEARS'       => 'Jahre',
            ));
            // END Welcome Mod
Replace with

Code: Select all

// BEGIN Welcome Mod
            $lang = array_merge($lang, array(
                'UP_LATE'             => '%1$s, Your text for Guests',
                'UP_LATE_R'         => '%1$s, Your Text for Users'',
                'UP_EARLY'           => '%1$s, Your text for Guests',
                'UP_EARLY_R'       => '%1$s, Your Text for Users'',
                'GOOD_MORNING'        => '%1$s, Your text for Guests',
                'GOOD_MORNING_R'	  => '%1$s, Your Text for Users'',
                'GOOD_AFTERNOON'      => '%1$s, Your text for Guests',
                'GOOD_AFTERNOON_R'  => '%1$s, Your Text for Users'',
                'GOOD_EVENING'           => '%1$s, Your text for Guests',
                'GOOD_EVENING_R'	   => '%1$s, Your Text for Users'',
                'GOOD_NIGHT'              => '%1$s, Your text for Guests',
                'GOOD_NIGHT_R'	   => '%1$s, Your Text for Users'',	
                'MEMBER_FOR'          => 'Mitglied seit:',
                'WELCOME_GUEST'       => 'Gast',
                'WELCOME_HOUR'        => 'Stunde',
                'WELCOME_HOURS'       => 'Stunden',
                'WELCOME_DAY'         => 'Tag',
                'WELCOME_DAYS'        => 'Tagen',
                'WELCOME_MONTH'       => 'Monat',
                'WELCOME_MONTHS'      => 'Monaten',
                'WELCOME_YEAR'        => 'Jahr',
                'WELCOME_YEARS'       => 'Jahren',
            ));
            // END Welcome Mod
Greets

Marcus

Re: Welcome Mod

Posted: 19 Apr 2010, 02:09
by Richi Knight
Markus can you show a demo? Thanks