The vB Geek

Go Back   The vB Geek > vB Geek Products > Geek Article and Review System

Geek Article and Review System GARS is the mega popular system for turning forums into articles, tutorials, or even reviews.

Advertisement
  Learn how to remove ads

Reply
 
Thread Tools Display Modes
  #1  
Old 08-13-2007, 06:28 PM
pkallberg21 pkallberg21 is offline
Junior Member
 
Join Date: Feb 2007
Posts: 11
Geek Article and Review System License Holder 
Default Trouble with Edit Post

Hello!
I have made a tutorial post with the default picture. When I edit the post to change the default picture to something else, I get this:
Quote:
image->info_extensions["{$this->upload['extension']}"]); } function process_upload($uploadurl = '') { if ($this->file) { $uploadstuff =& $this->file; } else { if ($uploadurl == '' OR $uploadurl == 'http://www.') { $uploadstuff =& $this->registry->GPC['upload']; } else { if (is_uploaded_file($this->registry->GPC['upload']['tmp_name'])) { $uploadstuff =& $this->registry->GPC['upload']; } else { $uploadstuff =& $uploadurl; } } } if ($this->accept_upload($uploadstuff)) { if ($this->image->is_valid_thumbnail_extension(file_extension($th is->upload['filename'])) && $this->dothumb) { if ($this->imginfo = $this->image->fetch_image_info($this->upload['location'])) { if (!$this->image->fetch_must_convert($this->imginfo[2])) { if (!$this->imginfo[2]) { $this->set_error('upload_invalid_image'); return false; } if ($this->image->fetch_imagetype_from_extension($this->upload['extension']) != $this->imginfo[2]) { $this->set_error('upload_invalid_image_extension', $this->imginfo[2]); return false; } } else { $this->set_error('upload_invalid_image'); return false; } } else { $this->set_error('upload_imageinfo_failed_x', htmlspecialchars_uni($this->image->fetch_error())); return false; } } else { $this->set_error('upload_invalid_image'); return false; } $destination = $this->fetch_path($this->path); if ($this->dothumb) { $maxw = $this->maxthumbwidth ? $this->maxthumbwidth : 100; $maxh = $this->maxthumbheight ? $this->maxthumbheight : 100; $this->thumbnail = $this->image->fetch_thumbnail($this->upload['filename'], $this->upload['location'], $maxw, $maxh); if (file_exists($destination . "/thumb_" . $this->upload['filename'])) { for ($x = 0; $x < 25; $x++) { if (!file_exists($destination . "/thumb_" . TIMENOW . $x . $this->upload['filename'])) { $this->thumbnail['filename'] = "thumb_" . TIMENOW . $x . $this->upload['filename']; break; } } } else { $this->thumbnail['filename'] = "thumb_" . $this->upload['filename']; } $this->thumbpath = $this->save($destination, $this->thumbnail); } if ($this->dooriginal) { if (!$this->upload['filedata']) { if (!($this->upload['filedata'] = file_get_contents($this->upload['location']))) { $this->set_error('upload_file_failed'); return false; } } if (file_exists($destination . "/" . $this->upload['filename'])) { for ($x = 0; $x < 25; $x++) { if (!file_exists($destination . "/" . TIMENOW . $x . $this->upload['filename'])) { $this->upload['filename'] = TIMENOW . $x . $this->upload['filename']; break; } } } $this->originalpath = $this->save($destination, $this->upload); } @unlink($this->upload['location']); return true; } else { return false; } } function fetch_path($basepath) { if ($this->identifier && $this->nosplit) { $id = $this->identifier; $folders = array($this->identifier); } elseif ($this->identifier) { $id = $this->identifier; $folders = preg_split('//', $id, -1, PREG_SPLIT_NO_EMPTY); } else { return $basepath; } $return = $basepath; if (!$this->registry->options['safeupload']) { foreach ($folders AS $folder) { $return .= ($inied ? "/" : "") . $folder; $this->extended_path .= ($inied ? "/" : "") . $folder; $inied = true; if (!is_dir("$return")) { @mkdir($return, 0777); @chmod($return, 0777); $fput = @fopen($return . '/index.htm', "w"); @fputs ($fput, ''); @fclose($fput); } } } return $return; } function save($path, &$file) { if (!is_writable($path) OR !($fp = fopen($path . '/' . $file['filename'], 'wb'))) { $this->set_error('invalid_file_path_specified'); return false; } if (@fwrite($fp, $file['filedata']) === false) { $this->set_error('error_writing_x', $file['filename']); return false; } @fclose($fp); return $this->extended_path . '/' . $file['filename']; } } ?>
Do you know what is wrong?

Thanks.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Thread/Edit Thread/Post Reply Template Set Half Pint Geek Article and Review System 1 01-26-2008 11:11 PM
Custom Field contents cleared during post edit trana Geek Article and Review System 2 11-05-2006 04:13 PM
Header image change in post edit!! Asasi Geek Article and Review System 4 09-20-2006 11:59 AM
display an feature trouble ang2el Geek Article and Review System 9 02-12-2006 07:49 AM
Modification to the Edit and New post preview. X-Files Geek Article and Review System 8 02-01-2006 01:44 PM


All times are GMT. The time now is 08:24 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.