Welcome Guest, Not a member yet? Register   Sign In
CodeExtinguisher v2.0 Release Candidate 12.3
#41

[eluser]abmcr[/eluser]
[quote author="jTaby" date="1210366795"]abmcr, the docs included in the download are _very_ outdated. If you simply rename editExistingItem to _edit, everything should work fine.
[/quote]

Thank you...
Another problem: i want create a free plugin, i.e. a plugin for insert in the form a free text, not a text get from the db.
It is possible to create it without a link of a field of the db? My idea is:

Code:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class FreeContent extends codexForms
{
    function FreeContent($name) {
        codexForms::initiate($name);
    }

    function getHTML()
    {

        $html =$this->value;

        
        return $html;
    }
}

?>

and in the yml file i call it as
Code:
free_text:
                class: FreeContent
but free_text is NOT a field... Thank yoy very mutch
#42

[eluser]Majd Taby[/eluser]
abmcr, try it and see, I'm guessing you're gonna run into a few issues with functions not existing, but if you do, then just write empty ones.
#43

[eluser]Majd Taby[/eluser]
Just to let everyone know, I've uploaded RC12.3 which fixes the issues under windows (The layout is still broken under IE though).
#44

[eluser]abmcr[/eluser]
Jtaby: i have made the plugin for integrate TinyMce with image manager. Do i send you? or i write the documetation (very poor) here and the download on my web site?
#45

[eluser]Majd Taby[/eluser]
you can put it on your site, and if you send it to me, i'll add a link to the download in this thread. When the site is finished, there will be a section for your 3rd party plugins Smile
#46

[eluser]abmcr[/eluser]
At this url you can downlaod the TinYMCE plugin for CodeExtinguisher: the TinyMCE is the 3.0. version and into i have insert a image manager from http://www.phpletter.com/Our-Projects/Aj...r-Project/.

For configure the upload path you need to configure this file assets/js/jscripts/tiny_mce/plugins/ajaxfilemanager/inc/config.base.php and set ito to ypur folder: now the upload path (chmod 777) is under assets/js/ and is named uploaded.

For all working fine, it is important to edit the assets/js/tinymce_ajax_manager.js file and insert the correct path to the ajaxfilemanager.php.
In the download path, all work if you have an url as http://localhost/codex/backend.php

JTaby: get the plugin from the url ;-) Thank you Ciao!!!
#47

[eluser]jaume[/eluser]
I'm translating codex and I've found some strings in code, not in the language library.

I paste it here as code showing original and modified line.

Code:
// ************************* CONTROLLERS ***************************
// ************************* codexcontroller.php

// line 51
            show_error("id not found"); // original
            show_error($this->lang->line('codex_id_not_found')); // modified
            
// line 79
         $this->codexcrumbs->add('Home'); // original
         $this->codexcrumbs->add($this->lang->line('codex_crumbs_home')); // modified
        
// line 85
         $this->codexcrumbs->add('Overview'); // original
         $this->codexcrumbs->add($this->lang->line('codex_crumbs_overview')); // modified

// line 128
            show_error("Problem with setup of keywords vs fields..."); // original
            show_error($this->lang->line('codex_search_keywords_vs_fields')); // modified
            
// line 133
        $this->codexcrumbs->add(strtolower($this->controller_link),'Overview'); // original
        $this->codexcrumbs->add(strtolower($this->controller_link),$this->lang->line('codex_crumbs_overview')); // modified

// line 134
        $this->codexcrumbs->add('Search'); // original
        $this->codexcrumbs->add($this->lang->line('codex_search')); // modified


// ************************* crud.php

// line 11
                show_error('Table generation for '.$table.' not allowed.'); // original
                // no string defined yet in language files for this text

// line 15
            show_error('Table name missing.'); // original
            // no string defined yet in language files for this text


// ************************* userregistration.php

// line 24
                    'page_header'=>'User Management',
                    'page_header'=>$this->lang->line('userregistration_page_header'),


// ************************* KHAOS/PLUGINS ***************************
// ************************* codexcevents.php

// line 81
            $this->CI->codexmessages->add('failure','Sorry, you do not have permission to '.$action.' this item.');
            // no string defined yet in language files for this text

// ************************* LIBRARIES ***************************
// ************************* codexpagination.php

// line 34
    var $first_link           = '‹ First'; // original
    var $first_link           = '‹ '.$this->lang->line('codexadmin_first'); // modified

// line 37
    var $last_link            = 'Last ›'; // original
    var $last_link            = $this->lang->line('codexadmin_last').' ›'; // modified
    
// line 142
            show_error('Your number of links must be a positive number.'); // original
            show_error($this->lang->line('codex_pagination_negative_links')); // modified
            
// ************************* codexvalidation.php
            
// line 274
                            $line = 'The field was not set';
                            // no string defined yet in language files for this text
        
// line 376
                            $line = 'Unable to access an error message corresponding to your field name.';
                            // no string defined yet in language files for this text
CONT...
#48

[eluser]jaume[/eluser]
Some more strings...
Code:
// ************************* PLUGINS ***************************
// ************************* dbdropdown.php

// line 16
            show_error("You must define a table for DbDropDown to work."); // original
            show_error($this->lang->line('codexforms_dbdropdown_table_not_defined')); // modified

// line 21
            show_error("You must define a field for DbDropDown to work."); // original
            show_error($this->lang->line('codexforms_dbdropdown_field_not_defined')); // modified

// ************************* hidden.php

// line 7
        if(empty($this->value)) show_error('A Hidden field needs a value.'); // original
        if(empty($this->value)) show_error($this->lang->line('codexforms_hidden_value_not_defined')); // modified

        
// ************************* onetomany.php

// line 23
                                   show_error('A display field must be defined in your YAML file for the ManyToMany plugin ('.$name.')'
                                   // no string defined yet in language files for this text
// line 69
                    show_error('There was an error inserting new item into foreign table.');
                    // no string defined yet in language files for this text


// ************************* manytomany.php

// line 23
                                   show_error('A display field must be defined in your YAML file for the ManyToMany plugin ('.$name.')'
                                   // no string defined yet in language files for this text
                                  
// line 69
                    show_error('There was an error inserting new item into foreign table.');
                    // no string defined yet in language files for this text

// line 91
                    show_error('There was an error inserting new item into the linking table.');
                    // no string defined yet in language files for this text


// ************************* image.php

// line 90
                            $this->CI->codexmessages->add('success','Thumbnail created successfully!','',true); // original
                            $this->CI->codexmessages->add('success',$this->lang->line('codexforms_image_thumbnail_created'),'',true); // modified

// line 94
                    show_error("Problem uploading file."); // original
                    show_error($this->lang->line('codexforms_image_uploading_failed')); // modified


// ************************* relationalcontainer.php

// line 190
            $html .= 'Click on the Add new button to add new items to '.$this->label;
            // no string defined yet in language files for this text
            

// ************************* VIEWS/TEMPLATES/DEFAULT ***************************
// ************************* codex_search_form.php

// line 43
                                show_error("Problem with setup of keywords vs fields..."); // original
                                show_error($this->lang->line('codex_search_keywords_vs_fields')); // modified


// ************************* codex_search_form.php

// line 23
            <li><a href="&lt;?php echo base_url().'index.php'; ?&gt;">Go Back To Main Site</a></li> // original
            <li><a href="&lt;?php echo base_url().'index.php'; ?&gt;">&lt;?=$this->lang->line('codex_menu_go_back_to_main') ?&gt;</a></li> // modified

&lt;?php // php tag reopened to keep code highlighting

// ************************* codex_permissions_form.php

// line 36
                        echo "<h3>Predefined permissions:</h3>";
                        // no string defined yet in language files for this text

// line 48
                            echo "<p>User <b>".$row['username'].'</b> is the <b>owner</b> of this record, and has full access to it.</p>';
                            // no string defined yet in language files for this text

//line 50
                            echo "<p class=\"user-permission\"><span class=\"hidden\">user|".$row['user_id'].";record_id|".$this->codexadmin->active_id.";table|".$row['table_name']."</span>User <b>".$row['username'].'</b> has access to <b>'.implode(',',$row['permissions']).'</b> it.</p>';
                            // no string defined yet in language files for this text

// ************************* VIEWS/TEMPLATES/VIEW_MODES ***************************
// ************************* table.php

// line 44
                &lt;?php echo '<a class="addtrigger" href="'.site_url().'/'.$add_link.'">Add New</a>'; ?&gt;
                &lt;?php // no string defined yet in language files for this text
                

// line 81
                                        $anchor = 'Click to edit';
                                        // no string defined yet in language files for this text

// line 98
                    <img style="margin-right:10px" src="&lt;?php echo ASSETSDIR.'images/select_all.png'; ?&gt;"><a id="select-all" href="Select All">Select All</a>
                    // no string defined yet in language files for this text

Hope this helps someone Wink
#49

[eluser]Majd Taby[/eluser]
Hey guys, i just wanted to notify everyone subscribed to this thread that RC13 is released.
#50

[eluser]Majd Taby[/eluser]
By the way, does anyone want to take the project over for a little while?

I'm too busy to work on it for the next few months.




Theme © iAndrew 2016 - Forum software by © MyBB