1

(137 replies, posted in News)

Really nice! Great work! smile

I found a little bug in message_list.php
I think line 45:

$name .= '</b> ( <a href="?box='.(int)(!$_GET['box']).'">'.$lang_pms['Box'.(int)$_GET['box']].'</a> )<b>';

should be moved after the next line (47):

$page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / '.$lang_pms['Private Messages'].' - '.$name;

They should be switched that is. Else the page title will contain the "a href blabla...."

3

(22 replies, posted in General discussion)

first hit for Henke...haha! big_smile
http://www.f.kth.se/~f94-hjo/pics/thailand2003/nya/fodelsedag-henke/Birthday-Henke.JPG

4

(30 replies, posted in PunBB 1.2 discussion)

Upgraded from 1.0 beta 3 to 1.1.5 (six steps) yesterday and it all went smooth. smile
Thanks for a great forum Rickard!

Hey, sorry for taking up your time earlier. I just rebuilt the search index and now it works.
Problem solved. roll smile

But what's strange is that the fact that setlocale can't set the locale doesn't matter for swedish åäö-searches in PunBB?

I also found a way to get the change of locale to actually work:

<?php
$locale = 'sv_SE.ISO_8859-1';
echo 'Before: '.setlocale(LC_CTYPE, '').'<br />';
putenv('LC_CTYPE='.$locale); // works for me in FreeBSD
  //echo 'New Loc: '.setlocale(LC_CTYPE, $locale).'<br />'; // not working for me
echo 'After: '.setlocale(LC_CTYPE, '');
?>

But this isn't necessary for PunBB as I said.


EDIT: I can't remember having changed language which would require rebuilding the index and whats strange is that posts after ~July 10th containing åäö was found even before rebuilding the index.

yeah I understand, this is clearly not a PunBB-bug. It has something to do with FreeBSD and PHP as a combination I think.

Before: C
After: sv_SE.ISO8859-1

As I said, setlocale( LC_CTYPE, 'sv_SE.ISO8859-1' ) looks ok. But if I check again after that with setlocale(LC_CTYPE, '') it is C like before.

Thanks for helping out Rickard...

yes

[henke@flinta:~] $ ls /usr/share/locale/sv_SE.ISO8859-1
LC_COLLATE      LC_MESSAGES     LC_NUMERIC
LC_CTYPE        LC_MONETARY     LC_TIME

I do have the swedish locale installed. I'm running FreeBSD and the locales are in /usr/share/locale.

I assumed it worked since it returned the locale and not false when setting the locale.

The output from dump () is C
yes C.

no more ideas regarding my problem? As I said setlocale seems to be working but åäö-searches still doesn't work.

I meant the latest swe lang pack.

yes, I will

EDIT: digged a little bit myself and found that

setlocale( LC_CTYPE, 'sv_SE' );

didn't return anything but

setlocale( LC_CTYPE, 'sv_SE.ISO_8859-1' );

returns the correct locale, but search isn't working anyway.

EDIT2: Now I see you've already thought of that in the new langpack Rickard.

yes i'm using the swedish language pack. I guess I can't do anything about it then because it's not my server. sad

I found out on my forum first and I thought it was a bug in the old version I'm running. So I tried here but with the same result.

So it doesn't have anything to do with PunBB? How can I fix it?

I never seem to get any matches when searching for words with åäö in it.

17

(2 replies, posted in Archive)

ok, tack!

18

(2 replies, posted in Archive)

Vad kan ha hänt, jag hade helt plötsligt i morse en användare som hette Guest med email "Guest" registrerad 1970.
Kan det bero på nåt jag har gjort för jag håller på att modda ganska friskt?

19

(1 replies, posted in Archive)

När jag skriver t.ex <center>Välkommen till blabla</center> i Forum title så syns det också i titelraden på webbläsaren. Gör jag nåt fel?

20

(3 replies, posted in PunBB 1.2 show off)

Jag var lite flummig och ändrade i koden i include/common.php men upptäckte precis att i både "Forum title" och "Forum description" kan man ju använda HTML.
Så det är väl bara att skriva t.ex <img src="img/logo.jpg" alt="blablaforum"> i någon av de två rutorna.

21

(3 replies, posted in PunBB 1.2 show off)

http://camaroforum.mine.nu

22

(3 replies, posted in Archive)

Hittade ett i "se_topic.php" också. "Moderarat".

23

(3 replies, posted in Archive)

"...value for minumun posts..."

24

(0 replies, posted in PunBB 1.2 show off)

http://**dead**

Har gjort några teman som kan laddas hem här:
http://**dead**

25

(28 replies, posted in Archive)

Timpa wrote:

jag har köpt UPS idag smile får den på torsdag... datorn dör hela tiden av avbrott här... o nu är det åska igen snart... sad BLÄ

får man fråga vad en sån kostar? smile