Previous Thread
Next Thread
Print Thread
Rate Thread
#318639 10/17/2010 12:10 AM
Joined: Oct 2010
Posts: 6
Lurker
Lurker
Offline
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.

Sponsored Links
Bill BB #318643 10/18/2010 3:05 PM
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.
Ruben Rocha #318644 10/18/2010 3:57 PM
Joined: Oct 2010
Posts: 6
Lurker
Lurker
Offline
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! wooga

Bill BB #318645 10/18/2010 11:59 PM
Joined: Oct 2010
Posts: 6
Lurker
Lurker
Offline
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.

Bill BB #318646 10/19/2010 12:53 AM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
On "Group Management" select "Change" under the "Image" area, tada, group image.


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Sponsored Links
Bill BB #318648 10/21/2010 1:26 AM
Joined: Oct 2010
Posts: 6
Lurker
Lurker
Offline
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.

Bill BB #318651 10/22/2010 10:29 PM
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]


Bill Barker
Issaquah, Wa
Bill B #318655 10/26/2010 12:02 PM
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.
Ruben Rocha #318656 10/28/2010 2:09 AM
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:


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?


Bill Barker
Issaquah, Wa
Bill B #318657 10/28/2010 2:25 AM
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
Sponsored Links
Bill B #318659 10/29/2010 12:17 PM
Joined: Jan 2000
Posts: 254
Likes: 4
Beta Tester
Beta Tester
Joined: Jan 2000
Posts: 254
Likes: 4
Take a peek HERE


There is no such thing as stupid questions.
Just stupid answers.
Bill BB #318660 10/29/2010 1:02 PM
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

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
isaac
isaac
California
Posts: 1,157
Joined: July 2001
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
WebGuy 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)