ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

CodeExtinguisher 2.0 Public Beta (RC10)

February 13, 2008 3:25pm

Subscribe [27]
  • #46 / Feb 18, 2008 10:21am

    Majd Taby

    637 posts

    well, lines 22 and 23 are:

    if(!class_exists(‘File’))<br />   include(‘file.php’);

    The reason being that when a form is being generated, it includes all the plugin files it needs, so if you include something twice, then it thinks you’re defining two classes of the same name…

  • #47 / Feb 18, 2008 10:24am

    mandarin

    11 posts

    I am not sure if we are talking about the same right now. Maybe it is me who is not fully focused as I am currently at work and cannot take a look at the code. However, I it works when I define _both_ fields not just one. So it is kinda like the opposite of what you are suggesting as it does not work if I just define one field (when there is just one class loaded then).

    Kind Regards,
    Mark

  • #48 / Feb 18, 2008 10:30am

    MaRKTD

    13 posts

    mandarin, MaRKTD, sorry for the delayed response, I can’t recreate the errors, i’ve used MaRKTD’s code as well, but it seems to be working on my machine.

    Could you guys go to application/plugins/image.php and delete line 22 and tell me if that fixes the problem?

    Thanks,
    jTaby

    Does not work. A mistake in that that variables from file are used and in a class image they are inaccessible. CI 1.6.1 from SVN. The version another can at you? Try to put on clear CI

  • #49 / Feb 18, 2008 10:42am

    Majd Taby

    637 posts

    Here, try the code in the link. This is the Image plugin, but made independent of the File plugin.
    http://rafb.net/p/DPs0f997.html

  • #50 / Feb 18, 2008 10:49am

    MaRKTD

    13 posts

    Here, try the code in the link. This is the Image plugin, but made independent of the File plugin.
    http://rafb.net/p/DPs0f997.html

    Yes it works)

  • #51 / Feb 18, 2008 5:25pm

    mandarin

    11 posts

    It is working 😊

    Thx!

  • #52 / Feb 18, 2008 7:52pm

    Sean Downey

    34 posts

    Hi jTaby

    sorry but did you get to have a look at #39 - http://ellislab.com/forums/viewthread/71566/P30/#355325 ?

    I have tried it with a clean install of both CI 1.6.1 and CE RC7 but it still doesn’t allow me to login.

    I have placed debug info around the redirect on line 46 of the login and it is definitey there where it fails - it keeps bringing me back to the login form even if the details are valid.

    Would you have any ideas what it could be?

  • #53 / Feb 19, 2008 12:37am

    MaRKTD

    13 posts

    Probably the line 54 in image.php should be

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

    differently sometimes it turns out here so

    /\

    Probably what even everywhere it is necessary to change

  • #54 / Feb 19, 2008 12:41am

    MaRKTD

    13 posts

    Hi jTaby

    sorry but did you get to have a look at #39 - http://ellislab.com/forums/viewthread/71566/P30/#355325 ?

    I have tried it with a clean install of both CI 1.6.1 and CE RC7 but it still doesn’t allow me to login.

    I have placed debug info around the redirect on line 46 of the login and it is definitey there where it fails - it keeps bringing me back to the login form even if the details are valid.

    Would you have any ideas what it could be?

    Probably sessions are not kept

  • #55 / Feb 19, 2008 12:44am

    MaRKTD

    13 posts

    modernization that it was possible to specify an inserted cell
    dbdropdown.php

    <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); 
    include_once("dropdown.php");
    
    class DbDropDown extends DropDown{
        function DbDropDown($name,$params){
            DropDown::DropDown($name,$params);
        }
    
        function getList(){
            $CI = &get;_instance();
            if(!isset($CI->db)) $CI->load->database();
    
            $html = "";
            $field = $this->params['field'];
            $value = $this->params['value'];
            $table = $this->params['table'];
    
            $result = $CI->db->query("SELECT $value,$field FROM $table");
            foreach($result->result_array() as $row){
                if($row[$field] == $this->value)
                    $html .= "<option value=\"".$row[$value]."\" selected>".$row[$field]."</option>\n";
                else
                    $html .= "<option value=\"".$row[$value]."\">".$row[$field]."</option>\n";
            }
    
            return $html;
        }
    }
    
    ?>
  • #56 / Feb 19, 2008 1:49am

    MaRKTD

    13 posts

    When you use dbdropdown this mistake in the menu shows

    A PHP Error was encountered
    
    Severity: Notice
    
    Message: Undefined index: list
    
    Filename: plugins/dropdown.php
    
    Line Number: 13
  • #57 / Feb 19, 2008 2:02am

    MaRKTD

    13 posts

    It can be necessary to add parameter display_title: for all plug-ins to set a displayed name for cells?

  • #58 / Feb 19, 2008 3:45am

    Sean Downey

    34 posts

    Probably sessions are not kept

    Hi MaRKTD

    Thanks - It’s odd - I deleted the sessions that were in the ci_session table and tried to login again and it has worked.

    I like what I see now - looks like a really good project.
    Fair play jTaby.


    Update: There seems to be with the login using IE. It worked fine in Firefox. Very strange. Is anyone else having that problem?  Could it be cookies domain in IE? The domain I use for dev is - http://ci_backend/backend.php

  • #59 / Feb 19, 2008 7:55am

    MaRKTD

    13 posts

    date.php getHTML () should be

    function getHTML()
        {
              $CI = &get;_instance();
            $CI->codextemplates->css('ui.datepicker.css');
            $CI->codextemplates->js('ui.datepicker.js');
            $html = $this->prefix;
            $html .= $this->getMessage($this->name);
            $html .= '
                <label for="'.$this->name.'">
                    '.$this->label.'
                    </label>';
            $html .='
                <input class="text" type="text" id="'.$this->name.'_picker" value="'.$this->value.'" name="'.$this->name.'" '.$this->getAttributes($this->attributes).'>
            ';
            $html .='$(document).ready(function() {$(\'#'.$this->name.'_picker\').datepicker({dateFormat: \'yy-mm-dd\'}); });';
    
            $html .= $this->suffix;
            
            return $html;
        }

    Otherwise does not work without element Time

  • #60 / Feb 19, 2008 1:46pm

    Shodan

    14 posts

    I’m not sure if it’s just me but I’m having problems in both IE6 & IE7.

    From the overview page, the edit button doesn’t work. The page refreshes but it still only displays the list of existing items not the edit form.

    Also on a cosmetic note, hovering over a table row causes the edit and delete buttons to freak out. It looks like some padding is disappearing or something

    There’s also some minor padding / margin / positioning issues for the add (and I guess edit but can’t get to it) form in IE 6 & 7

    All the above is fine in Firefox, Safari & Opera.

    Apologies if this is old news!

    Cheers,
    Terry

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases