Elxis CMS Forum

Support => General => Topic started by: elpego on December 24, 2009, 09:28:05

Title: upload pictures in frontend
Post by: elpego on December 24, 2009, 09:28:05
hello everybody,

I have seen in the demo of elxis, that a user can upload a picture without knowing the url of it.
by searchin within his own files. It also works in the component "bubbles" that way.

Do I need an other editor?

------------------------------------
a merry christmas and a happy new year to everybody
Title: Re: upload pictures in frontend
Post by: ks-net on December 24, 2009, 14:55:53
backup and then edit the following files =>

line ~383 mambots/editors/tinymce.php

//Row One of the Editor
    $strRowOne = 'bold,italic,underline,bullist,numlist,forecolor,seperator,justifyleft,justifycenter,justifyright,justifyfull,formatselect,fontsizeselect'';

    //Row Two of the Editor
    $strRowTwo = 'link,unlink,seperator,image,ibrowser,seperator,undo,redo,seperator,cleanup,hr,seperator,ltr,rtl,seperator,pagebreak,media,abbr,acronym,cite,attribs,charmap,removeformat,help';

    //Extra Plugins
    $plugins = 'directionality,media,advimage,safari,xhtmlxtras,style,ibrowser';


line ~36 mambots/editors/tinymce/jscripts/tiny_mce/plugins/ibrowser/ibrowser.php


   //remove upload, delete, rename, create capabilities for frontend except if user is a super administrator
   if ((!$loggedBack) && ($my->gid != 25)) {
       $cfg['upload'] = true;
       $cfg['create'] = false;
       $cfg['delete'] = false;
       $cfg['rename'] = false;
   }


use at your own risck - red text is where addition or modifications take place

Title: Re: upload pictures in frontend
Post by: elpego on December 25, 2009, 08:10:35
hi ks-net,

thank you very much for your answer, I will do so and let you know wether it works.
Title: Re: upload pictures in frontend
Post by: elpego on December 25, 2009, 09:38:40
hi ks-net,
it works, but seems to be difficult for the users to get rid with it. The visitors of my site are Germans and I think they get problems to find out how it works.
Also, it is not the same I saw in the demo of Elxis cms.
Is there no other feature?, like in the component "Bubble". There it is very simple upload pictures from own files.
Title: Re: upload pictures in frontend
Post by: ks-net on December 25, 2009, 16:42:21
this  i have posted above is for content items ... when users submit articles... i don't know any other way for this.

what did you saw on elxis demo?  the media manager? this is a tool for backend global-site-image-organize .... not all users have  access to mediamanager.

what exactly those images are.... i mean what is the purpose of them, article content, gallery ,..?
what kind of users want to upload images? managers,authors, all registered users?
Title: Re: upload pictures in frontend
Post by: elpego on December 26, 2009, 09:06:33
hello ks-net,
thank you for answering that fast.
I have 2 Websites created with elxis. One is a Portal about Spain. If you want to have a look at it: http://www.es-portal.net/EX/ (http://www.es-portal.net/EX/). You will see at the front page, a user has posted 2 articles and the way it looks like, he did not know how to upload a picture.

On the other website I want registered users to do the same, post an article with uploading a picture.
Title: Re: upload pictures in frontend
Post by: ks-net on December 26, 2009, 21:21:33
a registered user to upload -  add pictures has to use ibrowser....

by default this is not enabled.

by applying the modifications, i gave  above,  you enable the ibrowser button at fronted editor and set permissions only for upload(not delete rename..etc) images

*****

if i understood well.. you say that is difficult for users to discover the button and find the way to add images in their articles?
if so... nothing can happen at this moment...this is the way that the editor works.. the same as works in backend-admin area.

the only thing you can do is to teach users how to use ibrowser plugging of the editor!
Title: Re: upload pictures in frontend
Post by: elpego on December 27, 2009, 08:42:22
hi ks-net,

thanks for your reply. If there is no other way, I do as you said, explain the user how the ibrowswer works.
By the way, just a short question: Is it possible, that each article shows the category-picture automaticly ? Would be nice for me.