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.

RPG Sheet Template - Reference Specific Fields

4 posters

Go down

RPG Sheet Template - Reference Specific Fields Empty RPG Sheet Template - Reference Specific Fields

Post by HIIVEBug October 12th 2022, 9:27 am

Technical Details


Forum version : #phpBB3
Position : Founder
Concerned browser(s) : Google Chrome
Who the problem concerns : Yourself
Forum link : https://testpeperoni.forumotion.com/u1rpg

Description of problem

Code:
<dl>
         <dt><label>{rpg_fields.F_NAME} :</label></dt>
         <dd>{rpg_fields.F_VALUE_NEW}</dd>
      </dl>

I'm looking to be able to display information from any of the custom variables individually. Like their username within a body of text, or a character stat.

Under the profile templates for the RPG-Sheet I'd like to be able to list fields in different divs rather than have them listed together. Is there a variety of something like {rpg_fields.F_VALUE_NEW} that lets me target my individual custom field IDs?

I'm thinking something along the lines of this as an example:
{rpg_fields_left.F_first-name}
{rpg_fields_left.F_001}

Code:
<div class="name">{Character name}</div>
<div class="age">{Character age}</div>

Hopefully I've over rather than under explained. I wasn't sure how to phrase it.
HIIVEBug
HIIVEBug
New Member

Other / Decline to state Posts : 3
Reputation : 1
Language : english

https://testpeperoni.forumotion.com/u1rpg

Back to top Go down

RPG Sheet Template - Reference Specific Fields Empty Re: RPG Sheet Template - Reference Specific Fields

Post by SarkZKalie October 12th 2022, 9:48 pm

You have to put a RPG feature so we can see it from here


RPG Sheet Template - Reference Specific Fields Sarkzk10
SarkZKalie
SarkZKalie
Support Moderator
Support Moderator

Male Posts : 1418
Reputation : 220
Language : English

https://rotavn.forumotion.com/

Back to top Go down

RPG Sheet Template - Reference Specific Fields Empty Re: RPG Sheet Template - Reference Specific Fields

Post by HIIVEBug October 13th 2022, 12:15 am

Thank you for responding. I love you
Not entirely sure what you mean though? Sorry :S. The RPG sheet is on and partly filled for my admin profile.

It's not an issue with something I currently have set up, it's something I'd like to be able to do but don't know how to tackle it. So there's nothing on the website to reference.

I'm assuming all custom fields store some kind of ID but I don't know how to find or reference that ID. Custom profile and RPG sheet custom fields alike. In any kind of template setup I'd like to be able to reference those IDs individually so I can have the custom input from users displayed.

Something like

NAME: {rpg_fields.F_VALUE_Charactername}
or {if rpg_fields.F_VALUE_Charactername = bob}{displaythistext}

The default template includes this segment to list all custom fields row by row:

Code:
<dl>
<dt><label>{rpg_fields.F_NAME} :</label></dt>
<dd>{rpg_fields.F_VALUE_NEW}</dd>
</dl>

And I've tried experimenting with variations of:

Code:
<dl>
<dt><label>{rpg_fields.F_charactername} :</label></dt>
<dd>{rpg_fields.F_VALUE_NEW}</dd>
</dl>

But I don't have enough understanding to get it functional. I spent most of the evening digging through existing threads and couldn't find similar to help me along.

https://testpeperoni.forumotion.com/u1rpg
HIIVEBug
HIIVEBug
New Member

Other / Decline to state Posts : 3
Reputation : 1
Language : english

https://testpeperoni.forumotion.com/u1rpg

Back to top Go down

RPG Sheet Template - Reference Specific Fields Empty Re: RPG Sheet Template - Reference Specific Fields

Post by SLGray October 13th 2022, 2:37 am

All profile fields have the same ID.


RPG Sheet Template - Reference Specific Fields Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51501
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

RPG Sheet Template - Reference Specific Fields Empty Re: RPG Sheet Template - Reference Specific Fields

Post by SLGray October 13th 2022, 2:39 am

You're wanting something like this?
Code:
{USERNAME}

Guest


RPG Sheet Template - Reference Specific Fields Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51501
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

HIIVEBug likes this post

Back to top Go down

RPG Sheet Template - Reference Specific Fields Empty Re: RPG Sheet Template - Reference Specific Fields

Post by HIIVEBug October 13th 2022, 3:48 am

Yeah. {Username}{Rank}{Characterage} etc. I was hoping all custom fields had a unique tag like this I could call whenever I needed.
HIIVEBug
HIIVEBug
New Member

Other / Decline to state Posts : 3
Reputation : 1
Language : english

https://testpeperoni.forumotion.com/u1rpg

Back to top Go down

RPG Sheet Template - Reference Specific Fields Empty Re: RPG Sheet Template - Reference Specific Fields

Post by Draxion October 13th 2022, 7:47 pm

HIIVEBug wrote:Yeah. {Username}{Rank}{Characterage} etc. I was hoping all custom fields had a unique tag like this I could call whenever I needed.

Good afternoon!

If you understand backend coding, this task is possible by using scripts to obtain the data from the specific page where the info is located and then posting where you want the data to display, like using AJAX for example.
Draxion
Draxion
Helper
Helper

Male Posts : 2518
Reputation : 321
Language : English
Location : USA

https://www.talesoftellene.com/

SarkZKalie likes this post

Back to top Go down

Back to top

- Similar topics

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