Welcome to Geeklog, Anonymous Monday, December 23 2024 @ 03:36 am EST

Geeklog Forums

User Profiles For Artists


julianna

Anonymous
I am considering "pitching" Geeklog to an artist society because we can make use of many of its features. However, I am having some difficulty trying to determine how we can create user profile pages which would meet our needs. These pages would need:

-text and image functions (so we can include art samples and a bio)
-to automatically generate a page of links to the profiles (to minimize maintenance by administrators who may not have strong computer skills; to have a list of members)
-to have the option of being administered by the individual member or by an administrator, but not other members (so the member can maintain their own profile, but can not modify other members' profiles)
-to have the option of being administered by only an administrator (not all members have access to the internet, but should have the option of having a profile page)

It seems like the easiest way to do this is by modifying users.php (etc) and installing the user list hack.

Does anyone have any suggestions for other methods?
 Quote

Status: offline

Blaine

Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
This sounds more like a plugin as it would then integrate into Geeklog with no need to modify core GL code - something you really want to avoid as it makes upgrading a lot more difficult.

Plugins can extend a users profile and add new features to the user/admin menu. Using permissions, users would only be able to edit their portfolio.

Or if the profile additions are all thats needed and you can use Gallery for the images - linking to a member album - and using the custom_membership functions. This would still require some coding but the changes would be still make upgrading later easy.


Geeklog components by PortalParts -- www.portalparts.com
 Quote

julianna

Anonymous
Thanks, Blaine.

I've downloaded the Custom Membership Example hack and will fiddle with that. I don't think I'll be able to write a plug-in for what I need because I only "know" enough code to modify things.
 Quote

julianna

Anonymous
Part 1 - Solution (part 2 is a question about how to add the finishing touches)

This solution probably isn't the best, but it does the job (and is all I can do with my level of expertise). Here is what I did, incase anyone else wants the info:

1. Install gallery plugin.

2. Make the following modifications to $LANG04 in english.php (in geeklog/language/):

Text Formatted Code

    6 => 'Member Gallery Page',
    7 => 'Arist Information',
    8 => 'Arist Statement',
    36 => 'Link to gallery site',
    38 => 'Enter your bio or CV. All HTML formating shall be removed.',
    39 => 'Enter your artist statement. All HTML formating shall be removed.',
    106 => 'Medium or media',
    107 => ''

 


3. If you want to hide the "Last 10 etc" and Posting Stats, go to your users.php file and hide or remove everything from:

Text Formatted Code

//    $user_templates->set_var('start_block_last10stories',
//            COM_startBlock($LANG04[82] . ' ' . $A['username']));

 


to

Text Formatted Code

//    // Call custom registration function if enabled and exists
//    if ($_CONF['custom_registration'] AND (function_exists(custom_userdisplay)) ) {
//        $user_templates->set_var ('customfields', custom_userdisplay($user) );
//    }
//    PLG_profileVariablesDisplay ($user, $user_templates);

 


This may not be entirely correct, but it's as close as I could get the line removal without effecting the look of the site. If anyone knows of lines which should/shouldn't be removed, please let me know because this currently leaves a few table rows at the bottom of the user profile page.

4. Install userlist.php and link to it.

5. Results:
-When members are added, their profiles are now showing as being related to art.
-They can create an album within the gallery extension and link to that from their profile.
-When userlist.php is accessed, all members will be shown
 Quote

julianna

Anonymous
Part 2 - Question about userlist.php

How do I modify the userlist.php file to:

1. Be accessible to anonymous users?
2. Not show the email link
3. Show the information in the "location" field of the userinfo table?

Believe it or not, I actually got #1 to work, but copied over the code Doh! - that was a mistake
I've been trying unsuccessfuly for the past half hour to recreate what I did.

I have been able to remove the email link by replacing:

Text Formatted Code

        $retval .= '</td><td>' . $A['fullname']
                . '</td><td><a href="' . $_CONF['site_url']
                . '/profiles.php?uid=' . $A['uid']
                . '">' . $LANG04[81] .'</a></td></tr>' . LB;

 


with

Text Formatted Code

        $retval .= '</td><td>' . $A['fullname']
                . '</td></tr>' . LB;

 


However, I can't figure out how to adjust the code to pull the location information and place it where the email link used to be.

Is anyone able to help me with #1 or #2?

Thanks!
 Quote

julianna

Anonymous
New step 3

Instead of modifying users.php, it's safer to modify your template. (I don't know why I didn't think of this first!).

Leave users.php as is, and remove the following from your profile.thtml file in the users folder of your theme (e.g. /public_html/layout/professional/users/profile.thtml):

Text Formatted Code

 {end_block} {start_block_last10comments} <table border="0" cellpadding="3" cellspacing="0" width="100%"> <tr> <td> <table border="0" cellspacing="0" cellpadding="3"> {comment_row} </table> </td> </tr> </table> {end_block} {start_block_postingstats} <table border="0" cellpadding="3" cellspacing="0" width="100%"> <tr> <td> <table border="0" cellspacing="0" cellpadding="3" width="100%"> <tr> <td>{lang_number_stories}</td><td>{number_stories}</td> </tr> <tr> <td>{lang_number_comments}</td><td>{number_comments}</td> </tr> <tr> <td colspan="2"><a href="{site_url}/search.php?query=&datestart=&dateend=&topic=0&type=all&author={user_id}&mode=search">{lang_all_postings_by}</a></td> </tr> </table> </td> </tr> </table> {end_block}

 
 Quote

julianna

Anonymous
Please see this post for my changes to userlist.php to solve the questions in Part 2.
 Quote

All times are EST. The time is now 03:36 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content