php forum
php mysql forum
php mysql smarty
 
Topic Options
#318639 - 10/17/10 12:10 AM Template Mod - Need Help
Bill BB Offline
Lurker

Registered: 10/16/10
Posts: 4
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}
<br />
{$lang.VCCAMEMBER}
{/if}

Would appreciate any pointers that might help me.

Top
#318643 - 10/18/10 03:05 PM Re: Template Mod [Re: Bill BB]
Ruben Rocha Offline
Member

Registered: 01/19/00
Posts: 182
Loc: Lutz,FL,USA
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.

Top
#318644 - 10/18/10 03:57 PM Re: Template Mod [Re: Ruben Rocha]
Bill BB Offline
Lurker

Registered: 10/16/10
Posts: 4
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

Top
#318645 - 10/18/10 11:59 PM Re: Template Mod [Re: Bill BB]
Bill BB Offline
Lurker

Registered: 10/16/10
Posts: 4
This almost worked....
=======================
post_side.tpl
=======================

{SELECT `GROUP_ID` FROM `ubbt_USER_GROUPS` WHERE `USER_ID` =2}
{if $GROUP_ID = 16}
<br />
{$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.

Top
#318646 - 10/19/10 12:53 AM Re: Template Mod [Re: Bill BB]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
On "Group Management" select "Change" under the "Image" area, tada, group image.
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#318648 - 10/21/10 01:26 AM Re: Template Mod [Re: Bill BB]
Bill BB Offline
Lurker

Registered: 10/16/10
Posts: 4
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.

Top
#318651 - 10/22/10 10:29 PM Re: Template Mod [Re: Bill BB]
Bill B Offline
User

Registered: 12/23/01
Posts: 47
Loc: Issaquah, WA
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?

_________________________
Bill Barker
Issaquah, Wa

Top
#318655 - 10/26/10 12:02 PM Re: Template Mod [Re: Bill B]
Ruben Rocha Offline
Member

Registered: 01/19/00
Posts: 182
Loc: Lutz,FL,USA
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.

Top
#318656 - 10/28/10 02:09 AM Re: Template Mod [Re: Ruben Rocha]
Bill B Offline
User

Registered: 12/23/01
Posts: 47
Loc: Issaquah, WA
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

Top
#318657 - 10/28/10 02:25 AM Re: Template Mod [Re: Bill B]
Bill B Offline
User

Registered: 12/23/01
Posts: 47
Loc: Issaquah, WA
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

Top
#318659 - 10/29/10 12:17 PM Re: Template Mod [Re: Bill B]
Ruben Rocha Offline
Member

Registered: 01/19/00
Posts: 182
Loc: Lutz,FL,USA
Take a peek HERE

Top
#318660 - 10/29/10 01:02 PM Re: Template Mod [Re: Bill BB]
Bill B Offline
User

Registered: 12/23/01
Posts: 47
Loc: Issaquah, WA
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

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks