Перейти из форума на сайт.

НовостиФайловые архивы
ПоискАктивные темыТоп лист
ПравилаКто в on-line?
Вход Забыли пароль? Первый раз на этом сайте? Регистрация
Компьютерный форум Ru.Board » IkonBoard и другие форумы » Ikonboard v.3 » Preach's Dodgy Chat Hack

Модерирует : Antuan

 Версия для печати • ПодписатьсяДобавить в закладки

Открыть новую тему     Написать ответ в эту тему

LestatPerm

Newbie
Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору
Preach's Dodgy Chat Hack
 
 
Помогите устанивить этот чат на ikonboard 3.1.2a на MySql
 
 
Выполняю:
Open ikonboard.cgi, around line 467 find:
 
 
Code Sample
Warn      => ['Warn'               , 'Process'     ],
 
and add below it:
 
 
Code Sample
Chat      => ['Chat'               , 'Process'     ],
 
--------------
--------------
 
Open Data/SkinList.cfg, find:
 
 
Code Sample
"WarnView"       => ['Warn a user Elements','All the elements of the private warning feature'],
 
and add below it:
 
 
Code Sample
"ChatView"    => ['Chat Elements','All the elements of the PoPup chat window.'],
 
--------------
--------------
 
Open Sources/Lib/Func.pm, find:
 
 
Code Sample
sub board_offline {
my $obj = shift;
my $IN = {
"DB"            => "",
"STD"           => "",
@_,
};
 
$obj->_print_http_header;
print Universal::Offline($iB::INFO->{'OFFLINE_MESSAGE'});
}
 
and add above it:
 
 
Code Sample
sub print_blank {
my $obj = shift;
my $IN = {
"STD"           => "",
"OUTPUT"        => "",
"TITLE"         => "",
@_
 };
 
$obj->_print_http_header;
 
print qq~
 
<!-- Begin Pooled Output -->
 
$IN->{'OUTPUT'}
 
<!-- End Pooled Ouput -->
~;
 
return 1;
}
 
(Note : I hated having to edit Func.pm, but could see no other way around it in order to produce a completely blank page I could use frames with...there is probably an easier way of doing it, but at the time I could'nt find it, and have not looked since! As it turns out, I have used the same sub for countless other things, so it worked out OK...)
 
--------------
Download Files
--------------
 
http://www.cage8.com/Resources/Chat_Files.zip
 
And upload to :
 
Data/chat.dat chmod to 0666
Languages/en/ChatWords.pm chmod to 0644
Sources/Chat.pm chmod to 0644
Skin/Default/ChatView.pm chmod to 0777
 
--------------
 
And that's it! Rebuild your skin config files, and edit the language as necessary. The refresh speeds and frame sizes can be controlled in the Skin edits, if you need to change the maximum message count, you will need to edit the Source file. It is on 25 I think now, which keeps the speed good. Remember this is just a text chat, if you want something fancy, this ain't it!! I use a link edited into the Board Header to activate it, as follows:
 
 
 
но что делать с этим:
Code Sample
<a href="javascript:PopUp('<%VAR:BOARD_URL%>/ikonboard.<%VAR:CGI_EXT%>?s=$iB::SESSION;act=Chat;CODE=00','Chat','400','600','0','1','1','1')">Chat</a>
 
You also may need to have the correct java subroutines on the front page of your forum...sorry, this is something I should have mentioned, I wrote this in for some other things...if you paste this into your global settings, at the top of either the BoardHeader or start_nav html it will work fine.
 
 
Code Sample
<script language="JavaScript1.2"><!--
       function PopUp(url, name, width,height,center,resize,scroll,posleft,postop) {
   if (posleft != 0) { x = posleft }
   if (postop  != 0) { y = postop  }
   if (!scroll) { scroll = 1 }
   if (!resize) { resize = 1 }
   if ((parseInt (navigator.appVersion) >= 4 ) && (center)) {
     X = (screen.width  - width ) / 2;
     Y = (screen.height - height) / 2;
   }
   if (scroll != 0) { scroll = 1 }
   var Win = window.open( url, name, 'width='+width+',height='+height+',top='+Y+',left='+X+',resizable='+resize+',scrollbars='+scroll+',location=no,
directories=no,status=no,menubar=no,toolbar=no');
}
// -->
</script>
 
 
 
куда это пихать?
Объясните пожалуйста, что то я разобраться не могу!!
 
 
БОЛЬШОЕ СПАСИБО
 

Всего записей: 25 | Зарегистр. 12-07-2004 | Отправлено: 13:24 27-07-2004
LestatPerm

Newbie
Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору
Ладно, забейте, я уже сам всё поставил, нормальный чатик вышел!

Всего записей: 25 | Зарегистр. 12-07-2004 | Отправлено: 14:58 01-08-2004
DStream

Advanced Member
Редактировать | Профиль | Сообщение | ICQ | Цитировать | Сообщить модератору
4 юзера и хостер рвет и мечет?

Всего записей: 605 | Зарегистр. 03-05-2003 | Отправлено: 18:15 02-08-2004
LestatPerm

Newbie
Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору
Ты что имел в виду?

Всего записей: 25 | Зарегистр. 12-07-2004 | Отправлено: 23:42 05-09-2004
DStream

Advanced Member
Редактировать | Профиль | Сообщение | ICQ | Цитировать | Сообщить модератору
LestatPerm

Цитата:
Ты что имел в виду?

Сколько у тебя бывает максимально юзеров в чате и сколько в среднем?
Уже имею богатый опыт эксплуатации чатов на платных хостингах... как правило не совсем положительных.
На ikonboard  с примерно 1000 посетилей в день и то уже хостер ворчит

Всего записей: 605 | Зарегистр. 03-05-2003 | Отправлено: 01:58 06-09-2004
LestatPerm

Newbie
Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору
Ты ведь уже знаешь мою историю, у меня домашняя сеть, пока только 10 юзеров в сети,
пользуются редко, на мне это ооочень интересно, хочу делать полезное для себя и людей (в разкмных рамках), и когда люди хотят, то они этого добиваются!

Всего записей: 25 | Зарегистр. 12-07-2004 | Отправлено: 08:18 06-09-2004
Открыть новую тему     Написать ответ в эту тему

Компьютерный форум Ru.Board » IkonBoard и другие форумы » Ikonboard v.3 » Preach's Dodgy Chat Hack


Реклама на форуме Ru.Board.

Powered by Ikonboard "v2.1.7b" © 2000 Ikonboard.com
Modified by Ru.B0ard
© Ru.B0ard 2000-2024

BitCoin: 1NGG1chHtUvrtEqjeerQCKDMUi6S6CG4iC

Рейтинг.ru