metrolike

I can't add custom fields in my template - metrolike

I can't add custom fields in my template

by lookin » Sat Feb 08, 2014 11:53 pm

Hi everybody,
this theme is really great! But I spend lot of time trying to add an admin-defined custom field next to the message (under sender's name) and it doesn't work.

I created (as admin) new text field named "no", which is required and all users have at least default value. After that I changed template viewtopic_body.html and added:

<dd><strong>{postrow.PROFILE_NO_NAME}:</strong> {postrow.PROFILE_NO_VALUE}</dd>
<dd><strong>{postrow.PROFILE_no_NAME}:</strong> {postrow.PROFILE_no_VALUE}</dd>
<dd><strong>{postrow.custom_fields.PROFILE_NO_NAME}:</strong> {postrow.custom_fields.PROFILE_NO_VALUE}</dd>
<dd><strong>{postrow.custom_fields.PROFILE_no_NAME}:</strong> {postrow.custom_fields.PROFILE_no_VALUE}</dd>

...nothing from that works. It prints the text between braces. What the hell is the variable name needet to put into braces, to show text field named "no"?

Thank you very much in advance of your response! Have a nice day :-)
lookin
Registered User
Posts: 2
Joined: Sat Feb 08, 2014 11:42 pm

Re: I can't add custom fields in my template

by SeCl4 » Sun Feb 09, 2014 7:13 pm

Hi,

This is really more of a general phpBB-related question than a style-specific one. (On the bright side, you're definitely not the first to have run into it!) A quick search throws up quite a few results, but this page looks like it should help you.

If after trying that you're still having trouble, you can post your question on the 3.0.x support forum--they should be able to help out more than I can.

Cheers!

Eric
User avatar
SeCl4
Registered User
Posts: 115
Joined: Tue Jan 04, 2011 5:27 am
Location: Montréal, Canada
Name: Eric Seguin

Re: I can't add custom fields in my template

by lookin » Sun Feb 09, 2014 11:47 pm

Thank you very much, Eric!
I appologize me, that it was not a problem with the template, but with configuration. I did not know, that I must check "Display custom Profile fields on topic pages" in ACL-General-Server configuration...

So many thanks!
lookin
Registered User
Posts: 2
Joined: Sat Feb 08, 2014 11:42 pm

Re: I can't add custom fields in my template

by cutiacuidei » Tue Jan 13, 2015 10:35 pm

hello Eric
i`m using the metrolike theme and i wanna insert some google ads above the date and i`m wondering wich files i must edit to add the google ads . thank you
cutiacuidei
Registered User
Posts: 7
Joined: Sat Dec 27, 2014 2:59 pm