Retrieve specific profile field variables.
4 posters
Page 1 of 1
Retrieve specific profile field variables.
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~
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 Thu 7 Feb - 2:24; edited 1 time in total
Re: Retrieve specific profile field variables.
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.
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.
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!
Re: Retrieve specific profile field variables.
Ah, my bad! My forum version is phpBB2.
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 ^^
- 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 ^^
Re: Retrieve specific profile field variables.
you can do it by using
and
to reorder items just simple css code can do this
|
|
Re: Retrieve specific profile field variables.
@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:
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.
@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:
- {postrow.displayed.POSTER_NAME}
{postrow.displayed.POSTER_RANK}
{postrow.displayed.POSTER_GENDER}
{postrow.displayed.POSTER_AGE}
{postrow.displayed.POSTER_JOINED}
{postrow.displayed.POSTER_POSTS}
{postrow.displayed.POSTER_FROM}
{postrow.displayed.POSTER_HOBBIES}
{postrow.displayed.POSTER_HUMOR}
{postrow.displayed.POSTER_RPG}
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.
Similar topics
» Profile Field for Custom Profiles adding an additional unwanted field?
» Text field profile field as a widget
» Proposal: RPG/Profile PHP Variables
» Custom Profile Entries as Variables?
» How do i do this Profile field?
» Text field profile field as a widget
» Proposal: RPG/Profile PHP Variables
» Custom Profile Entries as Variables?
» How do i do this Profile field?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum