ÈÌÕÎ åäèíñòâåííûé âàðèàíò ó÷èòûâàòü êàæäîå íåïðî÷òåííîå ñîîáùåíèå, ýòî õðàíèòü âñþ èíôó â îòäåëüíîé òàáëèöå. òîãäà ãåíåðàöèÿ ñïèñêà íåïðî÷èòàííûõ ñîîáùåíèé çàìåòíî çàìåäëèò îòêðûòèå ôîðóìà.

102

(27 replies, posted in Archive)

Nicka wrote:

? ???? ???????? ? ????????? ?????? phpBB ?? ??????? ????.
{...}
??? ???? ???????

?????? ??? phpBB?
?????, ????? ???????? ?????? ?????.

http://nyuk.visp.ru/download/punbb_stat1_0.zip

104

(6 replies, posted in Archive)

tech wrote:

À êàê áû ÿ ìîã âñòàâèòü êàðòèíêó ôîíîì â øàïêó ôîðóìà?

Ðåäàêòèðóé øàáëîí. Òàì ÷èñòûé HTML.

105

(2 replies, posted in Archive)

Ïîñëå âêëþ÷åíèÿ common.php äîáàâëÿåøü ñëåäóþùèå ñòðî÷êè:

Òîëüêî àäìèíû:

if ($cur_user['status'] < PUN_ADMIN)
    message($lang_common['No permission']);

Àäìèíû è ìîäåðàòîðû:

if ($cur_user['status'] < PUN_MOD)
    message($lang_common['No permission']);

Ýòî äëÿ âåðñèè äâèæêà 1.1 Äóìàþ, â áîëåå ïîçäíèõ íè÷åãî íå ïîìåíÿëîñü.

Îñíîâíàÿ ïðîáëåìà íà ìîé âçãëÿä - èíòåðôåéñ âûáîðà ïîëó÷àòåëåé.
Ìîæíî âûâàëèòü íà ýêðàí ñïèñîê þçåðîâ è ðàññòàâëÿòü ãàëî÷êè, íî êîãäà ïîëüçîâàòåëåé íåñêîëüêî ñîòåí...

ß áû íàâåðíîå ïîêðóòèë ñ JavaScript, ÷òîáû äîáèòüñÿ ïðèëè÷íîé þçàáåëüíîñòè. Íà ñ÷åò ñîâìåñòèìîñòè ñ áðàóçåðàìè òóò ìîæíî íå çàìîðà÷èâàòüñÿ - ñòðàíèöà àäìèíñêàÿ, à àäìèíàì ìîæíî â ïðèêàçíîì ïîðÿäêå íàâÿçàòü èñïîëüçîâàíèå îïðåäåëåííîãî áðàóçåðà.

Åñëè ñòîèò ìîä þçåðãðóïï, òî ëåã÷å êîíå÷íî.

À ñàìà îòïðàâêà ïðîñòî - ìîæíî èñïîëüçîâàòü ãîòîâóþ ôîðóìíóþ ôóíêöèþ, òîëüêî â ïîëå "To:" ãåíåðèòü ñïèñîê ïîëó÷àòåëåé.

107

(2 replies, posted in Archive)

Jack wrote:

Íàðîä, åñòü îãðîìíîå æåëàíèå íàçíà÷àòü èçáðàííûì ïîëüçîâàòåëÿì ôîðóìà ñïåöèàëüíûå ðàíãè, íå çàâèñÿùèå îò êîëè÷åñòâà ñîîáùåíèé. Ò.å. íàðÿäó ñ îáû÷íûìè ðàíãàìè (â çàâèñèìîñòè îò êîëè÷åñòâà ñîîáùåíèé, îñòàâëåííûõ íà ôîðóìå) õîðîøî áû áûëî èìåòü âîçìîæíîñòü ïðèñâàèâàòü ñïåöèàëüíûå...
Åñòü ëè ó êîãî-íèáóäü êàêèå-íèáóäü ìûñëè íà ýòó òåìó?
Öåëåñîîáðàçíî ëè?
Âîçìîæíî ëè ïîÿâëåíèå ýòîé ôèøêè â áóäóùèõ âåðñèÿõ èáî ÈÌÕÎ ñäåëàòü òàêîé õàê äîâîëüíî íàïðÿæíî...

 ïîëå "Title" ìîæíî âïèñàòü ÷òî óãîäíî, òîãäà ðàíã íå áóäåò çàâèñèòü îò êîëè÷åñòâà ñîîáùåíèé. Ó íàñ òàê è äåëàåòñÿ ñàìûì ëó÷øèì (è ñàìûì õóäøèì) âïèñûâàþòñÿ "èìåííûå" ðàíãè. :-) Èëè òåáå ÷òî-òî äðóãîå õî÷åòñÿ?

Áûëà èäåÿ ñäåëàòü äîïîëíèòåëüíûå ðåéòèíãè äëÿ þçåðîâ, òèïà ãîëîñîâàíèé, íî ïîñëå îáñóæäåíèé ðåøèëè íå çàìîðà÷èâàòüñÿ.

108

(4 replies, posted in Archive)

http://www.punres.org

109

(6 replies, posted in Archive)

Ïðîáëåìû â ëýíãïàêå. Èëè íå èíêëþäèòñÿ íóæíûé ÿçûêîâîé ìîäóëü, èëè â íåì íåò ñîîòâåòñòâóþùèõ çàïèñåé.

110

(6 replies, posted in Archive)

Òû èìååøü ââèäó íàäïèñè "BBCode: on ..." ñî ññûëêàìè íà ñîîòâåòñòâóþùèå ðàçäåëû õýëïà?

Åñëè äà, òî ýòè ññûëêè ïðèñóòñòâóþò ñ ñàìûõ ðàííèõ âåðñèé äâèæêà (â 1.0.1 îíè óæå åñòü) è íèêàêîé îïöèè èõ îòêëþ÷åíèÿ ÍÅÒ. ß âðó÷íóþ óáèðàë.

×òî-òî ó òåáÿ íå òîãî...

P.S. À äâèæêà âåðñèÿ êàêàÿ?

111

(2 replies, posted in Archive)

Ñàìûé ïðîñòîé ñïîñîá ïðîâåðèòü: ïðè ñîçäàíèè íîâîãî òîïèêà äîáàâëÿåòñÿ âîçìîæíîñòü ñîçäàòü ãîëîñîâàíèå.
(PunBB 1.0.1 / PunPoll 1.0)

112

(18 replies, posted in Archive)

Âûëîæèë. Ñðàçó ïðåäóïðåæäàþ, ýòî íå ìîä, êîòîðûé ïðîèíñòàëèðîâàë è ðàäóåøüñÿ. Ïðîñòî íàáîð ñêðèïòîâ, âñå ïðèêðó÷èâàåòñÿ âðó÷íóþ. Ïîòðåáóþòñÿ çíàíèÿ PHP è SQL (âîçìîæíî).

Ðàáîòàåò ïîä PostgreSQL, äëÿ MySQL âîçìîæíî ïðèäåòñÿ ïåðåïèñàòü çàïðîñ ñîçäàíèÿ òàáëèöû.

Ôîðóì âåðñèè 1.0.1 Äëÿ äðóãèõ âåðñèé âîçìîæíî ïîòðåáóåòñÿ ïåðåäåëêà.

×èòàåì readme.txt, òàì âñå ðàñïèñàíî :-)

http://nyuk.visp.ru/tmp/logs_mod.rar

113

(18 replies, posted in Archive)

Ñêîðåå âñåãî, ïîñëå ïåðåäåëêè.

114

(18 replies, posted in Archive)

Ó ìåíÿ ñäåëàíî, íî ìîäîì íå îôîðìëåíî. Åñëè èíòåðåñóåò, ìîãó âûëîæèòü, òîëüêî ïðèêðó÷èâàòü âðó÷íóþ.
Äëÿ âåðñèè 1.0.1

SunDragon1 wrote:

ãëÿíóë íà ôîðóì ïî òâîåé ññûëêå http://forum.visp.ru/
ïðèêîëüíî, ñòîëüêî ìîäîâ íàóñòàíîâëåííî, ÿ òîæå òàêîå õî÷ó :)
îòêóäà ìîæíî ñêà÷àòü? èëè òû ñàì èõ ïðèäóìûâàë è âñòàâëÿë â ôîðóì?

 îñíîâíîì, îòñþäà: http://www.punres.org/
Òîëüêî, òàì â î÷ðåäíîé ðàç âñå ñìåíèëè, çàíîâî êîíòåíò çàëèâàþò. ïîêà ïî÷òè íåò íè÷åãî.

Íó è êîå-÷òî ñàì ïèñàë.

à ÷åãî ó òåáÿ âåðñèÿ ôîðóìà òàêàÿ ñòàðàÿ (PunBB 1.0.1)?
èç-çà óñòàíîâëåííûõ ìîäîâ?

Äà. Ñëèøêîì ãèìîðíî ïîêàçàëîñü âñå ìîäû/ôèêñû ïåðåíîñèòü...
Êðîìå òîãî, íå áûëî AFAIK êîíâåðòåðà áàçû ñ âåðñèè 1.0.1 íà 1.1.õ äëÿ PostgreSQL.

SunDragon wrote:

íå ìîãó ïðàâèëüíî íàñòðîèòü âðåìÿ íà ôîðóìå, òàêîé îùóùåíèå, ÷òî "äâèæîê" ôîðóìà áåðåò çà èñõîäíîå âðåìÿ, âðåìÿ ñåðâåðà.
ò.å. â àäìèí ïàíåëè âûñòàâëÿþ +0 GMT, áåðåòñÿ âðåìÿ êîòîðîå íà ñåðâåðå, îäèí ê
îäíîìó, òîãäà êàê íà ñåðâåðå âðåìÿ íè êàê ïî Ãðèíâè÷ó áûòü íå ìîæåò.
êàê áûòü?

Ó ìåíÿ ñòîèò +03 GMT è íà ñåðâåðå è â îïöèÿõ ôîðóìà. Ïðîáëåì íå çàìåòèë.
Âîò èíôà, åñëè ïîìîæåò:

OS: FreeBSD
PHP: 4.3.4RC1
DB: PostgreSQL 7.4.3
Powered by PunBB 1.0.1

p.s.s. ïðîáîâàë ïîñòèòü çäåñü ìåñàãó ÷åðåç îïåðó, øèðôò íå ïîíÿòíûé...
÷åðåç IE âñå â ïîðÿäêå

Ýòî äà. Åñòü òàêàÿ áåäà.

Îñíîâíàÿ ïðîáëåìà â òîì, ÷òî ñìåíèòñÿ id ãîñòàâîãî âõîäà. È òåáå ïðèäåòñÿ ïðàâèòü âñå ñêðèïòû, ãäå îí èñïîëüçóåòñÿ.

Ó ìåíÿ äîâîëüíî ñòàðàÿ âåðñèÿ äâèæêà. Òàì âûñòàâëÿåòñÿ ïåðåìåííàÿ $cookie['is_guest'] â ôóíêöèè check_cookie â common.php. Â ïîñëåäíèõ âåðñèÿõ âîçìîæíî íå òàê. Â ïðèíöèïå, ïðîâåðêè ñòðîÿòñÿ íà íåé, íî íå óâåðåí, ÷òî íèãäå â ôîðóìå íå èñïîëüçóåòñÿ ãîñòåâîé id æåñòêî.

id=1 çàðåçåðâèðîâàí Guesta. Êîíå÷íî, ìîæíî äâèæîê ïîäïðàâèòü, òîëüêî ïîéäè-íàéäè âñå ìåñòà, ãäå ïðàâèòü íóæíî.... Îíî òåáå íàäî?

JavaScript'îì. Êîïàé onclick ìåòîä.

Êîå ÷òî ñìîòðè: http://punbb.org/forums/viewtopic.php?id=3478
Íó è, åñëè ïîèñêàòü, òóò âñå åñòü: http://punbb.org/

121

(4 replies, posted in Archive)

[7.3.] wrote:

???? ????? - ????? ??? ?????? ????? ??? ????????

??? ?? ???????, ????? ???????? ??-??????. :-)

122

(18 replies, posted in Archive)

Yes. Without fixes Not all works correctly.

123

(18 replies, posted in Archive)

In Russia more 6 encoding tables. The most popular: windows-1251 and koi8-r.

http://php.net/convert_cyr_string

124

(18 replies, posted in Archive)

????? ?????? ???????

? ????, ??? ?????? 1.0.1 ? ?????? ????????? ? post.php

????:

!preg_match("/([a-z])/",$subject)

???????? ??:

!preg_match("/([a-z?-?])/",$subject)

?.?. ???????? ??????? ???????? ?????. ? ???? ??????.
?? ???? ?????? ?????? ?????? ?? ??????.

? ???? ????????? ???-8, ??, ?????, ??? ?? ?????????????.

P.S. ??????, ??? ???? ?? ??????. :-)

125

(0 replies, posted in Archive)

????????? ??? ??? ?????? 1.0.1:
?????????? ? profile.php, ????? ? ??????????? ????????? ????????????, ???????? ?????????? ?????????. (?.?. ????????? ?? ???????????)

? ????? profile.php, ?????? 913, ????:

else
  $posts_field = '<input type="text" name="num_posts" value="'.$user['num_posts'].'" size="8" maxlength="8">';

???????? ??:

else {
  $posts_field = '<input type="text" name="num_posts" value="'.$user['num_posts'].'" size="8" maxlength="8">';
  $result = $db->query('SELECT count(*) AS real FROM '.$db->prefix.'posts WHERE poster_id='.$id) 
    or error('Unable to fetch posts statistic', __FILE__, __LINE__, $db->error());
  $stat = $db->fetch_assoc($result); 
  $posts_field .= ' (Alive: '.$stat['real'].')';
}

??? ??? ??? ????????:

http://forum.visp.ru/img/tmp/example_001.jpg