UBB.Dev
Posted By: Bill BB Template Mod - Need Help - 10/17/2010 7:10 AM
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.
Posted By: Ruben Rocha Re: Template Mod - 10/18/2010 10:05 PM
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.
Posted By: Bill BB Re: Template Mod - 10/18/2010 10:57 PM
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! wooga
Posted By: Bill BB Re: Template Mod - 10/19/2010 6:59 AM
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.
Posted By: Gizmo Re: Template Mod - 10/19/2010 7:53 AM
On "Group Management" select "Change" under the "Image" area, tada, group image.
Posted By: Bill BB Re: Template Mod - 10/21/2010 8:26 AM
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.
Posted By: Bill B Re: Template Mod - 10/23/2010 5:29 AM
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]
Posted By: Ruben Rocha Re: Template Mod - 10/26/2010 7:02 PM
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.
Posted By: Bill B Re: Template Mod - 10/28/2010 9:09 AM
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:


Quote
<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:


Quote
<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?
Posted By: Bill B Re: Template Mod - 10/28/2010 9:25 AM
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"?
Posted By: Ruben Rocha Re: Template Mod - 10/29/2010 7:17 PM
Take a peek HERE
Posted By: Bill B Re: Template Mod - 10/29/2010 8:02 PM
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.
© UBB.Developers