Welcome on Index

Modifications for phpBB3. Try the Mods here and share Your own Mods
There is no support here! Only Read Access!
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support
User avatar
Sir Xiradorn
BBCoder II
BBCoder II
Posts: 10
Joined: 08 Mar 2010, 11:36
Location: MMM....i don't know.....
Contact:

Re: Welcome Mod

Post 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 -->
Last edited by Sir Xiradorn on 10 Apr 2010, 00:31, edited 3 times in total.
EN language torturer :twisted:
Admin Leader & Founder of: Xiradorn Lab - www.xiradorn.it
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: Welcome Mod

Post 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!
User avatar
Sir Xiradorn
BBCoder II
BBCoder II
Posts: 10
Joined: 08 Mar 2010, 11:36
Location: MMM....i don't know.....
Contact:

Re: Welcome Mod

Post by Sir Xiradorn »

Sorry....I made the correction
EN language torturer :twisted:
Admin Leader & Founder of: Xiradorn Lab - www.xiradorn.it
wvmetaldedication
BBCoder II
BBCoder II
Posts: 9
Joined: 03 Apr 2010, 12:39
Location: West Virginia
Contact:

Re: Welcome Mod

Post by wvmetaldedication »

Thank you all so much! Image
Image
wvmetaldedication
BBCoder II
BBCoder II
Posts: 9
Joined: 03 Apr 2010, 12:39
Location: West Virginia
Contact:

Re: Welcome Mod

Post 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 :)
Image
tavito
BBCoder I
BBCoder I
Posts: 1
Joined: 13 Apr 2010, 00:42

Re: Welcome Mod

Post by tavito »

Hello, this is excellent mod
Richi Knight
BBCoder I
BBCoder I
Posts: 2
Joined: 18 Apr 2010, 13:32

Re: Welcome Mod

Post 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]
Last edited by Richi Knight on 18 Apr 2010, 15:01, edited 1 time in total.
Tu Web Gratis ™ - design your web site for free!
Visit TuCarretera.com
Enjoy football in La Futbolería
Marcuss
BBCoder I
BBCoder I
Posts: 3
Joined: 18 Apr 2010, 17:19
Location: Northern Germany
Contact:

Re: Welcome Mod

Post 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 ;)
Marcuss
BBCoder I
BBCoder I
Posts: 3
Joined: 18 Apr 2010, 17:19
Location: Northern Germany
Contact:

Re: Welcome Mod

Post 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
Richi Knight
BBCoder I
BBCoder I
Posts: 2
Joined: 18 Apr 2010, 13:32

Re: Welcome Mod

Post by Richi Knight »

Markus can you show a demo? Thanks
Tu Web Gratis ™ - design your web site for free!
Visit TuCarretera.com
Enjoy football in La Futbolería
Locked