News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Seperating HTML coding

Started by Grim Line, July 23, 2010, 11:31:25 AM

Previous topic - Next topic

Grim Line

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 :).

Grim Line

Nevermind i worked out how do it by myself, Just used;

<a href="/index.php?page={INPUT}">{INPUT}</a>

CapadY

I've marked your topic as solved.
If you have further questions about this feel free to re-open it.
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

Advertisement: