7,326

(34 replies, posted in PunBB 1.2 show off)

the light > the dark?

Well, if you want a quick and dirty hack to do this:
admin_bans.php
FIND

        // Make sure we're not banning an admin
        if (isset($group_id) && $group_id == PUN_ADMIN)
            message('The user '.pun_htmlspecialchars($ban_user).' is an administrator and can\'t be banned. If you want to ban an administrator, you must first demote him/her to moderator or user.');

AFTER, ADD

        // Make sure we're not banning a VIP
        if (isset($group_id) && $group_id == [VIP group])
            message('The user '.pun_htmlspecialchars($ban_user).' is a VIP and can\'t be banned.');

where [VIP group] is the id of the group that VIPs are

The point is that the server timezone should be set so the default time is GMT. Then, based on that, users set their profile settings.

7,329

(2 replies, posted in PunBB 1.2 bug reports)

Rickard wrote:
Smartys wrote:

- in admin_index.php, the PHP and DB version and use of some caching software (and if you use MySQL, the stats for the DB as well) are fetched even if you're a mod and thus don't have it displayed.

It's not like it's a performance killer. I think adding checks will only make the code uglier.

I'll test it on my forum and compare smile

Edit: All I had to do was add an if statement around that block to see if I were a mod. Doesn't look any uglier to me.

7,330

(2 replies, posted in PunBB 1.2 bug reports)

- The link to phpinfo in admin_index.php may be hidden for mods, but it can still be accessed by them if they know the URL
- in admin_index.php, the PHP and DB version and use of some caching software (and if you use MySQL, the stats for the DB as well) are fetched even if you're a mod and thus don't have it displayed.

7,331

(4 replies, posted in PunBB 1.2 bug reports)

Mmm, found another: it lists my secret admin forum to moderators when they move a thread and allows them to move stuff there (as well as to forums that only admins should be able to move stuff to, because no one else has permission to post there, and if a mod can move stuff there it's about the same as posting)

7,332

(4 replies, posted in PunBB 1.2 bug reports)

Oh, and one more: you can move a topic to a non existant forum. Unlikely, true, and it can be moved back, but shouldn't happen wink

Well, one check kind of leads to the other wink
Anyway, it's possible to delete the first post in a topic without deleting the topic (it took me tinkering with a Firefox extension I have to get it to happen though).
The second is that, because of the first, you can cause an SQL error (since it deletes the post and therefore the last_post info can't be updated) and have a topic with no posts in it (pointless, yes).

7,334

(2 replies, posted in Feature requests)

http://punbb.org/forums/viewtopic.php?id=5501

7,335

(2 replies, posted in PunBB 1.2 troubleshooting)

Yeah, I did :-/

You downloaded "changed files only" in which case you only overwrite the files you have wink

And you're reading Installation, not Upgrading from

All are present (unless you made modifications to the templates)

And this is for a clean install (no mods, no extra styles, etc)

I just ran the topic with your test post through with a validator and it validates perfectly wink

Well, that's a problem with YOUR code not defining the variables.
I believe error reporting is set to E_ALL in common.php: you can change that if you want, but fixing the Undefined index messages is a better alternative wink

7,340

(15 replies, posted in PunBB 1.2 troubleshooting)

Seems fixed now smile

7,341

(15 replies, posted in PunBB 1.2 troubleshooting)

*points at his post tongue*

7,342

(15 replies, posted in PunBB 1.2 troubleshooting)

If you have the DB management plugin, run the query

update #__users set group_id = 3 where id = 1

7,343

(15 replies, posted in PunBB 1.2 troubleshooting)

The ?> doesn't need to be included
When you view the forum permissions for Java Programming, the box marked "Read forums" for Guests is unchecked, correct?

Oh, and make sure the group_id for Guests (user id: 1) is set to 3 (Guests)

7,344

(5 replies, posted in PunBB 1.2 discussion)

You have to create the file based on the data install.php spat out. Just create a new file, paste the stuff in, and rename it config.php

7,345

(2 replies, posted in PunBB 1.2 troubleshooting)

I believe that's only for upgrading: to just add it, copy the files over and run install_mod.php and make the edits in the readme file

7,346

(15 replies, posted in PunBB 1.2 troubleshooting)

What's the forum?

7,347

(8 replies, posted in Programming)

Anybody?

7,348

(8 replies, posted in PunBB 1.2 troubleshooting)

I actually think PunBB doesn't allow guests to view profiles if guests viewing a forum is disabled.

Erm, Rickard is already doing this
http://punbb.org/forums/viewtopic.php?id=6254

7,350

(4 replies, posted in Feature requests)

1. What is Skype?
2/3: More and more features wink