How can I create a hook in Profile2 to add the user picture from user account

I'm using Profile 2. I made a custom image upload field. But, it's not recognized as the $user_picture. How can I hook the $user_picture into the Profile2? I'm kinda new to hooks. I can't find a hook for $user_image anywhere and If I just do if ($user_picture): print $user_picture; end if; it wont render. the closest hook I came across was function hook_user_view. But, that's other stuff in the user account. Not the user picture.

Can I build this kind of website using Drupal?

Hi Dear Experts,
I am experienced web developer but new to drupal, our team would like to build a website, similar to zaarly . com, which has following elements:

1. User management (Drupal has it)
2. Post item for sale, them other uers can click this item, and contact the seller. (I dont really want ecommerce, the transaction will be offline)
3. Pop-up form when registering (jQuery? How to do it?)
4. google map integration, which has location info of the item....

error on wysiwyg install

hi everyone i got the following error once i installed the wysiwig module on my local website:

Critical error when saving content with file attached: Menu link title field has to have maximum 128 values.

(see UPDATE below)
I need a way for a non-techie user to upload PDFs but the Media module (installed) appears unable to do this. I've read discussions about this but i haven't been able to glean a solution from the threads.

So I add a file field to a content type, configure it and use it to browse for and upload a PDF. This is what I get when I click 'Save':

[white x in red circle] [colon] Menu link title field has to have maximum 128 values.

If I have no menu link defined I get:

[white x in red circle] [colon]

New and existing pages, with new or existing file fields, display this error.

If I click Browse (for file) but NOT Upload, the file IS attached when the page is saved. So that's a workaround.

However, I can't remove a file - same error message. The workaround here is to [enable and] uncheck Display.

I've uninstalled the Media module but any newly created or current file fields are still 'broken'.

I don't know if this is related to the Media module or not.

Drupal core 7.7
Media 7.x-1.0-beta5

Any ideas anyone?

UPDATE:
The error appears to be generated by the Clientside Validation module. With this module disabled the File field works as expected. As does the Image field which was also affected.

Navigation menu - make it visible for anonimous / non-registered visitor

I want to make Navigation menu (in my site it includes only 2 links: search and contact) visible for visitors without logging in. I tried to mark the correspondent option in "Show block for specific roles" in blocks - navigation - configure, in users ("Customizable, visible by default"), but no way: when logged in, I see this block perfectly, and when I am out it disappears.

I also tried to add "contact" link to the main menu, which is always visible. All the menu stays visible, of course, but contact link does not appear.

Panels - Configuration - 7.x-3.0A3

I've been exploring the use of Panels in a new site, but one thing has eluded me thus far. Does anyone know if it is possible to, "ootb", allow users to modify panel content without rearranging the panel structure itself?

Nothing I've read in the documentation speaks to this and the security options I've looked through don't seem to offer that level of granularity.

Doing nothing more than a sanity check at this point.

Thanks!

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x