The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Need help with a span id

View previous topic View next topic Go down

Need help with a span id

Post by nextlevelgaming on September 11th 2012, 11:39 pm

I was looking through the profile_body in the templates.

Code:
<span id="field_id{profile_field.ID}"></span>
I was wondering what exactly does this do? cuz there are two others in that.
Code:
  <!-- BEGIN profile_field -->
  <span class="gen">{profile_field.LABEL}{profile_field.CONTENT}</span>      
  <!-- END profile_field -->

Which the LABEL is the name of the field such as (gender,zodiac,etc.) and the content is what is the answer to the label. So what does the
Code:
<span id="field_id{profile_field.ID}">
exactly do? Cuz I was wondering if I'm correct I can show what I want by giving the ID. Though I'm not sure how to give this correctly.

Because I've been having problems with the

Code:
 <!-- BEGIN profile_field -->
  <span class="gen">{profile_field.LABEL}{profile_field.CONTENT}</span>      
  <!-- END profile_field -->

because it shows the label then as if there is a <br /> it puts the content under it which is not what I want. Plus i'd like to show more important stuff at top and less in different sections. I changed my profile look so this is why. www.pimpkings.com/u1 is my profile and you can see what I am talking about.

nextlevelgaming
Forumember

Male Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York

http://www.easybbtutorials.forumotion.com

Back to top Go down

Re: Need help with a span id

Post by nextlevelgaming on September 12th 2012, 1:04 am

Well I know what they are in general. Though I was wondering if I could do this basically.

Code:
<span id="field_id_19"></span>
instead of what I posted above. Basically want to add what I want to without going to management and clicking show in MESSAGES AND PROFILE

nextlevelgaming
Forumember

Male Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York

http://www.easybbtutorials.forumotion.com

Back to top Go down

Re: Need help with a span id

Post by LGforum on September 12th 2012, 2:40 am

Well yes you could add fixed HTML, but it won't be dynamic content.
The profile fields are added dynamically when the template is parsed, you can move these place holders but not add your own.

LGforum
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Re: Need help with a span id

Post by nextlevelgaming on September 12th 2012, 4:17 am

So I couldn't parse an individual profile field that is in the database?? Only reason I ask is because I am creating a new profile style template for phpbb2, and yes I have not much experience with PHP variables, only CSS HTML Javascript and of course jQuery. I do not want to parse my own fixed content only to parse the dynamic. www.pimpkings.com/u1 look under MORE section and see what I mean. They are not created the way i need them to be firstly, plus there are some fields I'd like to be in another section

nextlevelgaming
Forumember

Male Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York

http://www.easybbtutorials.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


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