Webmastersite.net
Register Log In

combining profiles with albums

Comments on combining profiles with albums

knotworking
Experienced

Usergroup: Customer
Joined: Mar 31, 2004

Total Topics: 20
Total Comments: 83
Posted May 12, 2005 - 11:18 AM:

Sorry for the daily questions. I'm almost done, if that's any consolation.

Here's my new issue. I want member profiles to display their album images, too. I have been customizing albums.tpl to look the way I want(I tried to do this with viewprofile but, I can't call the images into the profile), figuring I would link search results to the member albums but, after using the search function, I realize that I can't link search results to member albums if the member has not created an album.

I figure there are a few ways to work around this issue but, I don't know what would work best (or at all):

- somehow call the images into the member profile (is this possible)
- automatically create albums for all members
- create a custom template that can call both member and image variables

What do you think is the best solution? I guess another option might be to create a switch in the search results that links to a member album if it exists or to a member profile, if it doesn't.

Thanks for all your help with this!
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted May 13, 2005 - 5:18 AM:

Just linking the album in the profile would be a lot more server-friendly. I suppose you can always try a toplist where catid={MEMBERALBUMID}... though that may only give you the person viewing the page instead of the person whose profile it is.

I realize that I can't link search results to member albums if the member has not created an album.

Why not just use a conditional? <IF {MEMBERALBUMID}>link to search</IF>
knotworking
Experienced

Usergroup: Customer
Joined: Mar 31, 2004

Total Topics: 20
Total Comments: 83
Posted May 13, 2005 - 6:21 PM:

This works great (a user would be none the wiser):

<IF {MEMBERALBUMID}><a href="albums.php?id={MEMBERID}">View Profile</a><OTHERWISE><a href="[IFADMIN../]memberlist.php?action=profile&id={MEMBERID}">View Profile</a></a></IF>
knotworking
Experienced

Usergroup: Customer
Joined: Mar 31, 2004

Total Topics: 20
Total Comments: 83
Posted Jun 15, 2005 - 12:39 PM:

oK, I'm having a strange issue with this. I am trying to give a custom title to each page so, in the wrapper.tpl I put
<title>{MEMBERCITY}, {MEMBERSTATE} Gallery</title>

It displays the member info fine for a title when viewing albums but, when viewing profiles, I just get the variables as printed above. I'm assuming this is because there is a switch or something going on in the body of the profile that calls that information after the head data has been rendered.

Is there something I can place in the wrapper that will enable me to call the specific member data in the profile for use in the title or, will this only work in ablums?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jun 16, 2005 - 9:08 PM:

{MEMBER never applies to the wrapper. It would only default to showing the content of {THISMEMBER. Click 'page titles' in the language area to edit titles.
knotworking
Experienced

Usergroup: Customer
Joined: Mar 31, 2004

Total Topics: 20
Total Comments: 83
Posted Jul 10, 2005 - 4:03 PM:

I've changed all the page titles but, I am still stuck with a few.

The most important title is for member albums but, I cannot find that title anywhere. I tried to create a new variable via:
title_albums:
{LANG_TITLE_ALBUMS}

But the album page title is still displaying:
"(this member username)'s Album"
as a title (giving away the username for one thing). Where can i find this title variable?

I've tried using {MEMBERCITY} and other member-specific variables in title_profile to customize the page title but, it won't display any variables for the specific member profile I am viewing. Is it possible to do this?

Along those lines, I'd like to do the same thing for member albums. It's already displaying the username in the title variable so, I should be able to use those member variables (if I could only find the title variable for it), right?

Thanks, Paul!
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jul 10, 2005 - 8:03 PM:

Member albums are titled with the album name. Edit the category to change its name. To change what they end up getting named by default, that's a language item, just search for 'Album' and you'll find it.

Category titles in general can be customized in 2.2, and your {MEMBERCITY} would work in that particular spot in 2.2, but as a general case template variables only work in titles when there's been a request for it.
knotworking
Experienced

Usergroup: Customer
Joined: Mar 31, 2004

Total Topics: 20
Total Comments: 83
Posted Jul 11, 2005 - 6:07 PM:

I can't find that album title variable in the language section for the life of me. I've filtered every which way and event created a title_album to see if I could change the value that's getting displayed. I've chosen "show all language from default" a half dozen times and searched each variable with no luck. Is it possible that it's not a changeable variable in 2.15?
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.