76

(54 replies, posted in PunBB 1.2 discussion)

I've got my game running on http://www.phpwebhosting.com. Best I have seen on the web.

Whoa awesome. Might I ask how you were able to do that?

78

(8 replies, posted in PunBB 1.2 show off)

Not bad, you should release it for the public though (instead of just showing it off).

Umm.. if you want to mass PM then just do a global notice/announcement on the forum. lol.

Well a friend of mine made me some image verification code a while back, I just never got around to implementing it into my game. The code is relatively small (11 lines). Only problem with it would be 1) possible server load like Rickard said and 2) determining the color of it with the default style of your forum.

I'd be willing to do this up though. It looks like some of you want it. Just let me know.

Thanks again Rickard. You rock. Trac rocks.

::head explodes::

Or if you want it that bad, make it yourself. Just use the same code as the subscription code. Wouldn't be very hard.

Hell, we don't even know the status of this mod for v1.2. I am getting pretty close to porting it over myself. If anybody wants me to do so, just say so.

Thanks! I hope I didn't leave out anything with it though.

Mako wrote:

Refer to this thread: http://punbb.org/forums/viewtopic.php?id=5851

I was getting the same erorr with smilies, you should check out the fix Rickard gave me and adapt it for that page.

...Or not, lol.

##
##
##        Mod title:  Style Creation and Tester
##
##      Mod version:  1.0
##   Works on PunBB:  1.2
##     Release date:  2005-01-15
##           Author:  Jon "Mako" Ursenbach (mako@medievalbattles.com)
##
##      Description:  Want to create/test a new style, but don't have PunBB installed?
##
##    Affected files:  None
##
##       Affects DB:  No
##
##            Notes:  Makes creating a new style, semi-easy. This is mainly
##            directed at people who do NOT have an instance of PunBB
##            running on a local/remote web server. Read the instructions,
##            they are self-explanatory.
##
##       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.
##
##

Download Here

Refer to this thread: http://punbb.org/forums/viewtopic.php?id=5851

I was getting the same erorr with smilies, you should check out the fix Rickard gave me and adapt it for that page.

Yeah I encountered that bug as well when running it on my forum (I had it only installed on a test forum). For a hotfix, just go into whichever GUI for MySQL you use and make the table through there. I'll see what I can do about the bug though.

Yeah it does actually. Took me a few minutes to figure out that I had to replace that line with the one below it. Trac looks pretty cool.

Thanks Rickard.

89

(16 replies, posted in General discussion)

PWS is shit. Use Apache. My favorite package with Apache, MySQL, PHP and a bunch others is XAMPP. http://www.apachefriends.org

And either upgrade to WinXP or go to Linux. MS Windows is crap as well.

http://img18.exs.cx/img18/8457/untitled6la.jpg
I am entering in a bunch of smilies (250 roughly) for my forum (using my Easy Smilies mod) and ran into this odd parse erorr in "help.php". Line 144's area is:

// Display the smiley set
require PUN_ROOT.'include/parser.php';

$num_smilies = count($smiley_text);
for ($i = 0; $i < $num_smilies; ++$i)
{
    // Is there a smiley at the current index?
    if (!isset($smiley_text[$i]))
        continue;

    echo "\t\t".'    '.$smiley_text[$i];

    // Save the current text and image
    $cur_img = $smiley_img[$i];
    $cur_text = $smiley_text[$i];

    // Loop through the rest of the array and see if there are any duplicate images
    // (more than one text representation for one image)
    for ($next = $i + 1; $next < $num_smilies; ++$next)
    {
        // Did we find a dupe?
        if ($smiley_img[$i] == $smiley_img[$next])
        {
            echo ' '.$lang_common['and'].' '.$smiley_text[$next];

            // Remove the dupe so we won't display it twice
            unset($smiley_text[$next]);
            unset($smiley_img[$next]);
        }
    }

    echo ' '.$lang_help['produces'].' <img src="img/smilies/'.$cur_img.'" alt="'.$cur_text.'" /><br />'."\n";
}

Line 144 is:

if ($smiley_img[$i] == $smiley_img[$next])

Any idea as to what is cuasing this and why it 1) continues to display the smilies and 2) does not display 3dwhitesmile.gif when it is there in /img/smilies. Even the text is correct for it.

Any idea?

Alright well I found a temporary way to fix the new posts problem on my copy. Right before I am about to log out, I make all topics read.

That mod already exists. This mod was made to make it easier to input smilies into your board, rather than doing it the normal, eye-peeling way (editing $smiley_text and $smiley_img in the parser file).

Wow that's a lot of bugs. Guess that's what I get for coding half-asleep. I'll get right on fixing them. Thanks.

EDIT: Okay, fixed the bugs. Download v1.0.1 here.

##
##
##        Mod title:  Easy Smiles
##
##      Mod version:  1.0.1
##   Works on PunBB:  1.2
##     Release date:  2005-01-13
##           Author:  Jon "Mako" Ursenbach (mako@medievalbattles.com)
##
##      Description:  Want an easier way to put smilies on your board?
##
##    Affected files:  include/parser.php
##                    plugins/AP_EasySmiles.php
##
##       Affects DB:  Yes
##
##            Notes:  Adds smilies into the database, rather than into
##                    parser.php. In order use, follow instructions then go
##                    to your admin panel and use the Easy Smilies plugin.
##                    The instructions on there are pretty self-explanatory.
##
##       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.
##
##

http://img109.exs.cx/img109/3953/untitled4gx.jpg

Download Here

I still have a few things to do with this plugin (like make it so it shows the smilies you currently have in your database, and a way to delete them instead of going through a database editor, uploading of phpBB smiley .pak files). Please leave comments.

Site note: I am surprised I was able to do the array merging on the first try. I am not too familiar with arrays, so horray for me. Want a cookie? Yes, please.

I always log out when I am done reading. Could it possibly be a cookie problem?

And I am using Firefox 1.0PR if it makes any difference.

Well that fixed that one. Thanks.

Now about the other...

On my forums, http://forums.medievalbattles.com, I have noticed a problem with the "New Posts" message. I see a thread, click on "New Posts" to read everything. I then logout and come back two hours later. The threads that had "New Posts" still have that message with them eventhough no new posts have been made. I have tired messing with the online and visit timeouts to fix it, but that didn't help. If it's matters, my currnet timeouts are:
Visit Timeout: 660
Online Timeout: 600

And the bug with style changes. A number of my users, including myself, have encountered this problem. We change  the display style, when the new page loads an error is displayed. "Bad request. The link you followed is incorrect or outdated." is displayed. It's weird, because the style still changes, just the error is displayed afterwards I guess.

And great job with 1.2, Rickard. It looks amazing.

98

(42 replies, posted in General discussion)

I think I will stick with my name smile

99

(32 replies, posted in General discussion)

---

I realize that, but I would really like to get this done soon. If you could just send me your post.php page, I would be happy and quit bugging you.