Mutantbear
Semi Constructive Criticism
+1,431|6420|London, England

I have a Forum I am trying to get up and running using PunBB and there are some aesthetics about Bf2s that I would like in mine.

On the time posted I was wondering the code to get the "1 hour, 3 minutes ago" example

And of course I'm looking for a plugin for the karma system

much obliged
_______________________________________________________________________________________________ https://i.imgur.com/Xj4f2.png
bugz
Fission Mailed
+3,311|6767

Mod title:  Karma Mod

Mod version:  1.0.3
Works on PunBB:  1.2.*
Release date:  2006-01-15
Author:  Trevor Slocum (tslocum@gmail.com)

Description:  Adds the ability for your users to praise/smite each other.

Affected files:  viewtopic.php
userlist.php
profile.php

Affects DB:  Yes


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

Source
Mutantbear
Semi Constructive Criticism
+1,431|6420|London, England

ebug9 wrote:

Mod title:  Karma Mod

Mod version:  1.0.3
Works on PunBB:  1.2.*
Release date:  2006-01-15
Author:  Trevor Slocum (tslocum@gmail.com)

Description:  Adds the ability for your users to praise/smite each other.

Affected files:  viewtopic.php
userlist.php
profile.php

Affects DB:  Yes


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

Source
I saw that site, but I am a PunBB failure so I need alot of step by step help
_______________________________________________________________________________________________ https://i.imgur.com/Xj4f2.png
bugz
Fission Mailed
+3,311|6767

Here's the read me from that file if it makes any sense to you. I have no idea...

#
#---------[ 1. UPLOAD ]-------------------------------------------------------
#

karma.php to /

#
#---------[ 2. OPEN ]---------------------------------------------------------
#

profile.php


#
#---------[ 3. FIND (line: 477) ]---------------------------------------------
#

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

               
#
#---------[ 4. AFTER, ADD ]-------------------------------------------------
#



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

    confirm_referrer('profile.php');   
   
    if ($_POST['karma']<0||$_POST['karma']>=0) {
        $db->query('UPDATE '.$db->prefix.'users SET karma='.$_POST['karma'].' WHERE id='.$id) or error('Unable to change user karma', __FILE__, __LINE__, $db->error());
        redirect('profile.php?section=admin&amp;id='.$id, 'User\'s karma has been updated.');
    } else {
        redirect('profile.php?section=admin&amp;id='.$id, 'Please enter a numerical amount for the user karma.');
    }
}


#
#---------[ 5. FIND (line: 910) ]---------------------------------------------
#

$result = $db->query('SELECT u.username, u.email, u.title, u.realname, u.url, u.jabber, u.icq, u.msn, u.aim, u.yahoo, u.location, u.use_avatar, u.signature, u.disp_topics, u.disp_posts, u.email_setting, u.save_pass, u.notify_with_post, u.show_smilies, u.show_img, u.show_img_sig, u.show_avatars, u.show_sig, u.timezone, u.language, u.style, u.num_posts, u.last_post, u.registered, u.registration_ip, u.admin_note, g.g_id, g.g_user_title FROM '.$db->prefix.'users AS u LEFT JOIN '.$db->prefix.'groups AS g ON g.g_id=u.group_id WHERE u.id='.$id) or error('Unable to fetch user info', __FILE__, __LINE__, $db->error());

               
#
#---------[ 6. REPLACE WITH ]-------------------------------------------------
#

$result = $db->query('SELECT u.karma, u.username, u.email, u.title, u.realname, u.url, u.jabber, u.icq, u.msn, u.aim, u.yahoo, u.location, u.use_avatar, u.signature, u.disp_topics, u.disp_posts, u.email_setting, u.save_pass, u.notify_with_post, u.show_smilies, u.show_img, u.show_img_sig, u.show_avatars, u.show_sig, u.timezone, u.language, u.style, u.num_posts, u.last_post, u.registered, u.registration_ip, u.admin_note, g.g_id, g.g_user_title FROM '.$db->prefix.'users AS u LEFT JOIN '.$db->prefix.'groups AS g ON g.g_id=u.group_id WHERE u.id='.$id) or error('Unable to fetch user info', __FILE__, __LINE__, $db->error());


#
#---------[ 7. FIND (line: 1514) ]---------------------------------------------
#

        }
        else
        {
            if ($pun_user['id'] != $id)
            {

?>

   
#
#---------[ 8. AFTER, ADD ]-------------------------------------------------
#

                        <legend><?php echo 'Modify user karma' ?></legend>
                        <div class="infldset">
                            <label><input type="text" name="karma" value="<?php echo pun_htmlspecialchars($user['karma']) ?>" size="8" maxlength="8" /><input type="submit" name="update_karma" value="<?php echo $lang_profile['Save'] ?>" /><br /></label>
                        </div>
                    </fieldset>
                </div>
                <div class="inform">
                    <fieldset>
                   

#
#---------[ 9. SAVE/UPLOAD ]-------------------------------------------------
#
Mutantbear
Semi Constructive Criticism
+1,431|6420|London, England

I read that, no idea
_______________________________________________________________________________________________ https://i.imgur.com/Xj4f2.png

Board footer

Privacy Policy - © 2025 Jeff Minard