close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Unable to embed PowerGallery code in PHP Page

Thread began 3/11/2010 11:39 pm by markymark44 | Last modified 3/25/2010 5:17 pm by grgsr | 1055 views | 5 replies |

markymark44

Unable to embed PowerGallery code in PHP Page

I have installed PowerGallery 1.0 and 1.1 numerous times with no problems...added and manipulated images/no problems..but I can't seem to embed the code properly to display in a PHP page. My knowledge of PHP is limited, would someone mind walking a newbie through the procedure? I would be most grateful-thanks

Sign in to reply to this post

Jason ByrnesWebAssist

on the add to site page, copy the php code that is given, example:

php:
<?php 

$pg_id 
'1'
$pg_theme 'dark'
include(
'/Applications/MAMP/htdocs/pg/galleries/ribbon_fullsize/index.php'); 
?>



Open the page you wish to display the gallery. In design view, place your cursor where the gallery should display, the go to code view and paste the php code from the add to site page.

Sign in to reply to this post

markymark44

Thanks so much! worked perfectly..

M

Sign in to reply to this post

grgsr

Changing page format from htm to php

I had tried for a while to get the gallery to show after embedding the code in a htm page and could not get it to work. Found this post and figured out why. I then saved the page as a php page and it worked.

I had used SiteAssist Pro to create the site and the default page format was htm. Is there a way within SiteAsssit to create a php site?

I ask because I will end up with many pages of htm which could be deleted after inserting the php code for Power Gallery. If I do delete them because I saved them in php after embedding the code for Power Gallery I would have to manually update all the links.....

Pending on the size of the store and the number of pages there will be a lot of unused pages once they are saved as php.

Thanks
grgsr

Sign in to reply to this post

Justin Nemeth

If you change your Dreamweaver site settings to indicate a PHP testing server, SiteAssist pro will output files with a .php extension.

Sign in to reply to this post

grgsr

Thank you Justin

Hi Justin:

I did not set up those priameters up front. I was working along and using Xammp and never gave it a second thought until I started with Power Gallery.

Unfortunately I am starting from scratch. I will try to keep this in mind when developing additional sites.

Thanks,
grgsr

Sign in to reply to this post

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...