You are here:Templates Club arrow Joomla resources arrow Joomla Tutorials arrow Joomla Fireboard groups badge hack
Joomla Fireboard groups badge hack PDF Print E-mail
(9 votes)
Friday, 14 September 2007

This is simple fireboard hack that will help you  assign badges to your user groups. Also works with JACL additional groups. Please read the tutorial completely before you apply this hack! First thing you need to do, is create group badges like , admin, guest, special and so on. Done? Ready ? Go! STOP! Did we say backup? BACKUP NOW!

 

 

 

 

 

 

 

 

 

1.) Go to your joomla installation/ components/com_fireboard>template  and create new folder. Name it   "GROUPS"

2.) Upload your group images in folder "groups"

3) Go to components/com_fireboard/template /default/ message.php line 45

under that line enter this

 <!-- USER BADGES -->
<div align="center" style="margin-top:5px; margin-bottom:5px;">

     <?php 
           if ($ugid == 18){
            echo '<img src="components/com_fireboard/template/groups/guest.gif">';
           }elseif ($ugid == 25){
           echo '<img src="components/com_fireboard/template/groups/gazda.gif">';
           }elseif ($ugid == 23){
           echo '<img src="components/com_fireboard/template/groups/mods.gif">';
           }elseif ($ugid == 26){
           echo '<img src="components/com_fireboard/template/groups/club.gif">';
           }
           ?>
</div>
<!-- USER BADGES HACK BY WWW.YOUJOOMLA.COM -->

 

hit save.

NOTE: replace image names with your images

4) Go to components/com_fireboard/template /default/plugin/fbprofile/userinfos.php line 47

under that line enter this

 

<!-- USER BADGES HACK BY WWW.YOUJOOMLA.COM -->
<div align="center">

     <?php 
           if ($ugid == 18){
            echo '<img src="components/com_fireboard/template/groups/guest.gif">';
           }elseif ($ugid == 25){
           echo '<img src="components/com_fireboard/template/groups/gazda.gif">';
           }elseif ($ugid == 23){
           echo '<img src="components/com_fireboard/template/groups/mods.gif">';
           }elseif ($ugid == 26){
           echo '<img src="components/com_fireboard/template/groups/club.gif">';
           }
           ?>
</div>
<!-- END USER BADGES-->

hit save.

NOTE: replace image names with your images

 

5) Go to components/com_fireboard/template /default/plugin/fbprofile/summary.php line 78

replace this code

<?php echo $userinfo->usertype; ?> 

 

with this

<!-- USER BADGES HACK BY WWW.YOUJOOMLA.COM -->
<div align="left">

     <?php 
           if ($ugid == 18){
            echo '<img src="components/com_fireboard/template/groups/guest.gif">';
           }elseif ($ugid == 25){
           echo '<img src="components/com_fireboard/template/groups/gazda.gif">';
           }elseif ($ugid == 23){
           echo '<img src="components/com_fireboard/template/groups/mods.gif">';
           }elseif ($ugid == 26){
           echo '<img src="components/com_fireboard/template/groups/club.gif">';
           }
           ?>
</div>
<!-- END USER BADGES-->

 

hit save.

NOTE: replace image names with your images  

 

DONE!  See it in action

Additional info:

Here is the list with additional user group id's. You can assign any group ID you need . For our installation we used only 4 but you might need more than that.

Just follow the string and replace $ugid == 25  to the one you need. Our special user group is 26. Replace this with the one you need.

Note: It is group_id not parrent_id # that you need.

 

 

You Joomla Team is providing this hack for free use. Please note that we are not responsible for your installation errors!

Please contact us if you would like to place this article on your site.

 

 

 
< Prev   Next >

Partners

 

 

JoomSuite 

Stats

11584 registered
78 today
304 this week
1399 this month
Last: anixan

Joomla Powered