close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Power Gallery in a Wordpress page

Thread began 3/08/2010 6:39 pm by srammij402757 | Last modified 3/11/2010 10:04 am by Justin Nemeth | 2169 views | 3 replies |

srammij402757

Power Gallery in a Wordpress page

I searched the forum section in Power Gallery for this, and didn't see anything, so forgive me if this already posted somewhere,

But, how do i get a Power Gallery to show up on a Wordpress page?

I'm certain it would work if i entered the php code into my .php pages, but i'm wondering if there's a way to drop in the code while creating new pages in the admin section. So... in WP if i go into the admin, add new page, what should i drop the code into? do i need a special wrapper?

I read the "PowerGallery Database Integration" readme file, maybe i'm missing something there... or is that for shopping carts only?

Sign in to reply to this post

Justin Nemeth

There is another thread, but it doesn't have a lot of specific info. showthread.php?t=8690&highlight=wordpress

I did a quick search and it looks like there should be plugins available for wordpress that allow you to execute PHP code in your page. I found this one for example execute-php-in-wordpress-post-page-and-widget-sidebar/. Not sure if that works, but in general I would look for a similar plugin and that should allow you to run the PowerGallery PHP code.

-justin

Sign in to reply to this post

srammij

I had found that page you posted, the second link, and that helped, i was able to get the gallery to show up in a page on wordpress.

The problem i'm having now, is that it seems to be interfering with some of the code.

When i use Power Gallery, and make a sample page (mysite.com/power_gallery/galleries/ribbon_fullsize/index.php?gallery=2&theme=dark), it looks fine.

But when i take the php code and add it into my page html in wordpress it doesn't display the same way. I'm guessing there's something in the page that's altering the way it displays. One of the main problems is the nav buttons at the top stack up ontop of each other instead of displaying side by side (inline) like in the sample page i mentioned above. In the sample page where it looks fine the code looks like this...
<!-- navigation -->
<div class="nav">
<a href="#" class="first">First</a>

<a href="#" class="prev">Prev</a>
<a href="#" class="next">Next</a>
<a href="#" class="last">Last</a>
</div>

And in my wordpress page the code looks like this...
<p> <!-- navigation --></p>
<div class="nav">
<a href="#" class="first">First</a><br />

<a href="#" class="prev">Prev</a><br />
<a href="#" class="next">Next</a><br />
<a href="#" class="last">Last</a>
</div>


Somehow <br /> is being added after each button.
I've been looking through all the WP code and the PG code for the last 2 hours... and i don't have a clue what could be causing it. Is there a way to put the code in it's own wrapper so that all of the css and settings in the whole WP page don't interfere with the code just for my gallery?

Sign in to reply to this post

Justin Nemeth

I am not sure of an exact fix, but it seems like Wordpress is adding the br tags to the code. The PowerGallery code is basically just an include, so maybe look into the Wordpress plugin you are using and see if is uses a function like nl2br() or adds any sort of <br /> tags that you can see.

-justin

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