Object oriented Smart Templates Engine
Smart PHP Template Engine
# Demo 1. Smart Parser Template Engine / Demo script



Ask us if you have questions or need
our help.

Order now! It's $19 only!

• Lincense for 1 domain

• Volume Discounts

• 30 days free trial

• Free Installation

• Free Upgrades

• 24/7 Lifetime Support

• Download Free trial
:
Download Trial

This is easy to use and install "Image Gallery".

Installation manual:
Assume that you have downloaded and installed SP.Engine into 'sp' folder already

1. Download "Image Gallery" script now!
2. Unpack into one of your folder
3. Turn that folder into subdomain (optinal)
4. Create image_cache folder under domain's root and make it 777
5. Check SP path settings
<?include("../sp/sp_start.php");?> on the top and
<?include("../sp/sp_end.php");?> on the bottom of
images.php, allimages.php

<?include("../../sp/sp_start.php");?> on the top and
<?include("../../sp/sp_end.php");?> on the bottom of
admin/index.php, admin/images.php

Find and check admin files path
<input type='hidden' name='action_source' value='/admin/index.php'>
in admin/index.php
<input type='hidden' name='action_source' value='/admin/images.php'>
in admin/images.php

For instance, if you place demo files just in the demo folder without subdomain you need to change
<input type='hidden' name='action_source' value='/demo/admin/index.php'>
in admin/index.php
<input type='hidden' name='action_source' value='/demo/admin/images.php'>
in admin/images.php


6. Edit mod_rewrite rules in .htaccess if needed
7. Protect /admin folder if needed by .htaccess
8. Edit db.inc.php files in root and admin folder of demo folder (set MySQL access details)
9. Visit your SP Database Engine Control Panel
10. Choose /admin/images.php to parse (SP will use predefined .prs file, so the only you need is to create tables, hit "Start parsing", hit "Create tables"
11. Do the same for /admin/index.php
12. Visit /admin and create a category
13. Visit /admin/images.php and start uploading images

IMPORTANT: in the demo on our site you will not be able to change records as we removed MySQL actions from our demo .prs files to protect us from abuse, but you can hit on any button to show how everything works.

Control panel demo:

Categories: http://demo.smartparser.com/admin/



Example photo gallery ("sea"):
http://demo.smartparser.com/photos/sea/

   


Example photo gallery ("forest"):
http://demo.smartparser.com/photos/forest/



Ask us if you have questions or need our help!


  2. Example of SP syntax
  In this example we request two databases: "cd" and "urls" and then show all CD's type and titles, but if the type of CD ='mp3', we will show 10 related URLs.

 

<? include(“./sp/sp_start.php”); ?>

[SET__CDs
^MYSQL : SELECT * FROM cd
]
[SET__
MyTemplate
^MYSQL : SELECT * FROM urls
^WHERE : status = 'Active' and cdid=VAR(CDs.ID) LIMIT 10
^CELL : CELL(2)
^CASE: VAR(CDs.type)=='mp3'
]

<html>
<body>

[TEMPLATE__$CDs]

{ID} {type} {title}

[TEMPLATE__
$MyTemplate]

ID: {cdid}, URL: {url}

[END__TEMPLATE__MyTemplate]
[END__TEMPLATE__CDs]
</body>
</html>


<? include(“./sp/sp_end.php”); ?>

  3. SP Database Engine Control Panel
  view original image  (26Kb)

smart parser engine Database Interface
  4. SP Template Engine Examples
  Real projects made with help of SmartParser:

 whost.info - web hosting directory

 ForexHelp.com - financial directory

Submit your project!

 1997-2004 © Copyright "H-2.com"    Developed by H-2.com