Go to file
Rubenwardy 3e5e0b7f77 Updated 2013-04-12 17:21:24 +01:00
imgs images 2012-12-22 16:53:09 +00:00
.gitattributes Initial Commit 2012-12-21 19:50:13 +00:00
.gitignore Initial Commit 2012-12-21 19:50:13 +00:00
README.md Update README.md 2012-12-22 17:32:15 +00:00
admin.php Updated 2013-04-12 17:21:24 +01:00
display_medals.php Updated 2013-04-12 17:21:24 +01:00
functions.php Updated 2013-04-12 17:21:24 +01:00
install.php Updated 2013-04-12 17:21:24 +01:00
manifest.xml Updated 2013-04-12 17:21:24 +01:00
medal_types.php Updated 2013-04-12 17:21:24 +01:00

README.md

Punbb Medals Extension

This project adds user medals to punbb.

Screenshot of a post

Setting Up

At the momment, there is no install script, and you need to do some preparation.

1 - Database

Go to the "users" table in the database, and add a field called "medals"

2 - viewtopic.php

At line 303 in viewtopic.php, look for a line like this:

'SELECT'     => 'u.email, u.title, u.url, u.location, u.signature, u.email_setting, u.num_posts,

add 'u.medals' to there

2 - hooks

There is no hook existing in the right place. you need to add one.

Go to line 562 in viewtopic.php, look for a paragraph like this:

<ul class="author-info">
     <?php echo implode("\n\t\t\t\t\t\t", $forum_page['author_info'])."\n"; ?>
</ul>

add

<?php($hook = get_hook('vt_row_userbar_bottom')) ? eval($hook) : null;?>

before

</ul>