See this topic.
6,377 2004-02-17 09:32
Re: Cookie parameter Httponly, does it work outside MSIE? (17 replies, posted in Programming)
Tak!
That's danish :)
6,378 2004-02-17 09:31
Re: PunBB 1.2 - What's to come (300 replies, posted in PunBB 1.2 discussion)
In PunBB 1.1.2, when an avatar is uploaded, it is first checked so that it isn't too large (via getimagesize()) and then moved to the avatar directory with move_uploaded_files(). However, with open_basedir restrictions in place, PHP very seldom (never?) has read access to the upload tmp directory. The solution is to move the file to the avatar directory and then do the size check. It results in uglier code, but I guess we don't have a choice.
6,379 2004-02-17 09:29
Re: Smilies and images in sigs (17 replies, posted in Feature requests)
Ok. I just didn't get the part about 0,1,2,3. You can't have that many different flags. One for earch binary digit, i.e. 1, 2, 4, 8, 16, 32, 64 and 128.
6,380 2004-02-17 02:21
Re: pixelbitches (12 replies, posted in PunBB 1.2 show off)
Ok, cool. Other than that, I like the color scheme. It's just the grey and the yellow together that's a bit tough on the eyes :)
6,381 2004-02-17 02:08
Re: pixelbitches (12 replies, posted in PunBB 1.2 show off)
Very nice site! I like the name :) However, light grey agains a bright yellow background? I got a headache after 10 seconds in the forums :)
6,382 2004-02-17 01:07
Topic: PunBB 1.2 - What's to come (300 replies, posted in PunBB 1.2 discussion)
Whenever I change anything worth noting, I update the changelog, so please take time to review it now and then.
Here's the TODO list for PunBB 1.2:
- [DONE] Completely new, XHTML 1.0 Strict and semantically correct markup and CSS by Paul Sullivan.
- [DONE] New markup for the admin interface by Paul Sullivan.
- [DONE] New user group system.
- [DONE] Admin plugin system.
- [DONE] Vertical admin navigation.
- [DONE] SQLite support.
- [DONE] Simple file-based caching of static data.
- [DONE] Make use of unbuffered database queries whenever possible.
- [DONE] More advanced BBCode pre-parsing.
- [DONE] Revised profile options (see this topic).
- [DONE] New upload code that works with open_basedir restrictions in effect.
- [DONE] Search for users in userlist.
- [DONE] Save IP address used during registration (see this topic).
- [DONE] Work with PHP error level E_ALL (i.e. initialize all variables before use).
- [DONE] Redirect forums (see this topic).
- [DONE] Ability to delete all of a specific users posts.
- [DONE] User language selection (in register.php and in profile.php).
- [DONE] More time zones (i.e. -3.5 for Newfoundland).
- [DONE] Post preview.
- [DONE] Improved documentation by Bert Garcia.
- Test, test, test.
6,383 2004-02-17 00:50
Re: Warning: Cannot modify header information (7 replies, posted in PunBB 1.2 modifications, plugins and integrations)
This looks like it's a problem with PunBB++, so I've moved the topic into the mods forum.
6,384 2004-02-17 00:48
Re: Smilies and images in sigs (17 replies, posted in Feature requests)
Why not allow a 0,1,2 or 3 on the existing field? You'd keep compatibility with all existing installs.
I'm not sure what you mean. One column could hold multiple boolean values by defining a few constants and then doing bitwise AND agains the column. E.g.
if ($cur_user['options'] & USER_SHOW_SMILIES)
Was that what you meant? If it was, I think it's a good idea.
Well, images in sigs are the top priority but I'd really like image emoticons to go as well, I personally see no use for them, they break the flow of the text and I find the text based ones easier to read ,just like ALL CAPS text isn't comfortable to read. (But anyone writing in all caps would of course be banned forever :-))
I'll have a hard time disagreeing with that.
What I'm really suggesting is that the "Convert smilies to images by default." in the profile be changed to affecting not the posts I make, but the post I read. That way everyone can decide for themselves wether they what to see smilies or text instead of deciding to force others to see smilies or text. It just make so much more sense (to me).
It makes sense.
And I don't want to hear any "but xyzBB does it that way" or "it's been like that since 1.0a" this is your chance to stand up and change the world (or some small insignificant corner of it).
Man, you know me too well. I was just going to post something about I being afraid of straying too far off the "de facto BB standard" that has evolved over the years :)
6,385 2004-02-17 00:37
Re: Cookie parameter Httponly, does it work outside MSIE? (17 replies, posted in Programming)
Here are screenshots of the results:
6,386 2004-02-17 00:29
Re: Cookie parameter Httponly, does it work outside MSIE? (17 replies, posted in Programming)
Ok, now I understand. I just got lost in all the buttons. One button would have been enough :)
In Firefox, the only thing that is visible is the ASPSESSIONID thingy. NoHTTPOnly and HTTPOnly are not displayed (neither on the page itself or in the alert box). Also, the "Click to see JS available cookies on this page" button doesn't work. Nothing happens when I click it.
In Opera 7.23 all the variables are displayed. That is, it doesn't support HTTPOnly.
6,387 2004-02-16 22:06
Re: Smilies and images in sigs (17 replies, posted in Feature requests)
I guess it's doable. However, with the current implementation, it will mean adding two new fields to the user table. Perhaps we should get a second opinion on this.
I can see why you would want to disable images in signatures since that can be quite annoying, but smilies aren't that bad, are they? :)
Great forum by the way, you must have some very inspiring people around having made such a nice forum :-)
Hohoho
6,389 2004-02-16 21:16
Re: Cookie parameter Httponly, does it work outside MSIE? (17 replies, posted in Programming)
Ok, first of all. What is supposed to happen exactly?
6,390 2004-02-16 18:53
Re: Cookie parameter Httponly, does it work outside MSIE? (17 replies, posted in Programming)
Opera 7.23:
Navigator: Microsoft Internet Explorer Version: 4.0 (compatible; MSIE 6.0; Windows NT 5.1) Minor version: Cookies: ASPSESSIONIDGGGGGGGG=KPDNAGMCDMQSLZIAQKWKESQQPQQQHECE; NoHTTPOnly=Visible; HTTPOnly=Invisible_for_MSIE
Firefox: Nothing :/
6,391 2004-02-16 15:38
Re: Avatarproblem (6 replies, posted in Archive)
Ok, vi provar en grej. Öppna upp din profile.php och leta upp ett stycke kod som ser ut såhär:
if (is_uploaded_file($uploaded_file['tmp_name']))
{
$allowed_types = array('image/gif', 'image/jpeg', 'image/pjpeg', 'image/png', 'image/x-png');
if (!in_array($uploaded_file['type'], $allowed_types))
message($lang_profile['Bad type']);
list($width, $height, ,) = getimagesize($uploaded_file['tmp_name']);
if ($width > $pun_config['o_avatars_width'])
message($lang_profile['Too wide'].' '.$pun_config['o_avatars_width'].' '.$lang_profile['pixels'].'.');
if ($height > $pun_config['o_avatars_height'])
message($lang_profile['Too high'].' '.$pun_config['o_avatars_height'].' '.$lang_profile['pixels'].'.');
if ($uploaded_file['size'] > $pun_config['o_avatars_size'])
message($lang_profile['Too large'].' '.$pun_config['o_avatars_size'].' '.$lang_profile['bytes'].'.');
if ($uploaded_file['type'] == 'image/gif')
{
$temp = @move_uploaded_file($uploaded_file['tmp_name'], $pun_config['o_avatars_dir'].'/'.$id.'.gif');
@chmod($pun_config['o_avatars_dir'].'/'.$id.'.gif', 0644);
@unlink($pun_config['o_avatars_dir'].'/'.$id.'.jpg');
@unlink($pun_config['o_avatars_dir'].'/'.$id.'.png');
}
else if ($uploaded_file['type'] == 'image/jpeg' || $uploaded_file['type'] == 'image/pjpeg')
{
$temp = @move_uploaded_file($uploaded_file['tmp_name'], $pun_config['o_avatars_dir'].'/'.$id.'.jpg');
@chmod($pun_config['o_avatars_dir'].'/'.$id.'.jpg', 0644);
@unlink($pun_config['o_avatars_dir'].'/'.$id.'.gif');
@unlink($pun_config['o_avatars_dir'].'/'.$id.'.png');
}
else if ($uploaded_file['type'] == 'image/png' || $uploaded_file['type'] == 'image/x-png')
{
$temp = @move_uploaded_file($uploaded_file['tmp_name'], $pun_config['o_avatars_dir'].'/'.$id.'.png');
@chmod($pun_config['o_avatars_dir'].'/'.$id.'.png', 0644);
@unlink($pun_config['o_avatars_dir'].'/'.$id.'.gif');
@unlink($pun_config['o_avatars_dir'].'/'.$id.'.jpg');
}
if (!$temp)
message($lang_profile['Move failed'].' <a href="mailto:'.$pun_config['o_admin_email'].'">'.$pun_config['o_admin_email'].'</a>.');
}
Byt ut det mot
if (is_uploaded_file($uploaded_file['tmp_name']))
{
$allowed_types = array('image/gif', 'image/jpeg', 'image/pjpeg', 'image/png', 'image/x-png');
$width = $height = 0;
if (!in_array($uploaded_file['type'], $allowed_types))
message($lang_profile['Bad type']);
if ($uploaded_file['type'] == 'image/gif')
{
$temp = @move_uploaded_file($uploaded_file['tmp_name'], $pun_config['o_avatars_dir'].'/'.$id.'.gif');
@chmod($pun_config['o_avatars_dir'].'/'.$id.'.gif', 0644);
@unlink($pun_config['o_avatars_dir'].'/'.$id.'.jpg');
@unlink($pun_config['o_avatars_dir'].'/'.$id.'.png');
list($width, $height, ,) = getimagesize($pun_config['o_avatars_dir'].'/'.$id.'.gif');
}
else if ($uploaded_file['type'] == 'image/jpeg' || $uploaded_file['type'] == 'image/pjpeg')
{
$temp = @move_uploaded_file($uploaded_file['tmp_name'], $pun_config['o_avatars_dir'].'/'.$id.'.jpg');
@chmod($pun_config['o_avatars_dir'].'/'.$id.'.jpg', 0644);
@unlink($pun_config['o_avatars_dir'].'/'.$id.'.gif');
@unlink($pun_config['o_avatars_dir'].'/'.$id.'.png');
list($width, $height, ,) = getimagesize($pun_config['o_avatars_dir'].'/'.$id.'.jpg');
}
else if ($uploaded_file['type'] == 'image/png' || $uploaded_file['type'] == 'image/x-png')
{
$temp = @move_uploaded_file($uploaded_file['tmp_name'], $pun_config['o_avatars_dir'].'/'.$id.'.png');
@chmod($pun_config['o_avatars_dir'].'/'.$id.'.png', 0644);
@unlink($pun_config['o_avatars_dir'].'/'.$id.'.gif');
@unlink($pun_config['o_avatars_dir'].'/'.$id.'.jpg');
list($width, $height, ,) = getimagesize($pun_config['o_avatars_dir'].'/'.$id.'.png');
}
if ($width > $pun_config['o_avatars_width'])
{
@unlink($pun_config['o_avatars_dir'].'/'.$id.'.gif');
@unlink($pun_config['o_avatars_dir'].'/'.$id.'.jpg');
@unlink($pun_config['o_avatars_dir'].'/'.$id.'.png');
message($lang_profile['Too wide'].' '.$pun_config['o_avatars_width'].' '.$lang_profile['pixels'].'.');
}
if ($height > $pun_config['o_avatars_height'])
{
@unlink($pun_config['o_avatars_dir'].'/'.$id.'.gif');
@unlink($pun_config['o_avatars_dir'].'/'.$id.'.jpg');
@unlink($pun_config['o_avatars_dir'].'/'.$id.'.png');
message($lang_profile['Too high'].' '.$pun_config['o_avatars_height'].' '.$lang_profile['pixels'].'.');
}
if ($uploaded_file['size'] > $pun_config['o_avatars_size'])
{
@unlink($pun_config['o_avatars_dir'].'/'.$id.'.gif');
@unlink($pun_config['o_avatars_dir'].'/'.$id.'.jpg');
@unlink($pun_config['o_avatars_dir'].'/'.$id.'.png');
message($lang_profile['Too large'].' '.$pun_config['o_avatars_size'].' '.$lang_profile['bytes'].'.');
}
if (!$temp)
message($lang_profile['Move failed'].' <a href="mailto:'.$pun_config['o_admin_email'].'">'.$pun_config['o_admin_email'].'</a>.');
}
Det blev riktigt jävla ful kod, men jag tror det ska hjälpa i ditt fall.
6,392 2004-02-16 15:27
Re: What is missing? (14 replies, posted in Feature requests)
If I wanted to attract people, I wouldn't be using punBB (no disrespect meant) just as it is, but I'd be adding lots of mods, or simply get another package that is easier to install and has them allready.
Believe it or not, but I take that as a compliment :)
6,393 2004-02-16 15:23
Re: Cookie parameter Httponly, does it work outside MSIE? (17 replies, posted in Programming)
I had no idea there was such a value. It seems like a very simple solution to a big problem.
I can try it in Firefox and Opera if you like. Do you have a test URL?
6,394 2004-02-16 12:22
Re: users online (7 replies, posted in Feature requests)
Sure. I'll help you out when I come home from the univ. tonight.
6,395 2004-02-16 12:20
Re: Cookie parameter Httponly, does it work outside MSIE? (17 replies, posted in Programming)
I have no idea what it is. Perhaps you can enlighten me?
6,396 2004-02-16 12:18
Re: show post on mainsite (12 replies, posted in PunBB 1.2 discussion)
Hmm, ok. Do you want censoring on the front page? If you do, I can probably fix that error.
6,397 2004-02-16 02:07
Re: Ranking by accept Answer (6 replies, posted in Feature requests)
I'm not sure I understand what you mean. Do you mean that you as an administrator or moderator want to be able to "accept" all posts before they are displayed? In that case, such a feature has been suggested before and will most likely make it into PunBB 1.2.
6,398 2004-02-15 21:00
Re: show post on mainsite (12 replies, posted in PunBB 1.2 discussion)
I'm sorry, it's me again :) Try this:
$pun_config['o_censoring'] = '1';
$pun_config['o_make_links'] = '1';
$pun_config['o_smilies'] = '1';
$pun_config['p_message_bbcode'] = '1';
$pun_config['p_message_img_tag'] = '1';
Then, run parse_message().
6,399 2004-02-15 20:58
Re: Extended Forum Access Mod 1.1 by Cactuz (33 replies, posted in PunBB 1.2 modifications, plugins and integrations)
I mean it's an fast and ugly solution to a big problem.
6,400 2004-02-15 18:07
Re: PunBB 1.1.2 - Impressions (18 replies, posted in PunBB 1.2 discussion)
You are correct. I'll fix it right away.
Edit: Fixed.
Also, I'm glad you like the diffs. If you are going to go through it manually, I believe it's even easier with the hdiff output: http://punbb.org/download/hdiff/hdiff-1.1.1-1.1.2.html