Forum Index > FlashYourWeb OS Support > MediaBlock New Topic Post Reply
 Blank Images
 |  Printable Version
swifter_uk
 April 16 2013 07:19 AM (Read 827 times)  
Forum Newbie
Newbie


Status: offline

Registered: 04/16/13
Posts: 2

I have just figured out how to get this loaded up after some considerable time! However on my test page here: http://www.retiredgreyhounds.info/Untitled.php
All I get is blank boxes as if it does not know where to call the images, seems to link to the item though..anyone any ideas where I 'm going wrong with this. Question


 
Profile Email
Quote
suprsidr
 April 16 2013 09:43 AM  
Forum Admin
Admin

Status: offline

Registered: 12/20/06
Posts: 1221

Not found
http://www.hovedogs.co.uk/gallery2/main.php?g2_view=core.DownloadItem&g2_itemId=2140

Make sure the g2_uri is correct on line 27


There will always be...
 
Profile Email Website
Quote
swifter_uk
 April 16 2013 14:42 PM  
Forum Newbie
Newbie

Status: offline

Registered: 04/16/13
Posts: 2

PHP Formatted Code
/* Connect to gallery */
function init() {
    require_once ('embed.php');
    $ret = GalleryEmbed::init(array('fullInit'=>true, 'embedUri'=>'http://hovedogs.co.uk/gallery/gallery2/main.php', 'g2Uri'=>'/gallery2/'));
    if ($ret) {
        print 'GalleryEmbed::init failed, here is the error message: '.$ret->getAsHtml();
        exit;
    }
    GalleryEmbed::done();
}


I haven't a "scooby doo" what is supposed to be in here, I have searched high and low for help on installation but found nothing to help with editing this file, It took me about 3 hours to figure out what to put in to line 28!


 
Profile Email
Quote
suprsidr
 April 16 2013 14:57 PM  
Forum Admin
Admin

Status: offline

Registered: 12/20/06
Posts: 1221

the g2_uri is the true url to http://yoursite.com/gallery2/main.php the embed uri would be the same unless your gallery is embedded in another application like WordPress.

You can actually remove both and make gallery figure it out.:

PHP Formatted Code

function init() {
    require_once ('embed.php');
    $ret = GalleryEmbed::init(array('fullInit'=>true));
    if ($ret) {
        print 'GalleryEmbed::init failed, here is the error message: '.$ret->getAsHtml();
        exit;
    }
    GalleryEmbed::done();
}
 

http://galleryproject.org/apidoc/GalleryCore/Classes/GalleryEmbed.html

-s


There will always be...
 
Profile Email Website
Quote
Content generated in: 0.27 seconds
New Topic Post Reply



 All times are PST. The time is now 07:42 PM.
Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
HTML Allowed 
Censored Content