1

(11 replies, posted in PunBB 1.4 additions)

Include the punbb api (common/common.php) and then there is a user variable with you can make sure it is not "guest"

2

(4 replies, posted in PunBB 1.4 additions)

Nice, you beat me to make a working version.

I just released my version, then realized you have created one!

3

(23 replies, posted in PunBB 1.4 additions)

Version 0.1 Released

There may be bugs, and the code is unclean, but it works.

Has:

  • Admins can register medals, and upload an icon.

  • Admins can give medals to a user.

  • Admins can revoke (take away) medals from a user.

  • Medals are displayed on author info in users post.

Coming soon:

  • Polish and comment code

  • Move grant/revoke a user's medal to user's profile

  • Add medals tab in user profile

Edit: just seen ommedals, it is your choice what you use.

4

(23 replies, posted in PunBB 1.4 additions)

All you need to do I add the folder to the extensions folder, and use the extensions manager to install it.

It is not complete yet, there is no way to give users medals (this is the only thing that needs to be done before release.

There is a "Medals" tab in the admin section, which is used to define medal types.

5

(23 replies, posted in PunBB 1.4 additions)

The first post has the link to the github repo.

TODO
  • Award medal to user form

  • bug fixing

  • Uninstall script

6

(23 replies, posted in PunBB 1.4 additions)

Progress:

  • Install script

  • Medal definition script

http://multa.bugs3.com/upload/medal_def.png

Where would the best place for a manage page for my extension be?

I have added a "manage" link to the admin > extensions page using:

if ($ext['title'] == "Medals"){
    $forum_page['ext_actions']['manage'] = "<span><a href=\"\">Manage</a></span>";
}

But I do not know where I should place the actual page that manages it.

the page will:

  • Define and delete medal definitions

8

(23 replies, posted in PunBB 1.4 additions)

No, sorry. I have been busy lately

9

(23 replies, posted in PunBB 1.4 additions)

http://multa.bugs3.com/upload/punbb_medals.png

10

(23 replies, posted in PunBB 1.4 additions)

This extension will add medals to the forum.

Has:

  • Admins can register medals, and upload an icon.

  • Admins can give medals to a user.

  • Admins can revoke (take away) medals from a user.

  • Medals are displayed on author info in users post.

Coming soon:

  • Polish and comment code

  • Move grant/revoke a user's medal to user's profile

  • Add medals tab in user profile

Here is the extension: https://github.com/rubenwardy/punbb_medals

Similar: ommedals, it is your choice what you use, they look exactly the same.