Блин, вылажую полный код и даже с приветствием в зависимости от времени суток . Польский, Натили является соавтором. Идея и моды -
Author: all4phone (I took advantage of an idea from 4seven's bbcode:
http://www.phpbb.com/community/viewtopi ... #p12861138 and from two others bbcodes: -
http://www.bbcode.pl/bbcode-uzytkowe-f3 ... a-t34.html и
http://www.bbcode.pl/bbcode-uzytkowe-f3 ... t1220.html
Имя BBCode
Замена HTML
Код: Выделить всё
<script type="text/javascript">d=new Date();time=d.getHours();if(time>5 && time<=11){document.write("Good morning!");}else if(time>=12 && time<18){document.write("Good afternoon!");}else if(time>=19 && time<=22){document.write("Good evening!");}else{document.write("Good night!");}</script> <strong>{L_TOPIC_VIEWER}</strong>, <SCRIPT LANGUAGE="JavaScript">
<!--
document.write()
now = new Date()
if (now.getDay() == 5)
document.write("finally friday ;)")
if (now.getDay() == 6)
document.write("you are not in a pub ? ;)")
if (now.getDay() == 0)
document.write("sunday rest :)")
if (now.getDay() == 1)
document.write("the beginning of week :|")
if (now.getDay() == 2)
document.write("what are you doing today ?")
if (now.getDay() == 3)
document.write("nice you spend your time ?")
if (now.getDay() == 4)
document.write("welcome on the board :)")
document.write()
//-->
</SCRIPT>
Ответ -
Открываем -
Open:
language/en/viewtopic.php
находим
Ставим после -
В переди -
Код: Выделить всё
'TOPIC_VIEWER' => get_username_string('full', $user->data['user_id'], $user->data['username'], $user->data['user_colour']),
Чистим кеш. Взято на польском сайте -
http://www.phpbbmods.cba.pl. Проверенно.
Добавлено спустя 7 минут 1 секунду:
Вроде не чего не пропустил. ( Для Пчёлы )
Добавлено спустя 3 минуты 13 секунд:
С условием что выше указанные моды стоят.