close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Add a Gallery using Power CMS

Thread began 4/15/2011 5:47 am by alistair316863 | Last modified 4/20/2011 11:34 am by Jason Byrnes | 2859 views | 15 replies |

alistair316863

Add a Gallery using Power CMS

Is there a way that you can add a gallery using power cms, as I want my clients to be able to add there own galleries without asking me to enter the code to the page thanks Alistair

Sign in to reply to this post

Jason ByrnesWebAssist

Yes, this is possible.

See the Database Integration Update on the Power Gallery Download center page.

Sign in to reply to this post

alistair316863

I Have had a look at that but dosent make much sense to me in my page I only have:

<div id="gallery">
<?php
$pg_id = '3';
$pg_theme = 'light';
include('/var/www/vhosts/canopiesuk.com/httpdocs/gallery/galleries/ribbon_lightbox/index.php');
?>
</div>

so don't see where I need to wrap the code in the help file. What I want the client to be able to do is create a new gallery and then copy the add to site code from power gallery go to there site admin in power cms and paste the code onto a page and the gallery be added.

Is this how it will work or am I missing something

Sign in to reply to this post

Jason ByrnesWebAssist

In the power gallery Add to Site page, there is the section titled Add to Power Store, copy this code and paste it to the Power CMS Content area.

The wa_evaluate function will get wrapped around the echo of the Power CMS Developer notes.

for example, my developer notes will look like:

php:
<?php

include('/Applications/MAMP/htdocs/pcms_211/WA_CMS/addtosite.php');
echo 
WA_getCMSContent($database_PowerCMSConnection$PowerCMSConnection'Content''Content Area'false);
?>



I would need to edit that to:

php:
<?php require_once('wa_evaluate.php'); ?>

<?php
include('/Applications/MAMP/htdocs/pcms_211/WA_CMS/addtosite.php');
echo 
wa_evaluate(WA_getCMSContent($database_PowerCMSConnection$PowerCMSConnection'Content''Content Area'false));
?>
Sign in to reply to this post

alistair316863

OK your add to site page is different to mine as when I click add to site the add to power store say add to power store 3 and the code is as below:

<input type="hidden" name="powergallery" id="1" theme="light" value="/var/www/vhosts/canopiesuk.com/httpdocs/gallery/galleries/ribbon_lightbox/index.php" />

see screen grab attached

Just too add I am using CMS V 1 not 2

Sign in to reply to this post

Jason ByrnesWebAssist

Yes, that is the power gallery add to site code that you will past into the Power CMS Content Area.

The code example I give above is the Power CMS Developer notes code.

It is the Power CMS developer notes code that needs to be modified with the wa_evaluate function.

Not the Power Gallery Add to Site Code.

The user will only need to create the gallery, then copy the Power Store Add to Site Code into the Power Gallery content artea, they do not need to modify anything.

You as the developer, need to modify the Power CMS deleper notes code that will display the Power CMS Content area in the web site to use the wa_evaluate function.

Sign in to reply to this post

alistair316863

Sorry Jason Think I know where were at now although you might say different:
I have set up a test page see:
http:gallerytest.php

The page still isnt showing the gallery after I have pasted the code in if you view page source code it is all there so what am I doing wrong now Thanks Alistair

sorry it not all showing its ignoring the php code the actual page source is:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Gallery Test</title>
</head>

<body>
<div style="width:1024px; height:200px; border:1px #666 solid; margin: 20px 0 0 20px; padding:20px;">
<?php require_once('wa_evaluate.php'); ?>
<?php
include('/var/www/vhosts/canopiesuk.com/httpdocs/WA_CMS/addtosite.php');
echo wa_evaluate(WA_getCMSContent($database_localhost, $localhost, 'gallery test' , 'test'));
?>

</div>
</body>
</html>

Sign in to reply to this post

Jason ByrnesWebAssist

please send a screen shot showing what you entered for the gallery test->test content area.

make sure you adding the power store add to site code, and that you click the source button in the toolbar before pasting the code.

Sign in to reply to this post

alistair316863

Sorry Jason I used the wrong code I have now used the power store add to site code and we have progress the gallery is now visible but there are no images see

gallerytest.php

Sign in to reply to this post

Jason ByrnesWebAssist

here is an updated copy of the galleries/global.php and webassist/framework/library.php file that should correct the issue.

Attached Files
pg2.zip
Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...