Welcome Guest, Not a member yet? Register   Sign In
codex image
#1

[eluser]-spy-[/eluser]
im using codeextinguisher.. and i have the same problem with this link
http://ellislab.com/forums/viewthread/71566/P40/

faculty_form.yml
Code:
SURNAME:    class: TextBox
FIRST_NAME:    class: TextBox
MIDDLE INITIAL:    class: TextBox
BACHELOR_DEGREE:    class: TextArea
    attributes:
        rows:5        cols:5
MASTERAL_DEGREE:    class: TextArea
    attributes:
        rows:5        cols:5
DOCTORAL_DEGREE:    class: TextArea
    attributes:
        rows:5        cols:5
PROFILE_PICTURE:
    class: Image
    params:
        make_thumbnail: true
        height:100
        width:100
        url_path: uploads/
        upload_path: ./uploads/


but error occured

Code:
A PHP Error was encountered

Severity: Notice

Message: Undefined property: Image::$CI

Filename: plugins/image.php

Line Number: 36
A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: plugins/image.php

Line Number: 36

Fatal error: Call to a member function library() on a non-object in C:\Program Files\xampp\htdocs\pupcommonwealth.edu.ph\codex\application\plugins\image.php on line 36

they gave a link to see the modified code for plugins/image.php, but its not accessible

i need your help badly
#2

[eluser]Majd Taby[/eluser]
Hey, this is a bug in the RC7 release, it has been fixed for the soon-to-be-released RC8. In the meantime, to fix the bug, replace the code in codex/application/plugins/Image.php with this code.
#3

[eluser]-spy-[/eluser]
jtaby error still occured

A PHP Error was encountered

Severity: Notice

Message: Undefined index: class

Filename: libraries/Codexforms.php

Line Number: 55
A PHP Error was encountered

Severity: Notice

Message: Undefined index: class

Filename: libraries/Codexforms.php

Line Number: 57
An Error Was Encountered

Could not find proper plugin.


sorry about this jtaby..but i really need your help...
#4

[eluser]-spy-[/eluser]
ok i'll just check my codes.. tnx jtaby for your help..your backend generator is really helpful..n_n
#5

[eluser]Majd Taby[/eluser]
Your YAML file should be:

Code:
SURNAME:    
    class: TextBox
FIRST_NAME:    
    class: TextBox
MIDDLE INITIAL:        
    class: TextBox
BACHELOR_DEGREE:        
    class: TextArea
    attributes:
        rows:5            
        cols:5
MASTERAL_DEGREE:        
    class: TextArea
    attributes:
        rows:5            
        cols:5
DOCTORAL_DEGREE:        
    class: TextArea
    attributes:
        rows:5            
        cols:5
PROFILE_PICTURE:
    class: Image
    params:
        make_thumbnail: true
        height:100
        width:100
        url_path: uploads/
        upload_path: ./uploads/
#6

[eluser]ocergyNohtna[/eluser]
if i want to create my thumbnail proportionally, can I specify only a width or height and have the other be scaled proportionally?? I'm away from my development atm, so I can't test to see myself. Was just curious to know if so, otherwise, I will email my other developer to look into re-writing.
#7

[eluser]Majd Taby[/eluser]
ah, that's a good idea (if you only define width/height, it will keep proportion, otherwise, it will force the proportion). Right now you have to define both width and height, and it'll shrink till the first one is hit.




Theme © iAndrew 2016 - Forum software by © MyBB