News and Images
Re: News and Images
Funny, I've been using TinyMCE for adding pictures to posts. Works quite well, too!
"One measures a circle, beginning anywhere" - Charles Fort
Re: News and Images
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
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
I used your patch to add images to news articles and it worked quite well!!
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...

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
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!
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!

-
- Forum Members
- Posts: 12
- Joined: Tue Nov 06, 2007 10:21 pm
Re: News and Images
Does this patch and subsequent tweak for the Images folder work for News 2.6 on CMSMS 1.2?
Re: News and Images
I have that version and it doesn't work for me. The whole news module doesn't load up after files are modified.OCStingFan wrote: Does this patch and subsequent tweak for the Images folder work for News 2.6 on CMSMS 1.2?
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: News and Images
The News 2.6.1 doesn't require this patch it supports image fields natively
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: News and Images
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...calguy1000 wrote: The News 2.6.1 doesn't require this patch it supports image fields natively
Last edited by gajones76 on Wed Jan 09, 2008 11:41 pm, edited 1 time in total.
Re: News and Images
For anyone else trying to do this read this post:
http://forum.cmsmadesimple.org/index.php/topic,16966.msg84215.html#msg84215
http://forum.cmsmadesimple.org/index.php/topic,16966.msg84215.html#msg84215
Last edited by gajones76 on Wed Jan 09, 2008 11:42 pm, edited 1 time in total.