7,601

(277 replies, posted in PunBB 1.2 discussion)

ty Paul smile

7,602

(277 replies, posted in PunBB 1.2 discussion)

I get an error sad

Notice: Undefined index: language in [place]\punbb\include\common.php on line 116
There is no valid language pack '' installed. Please reinstall a language of that name.

MySQL usually has a different max size then the regular webpages

##
##        Mod title:  Toggle Button
##
##      Mod version:  1.0
##   Works on PunBB:  Should work on any version, but only tested with 1.1.5 
##     Release date:  2004-09-10
##           Author:  Smartys (keyrex1@verizon.net)
##
##      Description:  Adds a toggle button to moderate.php so you can check
##                    multiple boxes faster! And Rickard called us lazy! :P
##
##   Affected files:  moderate.php
##                    header.php
##
##       Affects DB:  No
##
##       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.
##
##


#
#---------[ 1. OPEN ]---------------------------------------------------------
#

header.php


#
#---------[ 2. FIND ]------------------------------------------------
#

// START SUBST - <pun_head>
ob_start();

if (isset($destination))
    echo '<meta http-equiv="refresh" content="'.$delay.';URL='.$destination.'">'."\n";


#
#---------[ 3. REPLACE WITH ]---------------------------------------------------
#

// START SUBST - <pun_head>
ob_start();

if (isset($moderate))
{
?>

<SCRIPT LANGUAGE=JAVASCRIPT>    
function selectAll(f) {
for(i=0;i<f.length;i++)
if(f.elements[i].type == "checkbox")
f.elements[i].click();
}
</SCRIPT>

<?php

}

if (isset($destination))
    echo '<meta http-equiv="refresh" content="'.$delay.';URL='.$destination.'">'."\n";
#
#---------[ 4. SAVE/UPLOAD ]-------------------------------------------------
#



#
#---------[ 5. OPEN ]--------------------------------------------------------
#

moderate.php


#
#---------[ 6. FIND ]------------------------------------------------
#

<td><b><a href="index.php"><?php echo pun_htmlspecialchars($pun_config['o_board_title']) ?></a> / <a href="viewforum.php?id=<?php echo $fid ?>"><?php echo pun_htmlspecialchars($forum_name) ?></a> / <?php echo pun_htmlspecialchars($subject) ?></b></td>


#
#---------[ 7. REPLACE WITH ]------------------------------------------------
#

<td><b><a href="index.php"><?php echo pun_htmlspecialchars($pun_config['o_board_title']) ?></a> / <a href="viewforum.php?id=<?php echo $fid ?>"><?php echo pun_htmlspecialchars($forum_name) ?></a> / <?php echo pun_htmlspecialchars($subject) ?></b></td><td align=right><a href="javascript:selectAll(document.forms[0])"><font size=1>Toggle</font></a></td>


#
#---------[ 8. FIND ]------------------------------------------------
#

<td><b><a href="index.php"><?php echo pun_htmlspecialchars($pun_config['o_board_title']) ?></a> / <?php echo pun_htmlspecialchars($forum_name) ?></b></td>


#
#---------[ 9. REPLACE WITH ]------------------------------------------------
#

<td><b><a href="index.php"><?php echo pun_htmlspecialchars($pun_config['o_board_title']) ?></a> / <?php echo pun_htmlspecialchars($forum_name) ?></b></td><td align=right><a href="javascript:selectAll(document.forms[0])"><font size=1>Toggle</font></a></td>


#
#---------[ 10. FIND ]------------------------------------------------
#

$pun_root = './';
require $pun_root.'include/common.php';


#
#---------[ 11. REPLACE WITH ]------------------------------------------------
#

$pun_root = './';
require $pun_root.'include/common.php';
$moderate = true;


#
#---------[ 12. SAVE/UPLOAD ]-------------------------------------------------
#

Enjoy the laziness! tongue

7,605

(7 replies, posted in PunBB 1.2 discussion)

Speaking of which
/me makes a note to put his mod for the toggle button up soon tongue

7,606

(3 replies, posted in PunBB 1.2 bug reports)

lol tongue

probably means that it gave an error saying he doesn't have enough room tongue

7,607

(7 replies, posted in PunBB 1.2 discussion)

That would probably be a mod wink

7,608

(11 replies, posted in Feature requests)

lol, I just modded it into header.php
Works like a charm and only adds .17 KBs to the file tongue

7,609

(10 replies, posted in PunBB 1.2 discussion)

Yeah, I heard about that too.

7,610

(11 replies, posted in Feature requests)

Bah, so much for that tongue
/me makes a note to write a mod for it tongue

7,611

(11 replies, posted in Feature requests)

lol
Well, didn't you just give no options then? tongue

And either place, doesn't really matter wink

7,612

(11 replies, posted in Feature requests)

lol
I was thinking slightly above the delete button (so right below the checkboxes)

7,613

(11 replies, posted in Feature requests)

A toggle link in moderate.php for when you're deleting a lot of posts/threads and would need to uncheck less then you need to check smile

7,614

(10 replies, posted in General discussion)

Hmm, that gives me an idea.

To Feature Requests! big_smile

7,615

(300 replies, posted in PunBB 1.2 discussion)

Chacmool wrote:
Madoor wrote:

When you detele a user the posts won't be deleted right!?

It's done (or at least almost done) in v1.2. You can choose (via a checkbox) to delete the posts or not when removing the user.

I assume it is an option tongue

7,616

(11 replies, posted in PunBB 1.2 bug reports)

Barakud wrote:

When a user changing is name he is getting out of his session and not get redirected into his new session, also his last should be closed, cuz you got to see the two session open at the same time.

Ah, I see.
If you change the username of a player, they're knocked off the nick (since it's been changed but they logged in for the old nick) but they're still listed as online.

Barakud wrote:

Also, all the messages he wrote before still using his last username.

Erm, they change with me.
You're sure his posts didn't change?

7,617

(35 replies, posted in PunBB 1.2 discussion)

Nah, I just read the new threads tongue
But I guess it's useful if you have a large forum themed toward helping people.

7,618

(10 replies, posted in PunBB 1.2 bug reports)

Hmm, I thought this was about index.php displaying category name for the forums.

7,619

(27 replies, posted in PunBB 1.2 troubleshooting)

Internet Service Provider wink

Just send an email to abuse@tpnet.pl telling them what happened, including specific IPs/times

7,620

(5 replies, posted in Feature requests)

Rickard wrote:
Madoor wrote:

Right now all moderators have access to the admin panel (although it's fewer alternatives for mods than for admins there). I have 2 different moderators on my site: 1 group that are moderators for the whole site and 1 group that are just moderators for a specific forum and is only supposed to delete and move posts and also tell members that acts irresponsible that hey are doing something that isn't legal on our forum.

Well, in group 1 I have 2 mods that I want to have full access to the moderatos admin control panel and 3 mods that shouldn't be able to access the moderator control panel at all (accept from editing users and view reports). Group 2 shouldn't have access to the moderator control panel at all (not editing users or anything! Just have the ability to delete, move etc posts in one or several specific forums).

I also have 2 users in group 1 that shall have access to the ADMIN forum, but the rest of the moderators in that group shall not be able to view it! And I would also like to be able to choose if the rest of the moderators should be able to view the moderator forum or if only some of them should.

Will I find those functions in 1.2 or do I have to make them myself?

Not really. You will be able to assign global moderator rights (e.g. moderators can change usernames, moderators can ban etc), but it won't be possible to create two different moderator groups with individual rights. At least I don't think we'll go that way.

Well, I know (at least in 1.1.5) you can mod in a new level of user (although it would take a little work). If you added a new tier of mods in like that, you could have a group of forum mods (forum only) and a group of mods that have all regular mod powers.

And if you really want to give moderators full access to the admin interface, IMO the easiest way is to give them admin and then the custom tag Moderator.

7,621

(27 replies, posted in PunBB 1.2 troubleshooting)

Edward wrote:

Smartys, how do you think, is there any way to deal with the problem instead of banning all users from Katowice region (about 5 mln people live there)?

Report them to their ISP? Give them times and IPs and leave the rest to them. It's worth a try wink

7,622

(27 replies, posted in PunBB 1.2 troubleshooting)

Don't use a * wink

Oh, and just in case you wanted some info on that range:

inetnum:      83.30.0.0 - 83.30.255.255
netname:      NEOSTRADA-ADSL
descr:        Neostrada Plus
descr:        Katowice
country:      PL
remarks:      ! - ! - ! - ! - ! - !
remarks:      Contact to ABUSE TP S.A. :
remarks:      abuse@tpnet.pl
remarks:      ! - ! - ! - ! - ! - !

I would try reporting him to his ISP, I know they sometimes respond and punish the user.

7,623

(277 replies, posted in PunBB 1.2 discussion)

lol, OK then smile

7,624

(7 replies, posted in PunBB 1.2 bug reports)

Admins and mods can upload avatars for users that don't yet exist by changing the id in the upload_avatar URL. Not really a big bug, just something worth noting.

Another thing like that is that on the profile screen, the Change Password link always appears if you're a mod. However, you get Permission Denied if you click the link on the profile of a mod or admin. The link should probably be hidden in that case wink

7,625

(277 replies, posted in PunBB 1.2 discussion)

Ooh, thanks Paul: I didn't notice tongue

Edit: hmm, profile view (silly dev code tongue)

Notice: Undefined index: Avatar in c:\apache\htdocs\punbb\profile.php on line 869
Notice: Undefined index: Signature in c:\apache\htdocs\punbb\profile.php on line 871