Archive for howtodoit.myfastforum.org Walkthough guides for myfreeforum phpbb 2 forums
 


       howtodoit.myfastforum.org Forum Index -> Answers on your profile Questions
Symon

Extra usergroup name/rank and image

Remember to backup your forum template and use editor before you do this incase something goes wrong.

Go to your forum's Administration Panel ----- 2. General --- Profile Fields

Now add usergroup1 And click Add Custom Profile Field

You will now see this screen




Remember for the image link you must first upload an image to your template (remember to upload with lang_english link showing)read here to see how http://howtodoit.myfreeforum.org/ftopic27.php

Fill in the details to how you want them then click submit.

You have now set up your Usergroup field Up.

Please note That i have used the name usergroup1 as an example if you have entered something else in the field name then where i say enter usergroup1 you must replace that name with the name in the field name.




The Guide below is ONLY for those that wish to edit or move the code to a place not given in the drop down bar in the screen above.

Now goto admin panel-Styles Admin--Edit Templates/Logos --- your template

In profile_view_body.tpl you should add the following code where you want it to appear remember too change usergroup1 if you have entered something else in the field name

Code:

<span class="usergroup1">{usergroup1}<br />{usergroup1_IMG}
 

so it could look like this

Code:
   <td class="row1" height="6" valign="top" align="center">{AVATAR_IMG}<br /><span class="postdetails">{POSTER_RANK}<br /> <span class="xtrarank">{xtrarank}<br /> <span class="usergroup1">{usergroup1}<br />{usergroup1_IMG}</span></td>

<td class="row1" rowspan="3" valign="top"><table width="100%" border="0" cellspacing="1" cellpadding="3">



In viewtopic_body you should add the following code where you want it to appear
Code:
 
 {postrow.usergroup1}<br />{postrow.usergroup1_IMG}<br />


so it could look like this

Code:
      <!-- BEGIN postrow -->
   <tr>
      <td width="150" align="left" valign="top" class="{postrow.ROW_CLASS}"><span class="name"><a name="{postrow.U_POST_ID}"></a><b>{postrow.POSTER_NAME}</b></span><br /><span class="postdetails">{postrow.POSTER_RANK}<br />{postrow.xtrarank}<br/>{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}<br />{postrow.usergroup1}<br />{postrow.usergroup1_IMG}<br />{postrow.POSTER_JOINED}<br/>{postrow.POSTER_POSTS}<br />{postrow.POSTER_FROM}</span><br/></td>
      <td class="{postrow.ROW_CLASS}" width="100%" height="28" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      


Now all that is done you should goto admin- panel-User Admin--Users List


Now add your Usergroup name the default usergroup image will automatically be used as soon as you enter text in the usergroup box

this is the quick and basic way of adding a User group rank with image

       howtodoit.myfastforum.org Forum Index -> Answers on your profile Questions
Page 1 of 1
Create your own free forum | Buy a domain to use with your forum