1
Rickb
Webshow - Unable to remove logo
  • 2008/10/17 15:51

  • Rickb

  • Not too shy to talk

  • Posts: 118

  • Since: 2004/10/24


Can not remove the logo once it has been set. I select "----" and save, I still see the logo.

If a logo is changed, is old logo removed from the folder?

Thanks,

Rick

2
tcnet
Re: Webshow - Unable to remove logo
  • 2008/10/17 17:49

  • tcnet

  • Friend of XOOPS

  • Posts: 297

  • Since: 2006/5/12


Quote:
Can not remove the logo once it has been set. I select "----" and save, I still see the logo.
That is true. In the catalog and block views, media entries with no logo were not displaying well with those that had them. So, I made the script use the default uploads/stock/logo if no logo was entered with the media. I thought it was better than a "no thumbnail available" logo. Probably a bad decision in retrospect.

To remove the hardcoded default logo when no logo is entered you will need to modify the following php files:

index.php line 190
mediasearch.php line 218
playcat.php line 212
playposter.php line 167
singlelink.php line 210

change this:
$logourl XOOPS_URL."/".$xoopsModuleConfig['path_logo']."/stock/logo.png";

To this:
$logourl '';

Quote:
If a logo is changed, is old logo removed from the folder?

Entering a new logo will write over the old one. Setting the logo to blank will remove the logo address from the database but leave the image file behind. I will look into making the script remove the old logo when blank address is entered.
WebShow Support Forum Here