26

(13 replies, posted in PunBB 1.2 troubleshooting)

YEAH STILL NEED HELP

Anyone? -.-

27

(13 replies, posted in PunBB 1.2 troubleshooting)

yes i do, but see im making a mod for public release. and I want people to just click "install" on install_mod.php and it will do it for them.

##
##
##        Mod title:  Announcements
##
##      Mod version:  1.0.5
##   Works on PunBB:  1.2.3, 1.2.4
##     Release date:  3-26-05
##           Author:  Alex Capek - i.is.alex@hotmail.com
##
##      Description:  This modifications allows you to Announce topics, same thing as Sticky's, but you still have Sticky's.
##
##       Affects DB:  Yes
##
##   Affected files:  viewforum.php
##                    footer.php
##                    lang/LANGUAGE/common.php
##                    lang/LANGUAGE/misc.php
##       moderate.php
##       viewtopic.php
##
##            Notes:  The Announcements will appear at the top of the topics on viewforum.
##
##       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.
##

Click here to go to PunRes to Download

This mod is fairly new there might be some small bugs..please post if you find any.

29

(13 replies, posted in PunBB 1.2 troubleshooting)

I already posted this a while back, but maybe I wasn't clear enough. Ok so I have a Junior Administrators mod im doing atm, and its like 90% complete except for this part:
I need to insert a group to group ID to 2..so I need to move every other group id up 1 in order for this to work. So what would be a proper query?

I already know how to make the new group, but I first need to move the other groups upward.

Thank you.

31

(4 replies, posted in PunBB 1.2 show off)

No problem, glad I can help smile.

32

(4 replies, posted in PunBB 1.2 show off)

Go to Administration -> Options -> Scroll down and find "Additional Menu Items". I think it's pretty self-explanatory if you read it the instructions. Post back if you need any help or if thats not what you wanted. And yes I do agree, PunBB is my favorite choice for Forums because he does the forums in the most simplest ways. All the other forum sources i've seen use confusing shit thats not entirley needed, and best of all, its reliable, and to my knowledge there are no exploits for the current version yet.

Yeah, but people don't want to go into phpMyAdmin just to do this mod. So I need a query to shift them up.

I'm wondering what SQL query would I do to make it so, it bumps the mod group id to 3, guests to 4, and members to 5. Anyone know? :s because the Junior Admin group has be to 2 in order to work correctly with my mod..and the default is 2 for mods.

At default there not able to..though its pretty easy to edit PunBB to make moderators do that. I did it once, but it wasn't that secure. I don't think I did it in the most safest way. Just edit this part of profile.php..

else if (isset($_POST['update_group_membership']))
{
    if ($pun_user['g_id'] > PUN_ADMIN)
        message($lang_common['No permission']);

    confirm_referrer('profile.php');

    $new_group_id = intval($_POST['group_id']);

    $db->query('UPDATE '.$db->prefix.'users SET group_id='.$new_group_id.' WHERE id='.$id) or error('Unable to change user group', __FILE__, __LINE__, $db->error());

    // If the user was a moderator or an administrator, we remove him/her from the moderator list in all forums as well
    if ($new_group_id > PUN_MOD)
    {
        $result = $db->query('SELECT id, moderators FROM '.$db->prefix.'forums') or error('Unable to fetch forum list', __FILE__, __LINE__, $db->error());

        while ($cur_forum = $db->fetch_assoc($result))
        {
            $cur_moderators = ($cur_forum['moderators'] != '') ? unserialize($cur_forum['moderators']) : array();

            if (in_array($id, $cur_moderators))
            {
                $username = array_search($id, $cur_moderators);
                unset($cur_moderators[$username]);
                $cur_moderators = (!empty($cur_moderators)) ? '\''.$db->escape(serialize($cur_moderators)).'\'' : 'NULL';

                $db->query('UPDATE '.$db->prefix.'forums SET moderators='.$cur_moderators.' WHERE id='.$cur_forum['id']) or error('Unable to update forum', __FILE__, __LINE__, $db->error());
            }
        }
    }

    redirect('profile.php?section=admin&id='.$id, $lang_profile['Group membership redirect']);
}

36

(3 replies, posted in PunBB 1.2 troubleshooting)

):

37

(3 replies, posted in PunBB 1.2 troubleshooting)

Anyone?

38

(3 replies, posted in PunBB 1.2 troubleshooting)

Alright on my site i have the Modification for colored users on the online list, and etc. I want to be able to make it so when you hover your mouse over like an admin which is red, it will go to light red. the cs files have this in it:

.pun A:link, .pun A:visited {COLOR: #60A0DC}
.pun A:hover {COLOR: #80D6FF}

This guy I know made it so its like this as an extra:

.administrators A:link.username, .administrators A:visited.username {COLOR: #DB0000}
.administrators A:hover.username {COLOR: #DB3300}

.moderators A:link.username, .moderators A:visited.username {COLOR: #00CC33}
.moderators A:hover.username {COLOR: #00FF33}

How would I make .administrators? Because its .pun atm..

39

(5 replies, posted in Feature requests)

oh. no..it was at seperate times lol.

40

(5 replies, posted in Feature requests)

I don't think you understood. I have removed over 15 DIFFERENT bans by accidently clicking remove instead of edit...whatever though, if your going to be smart forget it.

41

(5 replies, posted in Feature requests)

Well, for that paste week, i've accidently removed over 15 bans because I've wanted to edit them. Can you add a confirmation for this please? So I don't have to go back and find the username and re-ban.

Sorry for bumping up an old topic. But does anyone still have this mod lol. Reines said he deleted it..

Ok, thank you very much!

Well, i've been trying forever, and I really don't know how, im trying to learn PHP. But what I wanted done is like, at the bottom of the forum, it says: Online: - It lists them, but it is underlined, how do I remove that? Also how do I remove it for the viewforum. All of the topics are underlined too. Any help would be greatly appreciated. Thanks.