Elxis CMS Forum

Support => Technical support => Topic started by: machinakias on January 27, 2008, 17:08:53

Title: unknown client type error [SOLVED]
Post by: machinakias on January 27, 2008, 17:08:53
hi all...i'm trying to make my own login screen and i did it in half.. i used AstyleCSS Editor to change colors and images in a template, and when it was tested unziped it seem to work....but now i want to pack it in a zip file for distribution...and when i try to install it i get an "unknown client type error" message.... what am i doing wrong? could anyone give me the right steps to make a custom login screen? thanks a lot....
Title: Re: unknown client type error
Post by: datahell on January 27, 2008, 17:38:33
Most probably you have not set up the proper template type in XML file.
Open templateDetails.xml and make sure the line bellow exists (for login screens):

<mosinstall type="template" client="login" version="2008">

Explanation:

mosinstall : Notifies Elxis that this is an installation package

type: Notifies Elxis what kind of installation package it is (i.e. it is a template)

client: Notifies Elxis what sub-type of installation package it is (ie. it is a login screen)

version: Notifies Elxis for what major version (Release) of Elxis has been build for. Attention: this is not the software's version!
Title: Re: unknown client type error
Post by: machinakias on January 28, 2008, 11:31:27
still trying but no results......anyone can help?
Title: Re: unknown client type error
Post by: Ivan Trebješanin on January 28, 2008, 12:27:59
You can just post here your installation package, and we will fix it.
Title: Re: unknown client type error
Post by: machinakias on January 28, 2008, 13:02:33
hello and thanks for your reply...i still trying to fix it,but nothing...i dont know much about xml or css....so i send the files in hope you can help....that's what i'll do! the zip file is now uploaded as silver.zip.  well,take care and please keep in touch....

[old attachment deleted by admin]
Title: Re: unknown client type error
Post by: Ivan Trebješanin on January 28, 2008, 13:14:58
Here you are... fixed

Hint: you must always use utf-8 encoding in whatever you do for Elxis CMS. Don't have time to explain everything, but examine this zip file and template_details.xml

[old attachment deleted by admin]
Title: Re: unknown client type error
Post by: machinakias on January 28, 2008, 13:34:12
what can i say....THANKS!!! ;) can i contact u again if needed? you see,i would like to make some other stuff for the other users....just to give something by my self....
Title: Re: unknown client type error
Post by: Ivan Trebješanin on January 28, 2008, 13:46:08
Of course you can! I am always glad to help, if I can. Also, I must thank you for your effort and good will to share your work with others.
Title: Re: unknown client type error
Post by: machinakias on January 28, 2008, 14:27:05
 :(back again... just tried to install the zip file in elxis locally with xampp but i get this.....
File C:\xampp\htdocs\elxis\tmpr\install_479dc94730fad\css\template_css.css does not exist!
and it fails....still dont get it,i changed the iso to utf-8 in templateDetails.xml....it was iso...something...
i'll give up....i think i'm dumb! sorry for being annoying.....
Title: Re: unknown client type error
Post by: datahell on January 28, 2008, 14:34:17
With this file inside the zip: ΟΔΗΓΙΕΣ ΧΡΗΣΗΣ - BEFORE YOU BEGIN.TXT your template will never be installed.
Remove it, or rename it and add it to the XML installation file.
Title: Re: unknown client type error
Post by: Ivan Trebješanin on January 28, 2008, 14:38:08
:(back again... just tried to install the zip file in elxis locally with xampp but i get this.....
File C:\xampp\htdocs\elxis\tmpr\install_479dc94730fad\css\template_css.css does not exist!
and it fails....still dont get it,i changed the iso to utf-8 in templateDetails.xml....it was iso...something...
i'll give up....i think i'm dumb! sorry for being annoying.....

You can see it in action here: http://www.jazzign.com/administrator

PS
Just use my installation posted above, and remove that alien before you begin.txt file as datahell suggested. It's working!
Title: Re: unknown client type error
Post by: machinakias on January 28, 2008, 15:06:04
well,i saw it! but when i try to install it in xampp in my pc the error is still there....anyway,you tested,so i think it's ok.
i dont want to create any trouble to anyone....a last question....if i rename the old txt  into info.txt with utf-8 and add it in the xml,can i use it? thanks all you guys for your help! :D
Title: Re: unknown client type error
Post by: Ivan Trebješanin on January 28, 2008, 15:36:05
There is no need for that .txt file, as you can add everything inside template_details.xml under the description tag. That is the usual way.

hint: If you insist on keeping that file inside .zip, DON'T ADD IT to template_details.xml!!! That way it won't be included in installation, but it will remain in the zip.
Reminder: don't use any other encoding except UTF-8.
Title: Re: unknown client type error
Post by: machinakias on January 28, 2008, 15:41:20
 ;) thanks for everything! going forward to the next one....!!!