It can't be done in CSS since the text for the buttons is taken from the language files. That is, unless you want to do some fancy and horribly complex superimposing with absolute positioning of images.

2

(18 replies, posted in PunBB 1.2 show off)

Far and away my favorite PunBB discovery was the horrifying Fantasy Feeder. I almost had a rupture from laughing at Something Awful's Weekend Web roasting of the place.

Now, who's going to volunteer to tell them to update to 1.2.10 at the risk of being eaten?

3

(7 replies, posted in Feature requests)

It takes about three seconds for an admin to change a member's username in the event of a name conflict. I can't imagine any situation where a separate list for usernames would save any time.

I think these would be useful for pretty much everyone, and doesn't infringe on PunBB's simplicity too badly. The multiple user groups could be tricky with all the permission inheritance crap, but an approach that includes a group heirarchy page like the current forum order page might be able to keep things under control.

5

(2 replies, posted in PunBB 1.2 discussion)

The link should look something like this:

<a href="profile.php?id='.$pun_user['id'].'">Profile</a>

Shiggity shwaa.

6

(5 replies, posted in PunBB 1.2 discussion)

The censor word list in administration also works on usernames.

7

(5 replies, posted in Feature requests)

I made this change on my own board, since all moderators manage all forums, and the redundancy was getting on my nerves.

Starting at line 115 in index.php, replace

    if ($cur_forum['moderators'] != '')
    {
        $mods_array = unserialize($cur_forum['moderators']);
        $moderators = array();

        while (list($mod_username, $mod_id) = @each($mods_array))
            $moderators[] = '<a href="profile.php?id='.$mod_id.'">'.pun_htmlspecialchars($mod_username).'</a>';

        $moderators = "\t\t\t\t\t\t\t\t".'<p><em>('.$lang_common['Moderated by'].'</em> '.implode(', ', $moderators).')</p>'."\n";
    }

with

    if ($cur_forum['moderators'] != '')
    {
        $moderators = "\t\t\t\t\t\t\t\t".'<p><a href="userlist.php?show_group=2&sort_by=username&sort_dir=ASC&search=Submit">View moderators</a></p>'."\n";
    }

Being a dirty hack, it assumes that your moderator group is group 2 and it doesn't reference a lang file, but it should work.

8

(2 replies, posted in PunBB 1.2 troubleshooting)

His mod didn't work on my forum. And besides, it's a little extreme to turn back on the whole shebang just because of a minor subject line bug.

9

(2 replies, posted in PunBB 1.2 troubleshooting)

Holy balls, I am an idiot. *slaps forehead*

10

(15 replies, posted in PunBB 1.2 discussion)

Most word processors let the user hit ctrl-shift-spacebar to add a non-breaking space. It's useful for when style guidelines require spaces between periods in ellipses, i.e. " . . . "

It doesn't look like it's a feature in HTML forms, but it might be possible in javascript if one were so inclined.

11

(0 replies, posted in PunBB 1.2 troubleshooting)

EDIT: found it myself. Those implode functions are clever little beasts.

Hi,

I've recently gotten into poking around the PunBB source to learn how to adjust it for my purposes. So far, the code has been a real joy to work with, so thanks, Rickard, for making such a brilliant piece of software.

The problem: I'm currently working on adding a new entry to the existing user information. The input for it will appear below the Website field in the Personal section of the profile editor. I've already updated the database and placed the form into the page layout, but I'm having trouble finding where the data from that page is actually sent to the database. Can anyone give me a line number in profile.php for the query that sends off the other data (like real name, title, location, etc.) to the database?

Thanks for any help.

12

(124 replies, posted in News)

I wonder how much money blimps go for these days...

13

(101 replies, posted in PunBB 1.2 discussion)

vnpenguin wrote:
ghotistix wrote:

Is it possible to ban an IP address instead of an already-registered username? I'd like to get proactive about this...

Yes, just leave username blank.

Thanks. I should have looked a bit closer at the bans area... hmm

14

(101 replies, posted in PunBB 1.2 discussion)

Is it possible to ban an IP address instead of an already-registered username? I'd like to get proactive about this...

15

(5 replies, posted in PunBB 1.2 troubleshooting)

The upgrade went flawlessly. Thanks.

16

(5 replies, posted in PunBB 1.2 troubleshooting)

Smartys wrote:

If you modded the files, then you'd have issues with your mods not working
Other then that, editing should work fine (use the hdiff)

Thanks for the link, but I was really looking into whether I could replace the PHP files instead of editing them by hand.

17

(5 replies, posted in PunBB 1.2 troubleshooting)

Hello. Forgive me if this is a stupid question with a glaringly obvious solution: I'm only just beginning to learn PHP and MySQL.

My issue is that I need to patch my forum from 1.2.5 to 1.2.6, but I don't have shell access to run the patch. The obvious answer is to edit all the files by hand from the changelog, but from the number of changes, it would take eons. And I especially don't want to have to do it every time a new version of PunBB is released. I had the idea to upload all the .php files included in the upload folder of 1.2.6 to the forum directory on my site, since it seems to me that replacing only the PHP files won't hurt anything as I'm not directly messing with the forum's database. I just wanted to confirm that, by doing this, I wouldn't be ripping a hole in the space-time continuum or *gasp* wrecking my forum, and it would in fact be as good as running a patch. If not, I'll just have to start hacking away in notepad.

Thanks for any help.

EDIT: by "all the .php files" I'd exclude config.php.

18

(1 replies, posted in PunBB 1.2 show off)

I recently built a website for a rather entertaining webcomic drawn by a friend of mine and insisted on using PunBB for the forum from my previous experience. While I hadn't before tried integrating PunBB with the rest of a site in either layout or colors, I was pleasantly surprised at how ridiculously easy it was to do.

The site
The forum

So thanks again, Rickard. I stand by my previous webbed feet claim.

19

(9 replies, posted in Programming)

Useful bit of code.

20

(2 replies, posted in PunBB 1.2 show off)

More out of boredom than anything else, I decided to add a forum to my homemade computer games site. After going through some really buggy open source forums and the bloated pile of junk Invision I tried out PunBB. I'm amazed by the ease of use, good programming, and simplicity of this board. If PunBB were a girl I would marry her. Even if she had webbed feet.

Anyway, my forum: http://www.fishstickgames.com/forum
It's kind of a mess now that I'm just testing it out so don't mind my rambling. Join up and post stuff if you like.