Previous Thread
Next Thread
Print Thread
Rate Thread
Beta-[6.5] User Group Status Flags 6.5
#282004 11/16/2004 3:10 AM
Joined: Nov 2001
Posts: 10,369
JoshPet Offline OP
I type Like navaho
OP Offline
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.

Attached Files
123059-UserGroupStatusFlags6.5.txt (0 Bytes, 145 downloads)
Sponsored Links
Re: Beta-[6.5] User Group Status Flags 6.5
Daine #282005 11/16/2004 11:59 AM
Joined: Sep 2003
Posts: 803
DrChaos Offline
Coder
Offline
Coder
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?

Re: Beta-[6.5] User Group Status Flags 6.5
Duck #282006 11/16/2004 1:32 PM
Joined: Aug 2002
Posts: 1,191
dimopoulos Offline
Kahuna
Offline
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
Re: Beta-[6.5] User Group Status Flags 6.5
Hal_dup2 #282007 11/16/2004 4:28 PM
Joined: Sep 2003
Posts: 803
DrChaos Offline
Coder
Offline
Coder
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.

Re: Beta-[6.5] User Group Status Flags 6.5
Duck #282008 11/16/2004 6:03 PM
Joined: Sep 2003
Posts: 803
DrChaos Offline
Coder
Offline
Coder
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 6:56 PM.
Sponsored Links
Re: Beta-[6.5] User Group Status Flags 6.5
Duck #282009 11/17/2004 6:32 AM
Joined: Aug 2002
Posts: 1,191
dimopoulos Offline
Kahuna
Offline
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 6:34 AM.

Nikos
Re: Beta-[6.5] User Group Status Flags 6.5
Hal_dup2 #282010 11/17/2004 3:36 PM
Joined: Sep 2003
Posts: 67
Sapphy Offline
Power User
Offline
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).

Re: Beta-[6.5] User Group Status Flags 6.5
Steve_OS #282011 11/17/2004 9:28 PM
Joined: Nov 2001
Posts: 10,369
JoshPet Offline OP
I type Like navaho
OP Offline
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.

Re: Beta-[6.5] User Group Status Flags 6.5
Daine #282012 11/18/2004 4:44 AM
Joined: Nov 2002
Posts: 554
ChAoS_dup1 Offline
Code Monkey
Offline
Code Monkey
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?

Re: Beta-[6.5] User Group Status Flags 6.5
barbiro #282013 11/18/2004 4:43 PM
Joined: Nov 2001
Posts: 10,369
JoshPet Offline OP
I type Like navaho
OP Offline
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
Re: Beta-[6.5] User Group Status Flags 6.5
Daine #282014 11/19/2004 11:36 AM
Joined: Sep 2003
Posts: 67
Sapphy Offline
Power User
Offline
Power User
Joined: Sep 2003
Posts: 67
My members are loving this. Thanks again Josh!

Re: Beta-[6.5] User Group Status Flags 6.5
Daine #282015 02/15/2005 12:32 PM
Joined: Jan 2003
Posts: 263
Pasqualist Offline
Member
Offline
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

Re: Beta-[6.5] User Group Status Flags 6.5
10k #282016 02/25/2005 6:18 PM
Joined: Apr 2002
Posts: 474
oceanwest Offline
Enthusiast
Offline
Enthusiast
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 6:46 PM.
Re: Beta-[6.5] User Group Status Flags 6.5
Daine #282017 02/27/2005 7:46 PM
Joined: Jun 2002
Posts: 160
ZealotOnAStick_dup1 Offline
Member
Offline
Member
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.

Re: Beta-[6.5] User Group Status Flags 6.5
astre #282018 03/01/2005 2:38 AM
Joined: Apr 2002
Posts: 474
oceanwest Offline
Enthusiast
Offline
Enthusiast
Joined: Apr 2002
Posts: 474
*bump*

Re: Beta-[6.5] User Group Status Flags 6.5
sdf123 #282019 05/10/2005 8:43 AM
Joined: Aug 2003
Posts: 1
Kernal Offline
Lurker
Offline
Lurker
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
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,529
Posts293,721
Members13,834
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online 143
Topics Created 0
Posts Made 1
Users Online 2
Birthdays 17
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,795
Greg Hard 4,625
Top Posters(30 Days)
isaac 3
Top Likes Received
isaac 33
Gizmo 8
Brett 7
Morgan 2
Top Likes Received (30 Days)
isaac 3
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2020 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20200217.dev)
Responsive Width:

PHP: 5.4.45 Page Time: 0.070s Queries: 48 (0.022s) Memory: 3.3714 MB (Peak: 3.6189 MB) Data Comp: Zlib Server Time: 2020-02-17 22:03:50 UTC
Valid HTML 5 and Valid CSS