Hello
I am not using the built-in Enable user pictures in Drupal 7 account settings - for reasons to do with displaying messages. Instead I have created a new user defined field field_user_picture for users to upload their pictures.
I would now like to display this field together with any comments that a user makes. However I can not find how to make this variable appear in comment.tpl.php.
Any help would be greatly appreciated.
Thank you in advance
Craig
I bought a theme that comes with a mobile version. The problem is that in messing around with the css to get the site to look the way I want, the mobile version is all kinds of messed up. I wish these things were better seperated but they aren't. So instead of wading through the code trying to make the site look ok, I'd rather just flat out disable the mobile versions and have the full site appear as-is no matter how the site is viewed. Is there any way to do that? I tried googleing around for it, but I mostly ended up with people asking about certain modules or themes that I don't use.
I'm building a library and it is possible to add books to website. I need to get uploaded file urls and display them in 'a' tag inside views page (not node). how can I do that?
unfortunately I can't use kpr() to find file properties I guess because it has lot's of outputs and it prevents the page from loading (var_dump does the same thing)
I also tested this function to print the file size but it failed
function MYT-HEME_file_link(&$variables) {
$file = $variables['file'];
print $file->getsize();
}
I only want images that are exactly 900x500. If a user uploads an image bigger than that it gets resized. How can i turn off resizing so it simply just rejects the image.