Page 2 of 2

Re: News and Images

Posted: Sun Sep 02, 2007 2:03 pm
by halm
Funny, I've been using TinyMCE for adding pictures to posts. Works quite well, too!

Re: News and Images

Posted: Mon Sep 17, 2007 1:48 pm
by elpoza
Hello, I have installed your patch to have Images in my News but i have this message :
Fatal error: Call to a member function GetFriendlyName() on a non-object in C:\Program Files\wamp\www\cmsmadesimple\admin\moduleinterface.php on line 120
I use 1.1.2 CSM MADE SIMPLE version
Thanks for your help

Rémi

Re: News and Images

Posted: Wed Oct 10, 2007 1:45 pm
by paul
I used your patch to add images to news articles and it worked quite well!!  :D But i  made some improvements to let it look only in the images directory because the dropdown was very large because it contains all files from my uploads directory if you want to get only the files from your image directory change the following lines in the patched files

action.article.php line 165:
old
$image_input .= $this->directoryToSelect($gCms->config['uploads_path'], true, $gCms->config['uploads_path'], $image);
change
$image_input .= $this->directoryToSelect($gCms->config['image_uploads_path'], true, $gCms->config['image_uploads_path'], $image);

action.editarticle.php line 200
old
$image_input .= $this->directoryToSelect($gCms->config['uploads_path'], true, $gCms->config['uploads_path'], $image);
if (FALSE == empty($image))
{
$image_preview = "\n".'
'.$this->lang('current_image').':
config['root_url'].'/'.$image.'" alt="" />';
change
$image_input .= $this->directoryToSelect($gCms->config['image_uploads_path'], true, $gCms->config['image_uploads_path'], $image);
if (FALSE == empty($image))
{
$image_preview = "\n".'
'.$this->lang('current_image').':
config['image_uploads_url'].'/../'.$image.'" alt="" />';

Maybe this is usefull for someone...

Re: News and Images

Posted: Thu Nov 15, 2007 10:56 am
by akke
I would love to see this patch for the latest CMSMS release.

Actually, why isn't this default and included as standard? All other CMS systems I've worked with have a summary image witch is not in the summary text. Besides this, CMSMS is the best and easiest CMS out there!  :)

Re: News and Images

Posted: Fri Nov 30, 2007 7:41 am
by OCStingFan
Does this patch and subsequent tweak for the Images folder work for News 2.6 on CMSMS 1.2?

Re: News and Images

Posted: Sat Dec 29, 2007 11:41 am
by gletofire
OCStingFan wrote: Does this patch and subsequent tweak for the Images folder work for News 2.6 on CMSMS 1.2?
I have that version and it doesn't work for me. The whole news module doesn't load up after files are modified.

Re: News and Images

Posted: Sat Dec 29, 2007 4:40 pm
by calguy1000
The News 2.6.1 doesn't require this patch it supports image fields natively

Re: News and Images

Posted: Wed Jan 09, 2008 11:26 pm
by gajones76
calguy1000 wrote: The News 2.6.1 doesn't require this patch it supports image fields natively
I'm still unclear about how to do this. Basically when posting a news article I'd like to be able to choose a small image that would be shown next to the summary.  I had achieved this by using the patch with previous versions of News...

Re: News and Images

Posted: Wed Jan 09, 2008 11:36 pm
by gajones76
For anyone else trying to do this read this post:

http://forum.cmsmadesimple.org/index.php/topic,16966.msg84215.html#msg84215