Retrieve specific profile field variables. Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
4 posters

    Retrieve specific profile field variables.

    ivyleaf
    ivyleaf
    New Member


    Posts : 22
    Reputation : 1
    Language : English, Mandarin
    Location : Taiwan

    In progress Retrieve specific profile field variables.

    Post by ivyleaf January 28th 2019, 1:31 pm

    Hello!

    First of all, I apologize if I am using the wrong terms to describe what I am trying to do - my coding knowledge is a bit limited. I am currently working on the viewtopic_body template, and I had wanted to place different values from the member's profile in different areas on the posted message.

    For example, I'd like the points value and the number of posts the user has made to be placed in a hover on the member's avatar, which I have done already. However, I'd also like to later create custom profile fields for things such as character rank (this is for a roleplay site) and their alignment, and for those to be placed in a section above each post when viewing a thread.

    From what I can see so far, there is only a {postrow.displayed.profile_field.CONTENT} variable, which displays everything in the member's profile. However, would it be possible to pick out just one field's content and place it one location, and place another field's content in another location like I described above?

    Link to the site if it helps in any way.

    Thanks in advance! Any help would be appreciated~


    Last edited by ivyleaf on February 7th 2019, 8:24 am; edited 1 time in total
    TheCrow
    TheCrow
    Manager
    Manager


    Male Posts : 6916
    Reputation : 795
    Language : Greek, English

    In progress Re: Retrieve specific profile field variables.

    Post by TheCrow January 30th 2019, 11:47 am

    Hello @ivyleaf,

    First of all let me start to tell you that in your questions, it would be better if you added all the necessary information about your problem. These information would be: Forum link (which you provided), forum version, possibly some screenshots showing the problem.

    Now if I understood correctly, you want to have the points and the posts numbers above the member's post text? Am I right or did I not understand your problem right?

    If you can provide some screenshots with what you would like to do, it would help even more.

    Regards.



    Retrieve specific profile field variables. Thecro10
    Forum of the Forums

    Forumotion Rules | Tips & Tricks |
    FAQ | Did you forget your password?



    *** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
    No support via PM!
    ivyleaf
    ivyleaf
    New Member


    Posts : 22
    Reputation : 1
    Language : English, Mandarin
    Location : Taiwan

    In progress Re: Retrieve specific profile field variables.

    Post by ivyleaf January 30th 2019, 2:14 pm

    Ah, my bad! My forum version is phpBB2.

    Screenshot:

    What I'd like to do is something along the lines of placing post number and points to the side of the post as seen above, and everything else from the profile in the top section of the post that I added and highlighted in the screenshot.

    I found out that {postrow.displayed.POSTER_POSTS} shows the number of posts a user has, and would be interested about whether there are similar variables(?) for other fields in the profile, and whether they would exist for custom profile fields as well, as that's one method I could imagine achieving what I want through. However, if any other methods exist, that would be great as well ^^
    SarkZKalie
    SarkZKalie
    Support Moderator
    Support Moderator


    Male Posts : 1443
    Reputation : 220
    Language : English

    In progress Re: Retrieve specific profile field variables.

    Post by SarkZKalie January 30th 2019, 3:41 pm

    It harder you can do without JavaScript



    Retrieve specific profile field variables. Sarkzk10
    omarpop23
    omarpop23
    Forumember


    Male Posts : 182
    Reputation : 3
    Language : Arabic
    Location : Egypt

    In progress Re: Retrieve specific profile field variables.

    Post by omarpop23 January 30th 2019, 11:40 pm

    you can do it by using
    Code:
    flex
    and
    Code:
    order
    to reorder items just simple css code can do this
    ivyleaf
    ivyleaf
    New Member


    Posts : 22
    Reputation : 1
    Language : English, Mandarin
    Location : Taiwan

    In progress Re: Retrieve specific profile field variables.

    Post by ivyleaf January 31st 2019, 6:22 am

    @SarkZKalie I'm afraid I don't understand what you mean by that. Would you mind elaborating?

    @omarpop23 I do know how to reorder them, I suppose I should rephrase my question so it's less abstract.

    What are the variables for each individual profile field? The ones I know are:
    Spoiler:

    I'd like to know the ones for points and custom profile fields, as well as contact fields if they exist. That way I can place them around the post in whatever location I want without having them all together, as {postrow.displayed.profile_field.CONTENT} does.