1

(3 replies, posted in PunBB 1.2 troubleshooting)

The placeholder thing's fine, I haven't put anything in the rest of the subdomain.

2

(3 replies, posted in PunBB 1.2 troubleshooting)

I'm having a very weird error.  I haven't done anything to my forums for a couple weeks, but suddenly my index.php won't display.  IE says it can't find the server, and the page is blank in Firefox.  Every other page works fine (viewforum.php, etc).  Anyone have any idea what's going on?  I'm running 1.2.9, btw.

http://a-d.toastedgamers.com/index.php
http://a-d.toastedgamers.com/viewtopic.php

If I can ever get the WiFi on my PSP to work, I'll post a picture.

4

(1,382 replies, posted in General discussion)

mc hammer

5

(1 replies, posted in General discussion)

Try setting the MIME type for .gz files to "application/force-download".

Where was the blank page?  Did you try going to http://www.yoursite.com/PUNBB INSTALL DIRECTORY/index.php?

I haven't upgraded to 2.1.10 yet, but I don't see anything that was changed that would break it.  I'll add a checkbox in the options window for the default when I get home.

The download was the last link.  I made it a little more obvious.

I don't think it would be that hard.  You could just add one whenever the script classifies a guest or member online.

Thanks, that fixed it.

Doh!  I just realized that it should have been $tid.  Wow, I'm dumb.  This works too, though.

Down near the bottom of the page, just under Page: 1.

I have one forum where I don't want a user's num_posts to go up when they post there.  I changed line 322-ish from

                $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());

to

            if ($fid != 7)
                $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());

The id of the forum I want is 7, but the post count is still increasing.  Where did I mess up?

Sorry, I was sort of unclear.  As you can see from the two images, this mod lets you specify per post weather you want to show your sig.

One of my members requested it, so people won't see his flash signature image over and over.

##
##
##        Mod title:  Optional Sigs 
##
##      Mod version:  1.0 
##   Works on PunBB:  1.2.9 
##     Release date:  2005-10-20 
##           Author:  sfackler 
##
##      Description:  This mod lets you say if you want your sig to be displayed after your post. 
##
##       Affects DB:  Yes 
##
##   Affected files:  post.php 
##                    edit.php 
##                    viewtopic.php 
##                    lang/English/post.php 
##
##            Notes:   
##
##     Generated By:  Auto Read-Me(by Caleb Champlin) - http://www.rscheatnet.com/Auto_Readme.zip
##
##       DISCLAIMER:  Please note that 'mods' are not officially supported by
##                    PunBB. Installation of this modification is done at your
##                    own risk. Backup your forum database and any and all
##                    applicable files before proceeding.
##

Just like it says, it adds a checkbox in the options menu, letting you specify if you want to show your signature.  It should work in punbb versions other than 1.2.9, I just haven't checked them out.  If the install script says it's the wrong version, just change the versions allowed in the php.  If you've installed it on a version other than 1.2.9, please tell me, so I can add it to the install script.  Thanks!

Examples:

http://punres.org/files/projects/pr_131 … ig%201.jpg
http://punres.org/files/projects/pr_131 … ig%202.jpg

Download:
http://punres.org/files.php?pid=131

Sorry I've been gone so long.  It's working for me with no db prefix.  I'll check it out with a prefix now.

EDIT:  Okay, it turns out the version I uploaded here was really 1.2.  The fixed version is in the link in the first post, and I'll email Rickard with the new version.

Fixed!

I forgot to put the db prefix in the query to make the forum list.

Are you using database prefixes?  It works fine for me, but I don't have prefixes.

Ok, I was missing some prefixes.  I've updated the file, but if you already have it:

Replace line 48 with:

    $result = $db->query("SELECT * FROM ".$db->prefix."forums WHERE id=".$forum1);

Replace line 52 with:

    $result = $db->query("SELECT * FROM ".$db->prefix."forums WHERE id=".$forum2);

Thanks, that'll make it easier.  I'll re-upload the plugin in a little.

Thanks for putting it on the front page!  I'm trying to get it to update the newest post thing on the index, but it's not working.  Here is the code I added:

    //Update the newest post in the new forum, if need be.    
    $result = $db->query("SELECT last_post FROM forums WHERE id=".$_POST['forum1']);
    $old_post = $db->result($result);
    
    $result = $db->query("SELECT last_post FROM forums WHERE id=".$_POST['forum2']);
    $new_post = $db->result($result);
    
    if ($old_post > $new_post)
    {
        $result = $db->query("SELECT last_post_id FROM forums WHERE id=".$_POST['forum1']);
        $last_post_id = $db->result($result);
        
        $result = $db->query("SELECT last_poster FROM forums WHERE id=".$_POST['forum1']);
        $last_poster = $db->result($result);
        
        $db->query("UPDATE forums SET last_post_id=".$last_post_id.", last_poster=".$last_poster.", last_post=".$old_post." WHERE id=".$_POST['forum2']);
    }

This plugin lets you move all the posts from one forum to another, and then deletes the old one.  Right now, you have to put in the forum ID, but later I might put a dropdown menu.

http://www.toastedgamers.com/AP_Merge_Forums.zip

UPDATE 1:  I found out about update_forums(), so it's a lot more efficiant.  Rickard, please put the updated version out.

UPDATE 2:  This will probably be the last big update, just bug fixing after this.  I've changed it so you select the forum from a drop down menu now.

UPDATE 3:  Fixed a bug with forums using table prefixes.

Ok, I've got the plugin finished.  I've emailed it to Rickard to put on the download page.

http://www.toastedgamers.com/AP_Merge_Forums.zip

Does anyone know if the info is stored anywhere else besides the forum_id in tables?  I'm working on a plugin for it.

Will this work in 1.2.4?