1

(71 replies, posted in News)

Hmm, then I must have opened one before, as I get an error without it...
I'll check my code.

edit: found it; I had:
if ($register_globals === "" || $register_globals === "0" || strtolower($register_globals === "off"))

now I have:
if ($register_globals === "" || $register_globals === "0" || strtolower($register_globals) === "off")

as it should be. Sorry!

2

(71 replies, posted in News)

Hello All, developers,

I think there is still an oversight in the code for 1.2.16:
in include/functions.php, look for line:

    if ($register_globals === "" || $register_globals === "0" || strtolower($register_globals) === "off")

I think you will find that should be:

    if ($register_globals === "" || $register_globals === "0" || strtolower($register_globals) === "off"))


Hendrik-Jan

Found the solution!

Apparently you have to outcomment everything related to autodetection of code table settings in common.php in you language dir.
SO make sure only your set code definition is used.

I just converted a database and pun forum to utf-8, however this results in some issues:
For some reason I get the following error when posting a message that contains a sign with an accent (like: ü, é, à etc..):

File: /inet/coupe-fiat.nl/forum/include/search_idx.php
Line: 134

PunBB reported: Unable to fetch search index words

Database reported: ERROR: invalid byte sequence for encoding "UNICODE": 0xe4870a

However if I post ONLY the sign, it works to. So a sign like above in a text results in this error.
What's going on here?

Some data: the database and forum used to be ISO 8859-1.
I dumped the db, made a new db, and wrote the data that was converted to utf-8 back to the db

It's not you, I stumbled upon the same issue.
I fixed it in a slightly modded version of the PM plugin you can find here: http://hjh.passys.nl (in the punbb folder).

Actually the main reason for this modded version was that I needed postgresql support; this fix was just a side issue.

Hendrik-Jan

Isn't there a RPM package of Bind9 available for Red Hat/CentOS? -> then you don't have to build.
I'm guessing here that you don't have some files, probably configuration files, that are needed for rndc.

7

(114 replies, posted in Programming)

Bluefish http://bluefish.openoffice.nl/index.html
It runs on everything but Windows. (I'm running it on Linux, Debian Sid / Kanotix)

You should look in the include dir. for "parser.php"
There you'll find the link for bbcode to html and there you can add the target="_blank"

Caleb,

first of all: thank you for this mod!!!
I had some issues installing it at first, but I modded your mod a bit, and now it works just fine.

The biggest issues I had, were related to the database. The way you made install_mod.php, the mod wouldn't install on a postgresql DB.
I modified the DB entries in the file and both postgres and sqlite should also work fine now.

I also translated the mod to Dutch (the file is included).
All changes are available at: http://145.98.209.235/deel/
The file is called: Easy-poll-1.1.3a.tar.gz

Well,
as CentOS is just a repackaging of Red Hat (for licensing reasons I think), if you do run into trouble, they're the same as you would have had with RH itself. wink

Checkout CentOS.
http://www.centos.org/

It's 100% Red Hat compatible, but free.
Updates are available for it as soon as for Red Hat.
The thing it misses is official RH support.

Hello Fred,

There were some differences in the include/common.php file. (which I find strange anyway, as we updated the forum through the diff everytime there was a new version).
The one that stood out was the error reporting: We had it on "report all", including notices. (I guess that's why I got these messages)
I changed it to the way it is in the new version. I guess that should fix my "issues".

Thank you for your help!

Hendrik-Jan

Hello Fred,

The images are in the img folder. I copied the movepost image folder there. I do see the arrows in the movepost screen. So the images are there, and punbb can find them.

I am using punbb 1.2.11 (I think we started at 1.2.8, not quite sure).
Where can I find that error_reporting bit?

I added the line to movepost.php

now I get:

Notice: Undefined variable: all_id in /inet/coupe-fiat.nl/forum/movepost.php on line 122

Notice: Undefined variable: del_old_topic in /inet/coupe-fiat.nl/forum/movepost.php on line 132

Notice: Undefined variable: all_id in /inet/coupe-fiat.nl/forum/movepost.php on line 132

Is this only an (unimportant) warning?

Hendrik-Jan

Fred,

the message is passing in less than a second...
So it's difficult to catch. Here's one line I got:
Notice: Undefined variable: new_forum in /inet/coupe-fiat.nl/forum/movepost.php on line 136

I also got some stuff from the logs, but I guess that doesn't really help:

[Sun Mar 05 19:53:14 2006] [error] [client 145.98.209.235] File does not exist: /inet/coupe-f
iat.nl/forum/img/movepost, referer: http://forum.coupe-fiat.nl/movepost.php?id=1661
[Sun Mar 05 19:53:15 2006] [error] [client 145.98.209.235] File does not exist: /inet/coupe-f
iat.nl/forum/img/movepost, referer: http://forum.coupe-fiat.nl/movepost.php?id=1661
[Sun Mar 05 19:53:19 2006] [error] [client 145.98.209.235] File does not exist: /inet/coupe-f
iat.nl/forum/img/movepost, referer: http://forum.coupe-fiat.nl/movepost.php?id=1661&new_fid=1
6
[Sun Mar 05 19:53:19 2006] [error] [client 145.98.209.235] File does not exist: /inet/coupe-f
iat.nl/forum/img/movepost, referer: http://forum.coupe-fiat.nl/movepost.php?id=1661&new_fid=1
6

I made a new topic, in another then the old forum.
Then I opened a topic, and selected "move" on a post.
I moved this post to the fresh topic, pressed submit, and then I got the message. After that, redirecting worked, and all resumed as normal. So I guess this is just a small glitch, but maybe something you want to look at.
I didn't see this happening on your forum. Maybe you have some more changes in there that aren't in the mod?

fpouget,

It seems to work fine now, however...
I see an error message flashing by after pressing "submit" about an "undefined variable" in movepost.php
Do you have any idea what this is?

Ok,

I'll look at the extra's. Like your translation changes. Let's keep it this way.

elbekko wrote:

Let's see if I can get some more errors out tongue

// Language definitions used in the mod "Move Post" 1.1



$lang_movepost = array(



'Mod move post'            =>    '[Move Post 1.1] - Verplaats een bericht',

'Intro'                    =>    'Met deze mod kunt u een of meer berichten verplaatsen naar een ander forum. U kunt ook een nieuw onderwerp starten en daar de berichten naar toe verplaatsen.',



'Introduction'                =>    'Uitleg',

'Create topic'                =>    'Maak een nieuw onderwerp aan',

'Move post'                =>    'Kies het doelonderwerp',

'Original topic'            =>    'Origineel onderwerp:',

'Original forum'            =>    'Origineel forum:',

'Select forum'                =>    'Kies het uiteindelijke nieuwe forum',

'Move all posts'            =>    'Verplaats alle berichten uit dit onderwerp',



'Explain move all posts'        =>    'Het originele onderwerp wordt weggehaald.',

'Explain create topic'        =>    'Om een nieuw onderwerp te maken, geef hier een nieuw onderwerp op.',

'Explain move post'            =>    'Selecteer het doel-onderwerp.',



'Select'                    =>    'Kies',

'Last'                    =>    'Laatste',

'Poster'                    =>    'Geplaatst door',



'Bad topic'                =>    'Verkeerd onderwerp',

'Bad new topic'            =>    'De onderwerpregel mag niet leeg zijn',



'Mark move redirect'        =>    'Het bericht is verplaatst naar het gekozen onderwerp. Redirecting …'



);

Should do it. I commented out a line and replaced it, because it wasn't too correct...

That's it, including the last changes.

Right so only that line.
I do agree with you on that it might be a "more logical" sentence, but it's not correct.
The "original" English text was:

'Move post'                =>    'Choose the reception topic',

So I still think my translation is more correct, as it doesn't mean "move the message", but "select the topic to move the selected topic/message to".

fpouget wrote:

I got the error out. (see the last post; I edited it)

Means  ok  ????

To me it is, but let's wait for elbekko, maybe he's found something that I missed...

fpouget,

In your demo, moving a topic to another forum also doesn't work.
I tried to move a topic from forum 5 to forum 4, but nothing happened.

21

(39 replies, posted in General discussion)

Debian Stable ;-)

Right,

I got the error out. (see the last post; I edited it)
Elbekko, did I miss something, or is it ok now?

I've ran in to a couple of things with your mod:

The "move to a different topic" function seems to work. But the "move topic to a different forum" doesn't. Or maybe it does.. but not the way it should! I tried to move a topic, pressed "submit" and seemingly nothing happened. But somehow it did copy another topic form another forum to that location! When I tried to undo this by moving it back I got this error:
"Notice: Undefined index: new_fid in /inet/coupe-fiat.nl/forum/movepost.php on line 49"

Also: you hardcoded "Retour" as "Back" in movepost.php
Maybe this should be in the language file?


And finally, here's the dutch translation:

<?php



// Language definitions used in the mod "Move Post" 1.1



$lang_movepost = array(



'Mod move post'            =>    '[Move Post 1.1] - Verplaats een bericht',

'Intro'                    =>    'Met deze mod kunt u een of meer bericht verplaatsen naar een ander forum. U kunt ook een nieuw onderwerp starten en daar de berichten naar toe verplaatsen.',



'Introduction'                =>    'Uitleg',

'Create topic'                =>    'Maak een nieuw onderwerp aan',

'Move post'                =>    'Kies het onderwerp om naar te verplaatsen',



'Original topic'            =>    'Originele onderwerp:',

'Original forum'            =>    'Originele forum:',

'Move all posts'            =>    'Verplaats alle berichten uit dit onderwerp',



'Explain move all posts'        =>    'Het originele onderwerp wordt weggehaald.',

'Explain create topic'        =>    'Om een nieuw onderwerp te maken, selecteert u de knop en geeft u een onderwerp op.',

'Explain move post'            =>    'Kies nu een ander forum en selecteer het doel-onderwerp.',



'Select'                    =>    'Kies',

'Last'                    =>    'Laatste',

'Poster'                    =>    'Geplaatst door',



'Bad topic'                =>    'Verkeerde keuze',

'Bad new topic'            =>    'De onderwerpregel mag niet leeg zijn',



'Mark move redirect'        =>    'Het bericht is verplaatst naar het gekozen onderwerp. Redirecting …'



);

I like it!
one request: with your mod you can move a post, but can you also add a function to make the post the start of a new thread?

go to your punbb folder, and look at the file "config.php"
it the first part there is:

$db_type = 'pgsql';
$db_host = '127.0.0.1';
$db_name = 'punbb';
$db_username = 'somename';
$db_password = 'somepassword';
$db_prefix = '';
$p_connect = false;

...

You probably have some different settings.
What is important here is de dbname, dbprefix and username and password.
Are these the same as the name and prefix of the database? and are the username and password correct?