Add a PowerGallery 2 gallery to a Power CMS page
I want to add a gallery to a power cms page. I hav used the "Database Integration Update" from the Power Gallery 1 download page (Strange that this is not included in PowerGallery 2).
I have uploadad the wa_evaluate.php file from the PowerGalley 1 Database integration update to my site.
I have used this code in the CMS content area:
<input id="1" name="powergallery" theme="Av Moster" type="hidden" value="/kunder/totalweb.no/www/kunder/avmoster/gallery/galleries/grid_lightbox/index.php" />
and finally edit my output the cms content to
<?php require_once("wa_evaluate.php"); ?>
<?php echo wa_evaluate(WA_getCMSContent($database_PowerCMSConnection, $PowerCMSConnection, 'Costa Blanca - Orihuela Costa', 'Hoved')); ?>
On my page I have this error message:
Fatal error: Cannot redeclare wa_evaluate() in /kunder/totalweb.no/www/kunder/avmoster/wa_evaluate.php on line 2
You can see it on live URL here:
costablanca.php
I'm attaching my pages costablanca.php and wa_evaluate.php
Regards
Rune