Issues for ImageCache Profileshttps://www.drupal.org/project/issues/imagecache_profiles?text=&status=Open&priorities=All&categories=All&version=All&component=All
enUse the profile picture even if file doesn&#039;t existhttps://www.drupal.org/node/2272111
<p>There are a few cases where we want to use $picture even if the file backing it doesn't exist. The key time is when using <a href="http://drupal.org/project/stage_file_proxy" rel="nofollow">stage_file_proxy</a>, but there might be others. </p>
<p>Anyway, profiles are a key use with stage_file_proxy. This simple patch makes it start working.</p>
Wed, 21 May 2014 20:36:15 +0000rfayhttps://www.drupal.org/node/2272111Update project page about drupal 8https://www.drupal.org/node/2133609
<p>Drupal 8 changed user picture to field making the module obsolete for 8.x<br />
Project page should be updated with link to change notice <a href="https://drupal.org/node/1851200">https://drupal.org/node/1851200</a> and the issue <span class="project-issue-issue-link project-issue-status-info project-issue-status-7"><a href="/node/1292470" title="Status: Closed (fixed)">#1292470: Convert user pictures to Image Field</a></span></p>
<p>PS: after d.o upgrade to D7 I have no rights for that</p>
Mon, 11 Nov 2013 23:19:07 +0000andyposthttps://www.drupal.org/node/2133609Profile picture not showing up anymorehttps://www.drupal.org/node/2112169
<p>When using imagecache_profiles my user picture is not showing up anymore. The image link now is just for the main site. Anybody else experienced this issue?</p>
Tue, 15 Oct 2013 10:35:15 +0000lsolesenhttps://www.drupal.org/node/2112169Not resizing in viewshttps://www.drupal.org/node/1109804
<p>Imagecache is working properly with any node type in views, except user profile pics. I have tried several different imagecache presets, and none seem to resize user pics. However, I confirm that any other photo field, in any other node, resizes without any issues.</p>
<p>any ideas?</p>
Tue, 29 Mar 2011 20:07:34 +0000eswiderskihttps://www.drupal.org/node/1109804Better profile picture title attribute (SOLUTION INCLUDED)https://www.drupal.org/node/1842106
<p>When I display a collection of user pictures (for example, those users who have tagged some content), hovering over each just displays "View user profile". As I'm not displaying the user's name anywhere else in this list it would be useful for the title attribute on the image to include the user's name.</p>
<p>SOLUTION:</p>
<p>Change function imagecache_profiles_preprocess_user_picture line that reads:<br /><code>$title=t('View user profile');</code><br />
to match what is done with the alt attribute further up:<br /><code>$title = t("View @user's profile", array('@user' =&gt; $account-&gt;name ? $account-&gt;name : variable_get('anonymous', t('Anonymous'))));</code></p>
Thu, 15 Nov 2012 22:52:36 +0000dunxhttps://www.drupal.org/node/1842106Large main photo on profile page and default preset for all other photoshttps://www.drupal.org/node/760900
<p>I was reading various comments / issues around all of this, without finding a solution to the following problem when using imagecache profile pictures:</p>
<ol><li>suppose you've defined a preset "avatar" for a nice, small-sized avatar on all your other bits of content where you want profile pictures
</li>
<li>you've created a view with such avatar pictures and it's in a sidebar
</li>
<li>you navigate to your profile page, and all the avatars become the size you selected for your profile images, which are of course much larger.
</li>
</ol><p>I've read the other fixes regarding the imagecache_profiles_preprocess_user_picture function, but those don't work in this case. However, I think I have come up with a solution. The problem is that Drupal doesn't differentiate between the main profile picture and any other user picture. There are no indicators in any of the data structures. So, I did the following within the imagechache_profiles.module file to address this:</p>
<ol><li><em>hook_user</em> offers the opportunity to do something when stuff happens with user. So, I modified the imagecache_profiles_user function right at the end to include
<div class="codeblock">
<pre><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /> </span><span style="color: #007700">elseif ( </span><span style="color: #0000BB">$op </span><span style="color: #007700">== </span><span style="color: #DD0000">'view' </span><span style="color: #007700">|| </span><span style="color: #0000BB">$op </span><span style="color: #007700">== </span><span style="color: #DD0000">'form' </span><span style="color: #007700">&amp;&amp; </span><span style="color: #0000BB">$category </span><span style="color: #007700">== </span><span style="color: #DD0000">'account' </span><span style="color: #007700">) {<br /> </span><span style="color: #0000BB">$account</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">profile_picture </span><span style="color: #007700">= </span><span style="color: #0000BB">TRUE</span><span style="color: #007700">;<br /> }<br /></span><span style="color: #0000BB">?&gt;</span></span></code></pre></div>
<p>This adds a new element to the $account object to say, "Hey, I'm either looking at a profile or editing it, so there's a profile picture!"
</p></li>
<li>I changed the condition in the imagecache_profiles_preprocess_user_picture function as follows:<br /><div class="codeblock">
<pre><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /> </span><span style="color: #007700">if ( ( </span><span style="color: #0000BB">is_numeric</span><span style="color: #007700">(</span><span style="color: #0000BB">arg</span><span style="color: #007700">(</span><span style="color: #0000BB">1</span><span style="color: #007700">)) ||<br /> ( </span><span style="color: #0000BB">module_exists</span><span style="color: #007700">(</span><span style="color: #DD0000">'me'</span><span style="color: #007700">) &amp;&amp; </span><span style="color: #0000BB">arg</span><span style="color: #007700">(</span><span style="color: #0000BB">1</span><span style="color: #007700">) == </span><span style="color: #0000BB">me_variable_get</span><span style="color: #007700">(</span><span style="color: #DD0000">'me_alias'</span><span style="color: #007700">) ) ) &amp;&amp;<br /> </span><span style="color: #0000BB">$account</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">profile_picture </span><span style="color: #007700">) {<br /></span><span style="color: #0000BB">?&gt;</span></span></code></pre></div>
<p>This leverages the new data element in the $account data structure. In other words, only make it the profile preset if it is really a profile picture.
</p></li>
<li>There's an odd execution order that I've not figured out yet, but apparently imagecache_profile_user is called after user_user, so the profile picture is already part of the content and formatted (to the default little avatar size) by the time my #1 above actually occurs, so the next thing to do is create a new function and alter another one.
<ul><li>New function:
<div class="codeblock">
<pre><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">function </span><span style="color: #0000BB">imagecache_profiles_profile_alter</span><span style="color: #007700">( &amp;</span><span style="color: #0000BB">$account </span><span style="color: #007700">) {<br /> if ( </span><span style="color: #0000BB">$account</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">profile_picture </span><span style="color: #007700">) {<br /> </span><span style="color: #0000BB">$account</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">content</span><span style="color: #007700">[</span><span style="color: #DD0000">'user_picture'</span><span style="color: #007700">] = array(<br /> </span><span style="color: #DD0000">'#value' </span><span style="color: #007700">=&gt; </span><span style="color: #0000BB">theme</span><span style="color: #007700">(</span><span style="color: #DD0000">'user_picture'</span><span style="color: #007700">, </span><span style="color: #0000BB">$account</span><span style="color: #007700">),<br /> </span><span style="color: #DD0000">'#weight' </span><span style="color: #007700">=&gt; -</span><span style="color: #0000BB">10</span><span style="color: #007700">,<br /> );<br /> }<br />}<br /></span><span style="color: #0000BB">?&gt;</span></span></code></pre></div>
<p>This function alters the data structure prior to rendering, to replace the tiny avatar picture with the actual profile picture. At this point, imagecache_profile_user has executed, and if this is the picture for viewing or editing a user profile, the the profile_picture attribute is set to TRUE. So calling the theme function again will result in the condition above in #2 in the imagecache_profiles_preprocess_user_picture function to evaluate to TRUE, and so the correct preset will be chosen for the theme function.
</p></li>
<li>...but that function only works for 'view', so we have to alter the imagecache_profiles_form_user_profile_form_alter function and add the following at the end of it:<br /><div class="codeblock">
<pre><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /> $form</span><span style="color: #007700">[</span><span style="color: #DD0000">'picture'</span><span style="color: #007700">][</span><span style="color: #DD0000">'current_picture'</span><span style="color: #007700">] = array(<br /> </span><span style="color: #DD0000">'#value' </span><span style="color: #007700">=&gt; </span><span style="color: #0000BB">theme</span><span style="color: #007700">(</span><span style="color: #DD0000">'user_picture'</span><span style="color: #007700">, </span><span style="color: #0000BB">$form</span><span style="color: #007700">[</span><span style="color: #DD0000">'_account'</span><span style="color: #007700">][</span><span style="color: #DD0000">'#value'</span><span style="color: #007700">]),<br /> );<br /></span><span style="color: #0000BB">?&gt;</span></span></code></pre></div>
<p>This resets the user picture in the edit form to the larger size as well.
</p></li>
</ul></li>
</ol><p>And I think that's it. Now my pages render correctly. It's a bit of wasted effort in calling the imagecache_profiles_preprocess_user_picture function a couple of times for the profile pages, but I can't see any other way of doing this to keep all the changes within the imagecache_profile module and not manipulate core.</p>
Sat, 03 Apr 2010 05:31:08 +0000sdsheridanhttps://www.drupal.org/node/760900Full-Size Image on Profile not being resized by ImageCache presethttps://www.drupal.org/node/1211790
<p>I've got a site where I'm only using the built-in core profile (not Content Profile). I've followed all instructions for enabling and setting up ImageCache Profiles and I'm finding that the image uploaded to "Picture" in the user profile edit form is being displayed at full, original size and is not being resized as it should by ImageCache Profiles. I do not have Advanced Profile Kit or Content Profile enabled.</p>
<p>I've gone through this again and again. I've disabled and uninstalled all other modules that have "Avatar" or "Profile Picture" in their title and I'm just not seeing any effect by ImageCache Profiles on the actual profile image. Please keep in mind I've successfully developed other sites with Content Profile, CCK fields, Author Pane and have had no problems, but with this site I do not have the need for anything fancy on the profile, except a reasonably resized profile picture...</p>
<p>I'm attaching a few screenshots that demonstrate what I believe are working settings, just no result on the user profile for user1. Any help would be appreciated as I'm not finding anything in issues or otherwise that seems to have any bearing on what I'm experiencing.</p>
<p>Someone else seemed to report the same thing but andypost stated it was because of the 'me' module. I do not have the 'Me" module enabled.</p>
<p>Attached image 01 shows the image is not a small 180x240 pixel size as it should be when viewing the profile.</p>
<p>Attached image 02 shows the imagecache preset name, size and the live example image that shows the preset is working properly and is indeed resizing the example image down to 180x240. I'm using Scale and Smart Crop in this screenshot but also tried it with just Scale and Crop with the same problem.</p>
<p>Attached image 03 shows my User Settings and from what I can tell they should work as-is.</p>
<p>Attached image 04 just shows the image removed from the profile (deleted) and the placeholder default image shows up but is obviously a pre-sized image at the same size the actual profile picture is supposed to be.</p>
<p>Any help or insight into why this isn't working properly for me would be appreciated, greatly appreciated. I've struggled with this for days now, repeating the steps, uninstalling and reinstalling and repeating again to no avail.</p>
<p>Thanks!</p>
Thu, 07 Jul 2011 13:11:08 +0000deanfloryhttps://www.drupal.org/node/1211790Custom Profile Page - show cropped imagehttps://www.drupal.org/node/1730096
<p>I am having trouble getting the imagecache version of an image to show on a custom profile page.<br />
The image shows up with the default page layout.<br />
But when I create a custom user-profile.tpl.php all I can get is the original image.</p>
<p>right now I have this</p>
<div class="codeblock"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php </span><span style="color: #007700">if (</span><span style="color: #0000BB">$account</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">profile_header</span><span style="color: #007700">):</span><span style="color: #0000BB">?&gt;</span></span><br />&lt;img src="/<span style="color: #000000"><span style="color: #0000BB">&lt;?php </span><span style="color: #007700">print </span><span style="color: #0000BB">$account</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">profile_header ?&gt;</span></span>" &gt;<br /><span style="color: #000000"><span style="color: #0000BB">&lt;?php </span><span style="color: #007700">endif; </span><span style="color: #0000BB">?&gt;</span></span></code></div>
<p>What SHOULD I have?<br />
The preset I want to use is named "profile_header" as is the field for the image... is that a problem?</p>
Tue, 14 Aug 2012 14:42:04 +0000Madapplehttps://www.drupal.org/node/1730096Working with imagecache profile - image is brokenhttps://www.drupal.org/node/668362
<p>Imagecache Profile 6.x-1.1<br />
Imagecache 6.x-2.0-beta10<br />
Image API 6.x-1.6<br />
ImageAPI GD2 6.x-1.6</p>
<p>Currently, the problem is with the default user pictures appearing broken.<br />
I checked the issue queue at Imagecache profile and followed what fixed the issue for most. This was putting a copy of the default picture in:<br />
system/files/imagecache/user_image_default<br />
system/files/imagecache/user_image_large</p>
<p>Problem is, when I try to put images there I am told I don't have the permissions.<br />
I tried changing the permissions on those folders and it told me I don't have the permissions to change the permissions.</p>
<p>I will be writing to my hosting guy about changing the permissions for me, but I wanted to inform imagecache and imagecache profiles about this so you know. Maybe something is setting permissions so I can't upload images in there.</p>
Sat, 26 Dec 2009 23:00:12 +0000Kristinahttps://www.drupal.org/node/668362&quot;Minimum height is &quot; always shows even if variable is emptyhttps://www.drupal.org/node/918520
<p>Using this module the text "Minimum height is ." will appear on your users profile edit page if you don't have any user picture minimum dimensions set.</p>
<p>The problem is in this code from the imagecache_profiles_form_user_profile_form_alter() function:</p>
<div class="codeblock"><code>if (!empty($width)) {<br /> if (!empty($height)) {<br /> $description = t('Minimum dimensions are %dimensions.', array('%dimensions' =&gt; $width . 'x' . $height));<br /> }<br /> else {<br /> $description = t('Minimum width is %width.', array('%width' =&gt; $width));<br /> }<br /> }<br /> else {<br /> $description = t('Minimum height is %height.', array('%height' =&gt; $height));<br /> }</code></div>
<p>In plain English, the code is doing this:<br />
- If neither height nor width is empty, print the dimensions<br />
- If height is empty but width isn't, print the width<br />
- If width is empty, print the height</p>
<p>I think the easiest solution to this problem is to add a condition immediately following the code above:</p>
<div class="codeblock"><code>if (empty($width) &amp;&amp; empty($height)) $description = '';</code></div>
<p>I've added that code to my own copy of the module and it works as intended.</p>
<p>- Ryan</p>
Tue, 21 Sep 2010 18:11:49 +0000rschwabhttps://www.drupal.org/node/918520ImageCache Profiles overrides links set by viewshttps://www.drupal.org/node/1450768
<p>In views, you can set the links on profile images to point to any url you choose. However when ImageCache Profiles is enabled, these links no longer point to what was set in the view. Instead they point to the user profile. </p>
<p>Is there a way to allow views to set where the URL points for a profile image when ImageCache Profiles is enabled?</p>
Wed, 22 Feb 2012 17:10:50 +0000cjwesthttps://www.drupal.org/node/1450768Problem with the relative path needed for the Default user picture fieldhttps://www.drupal.org/node/1451530
<p>So, I'm trying to get Author Pane working with my Advanced Forum, as well as ImageCache_profiles in order to have well configured user avatar image sizes across my site.</p>
<p>However, I'm running into a problem where Author Pane/Adv Forum requires the full path for default image as opposed to Nodes/Comments which only need the file name (if file placed in sites/default/files)</p>
<p>For example:</p>
<p>In user/account settings, if I set the default image path to something like:</p>
<p>Default picture: sites/default/files/pictures/default.jpg</p>
<p>It works just fine for regular nodes and comments. The user avatar displays where it should at the top of the post. However, it causes the avatar display for Advanced Forum + Author Pane to fail, showing an image not found.</p>
<p>But, if I then change the user/account settings default image path to something that just shows the file name (but the image file is still stored in same place):</p>
<p>Default picture: default.jpg</p>
<p>It then works properly for Advanced Forum + Author Pane, but now fails for regulars nodes and comments.</p>
<p>I can't win?</p>
<p>I see some useful instructions for ImageCache_profiles here: <a href="http://drupal.org/node/1317306">http://drupal.org/node/1317306</a> - but these instructions don't work with respect to other modules which make use of the User Picture, namely the Advanced Forum and Author Pane.</p>
<p>Why do these modules all use different interpretations of the path for the default user picture?</p>
Thu, 23 Feb 2012 05:10:27 +0000davidcsonkahttps://www.drupal.org/node/1451530Profile picture is not removed from server when the user deletes it on his profile. https://www.drupal.org/node/1444512
<p>If a user has uploaded a profile picture and wishes to delete it, there's an checkbox marked "Delete picture" on the edit profile page, which the user can check and press "Save". This will remove the profile picture from the user's profile, but the picture will not be removed from the server. The next time the user uploads a profile picture, this will added to the server instead of overwriting the existing one. </p>
<p>If, however, the user chooses a new picture to upload before pressing "Save", the initial picture will be overwritten - whether or not the "Deleted picture" checkbox has been checked. I'm assuming this is the correct behavior and that checking the "Delete picture" checkbox should actually remove the picture from the server.</p>
Fri, 17 Feb 2012 19:15:57 +0000Ovenfrahttps://www.drupal.org/node/1444512Fatal error: Call to undefined function imagecache_preset_by_name() in imagecache_profiles/imagecache_profiles.module on line 48https://www.drupal.org/node/1409276
<p>I keep getting this error on my site.</p>
<p>It has caused major issues.</p>
<p>It happens when I login or when I hit save.</p>
<p>I don't understand. Imagecache is enabled.</p>
<p>and I have cleared my cache and restarted my server</p>
Wed, 18 Jan 2012 17:16:02 +0000SocialNicheGuruhttps://www.drupal.org/node/1409276Use theme(&#039;username&#039;, $account) instead of $account-&gt;name for RealName support in alt attributehttps://www.drupal.org/node/1373476
<p>I use RealName and didn't like how the alt attribute contained the username so I patched this according to how people are doing it in other modules.</p>
Fri, 16 Dec 2011 21:59:32 +0000TommyKhttps://www.drupal.org/node/1373476Image alt/title attributes different in Viewshttps://www.drupal.org/node/1373498
<p>I've modified ICP to use theme('username', $account) instead of $account-&gt;name in the alt attribute (see patch in <span class="project-issue-issue-link project-issue-status-info project-issue-status-8"><a href="/node/1373476" title="Status: Needs review">#1373476: Use theme('username', $account) instead of $account-&gt;name for RealName support in alt attribute</a></span>) so that the user's RealName will display on hover instead of the Username.</p>
<p>When I use the User: Picture in a view, the hover displays "[username]'s picture" instead of "[realname]'s picture" on all the pictures in the view. The alt/title attributes are correct (i.e., using the RealName) when viewing and editing the user profile.</p>
<p>I've flushed all caches, views cache, and every imagecache preset I have. I've also created brand new test views with just pictures. It seems like the code in the ImageCache Profiles module isn't being used in Views.</p>
<p>Anyone have any ideas?</p>
Fri, 16 Dec 2011 22:27:40 +0000TommyKhttps://www.drupal.org/node/1373498Make this module work with new views featurehttps://www.drupal.org/node/1317652
<p>Views will now support a option for the user picture not to link to the user profile. Imagecache profiles breaks this option:</p>
<p><a href="http://drupal.org/node/750172#comment-5142620">http://drupal.org/node/750172#comment-5142620</a></p>
Sat, 22 Oct 2011 09:21:42 +0000Lasachttps://www.drupal.org/node/1317652Default picture not showinghttps://www.drupal.org/node/370776
<p>Is it just me or is anyone else experiencing this issue?<br />
When I set the "Profile picture preset:" the default picture in user settings doesn't show on new accounts.</p>
<p>BTW I am using advance profile kit and user pane modules. Not sure if that is the cause but will test it with those disabled and report back.<br />
In the interim is there anyone else experiencing this behavior?</p>
Sat, 07 Feb 2009 20:22:49 +0000itainehttps://www.drupal.org/node/370776doesn&#039;t work on node pagehttps://www.drupal.org/node/1330080
<p>cool module, just what I needed to get different size user pictures.<br />
It works well on the user profile and the comments.<br />
However, on the node (detail) pages it doesn't change the size of the picture. It keeps showing the mini image.<br />
Is there a problem with the Bartik theme?<br />
When I print the $node object it shows that the user_picture_style was changed to "large" but<br />
it doesn't show a large image. I did clear the caches.</p>
<p>thanks</p>
<p>UWE</p>
Thu, 03 Nov 2011 01:38:55 +0000mototribehttps://www.drupal.org/node/1330080ImageCache Profiles 6.x release 6.x-1.4https://www.drupal.org/node/1304354
<p>There's a lot of fixes already since 1.3 release</p>
<p>They are pushed to <a href="/node/1304356" rel="nofollow">6.x-1.4-rc1 release</a></p>
<p>Any suggestions or release blockes?</p>
Sun, 09 Oct 2011 21:44:35 +0000andyposthttps://www.drupal.org/node/1304354Add static cache for comment pictureshttps://www.drupal.org/node/1304326
<p>Quering for pictures from comments should be cached</p>
Sun, 09 Oct 2011 20:58:07 +0000andyposthttps://www.drupal.org/node/1304326Integrate imagecache external with imagecache profileshttps://www.drupal.org/node/1300064
<p><a href="http://drupal.org/project/imagecache_external">http://drupal.org/project/imagecache_external</a> Would benefit cases like <span class="project-issue-issue-link project-issue-status-info project-issue-status-1"><a href="/node/334630" title="Status: Active, Assigned to: Dave Reid">#334630: Cache gravatar images locally</a></span> to store external images as profile pictures.</p>
Wed, 05 Oct 2011 10:35:10 +0000lightsurgehttps://www.drupal.org/node/1300064imagecache_profiles Vs user picture Vs CCK ImageField ?https://www.drupal.org/node/1301150
<p>Hi everyone,<br />
really need your help to take an important decision,<br />
what is the best way to depend on for my users pictures in my 27000 users social website?<br />
currently I see three options : imagecache_profiles Vs core profile user picture Vs CCK ImageField ?</p>
<p>- what is the bad and good in each? views + comments + nodes + performance etc.<br />
- is there any links can help comparing between them?</p>
<p>note: I will use content profile soon.</p>
Thu, 06 Oct 2011 08:40:08 +0000theroyalhttps://www.drupal.org/node/1301150how to get the original sized imagehttps://www.drupal.org/node/1278746
<p>hi there,<br />
how to get the original sized image in views? I can't find a "default" image.</p>
<p>Cheers Kai</p>
Wed, 14 Sep 2011 09:37:55 +0000Apfel007https://www.drupal.org/node/1278746Resize User Account picture and resize Facebook-style Statuses: Users with Pictures https://www.drupal.org/node/1238926
<p>1:) I want to Resize User Account Picture. I am using Imagecache profile module and I have enable user picture in users settings.I have make a preset for user_picture and I have select user_picture preset in Profile picture preset option<br />
Site information is as<br />
Url: <a href="http://www.demo.pursuitcp.com/">http://www.demo.pursuitcp.com/</a><br />
user name:jitendra<br />
pssword:jitendra</p>
<p>2:) I am using facebook style status module and in this various inbuilt views are available and I am using two views those user are as first is statuses/followed second is statuses/all.<br />
In these two views one field that's name is [user_contextual_pic] == Facebook-style Statuses: Users with Pictures.<br />
I have make a preset for this field facebook_picture preset and I have also select this preset for [user_contextual_pic] == Facebook-style Statuses: Users with Pictures field.<br />
But it is not resizing.<br />
Site information is as<br />
Url: <a href="http://www.demo.pursuitcp.com/">http://www.demo.pursuitcp.com/</a><br />
user name:jitendra<br />
pssword:jitendra</p>
<p>Any one can help me please for this problem.</p>
Thu, 04 Aug 2011 04:22:17 +0000jitendra0586https://www.drupal.org/node/1238926Facebook-style Statuses: Users with Pictures and user picture not resizinghttps://www.drupal.org/node/1238876
<p>drupal 6.22<br />
Facebook-style Statuses 6.3.x dev<br />
Imagecache Profile Pictures 6.x-1.x-dev</p>
<p>There is a problem is comming in imagecache profile picture when I want user picture different size and Facebook-style Statuses: Users with Pictures different size. but It is not resizing<br />
I have make a image cache preset and when i am using this in my view for size and Facebook-style Statuses: Users with Pictures there image preset name is comming and i am using this but it is not working.<br />
And same in User account when i have enable user picture then there one option for user picture is available and I am selecting<br />
preset that I want but it is not working</p>
<p>If any one can help me for this then please do this.</p>
Thu, 04 Aug 2011 03:11:24 +0000jitendra0586https://www.drupal.org/node/1238876ImageCache Profiles » package namehttps://www.drupal.org/node/1103744
<p>hello</p>
<p>requesting a change on package group to "Styles", for D7 version. it's a fair alternative to ImageCache.</p>
<p>package = Styles<br />
in module .info file</p>
<div class="codeblock"><code>Styles<br /> File Styles 7.x-2.x-dev<br /> Styles 7.x-2.x-dev<br /> Styles UI 7.x-2.x-dev</code></div>
<p>all 3 deal modules deal with Image Styles in D7, except Styles/Styles UI also deals with any kinds of files, and File Styles adds formatters/settings to Fields/Content/CCK, requiring also Styles module.</p>
<p>an alternative would be ImageAPI:</p>
<div class="codeblock"><code>ImageAPI<br /> ImageAPI 7.x-1.x-dev<br /> ImageAPI GD2 7.x-1.x-dev<br /> ImageAPI ImageMagick 7.x-1.x-dev</code></div>
<p>or Image Styles, but this one is redundant with Styles around.</p>
Thu, 24 Mar 2011 08:10:44 +0000lpalgarviohttps://www.drupal.org/node/1103744Imagecache profile pictures not showing up for posts or commentshttps://www.drupal.org/node/436296
<p>Imagecache profiles appears to generate the various sizes fine for use in profiles and views, but they don't seem to be showing up in nodes and comments (even though the settings in admin/user/settings are correct)</p>
<p>Do I need to update the standard picture code or template.php somehow?</p>
<div class="codeblock"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php <br /> </span><span style="color: #007700">print </span><span style="color: #0000BB">$picture</span><span style="color: #007700">;<br /> } </span><span style="color: #0000BB">?&gt;</span></span></code></div>
<p>Thanks,</p>
<p>Alex</p>
Fri, 17 Apr 2009 04:21:37 +0000ALT83https://www.drupal.org/node/436296Name change for D7 versionhttps://www.drupal.org/node/1172650
<p>Hi,</p>
<p>Great module, saved me from having to template changes to the various user pictures I need.</p>
<p>Since ImageCache doesn't exists for D7 I believe the name can be a bit confusing and would like to suggest that it is changed to something like:</p>
<p>- Profile Pictures<br />
- User Pictures</p>
<p>That would fill two purposes, less confusing and also getting Pictures in the name.</p>
Mon, 30 May 2011 01:19:00 +0000tsvensonhttps://www.drupal.org/node/1172650Help... Imagecache Profile directory issuehttps://www.drupal.org/node/914118
<p>OK, in User Settings, I set the default picture path to be "pictures"</p>
<p>Whenever a user uploads a picture, their picture is stored there in <strong>'sites/default/files/pictures'</strong></p>
<p>But when we use Imagecache Profile and we view that user's profile, the profile page looks for the picture in "sites/default/files/<strong>imagecache/user_image_default/pictures/</strong>". Since the picture is not stored there, hence the picture is not displayed. </p>
<p>How to fix this problem??</p>
Thu, 16 Sep 2010 23:19:20 +0000vintagebhttps://www.drupal.org/node/914118How to get around always linking to the User Profile page with &quot;access user profiles&quot; and request to have this built inhttps://www.drupal.org/node/1031108
<p>I have the permission "access user profiles" set on a site for all roles which means that every time I use ImageCache Profiles, the image will automatically link to the users page.</p>
<p>However, I have a list of articles on my site (which I display using Views) and besides these I display a picture of the author of the article. I've set the node titles to link to the articles, but the image always links to the user page. On the site I was creating it was requested that the user picture also could link to the node.</p>
<p>I got around this by putting the imagecache_profiles_preprocess_user_picture() function into my own template.php but I had to duplicate about 30 lines of code from that function to get the desired effect (basically remove lines 73-79 in the module). The end result is that my function returns just the theme_imagecache result and not the linked result, with or without the "access user profiles" permission set. However, my admin theme is different to my site theme so I can't preview the results properly in Views, but it does appear to work fine on the front-end.</p>
<p>I also had to copy the user-picture.tpl.php file in to my theme folder and remove the because Views was wrapping my new <a href="node/[nid]" rel="nofollow"> tag around the and making the page invalid.</a></p>
<p>Therefore I was requesting if it could be possible in the ImageCache profiles settings to set whether the image should link to the user profile page or not thus allowing it to be linked to wherever one likes using Views.</p>
<p>Thanks. </p>
Tue, 18 Jan 2011 12:41:47 +0000SkidNCrashwellhttps://www.drupal.org/node/1031108Profile pics works fine with no presets, add a preset and image breaks.https://www.drupal.org/node/1051942
<p>So I have a the images set up and created a preset under the site building-&gt;imagecache-&gt;profile and tried both resize and scale to specific px (100 in this case.)</p>
<p>When I add the preset under user settings to profile, comments, and content it breaks the images. In FF in displays a link with !username picture text where the picture should be and in IE it shows the little box with the x in the corner.</p>
<p>The link in FF works and the size of the box is the correct size, it just won't show the image. Is there something extra I missed in some settings or when creating the preset?</p>
<p>Thanks.</p>
Sat, 05 Feb 2011 11:02:16 +0000RKShttps://www.drupal.org/node/1051942No matter what I do, the image profile isn&#039;t showing uphttps://www.drupal.org/node/689938
<p>I am terribly sorry to bother everyone, but I sure could use some help. I am at my wits end...</p>
<p>I don't know if it's the imagecache profiles or anything else. I have been at this for 4 days, and i can't get it to work.</p>
<p>the profiles, in the social networking site i'm working on, are displaying the images that are uploaded. it is just showing the dreaded red x and the user name, with a link to the user's profile. it's not showing up when you edit the profile and upload the picture. the thing is, i was having this problem before i added imagecache and imagecache profiles.</p>
<p>I have followed the instructions to everything exactly, even set the image support parameters as it says. when i upload an image, i can see in the drupal directory where it is, it even changes the name, but it's not displaying on the profile or on any posts.</p>
<p>Any help would be greatly appreciated. Thank you</p>
Wed, 20 Jan 2010 01:20:42 +0000bedge1https://www.drupal.org/node/689938ImageCache Preset Permissions not respectedhttps://www.drupal.org/node/968012
<p>I am trying to disallow certain users from viewing profile pictures, in tandem with this module...</p>
<p>However, if I go into the Permissions page and disallow permission to view the imagecache presets used by the ImageCache User Profile module, users without that permission are still able to see profile images. Is this supposed to happen?</p>
<p>I would imagine it would make more sense if this module would respect the ImageCache permissions - if someone shouldn't be able to see the user-profile imagecache preset, then this module shouldn't display anything on the profile page...</p>
<p>Alternatively, could you set up a new permission, "view profile picture"? That would accomplish what I'm trying to achieve as well...</p>
Wed, 10 Nov 2010 18:01:47 +0000geerlingguyhttps://www.drupal.org/node/968012crop user pic on creation or edithttps://www.drupal.org/node/1044356
<p>hi great module! i have this working for setting an imagecache preset for uploaded images...<br />
i want to give users the ability to crop their picture while they upload or edit their profile pic..installed js crop action, but it never showed up when i went edit my image...any ideas?</p>
<p>also, on my account page the image appears without the preset applied (imagecache not invoked) ...any ideas here?</p>
<p>thanks!</p>
Sat, 29 Jan 2011 06:58:54 +0000funkeyrandyhttps://www.drupal.org/node/1044356No Change in Views fieldhttps://www.drupal.org/node/1041086
<p>Hi,</p>
<p>I am using Imagecache Profiles 1.3, Views 2.12 with Drupal 6.20.</p>
<p>I can see the presets shown in user settings page. But I don't see any sign of this module on a Views page. I expect there should be a dropdown menu when I add a User:picture field, but I don't see any.</p>
<p>I already cleared caches including Views cache. Any suggestions?</p>
<p>Thanks...</p>
Wed, 26 Jan 2011 18:04:43 +0000Sinan Erdemhttps://www.drupal.org/node/1041086Documentation fixeshttps://www.drupal.org/node/994314
<p>I see that README and <a href="http://drupal.org/node/364511">http://drupal.org/node/364511</a> should be changed to describe changes in Drupal 7 version.</p>
<p>I'm not good with English so any help appreciated</p>
Fri, 10 Dec 2010 06:01:24 +0000andyposthttps://www.drupal.org/node/994314picture not showing in Viewshttps://www.drupal.org/node/1000270
<p>Ok sorry (ICY) if I am being too much a pest here. I have done imagecache presets, attached user picture to views, but only the picture field shows up with a "user picture" placeholder link . No actual picture.<br />
Does being on localhost have anythiing to do with this ?</p>
Thu, 16 Dec 2010 17:23:07 +0000electronicmonkeyhttps://www.drupal.org/node/1000270Not working with Privatemsg modulehttps://www.drupal.org/node/357570
<p>I've installed this module and also the <a href="http://drupal.org/project/privatemsg" rel="nofollow">Privatemsg module</a> (5.x-3.0). Everything seems to be working fine as far as the profile picture caching is concerned: when I go to user/1, for example, I see the nice cached image, correct size. However, if I send a private message from say user 1 to user 2, and then go I go to user/2/privatemsg to get the message, I see the HUGE, un-resized profile picture of user 1. Is this an issue with this module, or with Privatemsg? Any ideas on how to fix it?</p>
<p>Any help is very much appreciated!</p>
Mon, 12 Jan 2009 08:56:46 +0000JordanMagnusonhttps://www.drupal.org/node/357570theme override for imagecache preset HELPhttps://www.drupal.org/node/942532
<p>i am trying to create a theme overide to allow an image cache preset to display in a submodules comment area.</p>
<p>I have tried numerous time to theme override function correctly, but have been unsuccessful and need some help.</p>
<p>below is the code I have been directed to use. user_picture resolves fine, but I would like to use an imagecache preset I have named user_image_thumbnail.</p>
<p>But like I said no matter how I code it, it does not resolve to the image cache preset I am trying to define.</p>
<p>any help with how exactly this should be displayed would be greatly appreciated.</p>
<p>/**<br />
* Formats a comment.<br />
*<br />
* @param $comment<br />
* The comment object.<br />
* @param $classes<br />
* An array of extra classes to include in the comment status wrapper div.<br />
* @param $destination<br />
* The destination query string for edit and delete links. Usually the current<br />
* page unless this function is called from a JavaScript callback page.<br />
* @return<br />
* The fully themed status comment or FALSE if the current user does not have<br />
* permission to view the comment.<br />
*/<br />
function theme_fbssc_item($comment, $classes = array(), $destination = '') {<br />
if (!fbssc_can_view($comment)) {<br />
return FALSE;<br />
}<br />
$author = user_load(array('uid' =&gt; $comment-&gt;uid));<br />
array_unshift($classes, 'fbssc_comment');<br />
$classes = implode(' ', $classes);<br />
$output = '';<br /><b>$output .= ''. theme('user_picture', $author) .''; //This is line where the picture is added</b><br />
$output .= ''. theme('username', $author) .'';<br />
$comment_text = _facebook_status_run_filter($comment-&gt;comment);<br />
$comment_text = nl2br($comment_text);<br />
$output .= ''. $comment_text .'';<br />
$output .= '';<br />
$output .= ''. theme('facebook_status_time', $comment-&gt;comment_time) .'';<br />
$q = $_GET['q'];<br />
if ($destination) {<br />
$q = $destination;<br />
}<br />
elseif (strpos($q, 'fbssc/js') !== FALSE) {<br />
$q = '';<br />
}<br />
if (fbssc_can_edit($comment)) {<br />
$output .= ''.<br />
l(t('Edit'), 'statuses/comment/'. $comment-&gt;cid .'/edit', array('query' =&gt; array('destination' =&gt; $q)))<br />
.'';<br />
}<br />
if (fbssc_can_delete($comment)) {<br />
$output .= ''.<br />
l(t('Delete'), 'statuses/comment/'. $comment-&gt;cid .'/delete', array('query' =&gt; array('destination' =&gt; $q)))<br />
.'';<br />
}<br />
$output .= '';<br />
//Invokes hook_fbssc_render_alter(&amp;$output, $comment).<br />
drupal_alter('fbssc_render', $output, $comment);<br />
return $output;<br />
}</p>
Fri, 15 Oct 2010 13:21:08 +0000glitzhttps://www.drupal.org/node/942532Directory ownerhttps://www.drupal.org/node/912520
<p>When creating a new preset the directory owner is set to www-data and the group to www-data<br />
But it should be my username and groupname. This results in an permission error.<br />
I can manually change group and owner name. Is this a bug? I think so.</p>
Wed, 15 Sep 2010 16:28:16 +0000baffhttps://www.drupal.org/node/912520Unable to see imagecache presets in field formathttps://www.drupal.org/node/911766
<p>Hi, I must say you are involved with some great modules!</p>
<p>Anyway, I'm struggling with trying to install imagecache profiles. After downloading, enabling, and configuration, I am unable to see any imagecache (IC) presets in the field formats for the User:Picture. My options are the<br />
usual: Picture as image; Picture linked to user; Picture path (plain text).</p>
<p>My IC presets work with other CCK fields. I followed the documentations instructions, although I didn't understand the last paragraph about panels. This seems like such a simple thing, but I'm stumped why it won't show me the IC presets.<br />
Are there common reasons this is occurring?</p>
<p>Your help would be greatly appreciated.</p>
<p>Sincerely,</p>
<p>Eric</p>
Tue, 14 Sep 2010 23:59:24 +0000drtruebluehttps://www.drupal.org/node/911766not resizing imagehttps://www.drupal.org/node/875316
<p>I have a strange problem. I created several accounts to test my site. Profile images seem to be working ok on all but one profile. The profile image on that users profile is double the image cache preset. How could this sort of thing happen? Do I have a setting wronge? I created the presets and set them on the user settings page. Any help would be greatly appreciated.</p>
Fri, 06 Aug 2010 00:17:32 +0000yosisayshttps://www.drupal.org/node/875316New image does not updatehttps://www.drupal.org/node/615304
<p>I like this module however, when a user uploads a new picture of himself in lieu of the old one, the new is one is present in his user profile page but the old one is also still present in his node pages. The new picture should be in his node pages just like on his profile page. I tried clearing the caches and resetting cron but the results don’t change. I read a review from drupalmodules.com about this module and a user claims a similar problem, “This did not sink up images, so on uploading new images users will often have one image of the new type and another on another area. Not recommended at this time. I hope it becomes better!” How can this problem be fixed?</p>
Mon, 26 Oct 2009 21:43:02 +0000rockwrighthttps://www.drupal.org/node/615304Image Cache Profile and User Visitshttps://www.drupal.org/node/795624
<p>An other problem is given by User Visits. How to change the pre set for User Visits. I do not like big pictures in User Visits and my code in the template.php file seems to be not working: </p>
<p>/**<br />
* kleine<br />
*/</p>
<p>function user_visits($account, $timestamp = NULL, $referer = NULL) {<br />
$output = ''."\n";<br />
$output .= theme('imagecache', 'user_image_default', $account-&gt;picture, $alt, $title, $attributes);<br />
$output .= ' '. theme('username', $account) .''."\n";<br />
if ($timestamp) {<br />
$output .= $timestamp ? ' '. t('!time ago', array('!time' =&gt; format_interval(time() - $timestamp))) .''."\n" : '';<br />
$output .= $referer ? ' '. t('Referer !link', array('!link' =&gt; l($referer, $referer))) .''."\n" : '';<br />
}</p>
<p> $output .= ''."\n";<br />
return $output;<br />
}</p>
<p>What can I do?</p>
Tue, 11 May 2010 07:58:16 +0000Albrecht Marignonihttps://www.drupal.org/node/795624