Export and uploading
With this tool, you can export and automatically upload the created by Zebroid file into CMS without entering the admin panel of CMS and upload image files via FTP.
Main settings
- Name - the name of the profile
- CMS – CMS in which you want to export
- login - username to login the admin panel
- Password - password for admin
- Additional fields - additional fields required for the export script (eg blog address)
Additional settings
- FTP - FTP account
- Split files into pieces - the maximum size of files that can be sent at once to the site
- UTF-8 - if the CMS supports multiple encoding options for the imported files, this option is active and allows you to set the UTF-8
Creating of export and uploading scripts
Creating of export and uploading scripts is not very complicated process, but requires the presence of some skills in writing Zebroid autoposting scripts.
The scripts are located in separate folders, which are located in Zebroid\resources\export-upload profiles\. The name of the script takes the folder name. Scripts consist of the following files:
- icon.png - 16x16 CMS icon
- settings.ini - a file with the basic script configuration (the file format is described below)
- script.pas - a file with a script that sends files to the sites admin panel (the file format is described below)
- macroses.txt - a list of macros for script.pas. In fact it is a list of additional fields (the file format is described below)
Format of the file settings.ini (for example, configured for WordPress)
[FTP] send_images_to = / send_file_to = [CMS] cms_id = 2
The list of CMS identifiers:
- Zebrum Lite
- WordPress
- DLE
- MaxSite
- Joomla
- NetCat
- Rumba
- Blogger
- MODx
- Drupal
- Kandidat CMS
- Umi shop
- LiveStreet
- Instant CMS
- phpBB 3
Format of the file script.pas
program Uploader; procedure Login(); begin // Login script end; procedure SendFile(path:string); begin // Script for uploading the file, which is on the path to sites admin panel end;
Scripts are written using all the features of zebroid autoposting scripts.
Both of the above procedures are required to be present in the script file. The standard macros: $LOGIN - replaced by username, $PASS - replaced with the password specified by the user. There is also an opportunity to expand the number of macros describing them in macroses.txt. All macros should not be located within single quotes.
Format of the file macroses.txt:
Macros_NAME = DESCRIPTION|DEFAULT_VALUE
The macro name can be anything. This is essentially what the program looks before running the script to replace the value. Description is what the user see in the list add. fields, which he is required to fill while creating account. Default value - a value that is set before the user enters his own.
Example:
URL=Blog address|httр://