Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 12:10:49 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155533 Posts in 21713 Topics by 7738 Members
Latest Member: Pattieardathfe
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Module Creation  (Read 413 times)
billynastie2002

Offline Offline

Posts: 6


« on: September 21, 2009, 09:47:54 AM »

Hi, All
Im wanting to write a backend module to edit the template css file problem is I have an idea where to start but need to know if its possible to do its for a client website and the client only has access to 3 backend sections pages, media and preferences question is it possible to add my own tab to these which will only show up for the user in question or can I change security on tools so that she can only see the tool which i am creating for the client I have thought of doing a page module but I think a tool module is the correct way to go and the client must only have access to this one tool.
Plus the tool which I am creating is based loosely on edit_module_files.p hp and code module so it is a hybrid module of my own design and also as it is a specific module for the termplate I am using it isnt a module I will be publishing or releasing for everyone yet everyone will be able to have it to pull apart and work with.
Module is not complete as I have only just started working on it but will issue the module when it is complete and I have had a answer on my previous questions.

Hi had a little bit of a play managed to get the module working although a little bit of bad code to do it which i will work on what I am having problems with now is saving the css file and returning to the editor page where it is working I have attached what I have so far.
« Last Edit: September 21, 2009, 11:13:07 AM by billynastie2002 » Logged
billynastie2002

Offline Offline

Posts: 6


« Reply #1 on: September 22, 2009, 09:12:52 AM »

No Help then not even off the admin's.
Logged
Luisehahne
Board Member
Development Team
*****
Offline Offline

Posts: 3147



WWW
« Reply #2 on: September 22, 2009, 01:51:15 PM »

Addon File Editor is already an existing Modul

http://www.websitebakers.com/pages/admin/admin-tools/addon-file-editor.php

Dietmar
Logged

We are human beings - and nobody is perfect at all.
billynastie2002

Offline Offline

Posts: 6


« Reply #3 on: September 22, 2009, 03:57:34 PM »

Hi,
Ive tried that I really only want it for the template css file I have managed to make it work where it reads the file into the editor but I cannot make it write back to the file ie: make it save the editor content.
Can someone please have a look at what im doing wrong.
Logged
doc
Guest
« Reply #4 on: September 22, 2009, 06:34:45 PM »

@billynastie2002:
Admin Tools do not have independent permission settings. If a group (user) has access to Admin Tools section, all tools listed there can be executed by default. To change this, one needs to hack some core files and/or add additional checks to (all) Admin tools used.

Easiest way is to go with a "page type" module and to create. Then you can add a single page with your module type and limit the access to this page only to group(s) you want.

Doc
« Last Edit: September 22, 2009, 06:36:40 PM by doc » Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!