Part of the EllisLab Network
   
2 of 40
2
CodeExtinguisher 2.0 Release Candidate 14.2
Posted: 20 May 2008 02:32 AM   [ Ignore ]   [ # 11 ]  
Summer Student
Total Posts:  20
Joined  02-01-2008

I’m afraid form search field is not working… so if this is something that has been answered many times, I appologize, I can’t find manually.

So far I have used Codex for a CRUD admin system for a website, and it works beautifully!

But, now I am faced with making a similar system which needs an auth system (self-registration for users, blah blah…) so I was looking at some of the auth libraries. I have settled on redux_auth, however I need some advice first. I am really not sure how to go about using Codex with a CI library like this. Can someone point me to some reading material on this subject, or send me to an example of such a thing? Is there some special stuff that I have to do to call CI libs and controllers from a codex instalation?
See, what confuses me (as a total newbie, both to CI, and to MVC in general - go ahead, mock me…I deserve it :D ) is that codex seems so separate from CI, in that it lives in its own system directory, next door to CI, rather than being roomies with it like the other libs and apps I have seen.

Again, I’m sorry if this stuff has been answered a thousand times, forum search seems to be broken or something…

Thank you for developing such an inspiring piece of code :D
-unsub-

Profile
 
 
Posted: 20 May 2008 09:02 AM   [ Ignore ]   [ # 12 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  330
Joined  05-29-2006
abmcr - 19 May 2008 01:14 AM

I find a bug in this page http://codeextinguisher.com/public_preview/preview.php/example/manage/edit/105
the calendar not appears correct… wink

The css is not loaded corretly because the function in the codextemplate.php is

function css ($identifier, $file,$force=false){
        
if($force OR !in_array($identifier,$this->loaded_objects['css']))
            
$this->loaded_objects['css'][$identifier] = '<link rel="stylesheet" href="'.$file.'" type="text/css">'."\n";
    
}

and not insert the correct pah to js
it is a bug or it is need to manage the css template? In both case, i have created (!) a new function

function css_from_assets ($identifier, $file,$force=false){
        
if(!in_array($identifier,$this->loaded_objects['css']))
            
$this->loaded_objects['css'][$identifier] = '<link rel="stylesheet" href="'.$this->asset_folder.'css/'.$file.'" type="text/css">'."\n";
    
}

and modified into the plugin of the date the

$CI->codextemplates->css('css-datepicker','ui.datepicker.css');


in

$CI->codextemplates->css_from_assets('css-datepicker','ui.datepicker.css');

 Signature 

CI Js_calendar plugin click

WYSIWYG with CI

Profile
 
 
Posted: 20 May 2008 10:12 AM   [ Ignore ]   [ # 13 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  674
Joined  06-07-2007

irvin, you’re right, i’ll fix it

unsub, CodeExtinguisher is no different than the application folder inside your system folder. If you notice in your index.php file, you define the path to the applications folder. As far as including a different auth library with codex, simply replace the methods in codexlogin.php with ones that route to your own library, and you might need to change the login controller as well, but that should be it. (oh and the hook too)

abmcr, thanks for the fix, i’ll include it

 Signature 

CodeExtinguisher
Download: codex2_rc14.2.zip - 219 KiloBytes of Gloriousness!
Demo: Public preview - login with preview:preview
Temporary Docs: PBWiki

Profile
 
 
Posted: 20 May 2008 10:36 AM   [ Ignore ]   [ # 14 ]  
Grad Student
Rank
Total Posts:  43
Joined  10-05-2006
jTaby - 19 May 2008 08:05 PM

gusa, well all tables from the database are shown. If you want to exclude a table, then add it to codex_exclude_tables in config/codex.php. The way I fixed the get_where issue is by writing my own get_where function in codexmodel and updating the libraries to use it. the function in codexmodel then either calls get_where or getwhere depending on the system’s version. as far as the APPPATH issue, I can’t just use codex/application because people sometime put their codex application in non-root directories.

ok, i understand. but i think it would be preferable to put ‘codex/application’ in another constant, because APPPATH is supposed to contain the full server path to the “application” folder.

Profile
 
 
Posted: 20 May 2008 10:39 AM   [ Ignore ]   [ # 15 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  674
Joined  06-07-2007

point taken

 Signature 

CodeExtinguisher
Download: codex2_rc14.2.zip - 219 KiloBytes of Gloriousness!
Demo: Public preview - login with preview:preview
Temporary Docs: PBWiki

Profile
 
 
Posted: 20 May 2008 11:15 AM   [ Ignore ]   [ # 16 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  330
Joined  05-29-2006
jTaby - 20 May 2008 10:12 AM

abmcr, thanks for the fix, i’ll include it

For a complete fix the upgrade of css. I attach it: it fix the longer width of month and year

/* @override http://localhost:81/codex_wc/codex/assets/css/ui.datepicker.css */

/* Main Style Sheet for jQuery UI date picker */
table.datepicker{
    padding
: 0;
}
#datepicker_div, .datepicker_inline {
    
font-family: Helvetica, Arial, sans-serif;
    
font-size: 14px;
    
padding: 0;
    
margin: 0;
    
background: #ddd;
    
width: 270px;
}
#datepicker_div {
    
display: none;
    
border: 1px solid #777;
    
z-index: 10; /*must have*/
}
.datepicker_inline {
    float
: left;
    
display: block;
    
border: 0;
}
.datepicker_dialog {
    padding
: 5px !important;
    
border: 4px ridge #ddd !important;
}
button
.datepicker_trigger {
    width
: 25px;
}
img
.datepicker_trigger {
    margin
: 2px;
    
vertical-align: middle;
}
.datepicker_prompt {
    float
: left;
    
padding: 2px;
    
background: #ddd;
    
color: #000;
}
* html .datepicker_prompt {
    width
: 185px;
}
.datepicker_control, .datepicker_links, .datepicker_header, .datepicker {
    clear
: both;
    
float: left;
    
width: 100%;
    
color: #fff;
}
.datepicker_control {
    background
: #334379;
    
padding: 2px 0px;
}
.datepicker_links {
    background
: #6a7586;
    
padding: 10px 0px;
}
.datepicker_control, .datepicker_links {
    font
-weight: bold;
    
font-size: 80%;
    
letter-spacing: 1px;
}
.datepicker_links label { /* disabled links */
    
padding: 2px 5px;
    
color: #888;
}
.datepicker_clear, .datepicker_prev {
    float
: left;
    
width: 34%;
}
.datepicker_current {
    float
: left;
    
width: 30%;
    
text-align: center;
}
.datepicker_close, .datepicker_next {
    float
: right;
    
width: 34%;
    
text-align: right;
}
.datepicker_header {
    padding
: 3px 0 5px 0;
    
background: #334379;
    
text-align: center;
    
font-weight: bold;
    
height: 1.3em;
    
width: 210px;
}
.datepicker_header select {
    background
: #f6fef8;
    
color: #313131;
    
border: 0px;
    
font-weight: bold;
    
width: 100px;
}
.datepicker {
    background
: #ccc;
    
text-align: center;
    
font-size: 100%;
}
.datepicker a {
}
.datepicker_titleRow td{
    padding
-left: 10px;
}
.datepicker_titleRow {
    background
: #777;
}
.datepicker_daysRow {
    background
: #eee;
    
color: #666;
}
.datepicker_weekCol {
    background
: #777;
    
color: #fff;
}
.datepicker_daysCell {
    color
: #000;
    
border: 1px solid #ddd;
    
padding-left: 10px;
    
text-align: center;
}
.datepicker_daysCell a{

}
.datepicker_weekEndCell {
    background
: #333;
}
.datepicker_daysCellOver {
    background
: #fff;
    
border: 1px solid #777;
}
.datepicker_unselectable {
    color
: #888;
}
.datepicker_today {
    background
: #cfdee7;
}
.datepicker_currentDay {
    background
: #999 !important;
}
.datepicker_status {
    background
: #ddd;
    
width: 100%;
    
font-size: 80%;
    
text-align: center;
}

/* ________ Datepicker Links _______

** Reset link properties and then override them with !important */
#datepicker_div a, .datepicker_inline a {

    
color: #000;
}
.datepicker_inline .datepicker_links a {
    padding
: 0 5px !important;
}
.datepicker_control a, .datepicker_links a {
    padding
: 2px 5px !important;
    
color: #eee !important;
}
.datepicker_titleRow a {
    color
: #eee !important;

}
.datepicker_control a:hover {
    background
: #fdd !important;
    
color: #333 !important;
}
.datepicker_links a:hover, .datepicker_titleRow a:hover {
    background
: #ddd !important;
    
color: #333 !important;
}

/* ___________ MULTIPLE MONTHS _________*/

.datepicker_multi .datepicker {
    border
: 1px solid #777;
}
.datepicker_oneMonth {
    float
: left;
    
width: 185px;
}
.datepicker_newRow {
    clear
: left;
}

 Signature 

CI Js_calendar plugin click

WYSIWYG with CI

Profile
 
 
Posted: 20 May 2008 09:12 PM   [ Ignore ]   [ # 17 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  674
Joined  06-07-2007

would you guys rather have one big screencast or a collection of smaller ones that build on top of each other and teach a specific thing?

 Signature 

CodeExtinguisher
Download: codex2_rc14.2.zip - 219 KiloBytes of Gloriousness!
Demo: Public preview - login with preview:preview
Temporary Docs: PBWiki

Profile
 
 
Posted: 20 May 2008 10:30 PM   [ Ignore ]   [ # 18 ]  
Research Assistant
RankRankRank
Total Posts:  428
Joined  05-21-2007

smaller screencast smile

 Signature 

-> None official irc channel [ irc.freenode.net #codeigniter ]

Profile
 
 
Posted: 21 May 2008 02:01 AM   [ Ignore ]   [ # 19 ]  
Grad Student
Avatar
Rank
Total Posts:  65
Joined  03-17-2008
sikkle - 20 May 2008 10:30 PM

smaller screencast smile

I’d second that.

 Signature 

AssetLibPro - An advanced CI Asset Library
Improving CI’s native Caching

Profile
 
 
Posted: 21 May 2008 02:32 AM   [ Ignore ]   [ # 20 ]  
Summer Student
Total Posts:  20
Joined  02-01-2008

@JTaby:

Tnx very much for your answer, that has cleared up several things for me in one go :D
yer awsome!

So… there’s an auth system right in there? I think I must have been reading too fast when I started digging into this system.

I wonder if there is any reading material on the subject of user signup / authentication in codex that someone knows of? I will of course keep looking about for it myself, but if anyone has a link to such a thing, I sure would be grateful :D

cheers all.

Profile
 
 
   
2 of 40
2
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 719, on June 06, 2008 10:16 AM
Total Registered Members: 64454 Total Logged-in Users: 18
Total Topics: 80961 Total Anonymous Users: 0
Total Replies: 435697 Total Guests: 199
Total Posts: 516658    
Members ( View Memberlist )