FORUM IS CLOSED. PLEASE USE QUESTIONS / ANSWERS PAGE INSTEAD
Login  |  Forum  |  Search   

Board index » Development » Help requests




Post new topic Reply to topic  [ 2 posts ] 
 
Author Message
 Post subject: creating a template manager
 Post Posted: Tue Jul 19, 2011 11:52 am 
Offline

Joined: Tue Jul 19, 2011 11:33 am
Posts: 1
Hi there,
I'm busy with a 'template manager' plugin for your cms, and am a little stuck. I've gone through some of the examples you have shown on your site and I'm still drawing a blank. Here's what I've done...
1. I've created a folder called imaginet
2. inside this folder I've created a sub folder called template_manager
3. inside template_manager I've created two sub folders install and uninstall as well as two files manager.php and items_area.php
4. I've inserted the code as per your example renaming where required

What's happening:
The plugin installs fine, and shows up in back end fine

Question:
1. how does the cms read the plugin, as I don't know where to insert my file extractor.

Objective: basically to allow the user to download a template from your site and using the plugin be able to install (extract the zip into correct themes folder ) and add theme to db and indicate if active theme which then re-writes the config as the active theme. the extracting etc is not the problem. its understanding how the plugin is read by the system to know how to add my functions etc...

Many thnks in adv...
Mark


Top 
 Profile  
 
 Post subject: Re: creating a template manager
 Post Posted: Tue Jul 19, 2011 7:48 pm 
Offline
Project Developer

Joined: Tue Apr 28, 2009 9:43 am
Posts: 1720
Your implementation method leads to security hole. If you allow to upload a zip archive that will be extracted and integrated into the system, that means you give a full control over the server.

If you trust people who will use the system, then fine. But I suggest to install all themes you like and let user only chose one of preinstalled ones.

tiger wrote:
Question:
1. how does the cms read the plugin, as I don't know where to insert my file extractor.


I hope this tutorial will answer your question: http://www.impresspages.org/docs/workin ... form-post/


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 2 posts ] 

Board index » Development » Help requests


 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron