﻿______By sanekl9________________2011_____
             Мод: Приветствие
_________________________________________
#Файл: usercp_welcome.php в папку includes/#
#Файл: page_add_info.tpl в папку templates/#
В БД:  
   ALTER TABLE `phpbb_users` ADD `user_welcome` VARCHAR(255) DEFAULT null
Открываем:
****************************
includes/usercp_viewprofile.php
----------------------------
Находим:
****************************
$template->assign_vars(array(
----------------------------
Вставляем перед:
****************************
//welcome
if (empty($profiledata['user_welcome'])) {
}
else
{
$welcome = " <b><u>".$profiledata['user_welcome']."</u></b> ".$welcome_edit." <br/>";
}
$welcome_edit = '<a href="profile.php?mode=welcome"> <u>Изм.</u></a>';
//end
----------------------------
Находим:
****************************
$template->assign_vars(array(
----------------------------
Вставляем после:
****************************
    'WELCOMEEDIT' => $welcome_edit,
    'WELCOME' => $welcome,
----------------------------
Открываем:
****************************
profile.php
----------------------------
Находим:
****************************
if ( $mode == 'viewprofile' )
	{
		include($phpbb_root_path . 'includes/usercp_viewprofile.'.$phpEx);
		exit;
	}
----------------------------
Вставляем после:
****************************
else if ( $mode == 'welcome' )
	{
		if ( !$userdata['session_logged_in'] )
		{
			redirect(append_sid("login.$phpEx?redirect=page.$phpEx&mode=welcome", true));
		}

		include($phpbb_root_path . 'includes/usercp_welcome.'.$phpEx);
		exit;
	}
---------------------------
Открываем:
****************************
profile_view_body.tpl
----------------------------
Куда нужно вставляем:
****************************
Приветствие:<br/> {WELCOME}{WELCOMEEDIT}<br/>

++++++++++The++++++end+++++++=)+
|molodej.us >Молодежный сайт|
	