PunBB Resource

Your ultimate PunBB resource!

Keywords:

    (Extended)

You are not logged in.

#1 2008-06-23 16:32:28

sneaky101
New member
Registered: 2008-06-13
Posts: 8

Show Reputation in Navigation bar.

This is relevant to the Reputation mod, I might be posting in the wrong section tho. So forgive me please.
Also I searched this up, came with something alike to this, but it didn't answer the question.

I would like to know how to integrate the number of reputation points into the 'Reputation' link in the navigation bar.
eg:
Index | Profile | Rules | Search | Reputation (32) | LogOut

i digged up a line from functions.php

Code:

$links[] = '<li id="navrep"><a href="reputation.php?uid='.$pun_user['id'].'">Reputation</a>';

which is the link to the user's Rep's from the Navigation bar.

and a line from the users.php

Code:

                    <td class="tc2"><?php echo $user_title_field ?></td>
<?php if ($show_post_count): ?>                    <td class="tc3"><?php echo $user_data['num_posts'] ?></td>
<?php endif; ?>
                    <td class="tc3"><?php echo $user_data['reputation'] ?></td>
                    <td class="tcr"><?php echo format_time($user_data['registered'], true) ?></td>

<?php echo $user_data['reputation'] ?> is the value of the Rep that shows up in the userlist table.

somehow i have to integrate them both into one.
anyone help out a little?

massive thanks to those who help out

Offline

 

#2 2008-06-25 10:59:41

sneaky101
New member
Registered: 2008-06-13
Posts: 8

Re: Show Reputation in Navigation bar.

come on guys, this is simple for wizards like most of yous.
anyone?

Offline

 

#3 2008-07-11 10:42:26

sneaky101
New member
Registered: 2008-06-13
Posts: 8

Re: Show Reputation in Navigation bar.

this is awesome

Offline

 

#4 2009-05-04 13:15:23

Hiiro
New member
Registered: 2009-05-04
Posts: 1

Re: Show Reputation in Navigation bar.

Need it to,please help sad

Offline

 

Board footer

Based on PunBB
© Copyright 2002–2005 Rickard Andersson

© Copyright 2004–2006 Kristoffer Jansson

User contributed files are property of their respective owners.