close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Repurposing gallery from store

Thread began 7/29/2011 7:07 am by biz295654 | Last modified 9/09/2011 12:03 pm by biz295654 | 3151 views | 10 replies |

biz295654WebAssist

Repurposing gallery from store

I own PowerGallery and PowerStore. The gallery in powerstore utilizes PG but lacks one feature that I am trying to figure out. In PG, when you use "add to site" it gives you a direct link AND a php include. In PS, the php option isn't presented. I am tying two domains together, repurposing images from the cart, so I want to link to a gallery (for "you might be interested in these products" type of option). The first site links to the cart for actual purpose.

If the direct link to a PS/PG is

index.php?gallery=4&theme=light

(and is added to the product in the long description area via "add gallery" icon)

and the link from a non-store, Power Gallery php include is:

<?php
$pg_id = '1';
$pg_theme = 'light';
include('/var/www/html/gallery/galleries/ribbon_fullsize_lightbox/index.php');
?>

where the DOMAINNAME is not noted

what can I change in the php include to reflect the PS/PG gallery as an include?

I tried replacing var/www/html/ with the domain, and replaced id= 1 with the id of the store gallery, but that didn't work.

Thanks so much.

Sorry...this should have been posted in PowerStore.

Sign in to reply to this post

Jason ByrnesWebAssist

if you go to the Power Store Admin page, then go to Content -> Galleries


next to each gallery is a Preview button, click this, select the gallery settings and click OK

this will open the gallery in a new browser window, make note of the URL in the address bar, this is your gallery link address.

Sign in to reply to this post

biz295654WebAssist

Yes, I figured that part out, but I'm looking for the php include path.

Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

I see, i misunderstood the initial question.


the include function will not be able to access files from another server, this will not work.

it would require a fair bit of unsupported coding using either the fopen() or curl() to access the files on another domain.

Sign in to reply to this post

biz295654WebAssist

OK...same server, but different domain. Thanks much.

Sign in to reply to this post

biz295654WebAssist

"it would require a fair bit of unsupported coding using either the fopen() or curl() to access the files on another domain."


Can you expand on what is needed here? I will share with server tech to see if this can be done. It is very important to this project. Thanks much.

Sign in to reply to this post

biz295654WebAssist

filesystem.configuration.php

Is this what you are referencing? php.ini per domain to allow? Or do you mean something else, such as on the page to call the real gallery and not the holder image

(domain)store/galleries/grid_lightbox/admin/light_large.png

Thanks so much.

Sign in to reply to this post

biz295654WebAssist

php.ini in that domain reads:

;;;;;;;;;;;;;;;;;;
; Fopen wrappers ;
;;;;;;;;;;;;;;;;;;

; Whether to allow the treatment of URLs (like http:// or ) as files.
allow_url_fopen = On


Yet, manual references:

allow_url_fopen "1"
PHP_INI_ALL PHP_INI_ALL in PHP <= 4.3.4. PHP_INI_SYSTEM in PHP < 6. Available since PHP 4.0.4.


is On the same as "1"

Sign in to reply to this post

biz295654WebAssist

phpinfo.php shows it on

allow_url_fopen On On
allow_url_include Off Off

Sign in to reply to this post

Jason ByrnesWebAssist

This is not supported functionality, you would need to create code using either fopen or curl to access the Gallery page on one domain and pull the code over to the other domain.

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