1
script_fu
How can I make xoops only use one editor for registered users?

How can I make XOOPS only use one editor for registered users? Can I just delete the editors I dont want? Is there anyway to control them in admin?

2
hackbrill
Re: How can I make xoops only use one editor for registered users?
  • 2007/7/20 22:56

  • hackbrill

  • Friend of XOOPS

  • Posts: 283

  • Since: 2005/7/14


Quote:

script_fu wrote:
Can I just delete the editors I dont want?


That's exactly what I did with no problems whatsoever.

Quote:

Is there anyway to control them in admin?


TinyEditor is the only editor I know of that can be controlled via administration because it installs as a module.

3
script_fu
Re: How can I make xoops only use one editor for registered users?

Thanks for the post hackbrill.

I am still trying to get use to having all those editors.

I have not had a need to install cbb or any other forum in years. So all this was unimportant to me till I decided to do some sites that needed it.

Frameworks is pretty cool along with the editor pack.

Still debating if I should delete them or not.

4
skenow
Re: How can I make xoops only use one editor for registered users?
  • 2007/7/21 3:11

  • skenow

  • Home away from home

  • Posts: 993

  • Since: 2004/11/17


If you want to disable the xoopseditors without deleting them, there is a config file for each one - editor_registry.php. Set the order to '0' to remove it from the list of editors available.

return $config = array(
        
"name"    =>    "tinymce",
        
"class"    =>    "XoopsFormTinymce",
        
"file"    =>    $root_path."/formtinymce.php",
        
"title"    =>    _XOOPS_EDITOR_TINYMCE,
        
"order"    =>    0
    
);

5
script_fu
Re: How can I make xoops only use one editor for registered users?

Thank you sir! Good things come to people who wait. Perfect answer.

6
script_fu
Re: How can I make xoops only use one editor for registered users?

One more question is there a way to only give admin/webmaster the rights to use all the editors? Can I control what registered user use with out turning them off for myself as well?

Thank you for your time.

7
hackbrill
Re: How can I make xoops only use one editor for registered users?
  • 2007/7/21 12:04

  • hackbrill

  • Friend of XOOPS

  • Posts: 283

  • Since: 2005/7/14


Quote:

script_fu wrote:
One more question is there a way to only give admin/webmaster the rights to use all the editors? Can I control what registered user use with out turning them off for myself as well?

Thank you for your time.


With Tiny Editor, you can set administrative permissions and that is why it is such a great editor.

8
skenow
Re: How can I make xoops only use one editor for registered users?
  • 2007/7/22 13:07

  • skenow

  • Home away from home

  • Posts: 993

  • Since: 2004/11/17


Using the editor_registry.php file, you can set different editors for each group, if you get a little creative

$editor_order 0// set the default order (0=hidden)
global $xoopsUser// make sure you can access the user info
if ($xoopsUser) {  // if a user is logged in
  
if ($xoopsUser->isAdmin()) $editor_order=4// set the order if the user has admin access to the current module. isAdmin(-1) is true if they have admin access to any module
}
return 
$config = array(
        
//"name"    =>    "koivi",
        
"class"    =>    "XoopsFormWysiwygTextArea",
        
"file"    =>    $root_path."/formwysiwygtextarea.php",
        
"title"    =>    _XOOPS_EDITOR_KOIVI,
        
"order"    =>    $editor_order
    
);

9
attock
Re: How can I make xoops only use one editor for registered users?
  • 2007/7/22 13:24

  • attock

  • Not too shy to talk

  • Posts: 138

  • Since: 2006/8/20


Thank you for this post, i was looking for it aswell. May be in the next release of XOOPS they should consider having this option in the admin panel.

Sometimes I feel like XOOPS is more like a linux cms, compared to other MS Windows types cms. What I mean is that, MS Windows is for sure easy to use, every thing is there infront of you, and you can click click click and boom - your are done. CMS like joomla and drupal fall in that category (though I havn't used these cms much, I could be wrong). However XOOPS is more complex and yet more powerful, you need to hack it to get the most out of it.

Stupid analogy?

But Hey, I am just being little creative like skenow said ;)

Very helpful indeed.

Login

Who's Online

230 user(s) are online (147 user(s) are browsing Support Forums)


Members: 0


Guests: 230


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits