|
Joined: Oct 2010
Posts: 6
Lurker
|
Lurker
Joined: Oct 2010
Posts: 6 |
I'm trying to add a simple title to each person's profile next to their posting. This appears to use the post_side.tpl
The logic is simple. If they belong to GROUP 16, then I want to print below their name "VCCA MEMBER" (which is from the Language file).
This is the code that I was playing with: {if `GROUP_ID' == 16 FROM `USER_PROFILE` WHERE `USER_ID` = $userid}
{$lang.VCCAMEMBER} {/if}
Would appreciate any pointers that might help me.
|
|
|
|
Joined: Jan 2000
Posts: 254 Likes: 4
Beta Tester
|
Beta Tester
Joined: Jan 2000
Posts: 254 Likes: 4 |
Not sure what version you have but... Anyway you could create a image file and assign it to group 16. Then no hacking involved. Or using custom title in member management but you would need to manually update each one.
There is no such thing as stupid questions. Just stupid answers.
|
|
|
|
Joined: Oct 2010
Posts: 6
Lurker
|
Lurker
Joined: Oct 2010
Posts: 6 |
I'm using Ver 7.5.4.2 Sure, I can make an image file for this... but I don't understand how it would be linked to Group 16. (or show on member's profiles who belong to Group 16) Also, some of the people already have a "custom title" and I wouldn't want to replace that one. Thanks for any help!!!! I'm checking here every couple of hours! 
|
|
|
|
Joined: Oct 2010
Posts: 6
Lurker
|
Lurker
Joined: Oct 2010
Posts: 6 |
This almost worked.... ======================= post_side.tpl =======================
{SELECT `GROUP_ID` FROM `ubbt_USER_GROUPS` WHERE `USER_ID` =2} {if $GROUP_ID = 16}
{$lang.VCCAMEMBER} {/if}
================== Obviously, I don't quite know how to connect this all together. I'm getting messed up between the template, html and the smarty glue.
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
On "Group Management" select "Change" under the "Image" area, tada, group image.
|
|
|
|
Joined: Oct 2010
Posts: 6
Lurker
|
Lurker
Joined: Oct 2010
Posts: 6 |
Interesting. In all this time, I never knew that you could add a graphic there... arghhhh..
Okay, I added a small graphic, but it's not showing up any where that I can see. At least not in the "profile" next to each posting.
|
|
|
|
Joined: Dec 2001
Posts: 87
Power User
|
Power User
Joined: Dec 2001
Posts: 87 |
Out of 9,000 registered members, I just found ONE that has the new icon showing in the profile.... But I couldn't find it anywhere else... Weird. This graphic is linked to a GROUP which has over 500 people in it. But again, only one has the graphic showing. How do I figure out why it's showing up on ONE person's profile and not any others? ![[Linked Image]](http://barkerville.net/web/2010/member-graphic-showing.png)
Bill Barker Issaquah, Wa
|
|
|
|
Joined: Jan 2000
Posts: 254 Likes: 4
Beta Tester
|
Beta Tester
Joined: Jan 2000
Posts: 254 Likes: 4 |
That would be a group image. The usere would need to goto mystuff>Edit profile and select the image to display. It is not on by default. Same goes for the admin and moderator images.
There is no such thing as stupid questions. Just stupid answers.
|
|
|
|
Joined: Dec 2001
Posts: 87
Power User
|
Power User
Joined: Dec 2001
Posts: 87 |
I checked and this specific user has NOT selected any images for display. Yet it still shows up there. I went in and modified GROUP 16's image and the one next to his name changed!!!?!? I found the code driving that area and it is the showprofile.tpl The appropriate code is: <td class="tdheader"> {$lang.PROF_FOR} {$profileuser} {$Rating} </td> HOLD IT !!!!!I just looked and the code on the server is newer. It is actually: <td class="tdheader" colspan="2"> {$lang.PROF_FOR} {$profileuser} {$groupimages} <span style="float: right;"> {$Rating} </span> </td> Okay... now I see {$groupimages} is causing it to display. Hooray!!!!! But --- why doesn't it show up for everyone in the group?
Bill Barker Issaquah, Wa
|
|
|
|
Joined: Dec 2001
Posts: 87
Power User
|
Power User
Joined: Dec 2001
Posts: 87 |
Huge Progress.
I found the "click here to display Group image" on each individual's profile page.
And after taking over 3 or 4 people's accounts, I got some more turned on and they are displaying exactly like I want them to. HOORAY.
One last question (I promise).
How can I make the display of that group image mandatory? Or, what query could I run in the database occasionally to set everyone's setting to "ON"?
Bill Barker Issaquah, Wa
|
|
|
|
Joined: Jan 2000
Posts: 254 Likes: 4
Beta Tester
|
Beta Tester
Joined: Jan 2000
Posts: 254 Likes: 4 |
There is no such thing as stupid questions. Just stupid answers.
|
|
|
|
Joined: Dec 2001
Posts: 87
Power User
|
Power User
Joined: Dec 2001
Posts: 87 |
Ah, yes... this is exactly the same thing... Thanks for the link.
I have the same issue with overwriting other custom links, etc.
Maybe Version 8 will provide this flexibility (to force showing specific Group images).
Thanks again Ruben.
Bill Barker Issaquah, Wa
|
|
|
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.
|
|
Posts: 87
Joined: December 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|