This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Any suggestions for profile image situation?

I'm looking for any suggestions on how to gracefully handle this situation:

I need a way to have a user upload two different profile images with different size constraints placed on them dependent on which template the user is currently using. Then, these two images will appear on different pages in the site. One will be used as a splash / landing page image, the other to appear on a user profile page. (this user is kinda of an admin of the site, though not the super admin. But the site will be there main site, hence the splash and profile images being tied to them)

The way I envision the user experience is as such:

User goes to edit their profile.
User uploads the photo they want to be used as the splash image. The splash area will have a sample image in its place until this step is completed.
User uploads the photo they want for their profile page.
User saves and viola! All the hard work was done behind the scenes.

Behind the scenes the following needs to happen:
Both uploaded photos get saved somewhere (obviously)
Something checks to determine what the current template is ($theme) and resizes the uploaded photos accordingly. (the user could be uploading a large photo, so we don't want to just scale the image with HTML)

I've tried this using the ImageCache_Profile which kinda of worked but didn't do everything I wanted it to.

profile module with views (and usernode)

I've got a tricky problem that I'm trying to work out and I'm not sure how to proceed.

I'm using the profile, usernode, and views modules. In the end, I'd like to create a view that shows all users with links to each's profile page.

I've set up a couple of profile fields: profile_firstname and profile_lastname. I'd like the view to show the user's name in the format:

profile_lastname, profile_firstname

plus, I'd like the whole thing to be a link to the user's profile page. It is important that I keep the profile_firstname and profile_lastname fields separate. Here's what I have so far in the views_profile.inc file:

//----- from profile_views_add_field
...snip...
if ($field->name == 'profile_lastname') {
$help = t('FGBC Custom profile last, first name field.');
$others = array(
'sortable' => true,
'handler' => array(
'views_handler_field_profile_default' => t('normal text'),
'views_handler_field_profile_link' => t('themed userlink'),
),
'uid' => 'uid',
'addlfields' => array('uid'),
);
}
...snip...

function views_handler_field_profile_link($fieldinfo, $fielddata, $value, $data) {
if ($value) {
$obj->name = $value;
$uidfield = $fielddata['tablename'] . "_" . $fieldinfo['uid'];
$obj->uid = $data->$uidfield;

I can not go in with user's nickname to the chat PJIRC

Forgive me my bad English, I need his help, I can not enter to the conference of module PJIRC, always I go in with Guest's nick and do I wish to go in with the nick of user registered of drupal as I do it? The option that has the module do it not work ouch any other manner?

That I can change here in order that it work ?


  $pjirc_nick = $user->uid ? $user->name : variable_get('pjirc_nick','');


menu trim and sub-sub-menus

hi,

i am in the process of changing the default theme for one of my sites (http://kjg.sanktlaurentius.org) and for that i wanted to use the primary links in the header and secondary links on the left side.

I installed menu_trim.module and configured it.

It is almost working. Just one problem left.

Adding Modules w/ drupal on powweb server

Does any one know about updating and adding modules when your drupal installation is on powwebs server. Thats who hosts my account and webspace. I know that when I download a module or update it goes to my computer. Would I just upload to the server in the right folder with dreamweaver or does my drupal have something automatically to add modules straight to the powweb server. Also I get alot of files downloaded in the tar format and many say winzip is the solution to open them but I cant. Windows dont recognize the file yet I know its tar file.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions