Closed (won't fix)
Project:
Blog Information
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Jul 2007 at 14:50 UTC
Updated:
20 Oct 2010 at 07:55 UTC
hello,
would it be possible to have a radio-button "Include my Picture in Blog Information block"???
if checked it would result in user's Avatar appear inside the BlogInfo block, above the text.
I thank you in advance
Comments
Comment #1
mfer commented@matrixfighter - While there isn't an easy to select checkbox it can be done fairly easily. I don't really have the time to write the code to do this anytime soon. Though, if someone else wants to roll a patch they can.
To get the picture to work add this to the template.php file for your theme:
Comment #2
drupalina commentedthanks... but...
I've pasted this code into my template.php (which for some reason does not end with "?>" - but anyway)
and it came back with this error:
Parse error: syntax error, unexpected '<' in C:\wamp\www\dev\sites\all\themes\basetheme\template.php on line 280
line 280 is the line which displays the first line of your code -- ie
<?phpI tried deleting "?>" at the end, but it's all the same
BTW: my basetheme is based on Zen theme
Comment #3
drupalina commentedI've deleted "
" and also the "" at the end of your code. The site was back up again.But when I've started testing the BlogInfo module it also gave me the following:
* warning: Invalid argument supplied for foreach() in C:\wamp\www\dev\modules\user\user.module on line 53.
* user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 query: SELECT * FROM users u WHERE in C:\wamp\www\dev\includes\database.mysql.inc on line 172.
The BlogInfo text is displaying no problems, but there is still no avatar inside the BlogInfo block.
Comment #4
mfer commentedDo you get the error without any modifications to the template.php file?
In your template.php file put everything between the
andbut not theand.Comment #5
drupalina commentedI ran the script to display user's avatar as you gave me originally -- that didn't work.
Then I modified few minor things -- that didn't work either.
It now gives me the following error
* warning: Invalid argument supplied for foreach() in C:\wamp\www\dev\modules\user\user.module on line 53.
* user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 query: SELECT * FROM users u WHERE in C:\wamp\www\dev\includes\database.mysql.inc on line 172.
I never changed anything in user.module
Should I just wait untill you release a newer version of this module that would incorporate this feature of displaying user's avatar by default?
Comment #6
chadchandler commentedI would be willing to bet you are also using " Private Message" module. Use the latest stable version to fix this, not the Dev :)
Comment #7
drupalina commentedyes, I am using the Private Mesage module, but it is the stable 1.8 version and these errors still show
Comment #8
po8 commentedPerhaps a better way to do this is by setting a block on the page? I'm not sure whether this would require any custom code in current Drupal at all? I think it might be sufficient to just set up the block with the content being a pointer to the user's avatar?
Comment #9
vikingew commentedPushing this forwards as there wont be any new features in D5 version, however no promises this will be in D6 either but I will look at it when I got time.
Comment #10
wuf31 commentedsubs
Comment #11
tsi commentedMaybe the Author pane module can help you with that by adding a block with the author details like name, picture and more.
Comment #12
vikingew commentedAny interest for this still?
Comment #13
RKopacz commentedI am definitely interested in a feature that will let me display user avatar in a blog node, story node, or a block generated by Views to do custom listings of user-specific blog content, story content, etc. other authored content type. For example, I have a page on one site I am developing where I have a number of blocks created in Views which display the five most recent blog entries of a user. I would love to have the user picture (avatar) appear, say, to the right of the title of the block. I understand that I can custom code the block to get this, and you can find a lot of info by searching on the internet, but it would be good to have this built in.
Thank you...
Comment #14
vikingew commentedHi,
and sorry for delays but I have been away for some time... However, it isn't clear to me if in what you describe doing is something you are currently using this module for or not? Or if you more think it generally would be a good idea to add to this module.
Comment #15
drupalina commented@ yettin - hi, given that the original post was in 2007, I've found other solutions for this, such as the Author Pane module, which to some extent achieves what this module does.
Comment #16
vikingew commented@drupalina - great, just following up and if possible closing down old or irrelevant issues. Still haven't decided what I'll do with this project. As you pointed out there are other modules that can achieve just about the same and unless I find some specific empty space to fill as D7 unfolds I'll probably just let it ebb out.