Help Needed
|
maximus3d
Joined: 2008-08-09
Posts: 8 |
Posted: Sat, 2008-08-09 21:49
|
|||||
|
Hi issue 1 issue 2 can some one guide me , Please. Note: attached image about this issue Thanks in advance
|
||||||

Posts: 6138
issue1: Try the matrix theme or other with constant sidebarblocks. You can choose a dark colorpack if you wish.
issue2: Mixed-mode webpage is possible. But with php/html, the page must(on most servers) have the php extension to be able to execute the php.
So with a page called say "my_gallery.php" you could start with html pop in some php here and there, and end up with a complete mixed-mode page.
<?php /* You may need to edit lines 3 & 4 to reflect your site's setup. / g2Uri = Url to Gallery2 from your site's root with trailing slash (/) / embedUri = Url to this script from your site's root with trailing question mark (?) / loginRedirect = Path to login redirect from this script */ require_once('./gallery2/embed.php'); // Path to Gallery's embed.php $ret = GalleryEmbed::init(array( 'g2Uri' => '/gallery2/', 'loginRedirect' => '/users.php', 'embedUri' => '/galleryindex.php?', 'fullInit' =>'true')); if ( $ret ) { echo( ' Here is the error message from G2:' ); echo( $ret->getAsText() ); return false; } $gallery->setConfig('showSidebarBlocks', true); // you can hide the sidebarblocks if you want $gallery->setConfig('login', false); // you can allow for login if you want //$gallery->setConfig('defaultAlbumId', 418); $g2moddata = GalleryEmbed::handleRequest(); if (!isset($g2moddata['isDone'])) { echo ('isDone is not defined, something very bad must have happened.'); exit; } if ($g2moddata['isDone']) { exit; /* uploads module does this too */ } if ($ret) { print $ret->getAsHtml(); } GalleryEmbed::done(); ?> <!-- Your Html Head --> <!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> <head> <title>Your Site Title</title> <meta name="Description" content="Your Site Description"> <meta name="KeyWords" content="Your Site Keywords"> <!-- Your Style Sheet --> <link rel=StyleSheet href="Your Site.css" type="text/css" media="screen"> <!-- Your Javascripts --> <script language="JavaScript" src="Your Site.js"></script> <!-- Gallery Stuff --> <?php echo $g2moddata['headHtml']; ?> </head> <!-- Your Html Body --> <body> <div style="width:100%;" align="center"> <div style="width:950px"> <div style="width:100%; height:150px; border: 1px solid #666666;"> Hey this is my site's header
</div>
<div style="width:100%; height:350px; border: 1px solid #666666; background-color:#F1F1F1">
Some content before calling gallery's body.
</div>
<!-- Gallery's Body -->
<?php echo $g2moddata['bodyHtml']; ?>
<!-- Your Html Footer -->
<br />
<div style="width:100%; height:150px; border: 1px solid #666666;">
Hey this is my site's footer
</div>
</div>
</body>
</html>
But if the page is "my_gallery.html", the php will not be executed.
I have an free easy script for including gallery items in a php enabled page, mediaBlock.php.
Examples
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 8
thanks
i am just going through your help
will update you as soon as the site is up
thanks once again for giving me right answer
kamee
Posts: 8
Hi
need some more help
i am developing a free reference image site for 3d artist, i am not a programmer i am an artist
As instructed by suprsidr main page(mygallery.php) html menu bar is coming
thanks
issue1
the consequtive page or the sub page which call gallery2/main.php onwards the html bar is not coming
-if tried copying the html menu bar code to main.php , the image link is geting broken for the gallery2 photos
- if i copy the code down after php everything is working but the menu bar stays down, i would prefer the html menu bar on top
i want my menu bar to be in all the page till end
attached image for refer
Kamee
Posts: 6138
If you created an embedded page like I described above, you want to keep referencing that page so all links continue to lead there.
make sure the embedUri is set to your embed page ir.
$ret = GalleryEmbed::init(array( 'g2Uri' => '/gallery2/', 'embedUri' => '/mygallery.php', 'fullInit' =>'true'));
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 8
Hi Suprsidr
thanks its working
Regards
Kamee