D_P_A_K_O_H
Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору Там надо править 3 файа. post.cgi я правил, а вот ikonboard.cgi не стал, потому что мне ссылки на пять топиков нужны тока на СТРАНИЦЕ САЙТА ,А НЕ в ikonboard.cgi Вот код top5.cgi Код: #!/usr/bin/perl #################################################################### # RecentPost Mod V1.0 #################################################################### # Scott Harrison # Homepage: http://www.dirtsims.com # Forum: http://www.dirtsims.com/cgi-bin/ikonboard/ikonboard.cgi # # This mod will let you post the most recent post to your board at # the top of your board index. Your also givin the ability to post # the last 5 post to your board anywhere on your site useing SSI. # # NOTE: Not all code used to make this file was written by myself. # If you have any questions email me at webmaster@dirtsims.com # #-------------------------------------------------------------------# # Modification Details (Please do not remove) #-------------------------------------------------------------------# # # Modified by : Chris Andrews # # Date Modified : 3rd February 2001 # # URL : http://www.darkslay.co.uk # # Email : webmaster@slay-uk.com # # What's New : # Modified all code so that it works with version 2.1.7 # of ikonboard. Also modified it so that it displays beginnning chunk # of each post as well as post title. Also made it easier to read and # install by adding comments and a new README.TXT # #-------------------------------------------------------------------# # # Modified by : # Date Modified : # URL : # Email : # What's New : # #-------------------------------------------------------------------# # # Please leave all modified user information as is. It's only fair # that everyone who modifies this script gets recognized for it. # #-------------------------------------------------------------------# $| = 1; ### EDIT ### # change url below to point to the recentpost.dat on your board. # MUST BE ABSOLUTE PATH, not URL # When you first install this Hack, this file shouldn't exist # (it gets created by the hack). Just make sure it's in the Data folder open(FILE,"/home/212/s290/public_html/cgi-bin/ikonboard/data/recentpost.dat"); @datas = <FILE>; close (FILE); $ranks = 4; while ($ranks > -1) { @top5 = split(/\|/,@datas[$ranks]); ### EDIT ### # change both occurrances of the muber 70 below to suit needs. # It's the number of characters of each post that will be # displayed on your pages. $top5[3] = substr($top5[3],0,70) . "..." if (length($top5[3]) > 70); $top5[3] = join('',split(/<br>/,$top5[3])); $top5[3] = join('',split(/<p>/,$top5[3])); $ranks--; ### EDIT ### # modify the HTML in the the line below to suit needs. # Eg - change >  to <li> for bullet points instead of '>' # also change the font to fit in with your site $html .= "<font face=\"Garamond\" size=\"3\">> "; ### EDIT ### # modify the two urls in the code below to point to your Ikonboard. # This must be a URL not path. if ($top5[0]) { $html .= "<a href=\"http://the-sims.pp.ru/cgi-bin/ikonboard/topic.cgi?forum=$top5[0]&topic=$top5[1]\"><b>$top5[2]</b></a><br></font><font face=\"verdana,arial,helvetica\" size=1> \"$top5[3]\"</font><br>"; } else { $html .= "<a href=\"http://the-sims.pp.ru/cgi-bin/ikonboard/ikonboard.cgi\">Forums</a><br>"; } } ### EDIT ### # for some reason this appeared on the page as well, so i edited it # out. I left it here cos Scott must have had a reason for putting # it there in the first place. But i dont know why # # print "Content-type: text/html\n\n"; print "$html"; exit; | И вы можете посмотерть, что ничего не выводится http://the-sims.pp.ru/forum/ :((( Я прописывал и Код: <!--#exec cgi="/cgi-bin/ikonboard/top5.cgi" --> | - так как в инструкции, перед -- и после cgi пробел, и прописывал без пробела ( Код: <!--#exec cgi="/cgi-bin/ikonboard/top5.cgi"--> | ) и правильный путь к аппке давал ( Код: <!--#exec cgi="../cgi-bin/ikonboard/top5.cgi"-->[/ | ) ( Код: <!--#exec cgi="../cgi-bin/ikonboard/top5.cgi" -->[/ | ) И права я ставил и 755 и 750, и темы новые создавал в каждом случае :(((( и все равно пусто здесь http://thesims.pp.ru/forum/ SSI хостинг поддерживает.. В чем же тогда дело.? Неужели и-за того, что я в ikonboard.cgi не правил? З.Ы. файл .dat создался в папке data ... Но почему не работает?????? :(:(:(:(:(:(:(:(:(:(:(:(:(:(:(
---------- Не нужна мне эта подпись =) |
| Всего записей: 386 | Зарегистр. 17-09-2001 | Отправлено: 03:52 21-03-2002 | Исправлено: D_P_A_K_O_H, 03:55 21-03-2002 |
|