New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
SolusVM Template return unknown
a-super-random-user
Member
I was modding SolusVM bootstrap template and suddenly noticed that my
<?=$this->tpl_asset_path;?>images/icons/<?=$template['distro'];?>.jpg
Returns unknown.
Templates are using proper naming format (linux-xxx-xxx.gz
) and I've also renamed the template like following to check if something is wrong with my naming format.
centos-xxx-xxx.gz
What could be the possible error here. I'm considering to use string search via PHP is this fails.
This discussion has been closed.
Comments
Fixed by hooking small PHP code inside.
if (preg_match('/windows/',$template['filename'])){ echo 'windows';} else if(preg_match('/linux/',$template['filename'])){ $name = explode('-', $template['filename']); echo $name[1]; }else{ echo "unknown"; }
Cant wait till you got Sri Lankan VPS up for sale!
Actually It's on sale. But location is not Sri Lanka.
@sdglhm so you simply lied before?
Here http://www.lowendtalk.com/discussion/comment/1169968/#Comment_1169968
Do you think we only have one node. I'm the one who runs IT2LK project and so that's why I've asked help with setting it up since I'm just a front end developer.
There are several nodes for clients such as voodoo(100mbps/SATA),link(1Gbps/SSD),majestic(1Gbps/SATA)
No. I wasn't lying before. You could see my older post and you could also search local news websites about it2lk competition also.