changing the side bar views in albums

khamilton

Joined: 2005-08-21
Posts: 5
Posted: Sat, 2005-09-17 15:43

Hi all

Gallery version = 2.0-rc-1 core 0.9.34
PHP version = 4.3.11 apache
Webserver = Apache/1.3.33 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.11 FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.7a
Database = mysql 4.1.13-standard
Toolkits = ArchiveUpload, ImageMagick, Gd
Operating system = Linux edge.hostmerit.com 2.6.11.1-eth00 #1 SMP Sun Jul 31 03:50:45 EDT 2005 i686
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6

I think i broke something lol.

in my case, the sidebar.tpl contents didnt look right, so i moved all those options to below the thumbnails
(all you will see is view slideshow if you arent logged into the gallery)

i did this by just moving the reference to sidebar.tpl down the page.
i then customized the layout of itemlinks.tpl to display the items in a table that is 4 cols wide.
i think i screwed something up in doing this, because when i went into site admin to remove the random image block from the sidebar, all the block entries are missing.

is there another way i can tell the sidebar.tpl not to include the random image block? i looked at teh code for sidebar.tpl

<div id="gsSidebar" class="gcBorder1">
{* Show the sidebar blocks chosen for this theme *}
{foreach from=$theme.params.sidebarBlocks item=block}
{g->block type=$block.0 params=$block.1 class="gbBlock"}

{/foreach}
</div>

so i know it is just pulling all the blocks that are supposed to be included in sidebar.tpl.

in the end i guess my question is:

a)how can i either fix the theme portion so i can go to site admin and turn different blocks on/off (preffered)
or
b)how can i hard code the sidebar.tpl to not include the random image block?

my install is at http://www.windsofshit.ca/gallery2.php
oh i should mention that the page looks like crap in ie - i have some weird stuff going on with my css and havent figured it out yet...firefox works fine tho

if you want to see what the admin options look like, i dont have a problem with givin the user/pass out to individuals, i jsut dont want to post it for all to see.

thanks a million

khamilton

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sat, 2005-09-17 16:22

This looks like an integration issue to me. Your standalone install looks fine in FF and IE http://www.windsofshit.ca/addons/gallery2/main.php

Your integration part doesn't appear to grab any of the theme info, however, your standalone looks correct. If this is suppose to be an integrated install let me know and I'll move this topic to the G2 Integrations forum

 
khamilton

Joined: 2005-08-21
Posts: 5
Posted: Sat, 2005-09-17 16:48

yes, this is supposed to be an integrated installation
i didnt think to go to the standalone version admin and try removing random image block. i went in and changed it that way,and it did the trick.

so i am guessing something is wrong with my integration in the site admin section, because all theme options show up when i use the standalone.

either way this "individual" prob is solved, now that i realize the site admin problem only happens when im using the integrated portion i will look into fixing that part.

the rest of my integration stuff seems to be working ok thats why i posted it under customizations, feel free to move it over though if you like.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sat, 2005-09-17 16:57

No problem. You'll probably want to go back and edit your original post to post your system information as well as the system you're trying to integrate with (i.e. Drupal, phpnuke, etc)
FAQ: What information is required when I ask for help in the forums?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-09-17 17:36

by changing template files, you can't screw something up. it won't affect the database or so.
just revert to the original files from the gallery2 package.

to your questions a) or b):
i really don't understand why you want to edit the template just to remove the image block.
this can be done in site admin -> themes -> matrix (or your theme name). just remove the block.
so i'd revert to the original sidebar.tpl and apply the other changes again that you made to it, but i'd keep the foreach loop.

on another note: you don't have to use the foreach loop, you can explicitely call all blocks you wish to display with the {g->block command.

@nivekiam: this doesn't really have something to do with integration or at least i fail to see it. since all the above i wrote applies to g2 standalone too.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sat, 2005-09-17 18:12

I wasn't sure. It seemed to be more of an integration issue to me since his standalone worked, but the integrated G2 didn't. Feel free to move it where every you feel it's best suited.

 
khamilton

Joined: 2005-08-21
Posts: 5
Posted: Sat, 2005-09-17 19:12

thanks for the replies.

I am integrating gallery into my own website- not using any cms system.

valiant: the reason i couldnt remove the block was because when i went to the site admin (through my emapp - gallery2.php) to remove them, all the boxes were completely empty, the dropdowns just said "choose a block" with no other options.

however, if i go right to addons/gallery2/main.php - it all shows up fine

i will replace the template files and see what i changed to make it dissappear.

 
enad02

Joined: 2006-12-03
Posts: 5
Posted: Thu, 2007-01-04 19:00

Hi there,
I have a problem like this :
I want to remove the EXIF from sidebar area and put a DHTML quick link on the sidebar which at the moment is at the bottom of the gallery. if I go to admin\ themes\matrix and try to remove and add the required things in the blocks it appears to be happening but upon saving nothing actually happens to the gallery. if I check the settings again at admin\themes\matrix it remains the same. How to change this.
My settings are:
Gallery version = 2.1.2 core 1.1.0.2
PHP version = 4.4.4 cgi
Webserver = Apache Webserver
Database = mysql 4.1.21-standard, lock.system=flock
Toolkits = Exif, Getid3, Thumbnail, Gd
Acceleration = none, none
Operating system = Linux pamal.lunarpages.com 2.6.9-42.0.2.ELsmp #1 SMP Wed Aug 23 00:17:26 CDT 2006 i686
Default theme = matrix
Locale = en_GB
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.0.9) Gecko/20061206 Firefox/1.5.0.9
please help
Regards,