7,251

(11 replies, posted in Programming)

I'm not sure I'm following you. Does the colon (hehehe) just disappear?

7,252

(17 replies, posted in General discussion)

Sure. Please don't copy it exactly though.

I know the feeling. I'm also completely swamped with work right now. It will slow down next week though. I WILL work on 1.1 then. I don't care what comes up. I really need to get my shit together and get some work done :/

7,254

(5 replies, posted in PunBB 1.2 discussion)

And once again, the net just died here. I sure hope they have fixed it this time. Sorry for any inconvenience this has caused.

7,255

(5 replies, posted in PunBB 1.2 discussion)

Nice :)

7,256

(5 replies, posted in PunBB 1.2 discussion)

Once again my ISP had problems. The result was that punbb.org was down for a little over a day. I was also given a new IP address, so I had to update the DNS servers. If you're reading this, it appears to have worked :)

chacmool: Sorry I disappeared on IRC.

Are you running addslashes() on the serialized string before you insert it into the database?

Well, if you replicate the login form from login.php exactly, it shouldn't matter from where the form is sent. Make sure you include the hidden form element form_sent.

7,259

(16 replies, posted in Archive)

Det fick du för att jag var alldeles för trött när jag skrev koden. Prova det här istället:

<?php

include("data.php");
$conn = mysql_connect($dbhost, $dbuser, $dbpass);
mysql_select_db($databas, $conn);

$result = mysql_query("select * from nyhet_members") or exit(mysql_error());
while ($r = mysql_fetch_assoc($result))
    print $r['email'].'<br>';

?>

7,260

(16 replies, posted in Archive)

Nu vet jag inte hur databasstrukturen ser ut, men prova det här:

<?php

include("data.php");
$conn = mysql_connect($dbhost, $dbuser, $dbpass);
mysql_select_db($databas, $conn);

$result = mysql_query("select * from nyhet_members") or exit(mysql_error());
while ($r = mysql_fetch_array($find))
    print $r['email'].'<br>';

?>

7,261

(11 replies, posted in PunBB 1.2 troubleshooting)

ArneVR wrote:

I noticed an error in the text that needs to be pasted in config.php. The text does not end with "?>". I included it myself directly and had no problems.

Maybe that helps ?

Arne

The ?> at the end of PHP files is optional.

7,262

(16 replies, posted in Archive)

Det där är däremot pga ett fel i skriptet.

På rad 16 i admin.php börjar en print-sats som sträcker sig till rad 21. Denna print-sats körs alltid. Sedan några rader längre ner (rad 30) så försöker skriptet vidarebefodra användaren med en header()-sats. Det går inte om man redan har gjort output. Du kan iofs ignorerar felet då mailen ändå skickas.

7,263

(16 replies, posted in Archive)

Se till att du inte har några mellanslag eller radbrytningar efter ?>

7,264

(16 replies, posted in Archive)

Jag måste få se data.php också. Det är något på rad 13 som ställer till det. Den gör lite output där och därför fungerar inte anropen till header().

7,265

(16 replies, posted in Archive)

Du kan väl börja med att säga vad det är som inte funkar och om du får några eventuellt felmeddelanden.

Very nice! I like it.

Thanks :)

Excellent! The index and download page are updated.

7,269

(0 replies, posted in News)

Yesterday it was danish and today it's Icelandic. Thanks goes out to Sverrir Gunnlaugsson for this one. Download the lang pack from the download page.

PunBB now has support for 9 different languages. Yay!

If you are uncertain about what to put in the stopwords list, do this:

1. Try to obtain a list of the most common icelandic words (google is your friend here).
2. Go through the first 100 words or so and pick out words that don't help searching. Stopwords are words that help us humans communicate but doesn't nessecarily "mean" anything. The english word "the" is a classic example. You shouldn't include words that are shorter than three characters long. They are ignored by the search engine anyway.
3. Add the following words to the end of the list (in english):

the
and
you
that
was
for
are
with
his
they
have
this

Perhaps you know all this already, but I just felt like giving you a heads up :)

Edit: I thought of something else. If you already have a forum with posts in icelanding, you can run an SQL query to determine what the most common words in your forum are. There query looks like this:

SELECT sw.word, COUNT(sm.post_id) AS hits FROM search_words AS sw INNER JOIN search_matches AS sm ON sw.id = sm.word_id GROUP BY sw.id ORDER BY hits DESC LIMIT 50

The query will display the 50 most common words currently in the search index.

If you use a table prefix, you have to include it in the table names search_words and search_matches.

Excellent! I've added your lang pack to the download page. If you want the credits to say anything else than just TN, you can e-mail me.

Mange tak!

7,272

(0 replies, posted in News)

A gentleman by the name of Thomas just released a danish language pack for PunBB. As usual, you can find the lang pack on the download page. Thanks a bunch!

7,273

(11 replies, posted in PunBB 1.2 troubleshooting)

Well, I don't know what to say. PHP says you have a backslash in /home/detrends/public_html/forum/txapib/config.php on line 2. If you don't, I have no idea what's wrong.

7,274

(11 replies, posted in PunBB 1.2 troubleshooting)

You don't have a \  in your password or something like that? What version of PHP are you using?

7,275

(3 replies, posted in PunBB 1.2 troubleshooting)

There is such a command in MySQL. Check out mysqladmin.