Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
2 registered (Gizmo, SteveS), 38 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 06/07/07
Posts: 4
Top Posters (30 Days)
Ruben 50
DennyP 24
Gizmo 23
Dunny 15
SteveS 13
AllenAyres 12
dbremer 10
SD 10
drkknght00 9
doug 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Topic Options
#240420 - 12/01/10 11:27 PM Auto display of "group graphic"
Bill B Offline

member
Registered: 10/29/06
Posts: 189
Loc: Issaquah, WA
I'm not looking for a hack. :-)

Here's what I want to do... and do you think that it will be possible with Ver8?

I want to "force" all members who belong to a specific group to show a graphic in their profile. (eg. Members group showing a Member Logo).

Here's the code that sets the graphic for a person's account, BUT, they still need to go into their profile and check the box under the graphic. I want that to be unnessary - since I want the graphic to display automatically.

UPDATE ubbt_USER_PROFILE
SET USER_GROUP_IMAGES = 'a:1:{i:1;s:1:"6";}'
WHERE USER_ID = '123'
_________________________
--BIll B
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#240726 - 12/19/10 08:44 PM Re: Auto display of "group graphic" [Re: Bill B]
Bill B Offline

member
Registered: 10/29/06
Posts: 189
Loc: Issaquah, WA
What makes the group images show up?

If I run the code below, then all users who belong to Group 6 have the image added to their profile. BUT it still doesn't show up. When you look in each person's Profile, the selection box for the Group 6 image is blank.

What I'm trying to do is "force" the graphic to show for all people in Group 6. What else do I need to do?

Quote:

UPDATE ubbt_USER_PROFILE AS up, ubbt_USER_GROUPS AS ug
SET up.USER_GROUP_IMAGES = 'a:1:{i:1;s:1:"6";}'
WHERE ug.GROUP_ID = '6'
AND ug.USER_ID = up.USER_ID


If you remove the User's choice by rem'ing out the code below, what does that do?
Quote:

{if $gimages}
{$lang.GROUP_IMAGES}<br />
{$gimages}<br /><br />
{/if}
_________________________
--BIll B
Top



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Forum Stats
10492 Members
36 Forums
33842 Topics
181709 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image