close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

GoDaddy domain directories

Thread began 11/24/2009 4:47 pm by rascalsinparadise389058 | Last modified 12/14/2009 8:15 pm by paputxi | 2843 views | 8 replies |

rascalsinparadise389058

GoDaddy domain directories

Hi,
When I added the PowerGallery to our GoDaddy account, it uses the web root instead of the domain subdirectory as the path for everything. This won't work with our URL set up. For example, it using the path:
"http://homesintransition.org/homesintransitionorg/PowerGallery/images/1/sample02_782p.jpg"

Where the actual file is stored in that path, the URL to get to it, due to goDaddys magic is
"http://homesintransition.org/PowerGallery/images/1/sample02_782p.jpg"

Can't seem to find away around this. Please email me some direction

Sign in to reply to this post

Jason ByrnesWebAssist

in the galleries/global.php file, try adding the following at line 2:

php:
unset($_SERVER['DOCUMENT_ROOT']);





then locate the following code:

php:
$pg_config = array(
    'path' => str_replace('galleries/', '', str_ireplace(str_ireplace('\\', '/', realpath($_SERVER['DOCUMENT_ROOT'])), '', $abs_prefix)),
    'html_prefix' => str_ireplace(str_ireplace('\\', '/', realpath($_SERVER['DOCUMENT_ROOT'])), '', $abs_file) . '/'
);





and change it to:

php:
$pg_config = array(
    'path' => "/".str_replace('galleries/', '', str_ireplace(str_ireplace('\\', '/', realpath($_SERVER['DOCUMENT_ROOT'])), '', $abs_prefix)),
    'html_prefix' => "/".str_ireplace(str_ireplace('\\', '/', realpath($_SERVER['DOCUMENT_ROOT'])), '', $abs_file) . '/'
);
Sign in to reply to this post

paputxi

Hi Jason

I have a similar problem that was partially resolved by applying your instructions since I too use GoDaddy. Actually, I have two problems.

1. On the "Choose Design" page, when I select Preview on any of the designs, the phrase "loading..." is displayed but it gets no further. The URL looks good, "http://southbayenterprise.com/powergallerytest/galleries/grid_fullsize/index.php?gallery=2&theme=light", but no gallery is displayed.

2. On the "Add to Site" page, the link that is shown in "Direct Link to Your Gallery", is invalid as it shows "http://southbayenterprise.comD:/Hosting/4491668/html/powergallerytest/galleries/grid_fullsize/index.php?gallery=2&theme=light". This may be an artifact from when I first generated the gallery, which was before I applied your instructions. I don't know how to get the wizard to regenerate it or if that is possible. Taking out "D:/Hosting/4491668/html" from the URL just gets me back to the "loading..." issue.

Any advice on how I can correct these problems would be greatly appreciated. Thanks in advance.

Sign in to reply to this post

Jason ByrnesWebAssist

see this thread:
showthread.php?t=7738


this may be helpful

Sign in to reply to this post

paputxi

No luck. I added the code identified in that thread to the globals.php file in both the galleries and admin folders (in addition to the code changes you stated in this thread). Same results: Get "loading..." message when I try to Preview the gallery on the "Chose Design" page and still get the erroneous URL on the "Add to Site" page.

Sign in to reply to this post

ow244048

GoDaddy again

I have the same problem. I really wish this issue will be solved with tested code by Webassist (instead of asking us to do the testing).

Here is my situation:
A godaddy account with "deluxe" hosting plan.
The domain that i'm using is pointing to a sub-directory of the main domain.
My problem is exactly the same as the above members described i.e. when you try to preview from the admin or to embed into site you get nothing... just a blue area at the top right corner

Please help ASAP,

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue with your to find the solution. to view and edit your support ticket, please log into your support history:
supporthistory.php

Sign in to reply to this post

steve337658

Godaddy & Gallery Don't mix

What I did was take the code changes to the Global.php file provided way up at the beginning of this thread where you're supposed to add the unset command at line 2 then change the couple of lines down to this

$pg_config = array(
'path' => "/".str_replace('galleries/', '', str_ireplace(str_ireplace('\\', '/', realpath($_SERVER['DOCUMENT_ROOT'])), '', $abs_prefix)),
'html_prefix' => "/".str_ireplace(str_ireplace('\\', '/', realpath($_SERVER['DOCUMENT_ROOT'])), '', $abs_file) . '/'
);

Well, where it says 'path' => "/"

remove the / from between the quotes and things will start running pretty well. Not totally perfect but a whole lot better.

Sign in to reply to this post

paputxi

Sadly, that didn't work for me. Hopefully, WA tech support will find a solution soon as I need to start using this capability very soon.

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