This section explains how to add custom banner images to Presence Builder's image library, and make them available for selection in the editor.
Suppose, you have an image file with the name jungle.jpg
, and you want to add it to the editor. Do the following:
header.png
.header.png
, resize it to 200 pixels in width, and 57 pixels in height. Save it as preview.png
.C:\Program Files (x86)\Parallels\Plesk\sb\htdocs\headers\
, and create a subdirectory with the banner name. For example, C:\Program Files (x86)\Parallels\Plesk\sb\htdocs\headers\jungle_01
.header.png
and preview.png
files that you prepared to the directory C:\Program Files (x86)\Parallels\Plesk\sb\htdocs\headers\jungle_01\
.C:\Program Files (x86)\Parallels\Plesk\sb\resources\
. It should contain the file customHeaders.xml
.If the file is missing, create it and insert the following lines into it:
<?xml version="1.0" encoding="utf-8"?>
<headers>
<header id="jungle_01">
</header>
</headers>
If the file is present, add the following <header> node to it:
<header id="jungle_01">
</header>
Keywords are used for the following purposes:
headers.lng
file containing descriptions of all banner images in the form of keywords.To add keywords, do the following:
C:\Program Files (x86)\Parallels\Plesk\sb\resources\locale\<locale_code>\headers.lng.
<header_id> = "<keyword_1>,<keyword_2>,<keyword_3>"
Where:
<header_id>
is the image ID that you specified in step 6, but with certain transformations: all uppercase letters must be changed to lower case, hyphens must be removed, the next symbol following a hyphen must be changed to upper case.For example:
If the <header_id>
is Jungle_01-eXample
, then it must be changed to jungle_01Example
.
If the <header_id>
is my-super-banner
, then it should be transformed to mySuperBanner
.
If the <header_id>
is my_super_banner
, then it should be transformed to my_super_banner
.
<keyword>
is a human-readable word that describes the image or identifies items on the picture. You can use several keywords separated by commas. White spaces can be used only if they are part of a descriptive phrase or a combination of words.
Example:
jungle01 = "jungle,tropics,green,nature,family travel"
"C:\Program Files (x86)\Parallels\Plesk\admin\bin\php.exe" -c "C:\Program Files (x86)\Parallels\Plesk\admin\php.ini" -d auto_prepend_file="" "C:\Program Files (x86)\Parallels\Plesk\sb\utils\updateResources.php" header
Now you can go to the editor and open the list of banner images. The newly added image should be at the end of the list.