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> куда это пихать? Объясните пожалуйста, что то я разобраться не могу!! БОЛЬШОЕ СПАСИБО |