ispCP - Board - Support
icons not displaying - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Update/Upgrade (/forum-44.html)
+--- Thread: icons not displaying (/thread-12717.html)



icons not displaying - bashar - 01-19-2011 08:59 PM

Hello,

I've upgraded ispcp from 1.0.5 to 1.0.7 and I'm having one error:
on domain overview page (admin) the image showing domain's status is not found ( left side of the domain name)

it seems apache tries to display http://admin.domain.com/themes/omega_original/images/icons/reload.png.png

the same happens for ok or error status ( double .png extension )

Do you have any idea what should I check?


RE: icons not displaying - joximu - 01-19-2011 09:04 PM

Seems to be an error in the template (double .png)

You either can change the template or copy the icons, eg. reload.png -> reload.png.png - this should work...

/J
no - not change the template - rather the code:..


eg reseller/users.php:

if ($rs->fields['domain_status'] == $cfg->ITEM_OK_STATUS) {
$status_icon = "ok";
} else if ($rs->fields['domain_status'] == $cfg->ITEM_DISABLED_STATUS) {
$status_icon = "disabled";
} else if ($rs->fields['domain_status'] == $cfg->ITEM_ADD_STATUS
|| $rs->fields['domain_status'] == $cfg->ITEM_CHANGE_STATUS
|| $rs->fields['domain_status'] == $cfg->ITEM_TOENABLE_STATUS
|| $rs->fields['domain_status'] == $cfg->ITEM_RESTORE_STATUS
|| $rs->fields['domain_status'] == $cfg->ITEM_TODISABLED_STATUS
|| $rs->fields['domain_status'] == $cfg->ITEM_DELETE_STATUS) {
$status_icon = "reload.png";
} else {
$status_icon = "error.png";
}
$status_url = $rs->fields['domain_id'];

there's the bug... (remove the ".png")

/J


RE: icons not displaying - bashar - 01-19-2011 09:22 PM

Thnx joximu, I've removed the .png from users.php

I had to remove it from ./include/admin-functions.php too

All looks good now