UBB.Dev
Posted By: JoshPet Beta-[6.5] User Group Status Flags 6.5 - 11/16/2004 11:10 AM
Mod Name / Version: User Group Status Flags 6.5

Description: Allows you to place little graphics next to users in special groups (similar to the admin/mod flags). You can set which groups and create your own images to use.


Working Under: UBB.Threads 6.5

Mod Status: Beta

Any pre-requisites: 6.5

Author(s): JoshPet

Date: 11/16/04

Credits: www.sportbikes.com for commissioning upgrade

Files Altered: ubbt.inc.php, postlist.php, showflat.php, showthreaded.php

New Files: You will need to create images (special.gif or special1.gif etc...) as needed and upload them to your /images directory


Database Altered: none

Info/Instructions: Pay special attention to the notes, as if you have more or less groups, you may need to adjust the code as necessary.


Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.

Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.


Attached File
Posted By: DrChaos Re: Beta-[6.5] User Group Status Flags 6.5 - 11/16/2004 7:59 PM
How would one go about placing the image below
Reged: 11/29/01
Posts: 10907
Loc: Charlotte, NC

IMAGE HERE

instead of near the user name?
Posted By: dimopoulos Re: Beta-[6.5] User Group Status Flags 6.5 - 11/16/2004 9:32 PM
If memory serves right you will need to change the location of the $postrow[$i]['UserStatus'] in the showflat.tmpl and position it below the location.

So the:

<b>{$postrow[$i]['Username']}{$postrow[$i]['UserStatus']}</b>
<br />
<span class="small">
{$postrow[$i]['Title']}
<br />
{$postrow[$i]['Rating']}
<br />
{$postrow[$i]['Picture']}
<br />
{$postrow[$i]['Registered']}
<br />
{$postrow[$i]['TotalPosts']}
<br />
{$postrow[$i]['Location']}


will become:

<b>{$postrow[$i]['Username']}</b>
<br />
<span class="small">
{$postrow[$i]['Title']}
<br />
{$postrow[$i]['Rating']}
<br />
{$postrow[$i]['Picture']}
<br />
{$postrow[$i]['Registered']}
<br />
{$postrow[$i]['TotalPosts']}
<br />
{$postrow[$i]['Location']}
<br />
{$postrow[$i]['UserStatus']}

Similarly for showthreaded you need to change this:

<b>$Username$MainUserStatus</b>
<br />
<span class="small">
$Title
<br />
$Rating
<br />
$Picture
<br />
$Registered
<br />
$TotalPosts
<br />
$Location
</span>

to this:

<b>$Username</b>
<br />
<span class="small">
$Title
<br />
$Rating
<br />
$Picture
<br />
$Registered
<br />
$TotalPosts
<br />
$Location
<br />
$MainUserStatus
</span>


With this approach you can use a bit bigger graphics
Posted By: DrChaos Re: Beta-[6.5] User Group Status Flags 6.5 - 11/17/2004 12:28 AM
Thanks

Im planning to use it for members that play different online games. Right now Im testing it to show a Halo 2 image and linking that image to the reveliant persosn stats for that game.
Posted By: DrChaos Re: Beta-[6.5] User Group Status Flags 6.5 - 11/17/2004 2:03 AM
OK, got it installed but for the life of me I cant see where you would set what group to use what image?

EDIT:
The code you said to change, changes all the admins and mods letters to the bottom also. I was just tring to change the "special group image"

Posted By: dimopoulos Re: Beta-[6.5] User Group Status Flags 6.5 - 11/17/2004 2:32 PM
In that case you will need to change it a bit more. You will need to leave the {$postrow[$i]['UserStatus']} where it is and introduce a new array dimention something like {$postrow[$i]['NewImage']} which will be populated according to the group that the user belongs to (and then you can distiguish whether mods/admins are affected by this or not) and display any information you need from there on.

Edit: And of course you will place the {$postrow[$i]['NewImage']} wherever you want in the template to be shown. The same thing happens with showthreaded screens - the names of the variables differ a bit.
Posted By: Sapphy Re: Beta-[6.5] User Group Status Flags 6.5 - 11/17/2004 11:36 PM
Josh, I noticed that on the postlist.php edits t1.B_Body is missing off the end of both the original and replacement SELECT statement lines. I kept them in on mine. (running 6.5 latest release).
Posted By: JoshPet Re: Beta-[6.5] User Group Status Flags 6.5 - 11/18/2004 5:28 AM
That must be from another mod - yeah, if your code is different, you need to add the group field to the end of it.
Posted By: ChAoS_dup1 Re: Beta-[6.5] User Group Status Flags 6.5 - 11/18/2004 12:44 PM
This seems a lot like Admin Selectable Ratings which you allready use for your UBBDev Haxxor image ,can you explain the difference?
Posted By: JoshPet Re: Beta-[6.5] User Group Status Flags 6.5 - 11/19/2004 12:43 AM
This is dependant on usergroup - so what this is mostly used for - if you offer subscriptions/donations via MyPaymentPal or similar - you can give those folks a ribbon next to their name after they make payment. This one is totally automatic - and next to the username like an admin/mod flag. You have to define each Admin selectable ratings on a user by user bases.
Posted By: Sapphy Re: Beta-[6.5] User Group Status Flags 6.5 - 11/19/2004 7:36 PM
My members are loving this. Thanks again Josh!
Posted By: Pasqualist Re: Beta-[6.5] User Group Status Flags 6.5 - 02/15/2005 8:32 PM
Josh, can you tell me the difference between this mod and the mod I am using right now on my board: "Group Name Display 2.0"

I'm now ugrading my current board from 6.4.1 to 6.5.1b5 and I really need my old mod to be working again

Thanks
Posted By: oceanwest Re: Beta-[6.5] User Group Status Flags 6.5 - 02/26/2005 2:18 AM
How do I show both the paid flag and the Admin/Mod Flag?
and show up in the active topics list?
This is nifty . . . but I'd like to see something that instead of giving users of a specific group a special flag, would set up a color class for their names (like modname and adminname) that a new stylesheet element could be defined for, so that a specific group could be made to stand out by name color on the boards, rather than by a status flag.
Posted By: oceanwest Re: Beta-[6.5] User Group Status Flags 6.5 - 03/01/2005 10:38 AM
*bump*
Posted By: Kernal Re: Beta-[6.5] User Group Status Flags 6.5 - 05/10/2005 4:43 PM
Great mod. I have been trying to get the "special" group name to display in the Who's Online screen. I added the text I want displayed to the language file. But trying to set the Status by the U_Groups feild has not worked. I'm sure it's something little I'm missing.
Thanks.
© UBB.Developers