close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Powergallery in Powerstore3

Thread began 3/28/2010 11:46 am by jacob5136402106 | Last modified 3/31/2010 9:44 pm by jacob5136402106 | 1211 views | 7 replies |

jacob5136402106

Powergallery in Powerstore3

First, the reason I purchased Powerstore and Powergallery and the Super suite is that I am not a programmer. I am trying to learn how to develop my own sites using these packages, dreamweaver (DW), Lynda.com and whatever resources I find available.

I have read all the threads I can find in the forum on how to use powergallery (PG) in powerstore 3 (PS). I am missing something somewhere so I am asking for help.

I installed PG in a directory called "PowerGallery" under the root of my PS site. I copied the "wa_evaluate.php" to both the root directory of my site and to the root of PG. Using DW I opened the "Products_Detail.php" and amended the code to:
<div id="ProductLongDesc"><?php require_once('wa_evaluate.php'); ?>
<?php echo wa_evaluate($row_WADAProducts["ProductLongDesc"]); ?></div>

In the PS long description I pasted the following code from PG:
<input id="2" type="hidden" theme="dark" name="powergallery" value="/homepages/25/d319221346/htdocs/powergallery/galleries/ribbon_lightbox_powerstore/index.php">

Using 1and1 to host my site I created a database for PS (db320471546) and one for PG (db322086392). PS is working and PG is working but I do not seem to be able to figure out how to make them work together.
What am I missing or doing wrong. Please try to explain my problem to me as if I was a total rookie because I am. Thank you in advance for any help offered. My PS site is:
www.jacobsfishinghole.com and PG is accessed at powergallery/
I will be glad to supply any information necessary to resolve this issue.

Jacob Morgan

Sign in to reply to this post

neilo

I have only got this partly working myself, but was wondering what you see when you now go to the detail page for the product you added the gallery to? (and which product did you add the gallery to?)

When you added the PowerGallery code to your long description, did you add it in the 'Source' view of the HTMLEditor window (after clicking the 'source' button in the toolbar)?

Sign in to reply to this post

jacob5136402106

There is no change in what I see. The product on my site www.jacobsfishinghole.com
is the most popular on the home page which is "Jacobi's Streamer Special"
And yes, I clicked on the source button in the editor for the "long description" and pasted the code provided from Powergallery. I have tried pasting the code before and after the text with no difference.

Jacob

Sign in to reply to this post

neilo

Hiya Jacob,

From your description of what you've done (and the files all seem to be in place) you should be seeing the gallery working properly in your product detail page. But when I click to view the source code of that page, the code for your ProductLongDesc div looks like this (I have removed the description text you entered):

<div id="ProductLongDesc"><input id="2" type="hidden" theme="dark" name="powergallery" value="/homepages/25/d319221346/htdocs/powergallery/galleries/ribbon_lightbox_powerstore/index.php"></div><p></p></div>

</div>


It seems to have failed to pull the required info to display the ribbon gallery in to the html of the page. You should be seeing something like the following for the contents of the ProductLongDesc div:

<div id="ProductLongDesc">
<style type="text/css" media="all">
@import url("/PowerGallery/css/slimbox/slimbox.css");
@import url("/PowerGallery/galleries/ribbon_lightbox_powerstore/css/common.css");
@import url("/PowerGallery/galleries/ribbon_lightbox_powerstore/css/dark.css");
</style>
<script type="text/javascript" src="/PowerGallery/js/mootools-core.js"></script>
<script type="text/javascript" src="/PowerGallery/js/mootools-more.js"></script>
<script type="text/javascript" src="/PowerGallery/js/slimbox.js"></script>

<script type="text/javascript" src="/PowerGallery/galleries/ribbon_lightbox_powerstore/js/gallery.js"></script>

<div class="pg-rlp">

<!-- ribbon -->
<div class="ribbon">
<div class="prev"></div>
<div class="thumbs-wrapper">
<div class="thumbs">
<div class="thumbs-ribbon-scroller" >

<a href="http://www.yahoodie.co.uk/PowerGallery/images/1/sample16_782p.jpg" rel="lightbox-pg2970" name="<strong>sample16.jpg:</strong> sample16.jpg"><img alt="" title="0##sample16.jpg##sample16.jpg" src="http://www.yahoodie.co.uk/PowerGallery/images/1/sample16_62c.jpg" width="62" height="62" /></a><a href="http://www.yahoodie.co.uk/PowerGallery/images/1/sample06_782p.jpg" rel="lightbox-pg2970" name="<strong>sample06.jpg:</strong> sample06.jpg"><img alt="" title="1##sample06.jpg##sample06.jpg" src="http://www.yahoodie.co.uk/PowerGallery/images/1/sample06_62c.jpg" width="62" height="62" /></a><a href="http://www.yahoodie.co.uk/PowerGallery/images/1/sample01_782p.jpg" rel="lightbox-pg2970" name="<strong>sample01.jpg:</strong> sample01.jpg"><img alt="" title="2##sample01.jpg##sample01.jpg" src="http://www.yahoodie.co.uk/PowerGallery/images/1/sample01_62c.jpg" width="62" height="62" /></a> </div>
</div>
</div>
<div class="next"></div>
</div>
</div>
</div>
</div>



The only way I can replicate the results that you are getting is if I change the code (<div id="ProductLongDesc"><?php require_once('wa_evaluate.php'); ?>
<?php echo wa_evaluate($row_WADAProducts["ProductLongDesc"]); ?></div>
) in the 'Products_Detail.php' file in the PowerStore 'Admin' folder instead of the Products_Detail.php in the the PowerStore root directory (there are two 'Product_Detail.php' files).

Not sure if this might help diagnose anything.

Sign in to reply to this post

jacob5136402106

Neilo,

First, I did changed the code in the root directory of Products_Detail.php not the one under Admin.

To check it out I copied and pasted the code you gave as an example into my long description and it worked. Of course only problem is that I am veiwing the wrong gallery.
the code you gave refers to a site, as where I was trying to follow the instructions by having my PG on the same site as PS. Apparantly either PG did not give me the right code to paste or I am missing a link to the db on my site, or?. If nothing else I can try to subsitute the correct parameters for my site into the code you gave me. Hopefully someone will come up with an answer as to why PG gave me the short code as compared to the code you suggested.
I am leaving your code in place tonight in case you would like to preveiw it.
Thank You for your help
Jacob

Sign in to reply to this post

neilo

Yes, weird

The initial couple of lines of include code produced by power gallery should be all you need to bring the gallery into your page.

The WA Guys will be back soon, so will hopefully sort it quickly.

Cheers

Sign in to reply to this post

Jason ByrnesWebAssist

the Power Gallery code should be added to the long description of the of the product in the Admin/Products_Update.php page.

In the admin section of PowerStore, edit the product you would like the gallery to display for, and past the power gallery code in the Long Description field.

Sign in to reply to this post

jacob5136402106

figured it out

figured it out.
you have to have PG in the root of your site
modify the code as indicated in BOTH of the Product_Detail.php files, (one under the root and one under Admin)...modify line 851 of Product_Detail.php in the root, and line 907 of Product_Detail.php under Admin to:
<div id="ProductLongDesc">
<?php require_once('wa_evaluate.php');
?>
<?php echo wa_evaluate($row_WADAProducts["ProductLongDesc"]); ?></div>

copy the wa_evaluate.php file to both the root directory and to the Admin directory
copy the code from the PG gallery to the long description as instructed and now it works!!
Jacob Morgan

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