Random No Avatar phpbb3 (случайная аватара по умолчанию)

В данном подфоруме будут располагаться темы с анонсами интересных модификаций, а так же будут рассматриваться проверенные временем дополнения для phpBB3.

Модераторы: Vl@d1m1r, Lorem Ipsum, Atlas

Правила форума
----

Был ли полезен для вас данный анонс ???

Можно выбрать до 1 варианта ответа

 
 
Результаты голосования

Аватара пользователя
DeaDRoMeO
Старожил Форума
Старожил Форума
Сообщения: 16763
Стаж: 13 лет
Откуда: Витебск
Контактная информация:

Random No Avatar phpbb3 (случайная аватара по умолчанию)

Сообщение DeaDRoMeO »

Всем доброго времени суток, пришло время очередного хорошего анонса. Сегодня мы будем рассматривать модификацию Random 'No Avatar'. Ее назначение - это присвоение в автоматическом режиме случайной аватары пользователю, у которого она не установлена самостоятельно. Очень полезное дополнение, визуально придает весомости страницам просмотра тем.

В установке модификация очень легка, несколько правок кода и нет SQL запросов. Рекомендую всем. Если понравилось, то скачиваем и устанавливаем
Внимание !!! Не выполнять правку файла language/en/common.php, эта правка ошибочна !!! Нужно открыть language/ru/common.php и найти
[code]'READING_FORUM'[/code]
Вставить перед найденным
[code]'RANDOM_AVATAR' => 'Рандомная аватара. Подставляется автоматически при отсутствии установленной пользователем аватары. Рекомендуется менять на свою в Центре пользователя.',[/code]
Вот и вся русификация
Так же хотелось бы отметить то, что в случае когда пользователь установит самостоятельно свою аватару, случайная аватара исчезнет и не будет каких либо конфликтов.

---------------- Фиксы для устранения совместимости с другими модификациями ----------------------

1. Если у вас установлен мод
Нужно открыть viewforum.php и найти

Код: Выделить всё

$avatar_img = $avatar_max_dimensions = $topic_last_poster_avatar_height = $topic_last_poster_avatar_width = $topic_first_poster_avatar_width = $topic_first_poster_avatar_height = '';
      
      if ( !empty($row['topic_first_poster_avatar']) || !empty($row['topic_last_poster_avatar']))
      {
      $avatar_max_dimensions = 40; // here you can change the max-width you would like to have the avatars displayed
      
         if ( $row['topic_first_poster_avatar_width'] >= $row['topic_first_poster_avatar_height'] )
         {
            $topic_first_poster_avatar_width = ( $row['topic_first_poster_avatar_width'] > $avatar_max_dimensions ) ? $avatar_max_dimensions : $row['topic_first_poster_avatar_width'] ;
            $topic_first_poster_avatar_height = ( $topic_first_poster_avatar_width == $avatar_max_dimensions ) ? round($avatar_max_dimensions / $row['topic_first_poster_avatar_width'] * $row['topic_first_poster_avatar_height']) : $row['topic_first_poster_avatar_height'] ;
         }
         else 
         {
            $topic_first_poster_avatar_height = ( $row['topic_first_poster_avatar_height'] > $avatar_max_dimensions ) ? $avatar_max_dimensions : $row['topic_first_poster_avatar_height'] ;
            $topic_first_poster_avatar_width = ( $topic_first_poster_avatar_height == $avatar_max_dimensions ) ? round($avatar_max_dimensions / $row['topic_first_poster_avatar_height'] * $row['topic_first_poster_avatar_width']) : $row['topic_first_poster_avatar_width'] ;
         }

         if ( $row['topic_last_poster_avatar_width'] >= $row['topic_last_poster_avatar_height'] )
         {
            $topic_last_poster_avatar_width = ( $row['topic_last_poster_avatar_width'] > $avatar_max_dimensions ) ? $avatar_max_dimensions : $row['topic_last_poster_avatar_width'] ;
            $topic_last_poster_avatar_height = ( $topic_last_poster_avatar_width == $avatar_max_dimensions ) ? round($avatar_max_dimensions / $row['topic_last_poster_avatar_width'] * $row['topic_last_poster_avatar_height']) : $row['topic_last_poster_avatar_height'] ;
         }
         else 
         {
            $topic_last_poster_avatar_height = ( $row['topic_last_poster_avatar_height'] > $avatar_max_dimensions ) ? $avatar_max_dimensions : $row['topic_last_poster_avatar_height'] ;
            $topic_last_poster_avatar_width = ( $topic_last_poster_avatar_height == $avatar_max_dimensions ) ? round($avatar_max_dimensions / $row['topic_last_poster_avatar_height'] * $row['topic_last_poster_avatar_width']) : $row['topic_last_poster_avatar_width'] ;
         }
         
      }
Заменить найденное на

Код: Выделить всё

   $avatar_img = $avatar_max_dimensions = $topic_last_poster_avatar_height = $topic_last_poster_avatar_width = $topic_first_poster_avatar_width = $topic_first_poster_avatar_height = 40;
       
               
          if ( !empty($row['topic_first_poster_avatar']) || !empty($row['topic_last_poster_avatar']))
          {
              $avatar_max_dimensions = $avatar_width = $avatar_height = 40; // here you can change the max-width you would like to have the avatars displayed
          
             if ( !empty($row['topic_first_poster_avatar']))
             {         
            if ( $row['topic_first_poster_avatar_width'] >= $row['topic_first_poster_avatar_height'] )
               {
                  $topic_first_poster_avatar_width = ( $row['topic_first_poster_avatar_width'] > $avatar_max_dimensions ) ? $avatar_max_dimensions : $row['topic_first_poster_avatar_width'] ;
                  $topic_first_poster_avatar_height = ( $topic_first_poster_avatar_width == $avatar_max_dimensions ) ? round($avatar_max_dimensions / $row['topic_first_poster_avatar_width'] * $row['topic_first_poster_avatar_height']) : $row['topic_first_poster_avatar_height'] ;
               }
               else
               {
                  $topic_first_poster_avatar_height = ( $row['topic_first_poster_avatar_height'] > $avatar_max_dimensions ) ? $avatar_max_dimensions : $row['topic_first_poster_avatar_height'] ;
                  $topic_first_poster_avatar_width = ( $topic_first_poster_avatar_height == $avatar_max_dimensions ) ? round($avatar_max_dimensions / $row['topic_first_poster_avatar_height'] * $row['topic_first_poster_avatar_width']) : $row['topic_first_poster_avatar_width'] ;
               }
          }

            if ( !empty($row['topic_last_poster_avatar']))
             {     
               if ( $row['topic_last_poster_avatar_width'] >= $row['topic_last_poster_avatar_height'] )
               {
                  $topic_last_poster_avatar_width = ( $row['topic_last_poster_avatar_width'] > $avatar_max_dimensions ) ? $avatar_max_dimensions : $row['topic_last_poster_avatar_width'] ;
                  $topic_last_poster_avatar_height = ( $topic_last_poster_avatar_width == $avatar_max_dimensions ) ? round($avatar_max_dimensions / $row['topic_last_poster_avatar_width'] * $row['topic_last_poster_avatar_height']) : $row['topic_last_poster_avatar_height'] ;
               }
               else
               {
                  $topic_last_poster_avatar_height = ( $row['topic_last_poster_avatar_height'] > $avatar_max_dimensions ) ? $avatar_max_dimensions : $row['topic_last_poster_avatar_height'] ;
                  $topic_last_poster_avatar_width = ( $topic_last_poster_avatar_height == $avatar_max_dimensions ) ? round($avatar_max_dimensions / $row['topic_last_poster_avatar_height'] * $row['topic_last_poster_avatar_width']) : $row['topic_last_poster_avatar_width'] ;
               }
          }
          }
Открыть includes/functions_display.php и найти

Код: Выделить всё

$avatar_max_dimensions = $avatar_width = $avatar_height = '';
Заменить найденное на

Код: Выделить всё

$avatar_max_dimensions = $avatar_width = $avatar_height = 40;

2. Если используется связка
Нужно открыть includes/functions_similar_topics.php и найти

Код: Выделить всё

$avatar_img = $avatar_max_dimensions = $topic_last_poster_avatar_height = $topic_last_poster_avatar_width = $topic_first_poster_avatar_width = $topic_first_poster_avatar_height = '';
      
      if ( !empty($row['topic_first_poster_avatar']) || !empty($row['topic_last_poster_avatar']))
      {
      $avatar_max_dimensions = 50;
      
         if ( $row['topic_first_poster_avatar_width'] >= $row['topic_first_poster_avatar_height'] )
         {
            $topic_first_poster_avatar_width = ( $row['topic_first_poster_avatar_width'] > $avatar_max_dimensions ) ? $avatar_max_dimensions : $row['topic_first_poster_avatar_width'] ;
            $topic_first_poster_avatar_height = ( $topic_first_poster_avatar_width == $avatar_max_dimensions ) ? round($avatar_max_dimensions / $row['topic_first_poster_avatar_width'] * $row['topic_first_poster_avatar_height']) : $row['topic_first_poster_avatar_height'] ;
         }
         else 
         {
            $topic_first_poster_avatar_height = ( $row['topic_first_poster_avatar_height'] > $avatar_max_dimensions ) ? $avatar_max_dimensions : $row['topic_first_poster_avatar_height'] ;
            $topic_first_poster_avatar_width = ( $topic_first_poster_avatar_height == $avatar_max_dimensions ) ? round($avatar_max_dimensions / $row['topic_first_poster_avatar_height'] * $row['topic_first_poster_avatar_width']) : $row['topic_first_poster_avatar_width'] ;
         }

         if ( $row['topic_last_poster_avatar_width'] >= $row['topic_last_poster_avatar_height'] )
         {
            $topic_last_poster_avatar_width = ( $row['topic_last_poster_avatar_width'] > $avatar_max_dimensions ) ? $avatar_max_dimensions : $row['topic_last_poster_avatar_width'] ;
            $topic_last_poster_avatar_height = ( $topic_last_poster_avatar_width == $avatar_max_dimensions ) ? round($avatar_max_dimensions / $row['topic_last_poster_avatar_width'] * $row['topic_last_poster_avatar_height']) : $row['topic_last_poster_avatar_height'] ;
         }
         else 
         {
            $topic_last_poster_avatar_height = ( $row['topic_last_poster_avatar_height'] > $avatar_max_dimensions ) ? $avatar_max_dimensions : $row['topic_last_poster_avatar_height'] ;
            $topic_last_poster_avatar_width = ( $topic_last_poster_avatar_height == $avatar_max_dimensions ) ? round($avatar_max_dimensions / $row['topic_last_poster_avatar_height'] * $row['topic_last_poster_avatar_width']) : $row['topic_last_poster_avatar_width'] ;
         }
         
      }
Заменить найденное на

Код: Выделить всё

$avatar_img = $avatar_max_dimensions = $topic_last_poster_avatar_height = $topic_last_poster_avatar_width = $topic_first_poster_avatar_width = $topic_first_poster_avatar_height = 40;
       
               
          if ( !empty($row['topic_first_poster_avatar']) || !empty($row['topic_last_poster_avatar']))
          {
              $avatar_max_dimensions = $avatar_width = $avatar_height = 40; // here you can change the max-width you would like to have the avatars displayed
          
             if ( !empty($row['topic_first_poster_avatar']))
             {         
            if ( $row['topic_first_poster_avatar_width'] >= $row['topic_first_poster_avatar_height'] )
               {
                  $topic_first_poster_avatar_width = ( $row['topic_first_poster_avatar_width'] > $avatar_max_dimensions ) ? $avatar_max_dimensions : $row['topic_first_poster_avatar_width'] ;
                  $topic_first_poster_avatar_height = ( $topic_first_poster_avatar_width == $avatar_max_dimensions ) ? round($avatar_max_dimensions / $row['topic_first_poster_avatar_width'] * $row['topic_first_poster_avatar_height']) : $row['topic_first_poster_avatar_height'] ;
               }
               else
               {
                  $topic_first_poster_avatar_height = ( $row['topic_first_poster_avatar_height'] > $avatar_max_dimensions ) ? $avatar_max_dimensions : $row['topic_first_poster_avatar_height'] ;
                  $topic_first_poster_avatar_width = ( $topic_first_poster_avatar_height == $avatar_max_dimensions ) ? round($avatar_max_dimensions / $row['topic_first_poster_avatar_height'] * $row['topic_first_poster_avatar_width']) : $row['topic_first_poster_avatar_width'] ;
               }
          }

            if ( !empty($row['topic_last_poster_avatar']))
             {     
               if ( $row['topic_last_poster_avatar_width'] >= $row['topic_last_poster_avatar_height'] )
               {
                  $topic_last_poster_avatar_width = ( $row['topic_last_poster_avatar_width'] > $avatar_max_dimensions ) ? $avatar_max_dimensions : $row['topic_last_poster_avatar_width'] ;
                  $topic_last_poster_avatar_height = ( $topic_last_poster_avatar_width == $avatar_max_dimensions ) ? round($avatar_max_dimensions / $row['topic_last_poster_avatar_width'] * $row['topic_last_poster_avatar_height']) : $row['topic_last_poster_avatar_height'] ;
               }
               else
               {
                  $topic_last_poster_avatar_height = ( $row['topic_last_poster_avatar_height'] > $avatar_max_dimensions ) ? $avatar_max_dimensions : $row['topic_last_poster_avatar_height'] ;
                  $topic_last_poster_avatar_width = ( $topic_last_poster_avatar_height == $avatar_max_dimensions ) ? round($avatar_max_dimensions / $row['topic_last_poster_avatar_height'] * $row['topic_last_poster_avatar_width']) : $row['topic_last_poster_avatar_width'] ;
               }
          }
          }
3. Если используется связка
Нужно открыть includes/functions_recenttopics.php и найти

Код: Выделить всё

$avatar_img = $avatar_max_dimensions = $topic_last_poster_avatar_height = $topic_last_poster_avatar_width = $topic_first_poster_avatar_width = $topic_first_poster_avatar_height = '';
      
      if ( !empty($row['topic_first_poster_avatar']) || !empty($row['topic_last_poster_avatar']))
      {
      $avatar_max_dimensions = 50;
      
         if ( $row['topic_first_poster_avatar_width'] >= $row['topic_first_poster_avatar_height'] )
         {
            $topic_first_poster_avatar_width = ( $row['topic_first_poster_avatar_width'] > $avatar_max_dimensions ) ? $avatar_max_dimensions : $row['topic_first_poster_avatar_width'] ;
            $topic_first_poster_avatar_height = ( $topic_first_poster_avatar_width == $avatar_max_dimensions ) ? round($avatar_max_dimensions / $row['topic_first_poster_avatar_width'] * $row['topic_first_poster_avatar_height']) : $row['topic_first_poster_avatar_height'] ;
         }
         else 
         {
            $topic_first_poster_avatar_height = ( $row['topic_first_poster_avatar_height'] > $avatar_max_dimensions ) ? $avatar_max_dimensions : $row['topic_first_poster_avatar_height'] ;
            $topic_first_poster_avatar_width = ( $topic_first_poster_avatar_height == $avatar_max_dimensions ) ? round($avatar_max_dimensions / $row['topic_first_poster_avatar_height'] * $row['topic_first_poster_avatar_width']) : $row['topic_first_poster_avatar_width'] ;
         }

         if ( $row['topic_last_poster_avatar_width'] >= $row['topic_last_poster_avatar_height'] )
         {
            $topic_last_poster_avatar_width = ( $row['topic_last_poster_avatar_width'] > $avatar_max_dimensions ) ? $avatar_max_dimensions : $row['topic_last_poster_avatar_width'] ;
            $topic_last_poster_avatar_height = ( $topic_last_poster_avatar_width == $avatar_max_dimensions ) ? round($avatar_max_dimensions / $row['topic_last_poster_avatar_width'] * $row['topic_last_poster_avatar_height']) : $row['topic_last_poster_avatar_height'] ;
         }
         else 
         {
            $topic_last_poster_avatar_height = ( $row['topic_last_poster_avatar_height'] > $avatar_max_dimensions ) ? $avatar_max_dimensions : $row['topic_last_poster_avatar_height'] ;
            $topic_last_poster_avatar_width = ( $topic_last_poster_avatar_height == $avatar_max_dimensions ) ? round($avatar_max_dimensions / $row['topic_last_poster_avatar_height'] * $row['topic_last_poster_avatar_width']) : $row['topic_last_poster_avatar_width'] ;
         }
         
      }
Заменить найденное на

Код: Выделить всё

$avatar_img = $avatar_max_dimensions = $topic_last_poster_avatar_height = $topic_last_poster_avatar_width = $topic_first_poster_avatar_width = $topic_first_poster_avatar_height = 40;
       
               
          if ( !empty($row['topic_first_poster_avatar']) || !empty($row['topic_last_poster_avatar']))
          {
              $avatar_max_dimensions = $avatar_width = $avatar_height = 40; // here you can change the max-width you would like to have the avatars displayed
          
             if ( !empty($row['topic_first_poster_avatar']))
             {         
            if ( $row['topic_first_poster_avatar_width'] >= $row['topic_first_poster_avatar_height'] )
               {
                  $topic_first_poster_avatar_width = ( $row['topic_first_poster_avatar_width'] > $avatar_max_dimensions ) ? $avatar_max_dimensions : $row['topic_first_poster_avatar_width'] ;
                  $topic_first_poster_avatar_height = ( $topic_first_poster_avatar_width == $avatar_max_dimensions ) ? round($avatar_max_dimensions / $row['topic_first_poster_avatar_width'] * $row['topic_first_poster_avatar_height']) : $row['topic_first_poster_avatar_height'] ;
               }
               else
               {
                  $topic_first_poster_avatar_height = ( $row['topic_first_poster_avatar_height'] > $avatar_max_dimensions ) ? $avatar_max_dimensions : $row['topic_first_poster_avatar_height'] ;
                  $topic_first_poster_avatar_width = ( $topic_first_poster_avatar_height == $avatar_max_dimensions ) ? round($avatar_max_dimensions / $row['topic_first_poster_avatar_height'] * $row['topic_first_poster_avatar_width']) : $row['topic_first_poster_avatar_width'] ;
               }
          }

            if ( !empty($row['topic_last_poster_avatar']))
             {     
               if ( $row['topic_last_poster_avatar_width'] >= $row['topic_last_poster_avatar_height'] )
               {
                  $topic_last_poster_avatar_width = ( $row['topic_last_poster_avatar_width'] > $avatar_max_dimensions ) ? $avatar_max_dimensions : $row['topic_last_poster_avatar_width'] ;
                  $topic_last_poster_avatar_height = ( $topic_last_poster_avatar_width == $avatar_max_dimensions ) ? round($avatar_max_dimensions / $row['topic_last_poster_avatar_width'] * $row['topic_last_poster_avatar_height']) : $row['topic_last_poster_avatar_height'] ;
               }
               else
               {
                  $topic_last_poster_avatar_height = ( $row['topic_last_poster_avatar_height'] > $avatar_max_dimensions ) ? $avatar_max_dimensions : $row['topic_last_poster_avatar_height'] ;
                  $topic_last_poster_avatar_width = ( $topic_last_poster_avatar_height == $avatar_max_dimensions ) ? round($avatar_max_dimensions / $row['topic_last_poster_avatar_height'] * $row['topic_last_poster_avatar_width']) : $row['topic_last_poster_avatar_width'] ;
               }
          }
          }
На этом все, успехов в установке :dan_ser:
На вопросы, связанные с phpBB, по ЛС не отвечаю !!!
#1
Аватара пользователя
Alexander
Свой на все 100
Свой на все 100
Сообщения: 484
Стаж: 11 лет 5 месяцев
Откуда: Россия
Контактная информация:

Random No Avatar phpbb3 (случайная аватара по умолчанию)

Сообщение Alexander »

DeaDRoMeO писал(а):Так же хотелось бы отметить то, что в случае когда пользователь установит самостоятельно свою аватару, случайная аватара исчезнет и не будет каких либо конфликтов.
А если не установит, то какие-то конфликты наблюдаются?
DeaDRoMeO писал(а):Если используется связка...
А если используется связка Avatar of poster on Index + Precise Similar Topics + NV recent topics, то сделать правки по п. 2 и 3?
#2
Аватара пользователя
DeaDRoMeO
Старожил Форума
Старожил Форума
Сообщения: 16763
Стаж: 13 лет
Откуда: Витебск
Контактная информация:

Random No Avatar phpbb3 (случайная аватара по умолчанию)

Сообщение DeaDRoMeO »

Alexander писал(а):А если не установит, то какие-то конфликты наблюдаются?
Нет, будет отображаться случайная аватара)
Alexander писал(а):А если используется связка
Ну разумеется, все пункты использовать надо)
На вопросы, связанные с phpBB, по ЛС не отвечаю !!!
#3
Аватара пользователя
OlegOleg1980
Начинаю осваивать Форум
Начинаю осваивать Форум
Сообщения: 128
Стаж: 11 лет 4 месяца
Откуда: Оренбург
Контактная информация:

Random No Avatar phpbb3 (случайная аватара по умолчанию)

Сообщение OlegOleg1980 »

у меня нет никаких модов в трех пунктах. как установить этот мод - там почему то инструкция не открывается..
#4
Аватара пользователя
DeaDRoMeO
Старожил Форума
Старожил Форума
Сообщения: 16763
Стаж: 13 лет
Откуда: Витебск
Контактная информация:

Random No Avatar phpbb3 (случайная аватара по умолчанию)

Сообщение DeaDRoMeO »

Как не открывается ?? Только что скачал архив, распаковал папку мода и в ней открыл инструкцию)
На вопросы, связанные с phpBB, по ЛС не отвечаю !!!
#5
Аватара пользователя
OlegOleg1980
Начинаю осваивать Форум
Начинаю осваивать Форум
Сообщения: 128
Стаж: 11 лет 4 месяца
Откуда: Оренбург
Контактная информация:

Random No Avatar phpbb3 (случайная аватара по умолчанию)

Сообщение OlegOleg1980 »

DeaDRoMeO писал(а):Как не открывается ?? Только что скачал архив, распаковал папку мода и в ней открыл инструкцию)
у меня вот так открылось :

#6
Аватара пользователя
DeaDRoMeO
Старожил Форума
Старожил Форума
Сообщения: 16763
Стаж: 13 лет
Откуда: Витебск
Контактная информация:

Random No Avatar phpbb3 (случайная аватара по умолчанию)

Сообщение DeaDRoMeO »

Так-с еще раз - скачиваете архив, всю папку мода вытягиваете, допустим, на рабочий стол, открываете папку, открываете в любом браузере файл install_mod.xml и все будет окей)
На вопросы, связанные с phpBB, по ЛС не отвечаю !!!
#7
Аватара пользователя
OlegOleg1980
Начинаю осваивать Форум
Начинаю осваивать Форум
Сообщения: 128
Стаж: 11 лет 4 месяца
Откуда: Оренбург
Контактная информация:

Random No Avatar phpbb3 (случайная аватара по умолчанию)

Сообщение OlegOleg1980 »

поставил! все работает!
проблема была в IE - в нем install не открывается нормально почему то..
открылся в мозилле.
#8
Аватара пользователя
DeaDRoMeO
Старожил Форума
Старожил Форума
Сообщения: 16763
Стаж: 13 лет
Откуда: Витебск
Контактная информация:

Random No Avatar phpbb3 (случайная аватара по умолчанию)

Сообщение DeaDRoMeO »

ИЕ - это вообще зло конкретное))
На вопросы, связанные с phpBB, по ЛС не отвечаю !!!
#9
Аватара пользователя
OlegOleg1980
Начинаю осваивать Форум
Начинаю осваивать Форум
Сообщения: 128
Стаж: 11 лет 4 месяца
Откуда: Оренбург
Контактная информация:

Random No Avatar phpbb3 (случайная аватара по умолчанию)

Сообщение OlegOleg1980 »

DeaDRoMeO писал(а):ИЕ - это вообще зло конкретное))
будем знать))
#10
inkass24
Заглянул на огонек
Заглянул на огонек
Сообщения: 8
Стаж: 11 лет 4 месяца

Модификация 'Default Random 'No Avatar'

Сообщение inkass24 »

Ребята будьте добры подскажите правильно я понял или нет

нашел это

function get_user_avatar($avatar, $avatar_type, $avatar_width, $avatar_height, $alt = 'USER_AVATAR', $ignore_config = false)
{
global $user, $config, $phpbb_root_path, $phpEx;

if (empty($avatar) || !$avatar_type || (!$config['allow_avatar'] && !$ignore_config))
{
return '';
}

$avatar_img = '';

в строке вижу return '';

а теперь мне return ''; нужно заменить на это?

$random_avatar = $phpbb_root_path . 'images/avatars/random/no_avatar' . mt_rand(1, 17) . '.gif';

if (file_exists($random_avatar))
{
if (!$avatar_width && !$avatar_height)
{
if (list($width, $height) = @getimagesize($random_avatar))
{
$avatar_width = $width;
$avatar_height = $height;
}
else
{
$avatar_width = $avatar_height = 110;
}
}

return '<img src="' . $random_avatar . '" width="' . $avatar_width . '" height="' . $avatar_height . '" title="' . ((!empty($user->lang['RANDOM_AVATAR'])) ? $user->lang['RANDOM_AVATAR'] : 'RANDOM_AVATAR') . '" alt="' . ((!empty($user->lang['RANDOM_AVATAR'])) ? $user->lang['RANDOM_AVATAR'] : 'RANDOM_AVATAR') . '"/>';
}
else
{
return '';
}
}


Промт коряво переводит а в файле установки не совсем все так как обычно)
#11
inkass24
Заглянул на огонек
Заглянул на огонек
Сообщения: 8
Стаж: 11 лет 4 месяца

Модификация 'Default Random 'No Avatar'

Сообщение inkass24 »

И не понятно вот еще что

Автор на главной странице пишет типа файл languge.en не трогать он ошибочный а типо найти Language.ru в нем RANDOM FORU [...] а сним что делать не указал вставить после него
'RANDOM_AVATAR' => 'Рандомная аватара. Подставляется автоматически при отсутствии установленной пользователем аватары. Рекомендуется менять на свою в Центре пользователя.',
или вместо него
и файл то нашел только RANDOM FORUM
#12
Аватара пользователя
DeaDRoMeO
Старожил Форума
Старожил Форума
Сообщения: 16763
Стаж: 13 лет
Откуда: Витебск
Контактная информация:

Модификация 'Default Random 'No Avatar'

Сообщение DeaDRoMeO »

Перенесено, отвечу позже
На вопросы, связанные с phpBB, по ЛС не отвечаю !!!
#13
inkass24
Заглянул на огонек
Заглянул на огонек
Сообщения: 8
Стаж: 11 лет 4 месяца

Random No Avatar phpbb3 (случайная аватара по умолчанию)

Сообщение inkass24 »

А версия мода совместима phpbb 3.0.11?
#14
Аватара пользователя
DeaDRoMeO
Старожил Форума
Старожил Форума
Сообщения: 16763
Стаж: 13 лет
Откуда: Витебск
Контактная информация:

Random No Avatar phpbb3 (случайная аватара по умолчанию)

Сообщение DeaDRoMeO »

inkass24, вся информация указана в первом посте, если не работает, то проверяйте правки кода, мод совместим с последней версией форума
На вопросы, связанные с phpBB, по ЛС не отвечаю !!!
#15
inkass24
Заглянул на огонек
Заглянул на огонек
Сообщения: 8
Стаж: 11 лет 4 месяца

Random No Avatar phpbb3 (случайная аватара по умолчанию)

Сообщение inkass24 »

Информация указана и в инструкции но мне например не понятно найти строку я нашел затем найти в строке я нашел затем заменить в строке ...а что заменить то?? return я заменял вместе со скобкой и ни фига

хотя оно может и не работает потому что изначально аватары нормально не работают загружаются только с другова сайта
Последний раз редактировалось inkass24 27 ноя 2012, 20:21, всего редактировалось 1 раз.
#16
Аватара пользователя
DeaDRoMeO
Старожил Форума
Старожил Форума
Сообщения: 16763
Стаж: 13 лет
Откуда: Витебск
Контактная информация:

Random No Avatar phpbb3 (случайная аватара по умолчанию)

Сообщение DeaDRoMeO »

inkass24 писал(а):изначально аватары нормально не работают загружаются только с другова сайта
Это как вообще ?? Настройки ковыряли аватар ?
На вопросы, связанные с phpBB, по ЛС не отвечаю !!!
#17
inkass24
Заглянул на огонек
Заглянул на огонек
Сообщения: 8
Стаж: 11 лет 4 месяца

Random No Avatar phpbb3 (случайная аватара по умолчанию)

Сообщение inkass24 »

да ковырял пробовал пути менять папки создавать без результатно загрузка с пк ну ни как не работает...вот я и подумал что может и мод не работает поэтому
#18
Аватара пользователя
DeaDRoMeO
Старожил Форума
Старожил Форума
Сообщения: 16763
Стаж: 13 лет
Откуда: Витебск
Контактная информация:

Random No Avatar phpbb3 (случайная аватара по умолчанию)

Сообщение DeaDRoMeO »

Эмм вы вооще настраивали аватары для форума ?? В админке ?? Там же их надо разрешить и еще несколько пунктов сконфигурировать
На вопросы, связанные с phpBB, по ЛС не отвечаю !!!
#19
Аватара пользователя
maco8024
Начинаю осваивать Форум
Начинаю осваивать Форум
Сообщения: 101
Стаж: 11 лет 10 месяцев
Откуда: Алтай
Контактная информация:

Random No Avatar phpbb3 (случайная аватара по умолчанию)

Сообщение maco8024 »

Здравствуйте, сегодня заметил вот такую лабуду ,вылезла большая Random аватарка на главной форума.




На Гуру решение для версии мода Avatar Index Viewforum v1.2.1 , а в версии 1.3.0 таких файлов нет.
Последний раз редактировалось maco8024 02 дек 2012, 13:59, всего редактировалось 1 раз.
#20
Ответить