Adding the sidbar image to all pages on my site

tickfawriver

Joined: 2011-02-25
Posts: 5
Posted: Sun, 2013-01-06 16:47

Gallery version (not just "2"): 2.3.1
PHP version (e.g. 5.1.6): 3.4.10.1
Database (e.g. MySql 5.0.32): 5.0.92

My web host (MochaHost) installed GALLERY I have uploaded my images. Currently the sidebar images only appear on the Gallery page and I want them to appear on all of my pages but I cannot figure out how to accomplish this. I built my website using HTML and do not know PHP.

Website: www.lonewolfblues.com
Gallery Page: www.lonewolfblues.com/media (media is a folder)

I added the following code from the media/index.php page to one of my web pages but it did not add the sidebar image.

<!-- Gallery's Sidebar -->
<div id="gsSidebar" style="margin-left: -23px;">
<?
$display = '';
$sideBarBlocks = $g2data['sidebarBlocksHtml'];
foreach ($sideBarBlocks as $block) {
$display .= $block;
}
echo $display;
?>
</div>
<!-- End Gallery's Sidebar -->

Any help is appreciated.

Thanks,
Randy

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2013-01-06 17:26

Funny, I still have the embed sample I made for you in my showcase http://www.flashyourweb.com/gallery2/embed_samples/

You can use my mediaBlock
or the minislideshow linked in my sig below
or gallery's image block module
if you have gallery's imageblock module installed head to gallery admin -> image block -> External Image Block and follow the instructions

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
tickfawriver

Joined: 2011-02-25
Posts: 5
Posted: Sun, 2013-01-06 18:18

Hi suprsider, it had been so long I had forgotten who helped me with it.

I added the following code where I want the image to appear on a page to for testing.
<?php @readfile('http://www.lonewolfblues.com/media/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_show=title'); ?>

I added the following code to the HEAD.
<link rel="stylesheet" href="http://www.lonewolfblues.com/media/main.php?g2_controller=imageblock.ExternalCSS&amp"/>

I must still be doing something wrong because the image does not appear. The instruction states the following.
"Use a PHP block like the one shown below to include an image block in a PHP page outside of Gallery."

I do have IMAGE BLOCK 1.1.9 installed

It states that it is for a PHP page and my pages are HTML, does this make a difference?

Thanks,
Randy

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2013-01-06 19:13
Quote:
It states that it is for a PHP page and my pages are HTML, does this make a difference?

yes
html pages won't execute the php

You can try my minislideshow or I can show you another way to do a single image w/ javascript

-s
________________________________
All New jQuery Minislideshow for G2/G3