Yeah, its trying to create the database g_pm, but it already exists..

Thats because you have to add it to: lang/YOURLANGUAGE/common.php

3

(4 replies, posted in PunBB 1.2 troubleshooting)

Open Post.php and find this:

<label class="conl"><strong><?php echo $lang_post['Guest name'] ?></strong><br /><input type="text" name="req_username" value="<?php if (isset($_POST['req_username'])) echo pun_htmlspecialchars($username); ?>" size="25" maxlength="25" tabindex="<?php echo $cur_index++ ?>" /><br /></label>

change to:

<label class="conl"><strong><?php echo $lang_post['Guest name'] ?></strong><br /><input type="text" name="req_username" value="Anonymous<?php if (isset($_POST['req_username'])) echo pun_htmlspecialchars($username); ?>" size="25" maxlength="25" tabindex="<?php echo $cur_index++ ?>" /><br /></label>

4

(1 replies, posted in PunBB 1.2 troubleshooting)

Depends on the style. But for the basic styles (Cobalt, Oxygen, Mercury, etc), the font family is:
Verdana, Arial, Helvetica, sans-serif.

Size 11.

5

(1 replies, posted in Feature requests)

Not a bad feature, I'd like to see that too...and maybe customize it..

I'll see if I can make a mod that includes a plugin or whatever.

pogenwurst wrote:

Whoever does the poll, whether it be Connorhd or Mediator, please do not use veiwpoll.php and all that jazz, if possible. It creates too many problems with extern.php, other mods, etc. I'd really appreciate it, and I'm sure that others will too.

Thanks.

Yes, that was always a big problem for me...this is definatley needed.


Also, Connorhd, are you going to be fixing/updating MyPunBB as well?

7

(0 replies, posted in PunBB 1.2 show off)

http://upit.be/uploads/images/untitled6900.png

Yes, thats punbb 1.3; Still very buggy...won't even let you login lol. Somethings wrong with the setting of cookies. Tho I edited, Guests are admins big_smile

Great work so far Rickard and Paul!

Np guys, tell me if you have any problems.

##
##
##          Mod title:  PunBB News System
##
##        Mod version:  1.0
##          For PunBB:  1.2.*
##              Date :  5/5/06
##             Author:  Alex Capek (i.is.alex@hotmail.com)
##
##        Description:  This mod changes your index.php into a nice mini-portal with News displayed. PLEASE READ BELOW CAREFULLY
##
##     Files affected:  viewtopic.php, viewforum.php
##
##        DB Affected:  no
##
##       Info: YOU NEED TO DO SOME EDITING. If you want the newest topic to be displayed in the header, then upload header.php along with the other files, otherwise, don't.
##       You need to specify what forum to grab the news out of, this is set to 1 at default, open index.php and change $newsid to whatever you need to.
##       Last thing is how many announcements are displayed at a time, default is 5. Change $newsamount to whatever you need to in index.php.
##
##

Credit to Reines for help.
Download here

10

(5 replies, posted in PunBB 1.2 bug reports)

Wow really? Interesting, i might need to look into this.

lol still doesn't work :S?

12

(4 replies, posted in Feature requests)

I agree.

Site doesn't work neutral?

Its like this, if someone posted a huge post, the last characters could be an open tag, like this:

"HEY CHECKOUT MY NEW SITE WHILE UR AT IT! ITS [b]" <- If those were the max characters, meaning, [b] were the last 3 characters of the 1000 returned, and if it was parsed, it'd mess up the page.

15

(4 replies, posted in PunBB 1.2 troubleshooting)

If you have cPanel X, then you should have phpMyAdmin..

Do what Elzar did, then

Replace: (line 1565).

                $result = $db->query('SELECT g_id, g_title FROM '.$db->prefix.'groups WHERE g_id!='.PUN_GUEST.' ORDER BY g_title') or error('Unable to fetch user group list', __FILE__, __LINE__, $db->error());

with:

if ($pun_user['g_id'] == PUN_MOD)
$modquery = "AND g_id!='.PUN_ADMIN.' AND g_id!='.PUN_MOD.' ";

$result = $db->query('SELECT g_id, g_title FROM '.$db->prefix.'groups WHERE g_id!='.PUN_GUEST.' '.$modquery.'ORDER BY g_title') or error('Unable to fetch user group list', __FILE__, __LINE__, $db->error());

it could be something with the mysql databases. Maybe it's getting confused with previous tables?

Thanks guys. and yeah it's definatley not the best work ever..but it works. I will be fixing up the code over the next week or so. Thanks.

##
##
##        Mod title:  Junior Administrators
##
##      Mod version:  1.0.5 
##   Works on PunBB:  1.2.3, 1.2.4 
##     Release date:  3-12-06 
##           Author:  Alex Capek - i.is.alex@hotmail.com
##
##      Description:  This modifications allows you to have Junior Administrators. They have the basic actions, can moderate all forums, have more access to the Admin ##Panel.
##
##       Affects DB:  Yes 
##
##   Affected files:  include/common.php, include/common_admin.php include/functions, all admin files except admin_prune.php, admin_reports.php, ##admin_loader.php(duh), dmin_index.php, admin_censoring.php, profile.php, viewforum.php, viewtopic.php, moderate.php
##
##            Notes: This is a rather large mod, it will drastically change your mysql database. I would say it is a VERY GOOD IDEA TO BACKUP before you install this mod.
##    You can configure which admin pages they can see in admin_options. If you allow J Admins to access the Admin Options page, they will not be able to ##configure themselves, only root admins will be able to.
##
##       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 at PunRes

PLEASE LET ME KNOW IF THERE ARE ANY BUGS. Thanks.

20

(13 replies, posted in PunBB 1.2 troubleshooting)

Thats perfect. Thanks you Reines and Smartys!

Updated with a link to PunRes.

22

(13 replies, posted in PunBB 1.2 troubleshooting)

What a pain in the ass...

23

(13 replies, posted in PunBB 1.2 troubleshooting)

Reines wrote:
elbekko wrote:

Something like this maybe? You should try it out...

$db->query("UPDATE ".$db->prefix."groups SET Id=Id+1");

Doesn't work because group_id is a key, meaning there cannot be more than 1 row with the same entry. The query will try to start with group_id 1, and make it 2. There is already a 2, so it throws an Error.

Thats what I thought, and couldn't you make it so it starts at the last group and moves them all up one, except for the admin group?

So, did you edit userlist.php? If you didn't just replace it.. but I'm pretty sure you did. And I'm not fully understanding whats going on.. maybe some screen shots?

25

(13 replies, posted in PunBB 1.2 troubleshooting)

EDIT: nah, I tried this:

 UPDATE groups SET g_id = g_id +1

and it gave me this error:

#1062 - Duplicate entry '2' for key 1