Need to edit a part of 'user profile' page - DRUPAL 6 - drupal

I have a search in my drupal website which searches for users registered in my website (finder module). Upon clicking any user from the user search result, it takes to that user's profile page.
At the top of that page, a text 'Relationship' is displayed. Under it, a link saying 'become X's friend' (X is the drupal generated name of a user). Now 'X' is the default name generated by drupal when the user registers to the site. Users have their own real name (stored in realname table). So i want to display the link as 'become XYZ's friend' (X's real name). Where should i edit the code?? in which php file??
Example: For a user John Smith, the link will be "become john225de's friend", while I want it to be like "become John Smith's friend".

Are you using heartbeat module for user relations? Once i too faced the same problem, so i used user_relationships with activity module and solved the problem.

Related

Show contents created by admin on specific profile pages of users in drupal

I'm working with a job vacancies site with drupal. There's a content type named CV and there are specific profile pages for specific users(I use Profile2 module).
What I want to do is when admin add a new CV for a specific user, that cv is posted on that user's profile page.
I can create cv content but can't link to that user's profile page.
I've find possible answers on google and can't find the right one.
Using the Views module, you can create a page view that displays nodes of type CV and uses the User ID (from logged in user or URL) as a contextual field, then set the path to something like "user/%/CV".

Do I need plugins or custom node types?

I'm developing a website for my online start up. I've finalized what will be needed for me in Drupal. I just have few questions.
The Concept:
My website brings young musicians & album reviewers to one place. Idea is that, every reviewer can choose 2-3 albums of any musician and we'll mail him CDs of those albums for free. In return we expect them to review those albums. We also offer certain services to musicians.
My website contains the following pages:
Register Page: where a visitor can register either as a musician or as an album reviewer.
Login & Forgot password pages:
Add/Edit Musician's Profile Page: After login, musician can enter his profile information (photo, little biography & albums => for
each album he'll enter all the album details.)
Add/Edit Reviewer's Profile Page: After login, reviewer can enter his profile information (some personal information along with
address)
Musicians Page: A public page which lists all the musicians and on clicking on a musicians name/photo he'll be taken to a public
Musician's Profile Page: which displays information that was previously entered by Musician in his dashboard)
Albums Page: A public page which lists all the albums and on clicking on a album name/photo he'll be taken to a public Album
Information Page: which displays information that was previously
entered by Musician in his dashboard)
Addresses Page: After login, reviewer can manage (add/edit/delete) addresses to which he wanted the Album to be
shipped.
Submit Review Page: A page where reviewer will submit his star rating & review for the album that he got in mail.
Shipment approval Page: Admin (we) after login, can approve/reject the requests made for shipment of CDs by reviewers
Reivew approval Page: Admin (we) after login, can approve/reject the reviews submitted by reviewers. when approved this
will be shown up in Recent Reviews Page: of Musician (in the
dashboard) and also in the corresponding page of that Album
Few Static Pages like: About us, Home Page etc.
As you can observe, most of the pages contains forms (containing UI elements like file upload, text box, select etc). Information has to be sanitized, verified and then store in a database. This stored information has to be later retrieved for display on some other page.
I'm planning to use CMS Drupal.
Questions:
I need to build a theme with these 10-12 page types and using Form API, File API & Database API right?
I don't need Nodes, Fields, Custom Nodes, Taxonomy, etc because those are needed only to those in which case information will be updated by drupal admin.
But if I build the these 10-12 page types using the drupal API, how would I make any one to go to that page? I mean, these won't be taking any info from content section of dashboard. I'm confused here. Something is wrong. I'm unable to express it properly.
I don't need any plugins too, I guess. Right?
My Background: I've developed websites back in early 2000s. I know a lot has changed since then. For past two weeks I've updated myself with HTML5, JS, CSS3, jquery and others. I've also gone through wordpress and just for past 2 days I'm going through Drupal. I liked Drupal better.
You will likely need to read more into how Drupal works.
Here is what I would try:
Register Page: This is user module
Login & Forgot password pages: let Drupal handle it, user module.
Add/Edit Musician's Profile Page: This is a node type, maybe only editable by users with the artist role.
Add/Edit Reviewer's Profile Page:This is user profile.
Musicians Page: This is a view to the Artist nodetype.
Albums Page: This is a node type. Likely you will want to associate this with artist nodes through node reference.
Addresses Page: This is part of user ( a field or field collection in user profile )
Submit Review Page: This is comment for the album node type
Shipment approval Page: I would do it with a view maybe. This would depend on your workflow and module choice.
Reivew approval Page: This is the comment review function, let drupal handle it ( or find a module that you like )
Few Static Pages: Another nodetype, likely the basic page type.
If none of these made sense to you, read more into Drupal.
And the answer to the questions:
No you don't need to touch API with these requirement. Read on to find out how to do Drupal properly.
You most definitely would need node / fields /taxonomy and custom node type. User can create / update them too.
The thing that is wrong... is you need to read more into how to use Drupal
They are called Modules, and you will need it.
If you are determined, take the wild ride and read, read, read. Be ready to take 1-2 weeks of reading and practice.
Else, try to hire a Drupal Dev to help you get started. That could make it a lot faster. Like core functions you mentioned done within one day fast.

how to customize autocomplete TO field in privatemsg module - drupal 6

Using the privatemessage module, users can send messages to each other as in facebook. The page displays a form with a TO field, subject and message. The TO field is an autocomplete field by default. Upon searching for a user name, it shows a drop down with only the names. How can i customize it to show the user's profile picture also in the drop down??? I dont know where to go and make the code changes.
You may have better luck with this on Drupal StackExchange, where the co-maintainer of Privatemsg is very active. (He hasn't posted here in a year, I think.)

Drupal 7 : get user profile picture at registration

I am using Drupal 7.
I follow this link to enable profile picture of user.
Now i want to get profile picture from user at the time of registration.
How can i get this?
Any help will be appreciated.
Ideal module to do this is Reg-With-Pic
You will be given a check box at admin/config/people/accounts named "Enable user pictures on registration" and weight selection.
If you are using Content Profile module, File field would be an option.
Here is the Helper function to add default user account fields to user registration and edit form.
http://api.drupal.org/api/drupal/modules--user--user.module/function/user_account_form/7
You might also want to use the Gravatar module to take some of the pain out of what you are suggesting. It's enough trouble to set up a profile on yet another site that you might not want to force them to configure their profile at the time of registration, especially with such things as a "user picture", unless you really want to put a damper on registrations.
Depending on the type of site you are working on, the Gravatar module might be ideal. Anyone who already has a Gravatar will have it automatically set as their user picture.
http://drupal.org/project/gravatar

Views not appearing for non admin user

I have setup a view which outputs nodes, including the name of the person who created it.
If a non-admin person browses to the page where that view is displayed, they dont see the name field, I recall somewhere about this being an administrative permission ??
Is the name of the creator a CCK field? Make sure the permission to view this field is set for anonymous users (in the /admin/user/permissions page).

Resources