Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
The FireBoard forum component development is still going on. In order to get better, FireBoard will be moved from the Best of Joomla website.
During this transition period, the forum in Best of Joomla will be closed to new posts.
Welcome, Guest
Please Login or Register.    Lost Password?
FireBoard Manual Latest release discussions Download FireBoard
Re:Group badges tutorial (1 viewing) (1) Guest
TOPIC: Re:Group badges tutorial
#58493
Re:Group badges tutorial 3 Months, 3 Weeks ago  
Got an issue for all (even if using jacl or other hack component).

this is not perfect but work!

1. go to you administration here : administrator/index2.php?option=com_users (user manager),
2. then clik on view source on your navigator (firefox and explorer)
and search group_type

3. it's done you now have the list of all the groups and the id associated (the option value).
nkt (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#59778
Re:Group badges tutorial 3 Months ago  
Nice I made a edit, its not rilly hard but o well, I made it
(tested in default_ex on 1.0.5 rc1)

check my screenshot




this is what I did

in message.php

beneath

Code:

                <div class = "viewcover">
                    <?php
                    if ($msg_userrankimg) {
                        echo $msg_userrankimg;
                    }
                    ?>

</div>



add

Code:


<!-- USER BADGES edit made by NLkaiser -->
<!-- <div align="center" style="margin-top:5px; margin-bottom:5px;"> -->
<div class = "viewcover">
     <?php  
           if ($ugid == 19){
  echo '<img src="components/default/images/english/ranks/author_image.gif">';
           }elseif ($ugid == 20){
 echo '<img src="components/com_fireboard/template/default/images/english/ranks/editor_image.gif">';
           }elseif ($ugid == 21){
 echo '<img src="components/com_fireboard/template/default_ex/images/dutch/ranks/publisher_image.gif">';
           }elseif ($ugid == 25){
 echo '<img src="components/com_fireboard/template/default/images/english/ranks/admin_image.gif">';  
}

 if ($uIsMod){
 echo '<img src="components/com_fireboard/template/default/images/english/ranks/rankmod.gif">';
           }   
 
     
           ?>

<!-- USER BADGES edit made by NLkaiser  -->



Don't forget to change the user type numbers and locations of the gif files

the last part is to gif a mod a mod picture and the 1st part is just the normal


then go to

view.php and find

Code:

                                       if ($uIsMod and !$showSpRank)
                                        {
                                            $rText = _RANK_MODERATOR;
                                            $rImg = JB_URLRANKSPATH . 'rankmod.gif';
                                        }
if ($uIsAdm and !$showSpRank)
                                        {
                                            $rText = _RANK_ADMINISTRATOR;
                                            $rImg = JB_URLRANKSPATH . 'rankadmin.gif';
                                        } 



and change it to (or just remove it)

Code:

                                       /*if ($uIsMod and !$showSpRank)
                                        {
                                            $rText = _RANK_MODERATOR;
                                            $rImg = JB_URLRANKSPATH . 'rankmod.gif';
                                        }
if ($uIsAdm and !$showSpRank)
                                        {
                                            $rText = _RANK_ADMINISTRATOR;
                                            $rImg = JB_URLRANKSPATH . 'rankadmin.gif';
                                        } */



This will gif the admin and mod not auto an mod / admin image
the mods and admins that you now have will still have that image but that can easy be changed in the firaboard admin
stefanrenne2 (User)
www.ps3hype.nl
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2008/10/09 00:23 By stefanrenne2.
 
 
#60479
Re:Group badges tutorial 2 Months, 3 Weeks ago  
I tried this but got html code errors instead...
I don't understand where I went wrong...
Can I send my html files to someone and change them for me? Im not really good with html coding.

I wish they will include this feature in the next FB version.
Jing (User)
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Cebu Bikers.com Location: Cebu, Philippines Birthdate: 1976-06-26
Logged Logged
 
 
#60522
Re:Group badges tutorial 2 Months, 2 Weeks ago  
mmm wel it's not rilly hard

just post your message.php here and ill edit it for u


in the mean time, can some1 help me out

im trying to make a remake that if user id = x that it then shows a image

don't know what I did wrong can some1 help me out

Code:

$user =& JFactory::getUser();
$uid = $user->get('id');
if ($uid==62){
echo '<img src="http://www.site_name.nl/components/com_fireboard/template/default_ex/images/dutch/ranks/primage.gif">';
}   

stefanrenne2 (User)
www.ps3hype.nl
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
Go to top