Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
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.
Attachments
123059-UserGroupStatusFlags6.5.txt (0 Bytes, 145 downloads)

Sponsored Links
Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803
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?

Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
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


Nikos
Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803
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.

Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803
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"


Last edited by DrChaos; 11/16/2004 7:56 PM.
Sponsored Links
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
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.

Last edited by dimopoulos; 11/17/2004 7:34 AM.

Nikos
Joined: Sep 2003
Posts: 67
Power User
Power User
Joined: Sep 2003
Posts: 67
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).

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
That must be from another mod - yeah, if your code is different, you need to add the group field to the end of it.

Joined: Nov 2002
Posts: 554
Code Monkey
Code Monkey
Offline
Joined: Nov 2002
Posts: 554
This seems a lot like Admin Selectable Ratings which you allready use for your UBBDev Haxxor image ,can you explain the difference?

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
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.

Sponsored Links
Joined: Sep 2003
Posts: 67
Power User
Power User
Joined: Sep 2003
Posts: 67
My members are loving this. Thanks again Josh!

Joined: Jan 2003
Posts: 263
Member
Member
Joined: Jan 2003
Posts: 263
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

Joined: Apr 2002
Posts: 474
Enthusiast
Enthusiast
Offline
Joined: Apr 2002
Posts: 474
How do I show both the paid flag and the Admin/Mod Flag?
and show up in the active topics list?

Last edited by oceanwest; 02/25/2005 7:46 PM.
Joined: Jun 2002
Posts: 160
Member
Member
Offline
Joined: Jun 2002
Posts: 160
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.

Joined: Apr 2002
Posts: 474
Enthusiast
Enthusiast
Offline
Joined: Apr 2002
Posts: 474
*bump*

Joined: Aug 2003
Posts: 1
Lurker
Lurker
Offline
Joined: Aug 2003
Posts: 1
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.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)