Another thing, I have cleared the cache of the browser, and I have changed the name of the aboutus.php file to aboutusold.php. Yet, calling about us from the browser still gives me the about us page.
What the....?
Am I losing my mind?
Hello, I am trying to use the solution you gave toymachiner62, but I get the *required fields text and the submit button twice on my form.
Why is that?
My controller code:
$fields = array(); $fields['registeredName'] = array('label'=>'Regis…
There is the function from the controller:
function register() { if ($this->tank_auth->is_logged_in())// logged in { redirect(''); } elseif (!$this->config->item('allow_registration', 'tank_auth'))// registration is off { …
Hi, I tried downlaoding it again but it does not give the file that was wrong anymore, so it tries to download the correct file which is:
daylightstudio-FUEL-CMS-v0.9.3-168-gb3bef76.zip
and not the one that had problems which is:
daylightstudio-FUE…
Yep, my header view in the _blocks folder has this: <?php echo js('jquery, main'); ?> <?php echo js($js); ?>
And I see the jquery files that are set in the global variables files like so:
$vars['js'] = array('jquery-ui-1.9.0.custom.mi…
How can I tell? The file that I downloaded is called: daylightstudio-FUEL-CMS-v0.9.3-1194-gea4de59
Is there a way for me to check what did I download? And if I downloaded the 1.0 beta do I need to redo everything that I've done?
I see now there is a Security.php file in codeigniter/core, but this file is different than the original security.php file.
Which one should I use?
Trying to use it with Tank_auth.
Thanks
My first two sites with fuelcms:
1. For my town, Clarens in the Free state, South Africa: http://www.clarenssa.co.za
2. For my sister who is a graphic designer and bugged me for a long time to change the site I've developed for her to a content man…
Ok, solved my problem like this:
In my model:
function form_fields($values = array()) { $fields = parent::form_fields($values); $fields['image'] = array('label'=>'Upload an Image', 'type'=>'file'); $fields['image']['upload_path'] = a…
Another problem I have. I wanted to get rid of the select image button not, the upload image button.
My code:
function form_fields($values = array()) { $fields = parent::form_fields($values); $fields['image_upload']['upload_path'] = assets_s…
Thank you, but I'm not sure how to use the my_func.
Not sure what is the $val that is being sent to it, and what should it return.
Is there somewhere I can read about it?
What I tried:
function on_before_validate($values) { $this->add_valid…
Another problem I have is that if the image I'm trying to load is too big I get an error message, but the data is still created in the logos table.
How can I stop the data insert if there is an error while uploading the file?
ok, this post solved my problems: http://www.getfuelcms.com/blog/id/5 Now the only question is how to get rid of the select image field and button, if possible.
Another question:
My field in the table is called: image, so in the form I automatically get two fields:
Upload image with a select image button and then
...Or upload an image with a Browse button.
How do I get rid of the Upload image with the sel…
Tried that as well, 'Success' is printed but still no thumbnail:
$config = array( 'source_image' => APPPATH . 'images/logos/'.$file['name'], 'new_image' => APPPATH . 'images/logos/thumbs', 'maintain_ration' => true, 'width' =…
I've tried that, the image uploads but no thumbnail is being created:
function on_after_post($values) { if (empty($values['image'])) return; // process any uploaded images files that have been specified foreach($_FILES as $file) { …
Ok, that solved the issue, found in another post:
Adding the below code to the main layout file:
$this->load->helper('ajax'); if(!is_ajax()) $this->load->view('_blocks/header')?>
OK !!! found the problem, my file fields didn't have an id. Now everything works with these examples:
http://net.tutsplus.com/tutorials/javascript-ajax/how-to-upload-files-with-codeigniter-and-ajax/
http://www.phpletter.com/Our-Projects/AjaxFileUplo…
I tried to submit the form normally and not with an Ajax call, then it works fine. I am trying to figure out what stops it from working with the Ajax call.
My first Ajax call used serialize and after googling I understand that serialize does not se…
Made sure my form has this field:
Tried to print: $_FILES['userfile']['name']
Getting this error:
A PHP Error was encountered
Severity: Notice
Message: Undefined index: userfile
…
I have changed the upload path to a full path, I have changed the way I display the errors and for testing, I removed the check: if(!empty($_FILES['userfile']['name']))://Checking that the user is trying to upload a file
Now I get this error:
You d…
YES !!! Halelluia, that helped: $config['crlf'] = "\r\n";
I was googling this issue for hours yesterday, all the posts I found didn't mention this fix.
Thank you !