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.

Retrieve specific profile field variables.

4 posters

Go down

In progress Retrieve specific profile field variables.

Post by ivyleaf Mon 28 Jan - 7:31

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 Thu 7 Feb - 2:24; edited 1 time in total
ivyleaf
ivyleaf
New Member

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

http://ivytestforum.forumotion.com/

Back to top Go down

In progress Re: Retrieve specific profile field variables.

Post by TheCrow Wed 30 Jan - 5:47

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!
TheCrow
TheCrow
Manager
Manager

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

https://forumote.forumotion.com

Back to top Go down

In progress Re: Retrieve specific profile field variables.

Post by ivyleaf Wed 30 Jan - 8:14

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 ^^
ivyleaf
ivyleaf
New Member

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

http://ivytestforum.forumotion.com/

Back to top Go down

In progress Re: Retrieve specific profile field variables.

Post by SarkZKalie Wed 30 Jan - 9:41

It harder you can do without JavaScript


Retrieve specific profile field variables. Sarkzk10
SarkZKalie
SarkZKalie
Support Moderator
Support Moderator

Male Posts : 1421
Reputation : 220
Language : English

https://rotavn.forumotion.com/

Back to top Go down

In progress Re: Retrieve specific profile field variables.

Post by omarpop23 Wed 30 Jan - 17:40

you can do it by using
Code:
flex
and
Code:
order
to reorder items just simple css code can do this
omarpop23
omarpop23
Forumember

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

http://devs.ahlamontada.com

Back to top Go down

In progress Re: Retrieve specific profile field variables.

Post by ivyleaf Thu 31 Jan - 0:22

@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.
ivyleaf
ivyleaf
New Member

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

http://ivytestforum.forumotion.com/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum