WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums


combining profiles with albums

Version:
printPrint


combining profiles with albums
knotworking
Experienced

Usergroup: Customer
Joined: Mar 31, 2004
Total Topics: 20
Total Posts: 83
Posted 05/12/05 - 09:18 AM:
quote post
#1
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
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5703
Posted 05/13/05 - 03:18 AM:
quote post
#2
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 Posts: 83
Posted 05/13/05 - 04:21 PM:
quote post
#3
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 Posts: 83
Posted 06/15/05 - 10:39 AM:
quote post
#4
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
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5703
Posted 06/16/05 - 07:08 PM:
quote post
#5
{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 Posts: 83
Posted 07/10/05 - 02:03 PM:
quote post
#6
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
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5703
Posted 07/10/05 - 06:03 PM:
quote post
#7
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.

Edited by Paul on 07/10/05 - 06:05 PM
knotworking
Experienced

Usergroup: Customer
Joined: Mar 31, 2004
Total Topics: 20
Total Posts: 83
Posted 07/11/05 - 04:07 PM:
quote post
#8
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


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.