Removing 1_1343499424_1.jpg above photo in ad?

Hello!

Any idea how I can remove the ugly .jpg file name above the photo in the ad?

Please advise?

Thanks,

vilhelm

Quote · 28 Jul 2012

open file modules/boonex/ads/classes/BxAdsModule.php

find this function: function _blockPhoto(&$aReadyMedia, $iAuthorId, $sPrefix = false)

and this code:

$aSqlRes = $this->_oDb->getMediaInfo($iMedId);
                if ($aSqlRes) {
                    $aImageIcon = array(
                        'title' => $aSqlRes['MediaFile'],
                        'file' => BX_DOL_URL_ROOT . $this->sUploadDir.'icon_'.$aSqlRes['MediaFile']
                    );
                    $aImageFile = array(
                        'title' => $aSqlRes['MediaFile'],
                        'file' => BX_DOL_URL_ROOT . $this->sUploadDir.'img_'.$aSqlRes['MediaFile']
                    );
                }

Edit to this:

$aSqlRes = $this->_oDb->getMediaInfo($iMedId);
                if ($aSqlRes) {
                    $aImageIcon = array(
                        'title' => '',
                        'file' => BX_DOL_URL_ROOT . $this->sUploadDir.'icon_'.$aSqlRes['MediaFile']
                    );
                    $aImageFile = array(
                        'title' => '',
                        'file' => BX_DOL_URL_ROOT . $this->sUploadDir.'img_'.$aSqlRes['MediaFile']
                    );
                }

 

You have then changed:

$aImageIcon
'title' => '',

will now not show anything on the title to all of they small pics below


$aImageFile
'title' => '',

will now not show filename above ad image

-------

If there are more than one pic on the ad, it use a repeat function,
so you need to edit it both places if it shall work as expected...

Quote · 29 Jul 2012

Thanks!

Quote · 29 Jul 2012
 
 
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.