76

(88 replies, posted in Archive)

Deadman, anyways, using of utf-8 for russian sites will DOUBLE server's and people's bandwidth. It doesn't make any profit, and furthermore, it's a huge disadvantage.
You may keep this coding for international sites.

77

(88 replies, posted in Archive)

ñòàíäàðò ñîñòîèò íå â òîì, ÷òî "îáúÿâëåíî", à ÷òî "ïðèíÿòî".
È utf-8 ÍÅ ÏÐÈÍßÒÎ, â ñâîåì áîëüøèíñòâå, â Ðîññèè.

Ïîëüçà îò utf ìîæåò áûòü òîëüêî äëÿ òåõ ñòðàíè÷åê, â êîòîðûõ ìåøàíèíà âñåõ ÿçûêîâ. È ÷àñòî òàêîå íàäî???

78

(88 replies, posted in Archive)

Deadman, ïîãîâîðèì ïî-ðóññêè. Åñëè òû íå çíàêîì ñ êèðèëëè÷åñêèìè êîäèðîâêàìè, òî ýòî ñîâñåì íå îçíà÷àåò, ÷òî îíè "äåðüìî" êàê òû âûðàçèëñÿ. ×òî æ ïîäåëàòü, ðàç â ìèðå êîïòñêî-êèðèëëè÷åñêèé àëôàâèò îñòàåòñÿ áåç äîëæíîãî óâàæåíèÿ è ïî÷òåíèÿ.
Äà, ÿ çíàþ ýòè êîäèðîâêè (cp1251/cp866/koi8-r) çíàþ äîñòàòî÷íî ïîäðîáíî.
Íàñ÷åò áàííåðíûõ ñèñòåì è âñÿêîé êàðòèíî÷íîé ÷óõíè - íå â êàññó. PunBB è îòëè÷àåòñÿ îò îñòàëüíûõ ÏÎÏÑÎÂÛÕ ôîðóìîâ òåì, ÷òî íå ïåðåãðóæåí âñÿêîé ãàëèìàòüåé. È ïîâåðü - äîôèãà ëþäåé áåñÿò âñå ýòè ðåêëàìû, è proxymitron è äðóãèå òóëçû î÷åíü ïîìîãàþò îò íèõ èçáàâèòüñÿ.
È íå íàäî íàâÿçûâàòü íàì ñâîþ áóðæóéñêóþ óíèâåðñàëèçàöèþ. Ìû è ñ koi8/cp1251 îáîéäåìñÿ.

Âîí, ïî÷òîâàÿ ñèñòåìà îò íà÷àëà ñâîåãî koi8-r èñïîëüçóåò.. è ïîíûíå.

Ataxy, it's not actually mine.. because idea is common.. realisation touches small part of code...
I don't think i have any ownership on this code smile

Austral, ÿ íå âèäåë íèêàêèõ ïðåäûäóùèõ ìîäîâ, ÿ åãî ïî íóæäå ñâàðãàíèë ïî áûñòðîìó.. è ïðîñòî ðåøèë ïîäåëèòüñÿ (ñêîðåå âñåãî íåóêëþæå)... Òû æå íàâåðíî ïîíèìàåøü, ÷òî íà íå ñòàíäàðòíûå äèçàéíû ÿ ðàñ÷èòûâàòü íå áóäó, ê òîìó æå äëèíó ñîîáùåíèÿ.. ÷åðåç îïöèè çàäàâàòü? smile .. ó êîãî ðóêè âñòàâëåíû íóæíûì ìåñòîì, òîò äîâåäåò äî óìà... íà òàêèõ, íàâåðíî, è ðàñ÷èòàíî...

Ataxy, smile you may take your chance to release your own, more stable vesion, with much more detailed instructions..

81

(4 replies, posted in Archive)

1.2.4 ?? 1.2.5 ??????????? ?? ??????????...
??? ???????? - ???????...
???????? ? ???? ?? ?????? 1.2.4, ? ??? ? ???? ?????? ????????, ?????? ????? ??????, ???? ????????? ?? ??? ??? ???????????..
? ????  ?????? ??? ????????, ? 1.2.5 ? PM ? attachment2

Austral, ñäåëàé. Ýòî íåñëîæíî.
Ïîêà òàêîé íåîáõîäèìîñòè ó ìåíÿ íå áûëî. Â ñïèñêå ôîðóìîâ âñå ðàâíî íåñêîëüêî ñòðîê âëàçÿò áåç ïðîáëåì. È íàñòîëüêî äëèííûõ òåì íå áûâàåò. Ìàêñèìóì - 70 ñèìâîëîâ.

Frank, there is HUGE algorithmic nonoptimality in topicview.php
this code with "select from rules" executes EVERY message of topic... the point of this select - to determine, are attachments available for this user/group... but it's unnecessary to execute it every message.. one for topicview will be fine!

        if($pun_user['g_id']==PUN_ADMIN)$attach_allow_download=true;
        else{         //fetch the rules of the forum, and check so that the user is allowed to download.
            $result_attach_two = $db->query('SELECT ar.rules FROM '.$db->prefix.'attach_2_rules AS ar WHERE ar.group_id=\''.$pun_user['group_id'].'\' AND ar.forum_id='.$cur_topic['forum_id'].' LIMIT 1')or error('Unable to fetch rules for the attachments', __FILE__, __LINE__, $db->error());
            if($db->num_rows($result_attach_two)==1){
                list($attach_rules)=$db->fetch_row($result_attach_two);
                $attach_allow_download = attach_rules($attach_rules,ATTACH_DOWNLOAD);
            }
        }

Frank, nope.. not a firewall. I have connected to localhost even
Browsers.. well, explorer 6 and firefox 1.1 .. no matter which..
oh, there is one point - apache server (2.0.53) is configured like that:

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 15

well, it's default apache settings.

85

(36 replies, posted in General discussion)

zaher, do you have blocked ports too?

Extra tinyint field in `posts` table that flags a presence of attachments on a respective post will help to gain a bit of performance... I guess...

Frank, what about "Connection: close" for downloads ??? I guess that's the reason of waiting before download, when "keepalive" option is set.
Also field 'notes' in `attach_2_files` will be usable, for picture dimensions, filled with getimagesize().

Frank, previously i've get you wrong.. i thought you was saying about RESUME UPLOADS, not a downloads smile
for downloads it's all pretty clear
here's good descritpion with examples: http://www.vbip.com/winsock/winsock_http_08_01.asp

and by the way - the reason of delay of loading is in "keepalive" i think.. because i've make this parameter on server larger, and delay become very big...
i think there must be

        header('Connection: close');

near

        header('Pragma: no-cache'); //hmm, I suppose this might be possible to skip, to save some bw, but I'm far from sure, so I let the 'no cache stuff' be...
        header('Expires: 0');

file - attachment.php... near the end.
after adding this line picture previews became very rapid:)

88

(4 replies, posted in Feature requests)

maybe it is... as i'm in testing period - i found this feature very useful smile

89

(4 replies, posted in Feature requests)

I guess I did something wrong.. now it's fine wink
sorry everybody...
well there is one similar wish - somehow to logout without loosing page you are on. Or maybe re-login as other user...
because when you're getting as admin, oftenly you got to go back and find messages you want to fix...

90

(4 replies, posted in Feature requests)

When you're editing post on .. for example.. 3rd page, you'll be automaticly redirected on first page, and not to edited post..
How to fix that?

about 0 lenght i know..
but for some reason there will be situation, when attaches in base - 30, but actually in attach folder there are 100 of them...
you don't see if file is used or not... and file aren't 0 size of length.. when you'd backed up base in one day, and files some later, when you're restoring base with files, there will be alot of files in folders, that won't be having appropriate row for it in base...
i mean tool that will zero all unused files in upload folders, but keeps their names...

yep 5-7 seconds.. and i don't know why....

no i have test base on local machine, it isn't loaded at all smile
this checks.. it takes about 5-7 seconds of odd waiting... after loading of page..

and about this "optimize" feature - as i see, it doesn't remove any files, that aren't in database, but in attachment folder... i really need this feature smile

And re-arranged attachment in administration looks like:
http://www.intramail.ru/~dex/myattadm.png

93

(4 replies, posted in Archive)

???????, ? ????? ?????????
?????? ? ???? ?? 1.2.4 ??? ?????????, ? ????? ?? 1.2.5 ??????????.

okay, i've finished re-arranging list of attachments in administration.. also added forum/topic and owner.
also added info in Image View and dimentions info (width x height) of images.

Frank, can you tell me why image opening as embedded (through <img> tag) is so slow?
I mean some time pass before image actually occurs in "Image View"...

By the way, there is intresting detail: when you're guest - you're able to attach, and according to options, more then 1 attachment is possible, but due to "edit" nature of extra attaches, there is no possibility to attach more then one file to message for guests

95

(88 replies, posted in Archive)

Almost nobody in Russia uses utf-8. It's too hard to recode it without external tools..
cp1251/koi8-r/cp866 are good old codepages, that everybody knows, and the main advantage - they are widespreaded and easy to recode/render without any external library.
Besides cyrillic text in utf-8 will be as big as in utf-16.

well, i've searched on the net about resuming broken uploads, and i'd found an idea, that it's near impossible, because clients(browsers) are unable to upload not from start...

okay, Frank. I have no bugs left noticed.
But! smile Could you somehow make "attachment.php" a little bit more informative, when previewing images...
Simply to add file size and number of downloads, as in all other attachment lists?...

And ideas for future updates/releases:
- change format in administration of attachments, when listing all of them - to make it tabled (like topics).. also "pages" will be great.. smile IMHO it will be more user(admin)-friendly interface.
- also it will be good to have a tag for uploaded picture (by id).. a sort of [imgid=3] in a message body
- and these limitation of uplods (clearing) when previewing.. it isn't so good you know.. if attachment is big enough - re-uploading may take time...
- when creating a post - to "upload" file without actual posting, and posting after attaching all the file you need. Maybe link "my attachments" with a sort of tiny manager of user's attachments and posts with these attachments... when you could "reupload" some of them (newer version) or delete...  well.. a kinda... manager smile

P.S. Awesome mod!  smile

already tryed.. first of all - step 32 has wrong line (as in step 31)
the second. when admin - the error occur in edit.php in line about 220 ... when trying to edit existed message with attach
$attach_size=$pun_config[''];

Connorhd, maybe you should share latest version with people, somebody may continue this alternative poll developing.. and mediator's doesn't suit everyone's needs.
disabling links is not good decision. definatly not good..

>and PunPoll is?
I haven't actually seen punpoll code smile