drupalfun.com
Tweaking Drupal without taking precautions.
Hello everyone,
I was tweaking away at my web site and managed to wreck it. Multiple database errors and nasties. So I am quickly rebuilding the site. I have made some significant progress - Unfortunately, I have misplaced my notes so there are a number of "little" issues here and there that are still outstanding due to my poor memory. Please free to answer any or all the questions:
1. Avatar Global settings under the Content Type (admin/content/node-type/profile/fields) - Should this field be "Required" or not ?
2. Avatar Global settings under the Content Type (admin/content/node-type/profile/fields) - Should there be a File Path set?
3. Avatar View Content Pane (Pg 35 of ebook) - Pane setting: “Argument input from context - nodeâ€. Should this UserID, NodeID, UserName or AuthorID?
4. Section 5.1.3 of the ebook (Page 50) - Configuring the node display does this involve creating another variant (and separate) called photogallery within the Profile page or simply adding a new custom block to the Profile content with the PHP code outlined on Page 50 of the
ebook.
5. After adding "Node Author" as a Relationship under the Profile Contexts a new option appears "Profile Node" - Is this normal?
6. Should Permissions for Authenticated users include the following
a. Access user profiles
b. Create Profile content
7. I am also attempting to create Avatar as a new content type instead of using it as profile field within the content profile. Any advice?
8. Section 9.2 (Page 118 of the ebook) , I am also trying to hack the code outlined to accomplish the following:
8a. Provide a "Change Password" link from the block. I know this links to the user page but what is/are the lines of code required?
8b. This one is embrassing, Provide a "Edit my Profile" link from the block using printl command rather than the "php print $profileid;?>/edit" command. So that the "Edit my profile" appears as a link a bit like the "My Profile menu link on Page 41 of the ebook.
Wheew, I know its lot but there are mainly little annoying bits that I can't seem to remember how to complete.
9. Tip: Backup your Drupal database.
Thanks in advance.
Related Questions
Responses
2. Big Thank you.
Thanks xdeminax,
Your advice is appreciated and covers all bases. The point of creating the avatar as a new content type was just a "nice to have" feature that I was considering initally but after reading the ebook I found that Dorien's method is most robust.
Many thanks
3. 8a. Provide a "Change
8a. Provide a "Change Password" link from the block. I know this links to the user page but what is/are the lines of code required?
i did this using a module named "Me" , it lets you use this variable on url wich points to logged user id , in example you can create a link like /user/me/edit and that will lead the user to his own account edit page.
you can do it with php but i was too lazy to do it :D plus "me" helps on any related links that you will create.
8b. This one is embrassing, Provide a "Edit my Profile" link from the block using printl command rather than the "php print $profileid;?>/edit" command. So that the "Edit my profile" appears as a link a bit like the "My Profile menu link on Page 41 of the ebook.
im not sure but in my opinion both are the same, whats the difference between these two in your opinion?


1. Well heres my personal
Well heres my personal recommendations:
1. Avatar Global settings under the Content Type (admin/content/node-type/profile/fields) - Should this field be "Required" or not ?
Depends on your needs.
2. Avatar Global settings under the Content Type (admin/content/node-type/profile/fields) - Should there be a File Path set?
Again, depends on your needs, if you want to keep your files folder a madness then no, otherwise is totally recommended.
3. Avatar View Content Pane (Pg 35 of ebook) - Pane setting: “Argument input from context - nodeâ€. Should this UserID, NodeID, UserName or AuthorID?
i would use NodeID as dorien said.
4. Section 5.1.3 of the ebook (Page 50) - Configuring the node display does this involve creating another variant (and separate) called photogallery within the Profile page or simply adding a new custom block to the Profile content with the PHP code outlined on Page 50 of the
ebook.
add a variant inside Node Template.
5. After adding "Node Author" as a Relationship under the Profile Contexts a new option appears "Profile Node" - Is this normal?
you mean in panels? if you using panels 3 you dont need to add contexts because its already there (author uid same as node author).
6. Should Permissions for Authenticated users include the following
a. Access user profiles
b. Create Profile content
this one is complicated for me to explain. Drupal has a Built-in Profile wich is the one that we see at oursite.com/user, as you use content profile you wont use drupals built-in profile but profiles as content (nodes) wich are more versatile and expandable.
If you know what i mean then you should:
7. I am also attempting to create Avatar as a new content type instead of using it as profile field within the content profile. Any advice?
hmm whats the point / advantage of doing this?