-
mossss
-
-
Offline
-
Premium Member
-
- Posts: 100
- Thank you received: 7
-
Karma: 9
-
|
hi, the color picker is still not working for me. I am still trying it on the component I originally created. I deleted the field from the table, then put it back in again which I assumed would create the corrected code, but still not working in the sandbox. This is a backend layout by the way just in case that makes a difference.
Would I need to start the project again to make use of the correction?
|
|
-
admin
-
-
Offline
-
Administrator
-
-
Chef
- Posts: 3711
- Thank you received: 987
-
Karma: 140
-
|
Some stuff, to help you. Not fixing the colorpicker, but in general :
- In your component, you can label the fields (titles) with Capitals letters, spaces and special chars.
- In the database diagram, your can move your tables to order the design. (new since 1.4)
- Your database structure is strange.
Why creating 9 tables with the same structure ? You should use only one table and add a field to know the type (LICHT, WASSER, etc...)
|
Coding is now a piece of cake
|
-
mossss
-
-
Offline
-
Premium Member
-
- Posts: 100
- Thank you received: 7
-
Karma: 9
-
|
thanks for the reply,
the color picker is the flower color on this page
sandbox.cms.j-cook.pro/administrator/ind...b&Itemid=0&lang=&cid[]=1
and unless I'm missing something it isn't functioning for me, I would think that would click on the circle next to the input box and the colour picker would appear, is that how it should work?
thanks
|
|
-
mossss
-
-
Offline
-
Premium Member
-
- Posts: 100
- Thank you received: 7
-
Karma: 9
-
|
hi, yes it may seem a bit strange, but the purpose of these is to have a link to a symbol which will represent various plant properties, so for plantstructure for example there may be 40 or 50 values that will then be associated with an icon. This could be achieved in one table yes, but then, when adding a new plant, and you browsed the possible icons, you would also see the icons for WASSER, LICHT etc etc.
Of course it would be possible to filter the table in the plant form to only display the relavant icons, but I wasn;t sure if or how this would work, so this was just a simple way of achieving the desired result.
But this is really just an experiment rather than something that I have sat down and planned logically, so yes, there probably are much better ways to do it. (My wife has wanted such a catalog for a while and this seemed a good way to achieve this and test your system at the same time)
I didn't realise that you could move the tables around, I hadn't even looked at the table diagram until earlier today.
and finally, yes, I know that can put sensible labels in, but this I can do anytime. There will be a huge amount of messing around with layout once the component is in Jooma anyway, Most of the labels won't actually be there at all as most of the fields will be represented by icons.
but thanks for the suggestions
one final question. Are you planning on putting a modal type file picker in a near future update, I thought it would be easy to do this once the component was installed, but I'm struggling to get it to work. I can easily bring up the standard Joomla image uploader and selector but having trouble working out to get it to return the value into the form. Any advice?
|
|
-
admin
-
-
Offline
-
Administrator
-
-
Chef
- Posts: 3711
- Thank you received: 987
-
Karma: 140
-
|
For the colorpicker first :
I perfectly see the colorpicker with Firefox + MACOS.
The colors should already be visibles for you, just under the input, and the circle. the circle is only the preview of the selected color.
Did you checked the HTML source ?
Do you see hundreds of DIVS ? -> It can be a CSS bug.
Do you have a JS bug ?
Do you tried with FF ?
Please always mention which navigator and which OS.
This colorpicker is not a big piece. It is ugly and not opening in popup.
A new colection of nice controls will be developped in future. I mean, for now, Cook is really optimized for the Application layer.
Moved in "Opened tickets"
File modal picker :
The uploader is quite finished).
Then, the images functions are comming too.
Step by step, we'll include all nice functionalities, like Joomla native modal picker, of course.
Thanks to understand, and to use Cook, even if these absent functionalites are highly attempted.
Regards
|
Coding is now a piece of cake
|
-
mossss
-
-
Offline
-
Premium Member
-
- Posts: 100
- Thank you received: 7
-
Karma: 9
-
|
Hi again,
I'm using firefox 7.01 in windows 7.
I've created a new component just called test color just to see if it works in the sandbox. And for me it still does not really work. There is one table with just a name field and a color code field. (just in backend). If I create a new record, I see a box for the code and a circle next to it, the circle is always white. If I enter a valid color code eg. #000 then the circle stays white. When I save and exit, I see in the list view, a square of black, likewise with a red, or white or gray color code. So, on the list display, the color is displaying instead of the code. However, the picker part of it is not working and even if I edit one of those color records, there is no indication of color, either the circle or underneath. The actual picker part is just not there at all.
Please take a look.
As far as a js or css bug, I have no idea. I have looked at the source code and all looks reasonable, there are not lots of divs and all looks sensible enough.
I will try to have a look on a mac to check if its working there, and also through other browsers,
Sorry, it sounds like I am making a big issue of this, but really its a small thing, just for my test application, I really need it to work.
|
|
-
mossss
-
-
Offline
-
Premium Member
-
- Posts: 100
- Thank you received: 7
-
Karma: 9
-
|
Hi, sorry, I haven't had a chance to check on a mac, but did you get a chance to check to see if working for you on windows with firefox?
thanks
|
|
-
admin
-
-
Offline
-
Administrator
-
-
Chef
- Posts: 3711
- Thank you received: 987
-
Karma: 140
-
|
Not yet, but I don't forget you.
Can you review a JS debug console, It should be a JS issue.
I'm soon writing a better colorpicker, and even having some choice of different ones.
So because I will rewrite all this, I give a lower priority on this.
I'm so sorry, I'm currently not at the office, and cannot check on window before next week.
Thank you for beeing patient some days more.
Regards.
|
Coding is now a piece of cake
|
-
admin
-
-
Offline
-
Administrator
-
-
Chef
- Posts: 3711
- Thank you received: 987
-
Karma: 140
-
|
A precision,
Does it work on 1.5 Sandbox ?
|
Coding is now a piece of cake
Last Edit: 08 Nov 2011 16:46 by admin.
|
-
admin
-
-
Offline
-
Administrator
-
-
Chef
- Posts: 3711
- Thank you received: 987
-
Karma: 140
-
|
Ok, Ok !!
I got it !
Renerate your component.
It should work now.
Solved since 1.4.3
|
Coding is now a piece of cake
Last Edit: 09 Nov 2011 19:29 by admin.
|
-
mossss
-
-
Offline
-
Premium Member
-
- Posts: 100
- Thank you received: 7
-
Karma: 9
-
|
yihaa, thanks
your efforts very much appreciated!
just wonder when the file picker you say is finished and working will be included?
|
|
-
mossss
-
-
Offline
-
Premium Member
-
- Posts: 100
- Thank you received: 7
-
Karma: 9
-
|
hi, well, it works in the sandbox... just downloaded another test component with it in, installed it into a fresh copy of joomla 1.7.3 (latest) and, not working.
Error message is
Warning: preg_replace() [function.preg-replace]: Compilation failed: a numbered reference must not be zero at offset 17 in D:\xampp\htdocs\gardenplants\administrator\components\com_thaigardenplants\dom\dom.php on line 504
really just need to get this and a file picker working, then I'll buy a plan and build the project properly in Cook.
thanks
|
|
-
mossss
-
-
Offline
-
Premium Member
-
- Posts: 100
- Thank you received: 7
-
Karma: 9
-
|
hi, just wondered if you have checked out any reason for the error I get when I use this in a downloaded component in the latest joomla 1.7?
don't worry, I am patient, just I only have a little time each week to work on this project and to try out these things, so am eager to get it working.
thanks
|
|
-
admin
-
-
Offline
-
Administrator
-
-
Chef
- Posts: 3711
- Thank you received: 987
-
Karma: 140
-
|
In facts, I touched theses lines last week.
But in my version of PHP it not raising a warning.
I fixed something, but I'm not sure. Can you try again please ?
|
Coding is now a piece of cake
|
|