News and Images

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
halm
Forum Members
Forum Members
Posts: 103
Joined: Mon Jun 11, 2007 12:52 pm
Location: Malmö, Sweden

Re: News and Images

Post by halm »

Funny, I've been using TinyMCE for adding pictures to posts. Works quite well, too!
"One measures a circle, beginning anywhere" - Charles Fort
elpoza

Re: News and Images

Post 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
paul

Re: News and Images

Post 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...
akke

Re: News and Images

Post 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!  :)
OCStingFan
Forum Members
Forum Members
Posts: 12
Joined: Tue Nov 06, 2007 10:21 pm

Re: News and Images

Post by OCStingFan »

Does this patch and subsequent tweak for the Images folder work for News 2.6 on CMSMS 1.2?
gletofire
Forum Members
Forum Members
Posts: 18
Joined: Wed Dec 19, 2007 2:31 pm

Re: News and Images

Post 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.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: News and Images

Post by calguy1000 »

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.
gajones76
Forum Members
Forum Members
Posts: 12
Joined: Sun Jul 15, 2007 10:51 am

Re: News and Images

Post 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...
Last edited by gajones76 on Wed Jan 09, 2008 11:41 pm, edited 1 time in total.
gajones76
Forum Members
Forum Members
Posts: 12
Joined: Sun Jul 15, 2007 10:51 am

Re: News and Images

Post by gajones76 »

For anyone else trying to do this read this post:

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.
Post Reply

Return to “Modules/Add-Ons”