Jump to content
You're invited! Join our 4.6 Live Event on ZOOM 6/24 ×

Community

How do you create url profile field?


TAMAN
 Share

Recommended Posts

its not like i dont know how to create it 

the problem is i want a url profile field and to show a custom text for display format 

i have explained more here

i have also created a ticket its been ALMOST 6 day each answer is useless and doesnt help 

 

i simply want to create a profile field so member fills in a link at at their profiles

and i want the field to show up under user panel at topic views but I WANT THE FIELD TO SHOW A CUSTOM TEXT INSTEAD OF THE LINKS

this is the simple ing feature and ips doesn't haver it 

at ipb3 there was no problem creating it but now its a pain in the ass 

Link to comment
Share on other sites

10 minutes ago, Ken Johnson said:

You could have two separate profile fields. One for the link, one for the custom text.

If you don't know how to input profile fields into templates I can help you with that.

i would much appreciate any help bro 

what i want is simple

a profile field so member fills in their steam profile link

and at user panel info i want the field to show like this 

Steam Profile

or just Steam profile  

or whatever i just want a custom text to be linked

Link to comment
Share on other sites

9 minutes ago, MRniceGUY1990 said:

i would much appreciate any help bro 

what i want is simple

a profile field so member fills in their steam profile link

and at user panel info i want the field to show like this 

Steam Profile

or just Steam profile  

or whatever i just want a custom text to be linked

Alright, so to reference a user's profile field in a template, you'll do this:

 

{{$fields = $member->profileFields();}}
{{$link = $fields['core_pfieldgroups_1']['core_pfield_2'];}}
{{$text = $fields['core_pfieldgroups_1']['core_pfield_3'];}}

 

Then when you actually want to input the profile field, just do: {$link} or {$text}. You'll have to check and see which pfield retrieves what information by looking at the sql tables.

 

Displaying it could be something like this:

 

<a href="{$link}">{$text}</a>

 

 

Edited by Ken Johnson
Link to comment
Share on other sites

27 minutes ago, Ken Johnson said:

Alright, so to reference a user's profile field in a template, you'll do this:

 


{{$fields = $member->profileFields();}}
{{$link = $fields['core_pfieldgroups_1']['core_pfield_2'];}}
{{$text = $fields['core_pfieldgroups_1']['core_pfield_3'];}}

 

Then when you actually want to input the profile field, just do: {$link} or {$text}. You'll have to check and see which pfield retrieves what information by looking at the sql tables.

 

Displaying it could be something like this:

 


<a href="{$link}">{$text}</a>


 

 

would you be so kind and explain a little bit more about the template please xD 

i got a copy of steam manager Thanks to @VizionDev i really appreciate your kind :p 

but that information would be really cool to understand i will definitely use it for some other fields i want  

Thank you so much

Edited by MRniceGUY1990
Link to comment
Share on other sites

Just now, MRniceGUY1990 said:

would you be so kind and explain a little bit more please xD 

i got a copy of steam manager Thanks to @VizionDev :p 

but that information would be really cool to understand a little bit more 

Thank you so much

Every page on IPS, 99% of the time comes from a template you can modify through "Customizations > Themes".

Anything within {{ and }} is processed as raw PHP

Anything within { } is checked for a short-tag, or is attempted to be echo'd out.

There is documentation on IPS' template system somewhere in the Guides section from the menu above

Link to comment
Share on other sites

3 hours ago, Ken Johnson said:

Alright, so to reference a user's profile field in a template, you'll do this:

 


{{$fields = $member->profileFields();}}
{{$link = $fields['core_pfieldgroups_1']['core_pfield_2'];}}
{{$text = $fields['core_pfieldgroups_1']['core_pfield_3'];}}

 

Then when you actually want to input the profile field, just do: {$link} or {$text}. You'll have to check and see which pfield retrieves what information by looking at the sql tables.

 

Displaying it could be something like this:

 


<a href="{$link}">{$text}</a>


 

 

i still cant figure out what to do 

in fact i dont even want to do it like this i mean with ipb3 i used to create a simple text field type and then using simple hyperlink for display format, but now with ipb4 its no longer possible we must create a URL field type and display format is completely useless because no way to make it to show a custom text instead of the long ass links that shows up under user panel info lol this is a simple settings and we cant do it without modifying themes and stuff

what really URL field type is for if nobody can use the display format, if i use the url field type and hyperlink for display format the links that user fills in redirects to a blocked page by mod_security 

its been almost 7 days im creating topics asking for help for a simple setting i want and not mentioning how many days i was trying on my own and literally waiting morethan 12 hours for a useless support ticket replies about this situation :rolleyes:

Edited by MRniceGUY1990
Link to comment
Share on other sites

On 18.11.2015, 22:40:28, MRniceGUY1990 said:

EDIT: after 9 days of ticket and replies finally turns out that there is an issue with the URL field type now i have to wait until next update to be fixed 

Sometimes I ask myself if there are any automated test-cases within the IPS development ... 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We use technologies, such as cookies, to customise content and advertising, to provide social media features and to analyse traffic to the site. We also share information about your use of our site with our trusted social media, advertising and analytics partners. See more about cookies and our Privacy Policy