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.

Need help with a span id

2 posters

Go down

Need help with a span id Empty Need help with a span id

Post by nextlevelgaming 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
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

Need help with a span id Empty Re: Need help with a span id

Post by nextlevelgaming 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
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

Need help with a span id Empty Re: Need help with a span id

Post by LGforum 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
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Need help with a span id Empty Re: Need help with a span id

Post by nextlevelgaming 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
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

Back to top

- Similar topics

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