close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Failing to successfully add a ribbon gallery to a PowerGallery product's detail page

Thread began 3/29/2010 11:46 am by neilo | Last modified 4/03/2010 9:26 pm by neilo | 3306 views | 10 replies |

neilo

Failing to successfully add a ribbon gallery to a PowerGallery product's detail page

I am failing to successfully add a ribbon gallery to a PowerGallery product's detail page. I start with a functioning store. Test products are entered, and their detail pages show fine. I have posted the problem previously, but received no advice.

To add the (PowerStore) PowerGallery to one of these items I do the following:

1. I upload the file wa_evaluate.php to the directory (store) that holds all my PowerStore files and folders. My Power Gallery folder is also located in this folder.
2. The instructions say, "Open the page that will display your PowerGallery from a database" so I open the Products_Detail.php page in the store's root directory.
3. I find the line, <div id="ProductLongDesc"><?php echo $row_WADAProducts["ProductLongDesc"]; ?></div>
4. As per instructions, I change it to:

<div id="ProductLongDesc"><?php require_once('wa_evaluate.php'); ?>
<?php echo wa_evaluate($row_WADAProducts["ProductLongDesc"]); ?></div>

At this point - each and every time - the site 'breaks'.

5. Carrying on regardless, I create the 'Ribbon + Lightbox for PowerStore (light)' gallery.
6. I select a product, click to update it, and in the source code view of the Long Description editor area, I paste the code from the PG 'Add to site' > 'Add to PowerStore' area:

<input type="hidden" name="powergallery" id="1" theme="light" value="/home/users/uks66722/html/206bones.co.uk/store/gallery/galleries/ribbon_lightbox_powerstore/index.php" />

7. Save the changes.
8. View the disaster that is the product detail page, as I have on several previous goes and on different PowerStore installations.

I can see the very top of the inserted gallery on the product detail page along with the error message:

*Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/users/uks66722/html/206bones.co.uk/store/Products_Detail.php:1) in /home/users/uks66722/html/206bones.co.uk/store/WA_eCart/WA_eCart_Definition_PHP.php on line 480


I have done the usual 'Cannot send session cache limiter - headers already sent' checks.

I have seen other peoples' successful implementations, so am aware that I have messed up somewhere. Please could somebody write out the instructions on how I should be implementing the ribbon_lightbox_powerstore gallery for a product, or suggest where I am going wrong?

Sign in to reply to this post

Jason ByrnesWebAssist

Instead of adding the power gallery code to the PowerStore/Products detail page, you should add it to the long description when editing the product on the PowerStore/Admin/Products_Update.php page.

Log into the admin section of power store, then search for the product you wish to display the gallery for and click the edit button.

In the Long description field on the update page, change the HTML editor instance to code View and paste the PowerGallery Code. Then save your changes.

Sign in to reply to this post

neilo

Yes, but that's what I'm doing already. See Nos 5 - 7 above.

Sign in to reply to this post

Jason ByrnesWebAssist

so the real problem is that you are getting the headers already sent error, looking at your page, it looks like the gallery is there, just not displaying because of the error.


the error message is reporting the output at line 1:
output started at /home/users/uks66722/html/206bones.co.uk/store/Products_Detail.php:1


this usually happens if the page has been set to Include Unicode Signature (BOM). Go to File -> Save As. In the Save As Dialogue box, uncheck the Include Unicode Signature (BOM) option.


if you still have a problem, please send a copy of your Products_Detail.php page.

Sign in to reply to this post

neilo

Hi Jason, once again you were spot on. Everything is working just as it should now.

For some strange reason, un-checking the 'include unicode signature (BOM)' and 'Saving As' didn't seem to 'take', - (in the Powerstore files this option seems to be 'always on') but opening a new blank page (my Dreamweaver preferences 'New Document' always has the 'Include Unicode Signature' switched off) and copying and pasting in the Products_Details page code then saving that seemed to work. (No idea why!).

So yet again, am grateful for the 'rescue'.

Many thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

Odd. My power store files do not have the 'include unicode signature (BOM)' setting enabled, strange that yours do.

At least you found a good work around copying the code to a new page, glad to hear it is working.

Sign in to reply to this post

dave378160

I've read this thread up and down and I seem to have gotten close to getting it but I just can't figure out where I'm goofing up. Here is a link to what I've been able to get so far.

Products_Detail.php?ProductID=2#

I get this First Next Last Prev loading... text below the image.

Also, If I'm using PowerGallery to show the images, do I need to upload Detail and Catalog images? I'm not sure if that's what's causing my problems or not.

Sign in to reply to this post

neilo

Hiya Dave,

A couple of observations, for what they're worth.

I notice that you are trying to include the 'Ribbon + Fullsize + Lightbox' in the detail for your item. Perhaps you should stick to using the 'Ribbon + Lightbox for PowerStore' - as it was purpose-made for putting in to PowerStore product detail pages.

Also, the paths on your page to the required components seem to be missing part of the path: i.e:

@import url("css/slimbox/slimbox.css");
@import url("css/common.css");
@import url("css/light.css");

<script type="text/javascript" src="js/mootools-core.js"></script>
<script type="text/javascript" src="js/mootools-more.js"></script>
<script type="text/javascript" src="js/slimbox.js"></script>
<script type="text/javascript" src="js/gallery.js"></script>

The /powergallery/galleries/ribbon_lightbox_powerstore/ part of the paths is missing (assuming you will be using the 'Ribbon + Lightbox for PowerStore' gallery).

I think you should swap over the type of gallery to 'Ribbon + Lightbox for PowerStore' and then click the 'Add to Site' button and copy the code from the code block in the 'Add to PowerStore' area at the bottom of the page to the the source view of the Long Description editor area in the product's update page.

The code you should be given by the 'Add to Site' page should be something like:

<input type="hidden" name="powergallery" id="1" theme="light" value="/full/sever/pathto/yoursite/thegraphiclibrary.com/shop/powergallery/galleries/ribbon_lightbox_powerstore/index.php" />

The bit in grey will be different, being particular to your site.

Cheers.

Sign in to reply to this post

dave378160

Thanks Neilo, I will try that tonight. Going to start from scratch with the PowerGallery. Not sure if one of my problems was the fact that I moved the PowerGallery folder into the shop folder after I went through the install wizard.

Sign in to reply to this post

dave378160

Thanks for the help neilo, it worked. I was missing the PowerStore part of the ribbon lightbox. I was picking the wrong one. Once I reinstalled the powergallery and started over, it worked without any issues. Woot! sooo happy.

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