I think news-server interface for web-forum will have better appearence due thread nature of news-server.
Unfortunately no one can be told what PunBB is - you have to see it for yourself.
You are not logged in. Please login or register.
PunBB Forums » Posts by Dexus
I think news-server interface for web-forum will have better appearence due thread nature of news-server.
Íóæíî ÷òîáû mysql è punbb áûëè êîððåêòíî íàñòðîåíû íà ÎÄÍÓ È ÒÓ ÆÅ êîäèðîâêó.  ñëó÷àå utf-8 åñòü íå áîëüøèå íþàíñû â íàñòðîéêå áàçû è èíèöèàëèçàöèè ïðè êîííåêòå.  ñëó÷àå cp-1251 ïðîñòî èñïðàâëÿåòñÿ êîäèðîâêà
'lang_encoding' => 'windows-1251',
'lang_multibyte' => false,
â êîíôèãå ÿçûêîâîì (lang/[language]/common.php).
Frank H, something like hdiff for updated (NULL byte exploit) AP_Attachment_Mod would be very nice ![]()
Rickard, russian punbb community can be found at www.punbb.ru and pretty long time (almost year) ![]()
Zevs, ???? ?????? ??????????? (?? ?? ?????????), ?? Connorhd. ?? ?? ?????? ???????? (????? ???). ?? ??? ?????? ????????????? ????? ??????????, ? ?? "????????? ?? ????????", ??? ?????? ???? ?? ?????????.
? ?????? ?????????? ??????????? ?????? ???? ?????? ??? ??????????? ? ??? ????????????? ??????. ?.? ?? ????????? viewpoll.php ? editpoll.php ? ??????????? ???????????????? ? ????????? ??????.
? ???-?? ????? ???????, ?? ???? ?? ????? , ??? ????? ?????? ?? ????.
? ????? ? ??????? ??? ????? - ??? ????? ???? ??? ??? ?????????? ???????????. ???, ? ?????, ? ???????????.
Isn't javascript store/restore checkbox state in cookies bad idea? No need to touch database at all.
????????? ? ????? Easy poll ???? ? ????????. ? ??????? ? ????? "???? ?? ????????".
?.?. ?? ??? ?????? ?????????? ??????? ? ?????????????? ??????????? ? punbb ????.
?????? ???????? - ??????? ????, ??? ? ?????-?? ?? "?????" ???????? ????????? ?????? (??????????????). ????? ? ??????? ?????????? ??? ??????? ??? ??????.
?????? ? ????? profile.php ?? ???? ?????????? "@include" ? ?????? ??? ???????? ?????? @ (?????? ??? ?? ???????? ??????).
? ???? ?????? ????? ????? ?????? ????? ???????? ?????-?? ????? ????????? ?????????? ? ????? ?????? ? ??????? ??????? ???????.
I've made such addition to my forum. And I have to say - it required alot of changes (particularly in parser.php).
IMHO Rickard, you should support html subscription format natively, because it's really relevant feature.
someguy, any ttf font file will work. you can rename file or change font filename in script.
as I said, i recommend a sort of Times font.
you cen search a sites of free ttf fonts in a web. there are lot of them, for example http://www.fontpool.com
or you can take a ttf file from windows/fonts folder (but I dont know what about legal part)
put it in folder with your ran.php script.
it's not a stand-alone script, it's just a alternative image generation function for Mediator's script (thanks a lot!
)
if you want it, you have to replace original one with it. and also provide it with font file (in a same folder).
Addition: maybe you'll find it too deformed.. if so - just play with "blurring" coefficient (90%) in
imagecopymerge ($im, $im2, $x1, $y1, $x1+$i%3-1, $y1+($i+2)%2-1, $xl, $yl, /**/90/**/);
or deformation range (25) in
for ($i=0;$i</**/25/**/;$i++)
or "dirty points" quantity (40) in
for ($j=0;$j</**/40/**/;$j++){
good luck
I have played with generator itself, and have stopped at this version.
Blurred and deformed B/W letters.
Better to use something like "Times" font.
function createImage($width=160,$height=40,$len=8)
{
// send header for our image
header("Content-type:image/jpeg");
// generate a random string
$alphanum = array(
"A", "B", "C", "D", "E", "F", "G",
"H", "K", "L", "M", "P", "R",
"T", "U", "V", "X", "Y",
"2", "3", "4", "6", "7", "8", "9");
$string = array_rand($alphanum, $len);
// create an image
$im3=imagecreatetruecolor($width,$height);
$cee=30;
$cee2=$cee/2;
$width+=$cee;
$height+=$cee;
$im=imagecreatetruecolor($width,$height);
$im2=imagecreatetruecolor($width,$height);
$bck = ImageColorAllocate ($im, 240,240,240);
$bck2 = ImageColorAllocate ($im, 10,10,10);
ImageFill($im, 0, 0, $bck);
$font = "fonttt3.ttf";
$str="";
for($i=0;$i<$len;$i++) {
$ss=rand(16,20);
$a=rand(-30, 30);
$b=sin(deg2rad($a+45))*9;
$c=cos(deg2rad($a+45))*9;
$x1=($i)*19+13+$cee2;
$y1=rand(20,30)+$cee2;
imagettftext($im,
$ss,
$a,
$x1-$c,
$y1+$b,
$bck2,
$font,
$alphanum[$string[$i]]);
$str.=$alphanum[$string[$i]];
for ($j=0;$j<40;$j++){
$xx=$x1+rand(-12,12);
$yy=$y1+rand(-16,12);
if ($xx>=$width||$yy>=$height||$xx<0||$yy<0) continue;
ImageSetPixel($im, $xx, $yy, $bck2);
}
}
for ($i=0;$i<25;$i++)
{
$xl=rand(70,$width-3);
$yl=rand(30,$height-3);
$x1=rand(2,$width-$xl-2);
$y1=rand(2,$height-$yl-2);
imagecopy($im2,$im,0,0,0,0,$width,$height);
imagecopymerge ($im, $im2, $x1, $y1, $x1+$i%3-1, $y1+($i+2)%2-1, $xl, $yl,90);
}
imagecopy($im3,$im,0,0,$cee2,$cee2+$cee2/3*2,$width-$cee,$height-$cee);
imagejpeg($im3);
// destroy images
imagedestroy($im);
imagedestroy($im2);
imagedestroy($im3);
// return the random text generated
return $this->text=$str;
}btcoburn, when you're hitting F5 in your browser (any of them), there won't be any using of cached files.
it's a feature of browsers. "Refresh" is refreshing all of files, even if you force them to be cached.
Druvans, i doubt, because:
1. parsed text 100% will be larger then not parsed, so 65535 message length limit will be exceeded.
2. if you wish to "edit" text, you will face "tags".
so there is no alternative to cached field (16Mb).
A good thing will be removing all /* comments */, trailing tabs and spaces.
You may use something like <link rel="stylesheet" type="text/css" href="style.php?n=style_name" />
And script will read css file, remove all comments from it, and output it compressed (if enabled)
@import url() inside of css files also have to be replaced to .php script.
But other way - is to set apache textfiles compression (including javascripts, and css files).
P.S. removing comments will make styles 1.5 times lighter. Those comments is needed only when you're editing them, not sending to client.
i think you cant stylize url.
anyways, http://link.com will be valid, but IMHO all this style-effects will be useful because of styled anchor nature.
Anyways, if there are much highlighted areas in 20 posts (on single page page), GeSHi can dramatically slow down the server.
Some sort of "parsed-cached" message version will be useful.
I don't know if there any SQL DB blowing up or slowing down if there will be one extra field with 16Mb text field (related to original 65K).
Also some sort of "uncache" flag field, if "parser.php" have been rewritten.
And so on...
Well, i'd thinking of it long ago and still haven't started to implement even a part of it ![]()
Good luck!
it's because of 1.2.6 "redirection" script, where extra "htmlspecialchars" applied to url.
Actually a checkbox "New windiw links" In a bottom of a topicview (for example) with javascript restorable state, which will change "click action" way of new link opening, in the same window, or in new one. People will be having much more flexible and fast customization.
TuXoH, have you set "register_globals = On" in php.ini ?
if so, you MUST change it to "Off".
Eklmn, ????????????? ?? ????????????? ???? ![]()
>Âñÿ íàäåæäà íà òåáÿ è Rickard-à.
Ý... íà ìåíÿ-òî íå íàäî íàäåÿòüñÿ.. ÿ íå õàêåð ![]()
Íà ñ÷àñòëèâûé ñëó÷àé íàäî íàäåÿòüñÿ... Íà âñåõ ôîðóì÷àí.
À ìåíÿòü.. äà íó íàôèã. Ëó÷øå ñâîå äîêîíîïàòèòü.
PS: ïî êðàéíåé ìåðå â ïîñëåäíåì hdiff'å ÿ íå óâèäåë ñóùåñòâåííûõ èñïðàâëåíèé äûð â profile.php, êîòîðûå ìîãëè áû ïîâëèÿòü íà âçëàìûâàåìîñòü (ìîæåò ñëåï)
Åâãåíèé, íàñ÷åò "Ïðàâêà" - ýòî âî ìíîãèõ ôîðóìàõ óæå äàâíî ñäåëàíî, ó ñåáÿ ÿ òàê æå èñïðàâèë.
"Íàñòó÷àòü" - íåêðàñèâîå ñëîâî, æàðãîíèçì. Ó ñåáÿ ÿ ñäåëàë ïåðåâîä "Report" â "Æàëîáà".
À "Ïåðñîíàëüíûå ñîîáùåíèÿ" íàçâàë "Ïîñëàíèÿ" ![]()
À ãðàììàòè÷åñêèå è îðôîãðàôè÷åñêèå îøèáêè - òàê ýòî íàäî ïðîñòî áðàòü ôàéëû ÿçûêîâûå è âäóì÷èâî ðàññìàòðèâàòü, èñïðàâëÿÿ.
Evgeny, ñïàñèáî çà èíôî. Ïî âñåé âèäèìîñòè è â 1.2.6 ýòî íå ïîôèêñåíî (åñòü òàêîå ïîäîçðåíèå).
Spy, îáíîâëåíèÿ ñ 1.2.4-5 (ïî êðàéíåé ìåðå) äî 1.2.6 - ÷èñòî òåõíè÷åñêèå, íà äèçàéí íèêàêîãî âëèÿíèÿ íåò.
Áóäó ðûòü.
? ????? ??? ???????-??? ????? user info?
??? ?? ??????. ? PunBB ?????? ?????? ????????????? ??? ????. ?????????????? "????????????", ??? ???????.
???? BBCode ?????? ????.
PunBB Forums » Posts by Dexus
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 5 official extensions. Copyright © 2003–2009 PunBB.