The kit of modules to create and manage interactive virtual tours on web sites
Tutorial 3. Configuring PanoModules Pro for online content management
1. Create a virtual tour
Let's use one, created in Tutorial-1. Don't forget to link module_Map_Pro.swf
and module_Pano_Pro.swf
insted of module_Map_Base.swf
and module_Pano_Base.swf
in initializing script. Only Pro version supports online editing.
2. Upload scripts
Upload the folder scripts
from PanoModules kit to your web server. This folder contain files:
authData.php
- stores logins and passwords informationauthorization.php
saver.php
Sure that PHP 4 is supported.
3. Set common preferences for your virtual tour
Open common preferences file. For the virtual tour created in Tutorial-1 it is the file virtualTour1_prefs.xml
(we left it empty in that tutorial).
Write following code in it:
<prefsCommon> <scriptSaver>scripts/saver.php
</scriptSaver> <scriptAuthorization>scripts/authorization.php
</scriptAuthorization> </prefsCommon>
Remember:
- the common preferences file must reside in the same location as modules files;
- paths to script files are relative to this location.
4. Create new login and password
For security reasons the system not stores open passwords, and there are no possibilities to register or change login and password online. The only way to do that is manual editing of file authData.php
.
To create new login and password add a string looks like:
$passhash['mylogin'] = 'b411ae7a474ea463d5df5eb38a75e4c5';
It contains login and hash of password. This example was generated for login mylogin
and password mypassword
.
To generate such string use utility AuthorizationDataGen.swf
. Run it, enter login and password and press "Generate hash" button. The string will be generated. Copy it and paste into authData.php
as separate line anywhere between <?php
and ?>
. There can be any number of such lines, if you want to have several valid logins and passwords for online editing of your virtual tour.
5. Enter the editing mode
Open online the web page with your virtual tour, wait until modules loading will finished. Right-click on any module and select "Edit..." in context menu. You will be asked for login and password. Enter it and press "OK".