CodeIgniter Forums
CodeExtinguisher 2.0 Public Beta (RC10) - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: CodeExtinguisher 2.0 Public Beta (RC10) (/showthread.php?tid=6065)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23


CodeExtinguisher 2.0 Public Beta (RC10) - El Forum - 03-03-2008

[eluser]Chris Newton[/eluser]
Code:
time_test:
    class: Time
    params:
        -on_update

Without that in the YAML form, the datepicker doesn't seem to work because the datepicker isn't loaded. I looked at the date plugin, and the following needs to be added to the top of the getHTML method of the date plugin for it to work:

Code:
$CI = &get;_instance();
        $CI->codextemplates->css('ui.datepicker.css');
        $CI->codextemplates->js('ui.datepicker.js');



CodeExtinguisher 2.0 Public Beta (RC10) - El Forum - 03-03-2008

[eluser]Chris Newton[/eluser]
Sorry. This was mentioned earlier in the thread:

http://ellislab.com/forums/viewreply/356004/

Oh well.


CodeExtinguisher 2.0 Public Beta (RC10) - El Forum - 03-03-2008

[eluser]Majd Taby[/eluser]
ah, yes you are absolutely correct, I forgot to add that when I created the codextemplates library, thanks for finding it mahuti Smile

EDIT: I actually didn't notice it in the post you're referencing, I suppose MaRKTD needs another thanks Smile


CodeExtinguisher 2.0 Public Beta (RC10) - El Forum - 03-03-2008

[eluser]Chris Newton[/eluser]
1. I think the next thing I'm interested in is an "add new" ajaxy option for DbDropDown. I may look into that over the next few days. I'm fascinated by jQuery, but I've never had the time required to really get into it. I've used it, but I just haven't really gotten the hang of it yet... at least not without a lot of head bashing.

2. Also, I've yet to figure out how to set a DbDropDown's default value to 'blank','null' etc. I'll have to look into the code for that.

3. The last major obstacle I see for real high-level utility for this is the lack of an arrow reorder function. I get clients all the time that want to set the order of items using arrows (up,down) I had planned to create a library / helper / plugin for my own admin efforts, maybe I'll look into doing that for this system. Probably won't get around to it for awhile though.


CodeExtinguisher 2.0 Public Beta (RC10) - El Forum - 03-03-2008

[eluser]Majd Taby[/eluser]
1) Well the OneToMany and ManyToMany plugins already do that, so you probably could just copy/paste that with some minimal modification. Although I'm guessing that there might be a bug cause you reported issues with multiple ManyToMany's on one page.

2) That is a change I made for RC8 actually

3) I have actually contemplated that, I just haven't implemented it, i plan on implementing it though.


CodeExtinguisher 2.0 Public Beta (RC10) - El Forum - 03-03-2008

[eluser]Jauhari[/eluser]
[quote author="mahuti" date="1204586173"]
Code:
time_test:
    class: Time
    params:
        -on_update

Without that in the YAML form, the datepicker doesn't seem to work because the datepicker isn't loaded. I looked at the date plugin, and the following needs to be added to the top of the getHTML method of the date plugin for it to work:

Code:
$CI = &get;_instance();
        $CI->codextemplates->css('ui.datepicker.css');
        $CI->codextemplates->js('ui.datepicker.js');
[/quote]

How to add this code? which file that need to edit? so my date picker work?

I was found the solutions.
Thanks


CodeExtinguisher 2.0 Public Beta (RC10) - El Forum - 03-03-2008

[eluser]Majd Taby[/eluser]
Jauhari, you need to edit the Date.php file which is located in codex/application/plugins. Those three lines need to be added to the beginning of the getHTML function.


CodeExtinguisher 2.0 Public Beta (RC10) - El Forum - 03-09-2008

[eluser]Majd Taby[/eluser]
just a quick update, i've updated the live preview (login with preview:preview), added some jquery to the overview page, also added the ability to configure a page in the YAML file directly. What this means is that you don't need to create cumbersome controllers anymore if you don't need to override CodexController Smile

The only thing left before RC8's release, is a more polished ACL system, if you think you could implement it, please PM me and we'll see what we can do. If you would like to help do some jquery work too, also PM me.


CodeExtinguisher 2.0 Public Beta (RC10) - El Forum - 03-09-2008

[eluser]PedroGrilo[/eluser]
Great work, jTaby.
I'm checking your progress on this everyday.
You could update your svn trunk so I could get my hands dirty. Wink Can't wait for RC8!

Thank you.


CodeExtinguisher 2.0 Public Beta (RC10) - El Forum - 03-09-2008

[eluser]Wilker[/eluser]
a simple bug:

in Image plugin, on the constructor, the last line:

if(substr($this->url_path,-1) !== DIRECTORY_SEPARATOR) $this->url_path .= DIRECTORY_SEPARATOR;

you can't use DIRECTORY_SEPARATOR in this case, because this generates a URL Path, and this will bug in windows systems because the directory seperator will be "\" and this indicates root path, and the image will not display...

to correct this change line to

if(substr($this->url_path,-1) !== '/') $this->url_path .= '/';