Multiple Selector HTML Usage

The use of HTML when using multiple selector:

Predefined Values (list of games)

Language Keys created and all is fine

Propagates across all mediums of profile as desired

Desired Result would be to have the populated predefined values on the profile and be able to utilize an image (icon) next to the text from the multiple selector option from profile fields builder

I.E.

America's Army 3 americas army 3

BattleField 1942 battlefield 1942
Battlefield Vietnam
Battlefield 2

so i suppose that provides the idea of what is being sought after.

editing the lang-en.php will not allow the image to show up in the profile view, it shows the html source instead. on the index page, we have a block, the images show up fine there. but will not show up in profile view.

Any ideas would be greatly appreciated.

Regards,

DosDawg

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 19 Mar 2010

Yeah guy's,

 

We need real help with this situation! We have the image displaying on the index page however we just see the HTML code on the profile page. Does anyone know howto fix / howto correctly do this?

 

Best Regards,

Lee

Quote · 19 Mar 2010

**BUMP**

Quote · 20 Mar 2010

Has this been solved yet?

Updating my BoonexNerd.net site.
Quote · 21 Mar 2010

profile page and image/html code in your language key like this:

America's Army 3 <img src="../media/images/battle/americasarmy3nonhonor.gif" width="16" height="16">

----------

this will fix it on profile page

open file inc/classes/BxDolProfileFields.php

and find: function getViewableSelectSet( $mValues, $sValue, $sUseLKey = 'LKey' ) {

and this line: return htmlspecialchars_adv( implode( ', ', $aTValues ) );  (You need only to edit the first line with this code)

change to: return nl2br( implode( ', ', $aTValues ) );
----------

and this will fix it on join and edit page

open file: templates/base/scripts/BxBaseFormView.php

and find: function genInputSelectMultiple(&$aInput) {

and this line: $sTitleC = htmlspecialchars_adv($sTitle);

change to: $sTitleC = nl2br($sTitle);
----------

not sure if this is the best way to do it but that's as far as I can see the simplest,
you can test it out and see how it works.

Quote · 21 Mar 2010

okweb,

thanks for this, i will put this to test later in the day. much appreciated the answer.

Regards,

DosDawg

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 22 Mar 2010

Hey,

 

THANKS A BUNCH FOR THIS. GREAT WORK

Quote · 23 Mar 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.