Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Grim Line on July 23, 2010, 11:31:25 AM

Title: Seperating HTML coding
Post by: Grim Line on July 23, 2010, 11:31:25 AM
I'm trying to create custom profile fields that only admins can edit but all users can see. They will be displayed like this;

Manager of: {Team}

Then the {Team} will be a link to a page of my choice.

So i use select box as my field type and type in "Liverpool" i then go to "Show Enclosed Within Text" and add the following;

<a href="/index.php?page=liverpool">Liverpool</a>

This then works perfectly fine and displays;

Manager of: Liverpool (Clickable)

However when i try to add more to "Show Enclosed Within Text" such as;

<a href="/index.php?page=liverpool">Liverpool</a>

<a href="/index.php?page=arsenal">Arsenal</a>


And i have 2 selection boxes "Liverpool" and "Arsenal" it will display the custom profile field as;

Manager of: Liverpool Arsenal (Both Clickable)

I want just one to appear (of my choice) is there something special i need to enter into the "Show Enclosed Within Text" to seperate the;

<a href="/index.php?page=liverpool">Liverpool</a>

<a href="/index.php?page=arsenal">Arsenal</a>


Would appreciate some help on this, thankyou :).
Title: Re: Seperating HTML coding
Post by: Grim Line on July 23, 2010, 01:36:23 PM
Nevermind i worked out how do it by myself, Just used;

<a href="/index.php?page={INPUT}">{INPUT}</a>
Title: Re: Seperating HTML coding
Post by: CapadY on July 23, 2010, 02:53:04 PM
I've marked your topic as solved.
If you have further questions about this feel free to re-open it.