WordPress.org

Ready to get started?Download WordPress

Forums

User Profile Pages (24 posts)

  1. maxweisel
    Member
    Posted 8 years ago #

    What is the point of the user profile? there are no pages that display the info unless it is set in the theme. Is there anyway to make it so when you see a post/comment and when you click on the author of it it goes to a page that displays their website and if possible an avatar or something???

    Max

  2. brittanie
    Member
    Posted 8 years ago #

    It depends on what template you use, but it's easy to add these features into your current template. Look at the various Author tags to see everything you can do.

  3. Kafkaesqui

    Posted 8 years ago #

    Even better Codex page for this:

    http://codex.wordpress.org/Author_Templates

  4. maxweisel
    Member
    Posted 8 years ago #

    Is there anyway to make it so when you see a post/comment and when you click on the author of it it goes to a page that displays their website and if possible an avatar or something???

  5. maxweisel
    Member
    Posted 8 years ago #

    because currently the author for the post, page or comment isn't a link. and if I were to make it a link what would it link to???

    Max

  6. Kafkaesqui

    Posted 8 years ago #

    If you had followed brittanie's link you would have found this:

    http://codex.wordpress.org/Template_Tags/the_author_posts_link

    Which also deals with the link I provided above, that is author queries and the template used for them:

    http://codex.wordpress.org/Author_Templates

    EDIT: Corrected link to template tag the_author_posts_link().

  7. maxweisel
    Member
    Posted 8 years ago #

    I am a noob I have no Idea what you mean. Even Though I have been using php for 2 years.

    Max

  8. maxweisel
    Member
    Posted 8 years ago #

    Also I want this to work for all users not just authors.

    Max

  9. maxweisel
    Member
    Posted 8 years ago #

    So just tell me how do I:

    make all names used for who the comment/post was submitted by a link to a page that siplays their profile

    have profile pages

    add avatars and other info

    Max

  10. Kafkaesqui

    Posted 8 years ago #

    Are you following the links provided? Are you reading the content at the end of those links?

  11. maxweisel
    Member
    Posted 8 years ago #

    yes

  12. maxweisel
    Member
    Posted 8 years ago #

    I think of page as like a plugin page not a link I am not using wordpress terms in my posts.

  13. Kafkaesqui

    Posted 8 years ago #

  14. maxweisel
    Member
    Posted 8 years ago #

    For Me:
    page = url to plug-in

    WordPress Master:
    page = page you create in wordpress in admin panel

    Max

  15. Kafkaesqui

    Posted 8 years ago #

  16. maxweisel
    Member
    Posted 8 years ago #

    I get it all now I create a page in admin that displays user info based on get variables then in the template files add links using the variables in the links above.

    Max

  17. maxweisel
    Member
    Posted 8 years ago #

    ok explain you last post in more detail I don't get that at all.

    Max

  18. maxweisel
    Member
    Posted 8 years ago #

    I don't understant exactly what I am supposed to do

    Max

  19. maxweisel
    Member
    Posted 8 years ago #

    I just installed word press today I have no idea what any of this is just explain it all the links do nothing.

    Max

  20. spencerp
    Member
    Posted 8 years ago #

    PLEASE STOP DOUBLE-TRIPLE-QUAD POSTING(S)! And read the material the people posted..not everyone can spoon feed people with answers and give the exact answers you want!

    PLEASE READ the stuff that was given to you, by the orignal couple of repliers.. the answers are given at the locations they gave..learning this on your own, is a good thing to do.. =) As most of us here have done. ;)

    I think this is one of those times where the O.P. wants the answers handed to them on a silver platter and are not into reading for the answers themselves.. sigh.

    spencerp

    This is volunteer support, not paid support. If everyone made a percentage of pay, just from a support reply..I don't think you'd have a problem getting spoon fed help then..but sigh, that's just not the case LoL!!

  21. Kafkaesqui

    Posted 8 years ago #

    Max, basically what I can tell you is what you want to do can be done (and there are at least a few ways to do it), but maybe not in the way you appear to want it.

    You asked what point there is to user profiles. Well, in a way it's latent information in WordPress. It's there if the site admin decides to make use of it---and that revolves around how one would want to put it to use, where to display it, how much and what to display, and so on. Yes it ties into ones theme, and that is because it is the central mechanism in how WordPress organizes and presents content.

    You also asked "[i]s there anyway to make it so when you see a post/comment and when you click on the author of it it goes to a page that displays their website and if possible an avatar or something???" This:

    http://codex.wordpress.org/Template_Tags/the_author_posts_link

    is the template tag which provides that link from posts. There is no corresponding tag for commenters, but then only *registered* users can have profiles, so it would be considered redundant.

    Now, what does it, as well as its bigger brother, link *to*?

    http://codex.wordpress.org/Author_Templates

    That is the Codex document on the author.php template. It is considered a "primary" template for WordPress themes in that if it exists and you perform an author query (such as occurs when clicking the link generated by the_author_posts_link() template tag), it is called. A simple author template would just list that user's posts (if they exist). The Codex page above describes how you can extend it to display author profile information. From there you can add things like user avatars and the like (though this, since WordPress does not provide an "avatar" field as such, would require some custom coding, or hey maybe even a plugin!).

    Now, have I missed anything? Oh yes, another reply you'll find up there somewhere from me covers Page templates. It links to a couple I've written specifically for displaying *all* authors at once, displaying their various profile details and whatnot. It even sports code for author images or avatars. It's just another way to go about this in the way WordPress can do it.

  22. clarissa
    Member
    Posted 8 years ago #

    I am able to link to users' profiles from the sidebar, etc. But I was wondering, can we add a user image (avatar) to their profile pages by altering the author.php?

  23. moshu
    Member
    Posted 8 years ago #

    Did you read the last 2-3 lines in the post above yours?

  24. clarissa
    Member
    Posted 8 years ago #

    Hi moshu - I did read the replies, the Author_Templates from codex, and http://guff.szub.net/2005/01/31/get-author-profile But I've failed to comprehend its (plugin's) complexity :(

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags