6,901

(4 replies, posted in PunBB 1.2 bug reports)

I think you mean PunBB
tbh, that issue is caused by a POST variable that shouldn't be missing being missing, especially if you didn't change it.

6,902

(2 replies, posted in PunBB 1.2 bug reports)

Indeed, Rickard corrected it for 1.2.6 I believe

6,903

(4 replies, posted in PunBB 1.2 discussion)

I'm glad someone other then me noticed it tongue

6,904

(6 replies, posted in Feature requests)

I was looking at this

    // Check if the cache directory is writable
    if (!@is_writable('./cache/'))
        $alerts .= '<p style="font-size: 1.1em"><span style="color: #C03000"><strong>The cache directory is currently not writable!</strong></span> In order for PunBB to function properly, the directory named <em>cache</em> must be writable by PHP. Use chmod to set the appropriate directory permissions. If in doubt, chmod to 0777.</p>';

    // Check if default avatar directory is writable
    if (!@is_writable('./img/avatars/'))
        $alerts .= '<p style="font-size: 1.1em"><span style="color: #C03000"><strong>The avatar directory is currently not writable!</strong></span> If you want users to be able to upload their own avatar images you must see to it that the directory named <em>img/avatars</em> is writable by PHP. You can later choose to save avatar images in a different directory (see Admin/Options). Use chmod to set the appropriate directory permissions. If in doubt, chmod to 0777.</p>';

I'm not sure if it makes sense, but I think the code should look more like this (replace 0777 with the appropriate number, I haven't used chmod before wink )

    // Lets try using chmod, just in case
    @chmod('./cache/', 0777);
    @chmod('./img/avatars/', 0777);
    
    // Check if the cache directory is writable
    if (!@is_writable('./cache/'))
        $alerts .= '<p style="font-size: 1.1em"><span style="color: #C03000"><strong>The cache directory is currently not writable!</strong></span> In order for PunBB to function properly, the directory named <em>cache</em> must be writable by PHP. Use chmod to set the appropriate directory permissions. If in doubt, chmod to 0777.</p>';

    // Check if default avatar directory is writable
    if (!@is_writable('./img/avatars/'))
        $alerts .= '<p style="font-size: 1.1em"><span style="color: #C03000"><strong>The avatar directory is currently not writable!</strong></span> If you want users to be able to upload their own avatar images you must see to it that the directory named <em>img/avatars</em> is writable by PHP. You can later choose to save avatar images in a different directory (see Admin/Options). Use chmod to set the appropriate directory permissions. If in doubt, chmod to 0777.</p>';

6,905

(4 replies, posted in PunBB 1.2 bug reports)

That's not creating a new group, that's editing a group (the mode in POST isn't add). However, the issue with the id does need to be addressed

6,906

(16 replies, posted in PunBB 1.2 discussion)

Oh, just FYI: I'm going to be leaving for about 12 days starting tomorrow, and I won't have Internet access. So, if it doesn't work, feel free to do it the old fashioned way wink

6,907

(16 replies, posted in PunBB 1.2 discussion)

Alright, cool smile
The script should work fine, but it might take a while to work

6,908

(16 replies, posted in PunBB 1.2 discussion)

Alright, do you have the file? Does it work alright? It IS a lot of queries to run (mmm, maybe I should put in a short stop after each version) smile

6,909

(16 replies, posted in PunBB 1.2 discussion)

I sent you an email via the form: respond and I'll send you the file smile

6,910

(16 replies, posted in PunBB 1.2 discussion)

You download 1.1, then 1.2, then 1.2.5 (they won't seem to be there, but keep looking, they're there, just sorted differently then you would expect)

I just made a script that does all the updating steps if you want to test it (if you do, make sure to have a backup copy of your database: this could have issues)

6,911

(16 replies, posted in PunBB 1.2 discussion)

I actually just realized I gave you an extra step, silly me wink

6,912

(16 replies, posted in PunBB 1.2 discussion)

Most likely not
However, you should do it in steps.
First, download PunBB 1.1, replace all the files, take 10_to_11_update.php out of the scripts folder and put it in the forum root. Then, run the file. Delete it after.
After that, download PunBB 1.2, replace all the files, take 11_to_12_update.php out of the extras folder and put it in the forum root. Run it, delete it after.
Finally, download PunBB 1.2.5, replace all the files, take 12_to_125_update.php out of the extras folder and put it in the forum root. Run it, delete it after

Repetitive, I know. And, in fact, this gives me a VERY good idea

6,913

(4 replies, posted in PunBB 1.2 troubleshooting)

Well, how do you want it to be remembered? I mean, I suppose you could append something like language=en to every URL, but that would take a LOT more work

Odd, that looks fine
in include/common.php find

@include PUN_ROOT.'config.php';

remove the @ and tell me what you get when trying to view the forum

6,915

(5 replies, posted in PunBB 1.2 discussion)

Ah, I see
replace $fid there with $cur_posting['id']

6,916

(5 replies, posted in PunBB 1.2 discussion)

FIND

        // If the posting user is logged in, increment his/her post count
        if (!$pun_user['is_guest'])
        {
            $low_prio = ($db_type == 'mysql') ? 'LOW_PRIORITY ' : '';
            $db->query('UPDATE '.$low_prio.$db->prefix.'users SET num_posts=num_posts+1, last_post='.$now.' WHERE id='.$pun_user['id']) or error('Unable to update user', __FILE__, __LINE__, $db->error());
        }

REPLACE WITH

        // If the posting user is logged in, increment his/her post count
        if (!$pun_user['is_guest'] && $fid != '5')
        {
            $low_prio = ($db_type == 'mysql') ? 'LOW_PRIORITY ' : '';
            $db->query('UPDATE '.$low_prio.$db->prefix.'users SET num_posts=num_posts+1, last_post='.$now.' WHERE id='.$pun_user['id']) or error('Unable to update user', __FILE__, __LINE__, $db->error());
        }

6,917

(4 replies, posted in PunBB 1.2 troubleshooting)

You'd have to mod language select for guests to take the value from a cookie, and then make a page that lets them pick the language

6,918

(67 replies, posted in News)

Just the upload folder, and yes, upload the update/upgrade file to the main folder

Well, I would make sure the posts table was fully copied

There's a sticky in this forum that deals with this issue wink

6,921

(67 replies, posted in News)

I would think so, I know of a bunch of outstanding "issues" that while they aren't on the level of giving anyone admin access they do give moderators a bit too much power (along with a whole lot of undefined index possibilities I was bored enough to find tongue )

6,922

(67 replies, posted in News)

Use the same instructions I gave to Cailean

trance: the database field can't hold that much, you need to change it as well
Although I don't know what's causing your error now

It's in post.php, and you have to change the database column so it can contain more text

6,925

(67 replies, posted in News)

OK, here's what you should do (note that if you have any mods they'll be lost, although I'm sure some can be brought back, since we're not deleting the database)
Download PunBB 1.2 and copy over all your files with those
Get the 11_to_12_update.php script and run it
Download PunBB 1.2.5, overwrite the files, and run the update script in the extras folder there