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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

PowerGallery does not display on Wordpress post

Thread began 7/29/2010 4:18 pm by pauline368111 | Last modified 8/09/2010 1:51 pm by pauline368111 | 907 views | 9 replies |

pauline368111

PowerGallery does not display on Wordpress post

I am trying to display a PowerGallery gallery in a Wordpress post. I have installed the Exec-PHP plugin for Wordpress so that I can include PHP code in a post. What displays is the text "no images" so the PHP code is running. It must be a path issue, but I can't figure it out.

Link to the post (which has a link to the gallery displayed on a non-Wordpress page):
blog/

Sign in to reply to this post

Eric Mittman

I have looked into this a bit and don't see a good reason for it displaying on one part of the site but not this other part of the site. To help debug the issue you will need to open the galleries > grid_lightbox > index.php file and add this code in just after line 42:

php:
<?php

print("the first fullsize URL is: " $gallery['images'][0]['fullsize']['url'] . "<br/><br/>the php_self is " $_SERVER['PHP_SELF']);
?>



This will print out the full size image URL as well as the php_self setting on both places where the gallery code has been placed. We should then be able to compare the values on the one that is working versus the one that is not working to see what the difference is. Please give this a try and let us know when you have added the code so that we can take a look.

Sign in to reply to this post

pauline368111

I added that code to both pages. The results are different:

WEBSITE PAGE
paris-balzar/
TESTING CODE the first fullsize URL is: balzar01_800p.jpg

the php_self is /powergallery/fakey.php

WORDPRESS PAGE
php-code-test/
TESTING CODE

the first fullsize URL is:

the php_self is fakey.php

Sign in to reply to this post

Eric Mittman

Are your blog pages hosted locally? The fact that you cannot get the URL to display seems to be the same reason that you can't get the images to display. If you have the blog locally in your site then it seems like there is something that the wordpress pages are doing to suppress URL's from scripts. I'm not sure what this setting would be in your current wordpress setup but you will need to be able to see the values like this URL in order to be able to see the images since all the values come from the same array.

Sign in to reply to this post

pauline368111

The blog is hosted locally - I run the wordpress software on my server. It does seem like Wordpress is stripping out something.

Has anyone been able to get PowerGallery to work from within a Wordpress post? It would be nice to be able to use PowerGallery within Wordpress.

Sign in to reply to this post

Eric Mittman

It does seem that WordPress is stripping out some needed info on the page. I'm not familiar enough with WordPress to know exactly what the setting or settings are but you will need to be able to get the same type of result that you have on your other page in order for the gallery to work on a given page.

Sign in to reply to this post

Justin Nemeth

Over the weekend, I installed the Hana Code Insert wordpress plugin and that worked for me when integrating PowerGallery. Check it out at hana-code-insert/. Basically, you can just define Hana code snippets and mark them as PHP, then you can integrate it into a post or page on your wordpress site.

-justin

Sign in to reply to this post

pauline368111

It still does not work for me. I am trying it on a new blog. I installed Hana Code and can get a simple PHP stmt to work. But no images show with the PowerGallery code.

BLOG:
putting-photos-in-the-blog/

LINK TO A NON-WORDPRESS PAGE ON THE SITE:
photos/

Sign in to reply to this post

pauline368111

Here is a thread on the Wordpress.org forums where someone was able to use PowerGallery in Wordpress.
power-gallery-on-wp?replies=7

It has to be something in the way I have configured Wordpress - I did a new install of both WP and PowerGallery on a new domain, but still it does not work.

Sign in to reply to this post

pauline368111

I installed PowerGallery and Wordpress on a different web host and it works. PowerGallery code executes from within a Wordpress page (with plugin Hana Code installed to make Wordpress execute PHP code). So the problem is specific to my web host (Media Temple) and I will talk to them to figure this out.

This problem is resolved - thanks for your help.

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