Gallery 2 Embeding

badincite

Joined: 2011-03-03
Posts: 10
Posted: Fri, 2011-03-04 01:03

Got an error, Could use some help where did I go wrong. Its gallery 2.3.1

Fatal error: Class 'GalleryEmbed' not found in /home2/ninzerfi/public_html/gallery/gallery2Embedded.php on line 3

My website www.905gallery.com
Gallery

http://www.905gallery.com/gallery/main.php

Used the embed-o-rator

Came up this

Quote:
<?php
require_once ('http://www.905gallery.com/gallery/embed.php');
$ret = GalleryEmbed::init( array ('g2Uri'=>'http://www.905gallery.com/gallery/main.php', 'embedUri'=>'http://www.905gallery.com/default.htmlgallery2Embedded.php', 'fullInit'=>'false'));
if ($ret) {
print 'G2 init error: '.$ret->getAsHtml();
}
$g2data = GalleryEmbed::handleRequest();
if ($g2data['isDone']) {
exit;
}
GalleryEmbed::done();
?>
<!-- Your Html Head -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>905 Gallery</title>
<link href="http://www.905gallery.com/style/main.css" rel="stylesheet" type="text/css" />
<!-- Gallery's Head -->
<?php
echo $g2data['headHtml'];
?>
<!-- End Gallery's Head -->
</head>
<!-- End Your Html Head -->
<!-- Your Html Body -->
<body>

<div id="wrapper">

<div id="header">

<div id="navigation">

<table width="178" border="0" align="left">
<tr>
<td width="208">&nbsp;</td>
</tr>
</table>

<ul id="navbar" >
<li><a href="#">Home</a><ul>
</ul>
</li>

<li><a href="#">Gallery</a>
<ul>
<li><a href="#">Gallery</a></li>
</ul>
</li>
<li><a href="#">Gallery</a>
<ul>
<li><a href="#">Gallery</a></li>
</ul>

</li>
<li><a href="#">Gallery</a>
</li>
<li><a href="#">Gallery</a>
</li>
<li><a href="#">Blog</a>
</li>
<li><a href="#">FAQ</a>

</li>
<li><a href="#">Contact</a>
</li>

<!-- ... and so on ... -->
</ul>

</div>
</div>

<div id="content">

<p><font color="#FFFF00">

</font>&nbsp;&nbsp;&nbsp;&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;&nbsp;&nbsp;Thank you for visiting our website. </p></div>
</span>
</p>
<br/>

<div id="gallery">
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</div>
<!-- End Your Html Body -->
<!-- Gallery's Body -->
<?php
echo $g2data['bodyHtml'];
?>
<!-- End Gallery's Body -->
<!-- Your Html Footer -->
<div class="center" id="footer">
<p class="center">
<span class="copyright"> &copy; Copyright 2010 905Gallery.com<br />

Web Design
by <a href="mailto:badincite@yahoo.com" class="copyright">JB</a></span>

</div>
</body>
</html>
<!-- End Your Html Footer -->

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2011-03-04 01:14

require_once ('http://www.905gallery.com/gallery/embed.php');

that is supposed to be a path not a url
urls start with http://
a path is usually something like /usr/local/www/mysite.com/gallery2/embed.php or /home/myname/public_html/gallery2/embed.php or c:\inetpub\wwwroot\mysite.com\gallery2\embed.php

you can look in gallery2/config.php for a hint to your path

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2011-03-04 01:17

oh, but if you are placing your file in /gallery then a relative path is ok too
require_once ('embed.php');

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
badincite

Joined: 2011-03-03
Posts: 10
Posted: Fri, 2011-03-04 17:38

How would I got about getting it to look like this

http://andrewprokos.com/photos/washington-dc/panoramic-view-of-white-house-and-mall-night/

Is there a clear theme so there's no gallery background?

Got it I just moved it into the gallery directory, and fixed the file paths
http://905gallery.com/gallery/gallery2Embedded.php

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2011-03-04 17:48
Quote:
Is there a clear theme so there's no gallery background?

Yes :)
http://www.flashyourweb.com/filemgmt/index.php?id=44

example
if you look at the source of that page, you'll notice I added some "Gallery Adjustment Styles" after the call to gallery's head.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2