AddDefaultCharset utf-8
Already tried. Doesn't work. But my apache seems ignoring mod_rewrite rules, so maybe it ignores AddDefaultCharset too. I'm going soon to have a deep look.
You are not logged in. Please login or register.
PunBB Forums → Posts by paolo
AddDefaultCharset utf-8
Already tried. Doesn't work. But my apache seems ignoring mod_rewrite rules, so maybe it ignores AddDefaultCharset too. I'm going soon to have a deep look.
Let's add, and sorry for posting too much, that if I see the HTML of the page, I can see
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
but if I ask to Firefox (doing right-click, View Page Info), it tells me iso-8859-1. Hard refreshing and deleting the cache doesn't help.
T.y.,
P
Exactly.
I've set
'lang_encoding' => 'utf-8'
and tried
'lang_multibyte' => false
and also
'lang_multibyte' => true
but nothing happen: the punbb_posts' message get always trunkated.
When I look at the query in the post page before the redirect (stopping the browser, having the debug mode activated), the query seems ok.
As I stated above, if I change the collation to latin1_general_ci, I can read the message except for the accented chars.
Thankyou for the quick support
P.
(MySQL 4.1.14, PHP: 4.4.0)
paulo: Read my post above starting with "Problem solved".
Sorry if I can't understand on what to do because, as I stated, I don't have on my phpMyAdmin the BINARY attribute but only UNSIGNED & Co.-.
Maybe you've ment to change the field type (as opposed to "attribute") from VARCHAR to BINARY? (Doing so seems I've got no error)
Ty,
P.
I've set nothing.
I've given db's login&pass in the install process to punBB but posting accented letters doesn't work. Seems a bug.
Btw, where I've to set utf-8 for my forum? Can't find the place in the Admin interface. In the lang/X/common.php?
Thank you,
P.
Fresh install.
database default (MySQL 4.1) has Collation = utf8_general_ci
when I post a message with an accented char (àèìòù, ecc.) the message get trunkated from that letter included.
If I change collation to "latin1_general_ci" the message don't get trunkated but the accented letters become question marks (?).
Any idea?
Ty,
Gabrielli Paolo
I've just done a fresh install and I've got this problem with MySQL 4.1 and italian chars.
I can't understand if I've to change the field type. From VARCHAR to VARBINARY?
If I have to, I think this is a bug or an installation note not written anywhere
chali, Rickard, what is the BINARY attribute? Here the only attribute I can find are UNSIGNED, UNSIGNED ZEROFILL and ON UPDATE CURRENT_TIMESTAMP.
P.
Hi guys,
it's the 3rd time I integrate punBB with other scripts and it's the 3rd time I've to modify login.php&co. to use md5. It's not so difficult, but I'd like also (as Adz) to choose what encryption my forum has to use.
But then there is the issue of having ppl modify that parameter on the fly and, for md5 to sha1 switch, PunBB works flawless...
Thank you,
Paolo Gabrielli
P.S.: what about a PayPal approved feat. donation? I would like to pay few bucks for a feat like that one!
i hope you mean SubVersion http://dev.punbb.org
ROTFL
What about giving to punBB the ability to authenticate against a remote punBB (and, later, against anything similar like LDAP)?
I think it could be a cool (and light) feat that can open a lot of ways.
Being more pratical I think there is a need of using an abstract authenticate($login, $password) function in the code.
First this function will have inside the same code that we can found now in login.php
Then this function could be overwritten by future mods to incorporate other auth methods (like the remote one or LDAP).
Paolo
P.S.: Where is the CVS or the SubSeven?
Have you visited recently SF?
http://www.securityfocus.com/bid/11829
then just take those letters out of rickards generator....
Yes, that was my idea.
Having no time I've just copied it all
// generator, so as not to cause confusion when writing them down.
Now actual 1.2 code
//
// Generate a random password of length $len
//
function random_pass($len)
{
$chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
$password = '';
for ($i = 0; $i < $len; ++$i)
$password .= substr($chars, (mt_rand() % strlen($chars)), 1);
return $password;
}
Maybe better:
function random_pass () {
$length ="8"; // the length of the password required
$possible = '23456789abcdefghijkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ';
$str ="";
while (strlen($str) < $length) {
$str.=substr($possible, (rand() % strlen($possible)),1);
}
return($str);
}
// Adapted from code by the following author:
//
// Author: mr.shifter@hosted.uklinux.net
// http://www.hosted.uklinux.net/php/freescripts/index.php
//
// All Rights Reserved Free to use don't abuse
// PLEASE NOTE:The numbers 0 and 1 (zero and one) and the letters
// l and o, ('el' and 'oh' in lowercase) and the letters I and O
// ('eye' and 'oh' in uppercase) have been removed from the random
// generator, so as not to cause confusion when writing them down.
Ah, ok, excuse me
I didn't find anything searching for "online" on the forum
P.
1. Only members can see the memberlist
...
It's the first modify that I put in my punBB
I like it, but would prefer it as a hack.
That's for sure 'cause Stats are not essential
I'm watching my punbb_online table via phpMyAdmin and in the ident field I can find Guest's IP address (user_id = 0) that are private (not routable) IPs like 192.168.*.*
Below is the phpBB 2.0.8 code to obtain the client's IP:
if( getenv('HTTP_X_FORWARDED_FOR') != '' )
{
$client_ip = ( !empty($HTTP_SERVER_VARS['REMOTE_ADDR']) ) ? $HTTP_SERVER_VARS['REMOTE_ADDR'] : ( ( !empty($HTTP_ENV_VARS['REMOTE_ADDR']) ) ? $HTTP_ENV_VARS['REMOTE_ADDR'] : $REMOTE_ADDR );
$entries = explode(',', getenv('HTTP_X_FORWARDED_FOR'));
reset($entries);
while (list(, $entry) = each($entries))
{
$entry = trim($entry);
if ( preg_match("/^([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)/", $entry, $ip_list) )
{
$private_ip = array('/^0\./', '/^127\.0\.0\.1/', '/^192\.168\..*/', '/^172\.((1[6-9])|(2[0-9])|(3[0-1]))\..*/', '/^10\..*/', '/^224\.
.*/', '/^240\..*/');
$found_ip = preg_replace($private_ip, $client_ip, $ip_list[1]);
if ($client_ip != $found_ip)
{
$client_ip = $found_ip;
break;
}
}
}
}
else
{
$client_ip = ( !empty($HTTP_SERVER_VARS['REMOTE_ADDR']) ) ? $HTTP_SERVER_VARS['REMOTE_ADDR'] : ( ( !empty($HTTP_ENV_VARS['REMOTE_ADDR']) ) ? $HTTP_EN
V_VARS['REMOTE_ADDR'] : $REMOTE_ADDR );
}
Having punBB making stats like those it's quite simple: it's just a matter of analyizing db's tables.
The only thing that can't be done without modifying punBB code is the "Online users" stat.
For that stat punBB must keep in the db the max number of users in the day (or another way like that).
(I think it's only a matter of modifying update_onlineuser() adding 2-3 querys)
P.
What about having the format_time() in /include/functions.php using a $pun_user['date_format']
instead of $pun_config['o_date_format'] variable.
Of course there must be an input text in the profile.php to have the user specify his own date-time format and also a new field in the punbb_users table.
Maybe in the Language Definitions the translator can put the preferred date and time representation for their language...
P.
Cool (As I think this would be a basic feature)
Maybe a user (and so also the Admin) in his profile can have a "Invisible mode" option.
Cheers,
P.
Maybe it should be a better viewing where to change page (if there is many)
now:
Pages: 1 2 3 4 ... 12Maybe look something like this
Pages: <<Back 1 2 3 4 ... 12 Next>>
That's what I was looking for!
I think that if I'm replying to a topic where I've already activated the "Subscribe to this topic" checkbox, that checkbox should remain selected the next time I wrote a reply
and/or
in the "Profile" I should have a "Subscribe to topic when you reply" option that makes the checkbox already selected and that subscribes me when I use the "Quick post".
I'm sorry if I write too much on this forum but I like this software too much
(and I always use the subscribe option in all the forums I use )
P.
I use FF all the time.
These are the stats from the 1st Sept 'till today for the last website I've developed:
# Contacts Browser
1 667409 MSIE6.0
2 57405 MSIE5.5
3 55224 Mozilla/5.0
PunBB Forums → Posts by paolo
Powered by PunBB, supported by Informer Technologies, Inc.