Path to country flags is wrong on profiles

V 7.0.6

 

$site['flags']             = "{$site['url']}media/images/flags/";

 

Is what is set in header.inc,,,,the flags are correct while browsing profiles, but on the profiles, the flag is looking in the root directory,,,,,http://www.mydomain.com/us.gif. I'm using UNI template. Why is it disregarding the path set in header.inc? Where can I correct the path to flags on the profile?

Quote · 28 Apr 2011

open file: inc/classes/BxDolProfileFields.php

find this function: function getViewableValue( $aItem, $sValue )

and this code:

if ($aItem['Name'] == 'Country') {
$sFlagName = strtolower($sValue);
$sValueView = '<img src="' . $site['url']  . $sFlagName . '.gif" /> ' . $sValueView;

edit this line: $sValueView = '<img src="' . $site['url']  . $sFlagName . '.gif" /> ' . $sValueView;

to: $sValueView = '<img src="' . $site['flags']  . $sFlagName . '.gif" /> ' . $sValueView;

 

I think you have url here, not flags...

Quote · 28 Apr 2011

$sValueView = '<img src="' . $site['flags']  . $sFlagName . '.gif" /> ' . $sValueView;

That's what it's already set to, so I don't get it. At least NOW i know where to find it, I can edit it from here. THanks okweb

Quote · 28 Apr 2011
 
 
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.