Removing Sidebar

andrewcilley

Joined: 2011-08-24
Posts: 11
Posted: Tue, 2011-09-06 18:18

http://www.ctom.org/gallery/gallery2embedded.php
Here is the site I'm trying to implement Gallery 2 onto. I have it setup how I want for the most part but I have a few questions.

Is there anyway that I could remove the sidebar on the left? I only want the images to show up and have from register down(on the left) to not be there. If anyone else has input on how to make this work it would be greatly appreciated!

 
andrewcilley

Joined: 2011-08-24
Posts: 11
Posted: Tue, 2011-09-06 18:24

And also, could someone please tell me why my images aren't showing up on that part but they do if you go to http://www.ctom.org/gallery/main.php

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2011-09-06 22:48

your init array should look like:
$ret = GalleryEmbed::init(array('g2Uri'=>'/gallery/main.php', 'embedUri'=>'/gallery/gallery2embedded.php', 'fullInit'=>'false'));
keep in mind that you can name this file anything you want like gallery/index.php just reflect the change in the above line.

also to remove the sidebar add:
$gallery->setConfig('showSidebarBlocks', false);
just before:
$g2data = GalleryEmbed::handleRequest();

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

 
andrewcilley

Joined: 2011-08-24
Posts: 11
Posted: Wed, 2011-09-07 19:24

Thanks for the help! I got the sidebar off without a problem. Is there anyway to get the other parts off to? For example; the register and gallery on the top?

Also, I still can't get the photos to show up. Am I doing something wrong? I have it setup in the init array like you do.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2011-09-07 21:52
Quote:
the register and gallery on the top

$gallery->setConfig('login', false);
again just before:
$g2data = GalleryEmbed::handleRequest();

Gallery and
This is the main page of your Gallery
Are the title and description of that album, edit the album to change them.

Quote:
I have it setup in the init array like you do.

you don't.
/gallerymain.php is not the same as
/gallery/main.php

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

 
andrewcilley

Joined: 2011-08-24
Posts: 11
Posted: Thu, 2011-09-08 14:38

Ok, I got it to work for the most part. What would I have to do to get it to only show the albums and not everything on top of that. I haven't worked with themes but is there a stripped down theme that I could use so that I can have it flow with the website entirely?

Also, when I click on the album it doesn't go anywhere. Do I have to do something else?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2011-09-08 22:16
Quote:
Also, when I click on the album it doesn't go anywhere. Do I have to do something else?

Not sure what you did there.

Quote:
I haven't worked with themes but is there a stripped down theme that I could use so that I can have it flow with the website entirely?

Here I'm using my clear theme - http://www.flashyourweb.com/gallery2/embed_samples/ctom.php
My clear theme is basically carbon w/ the backgrounds removed.

Quote:
I haven't worked with themes

If you know any css, you know how to hide undesirable page elements.

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

 
andrewcilley

Joined: 2011-08-24
Posts: 11
Posted: Fri, 2011-09-09 12:45

When I active the clear theme it is still showing up the matrix theme. The way you have it setup is absolutely perfect and exactly what I need. If you can help me out with getting it to look like that it would be greatly appreciated.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2011-09-09 22:52

Upload the attached to http://www.ctom.org/gallery/index.php overwriting gallery's index.php (or rename gallery's to index_old.php)
Then your gallery will be located at a default document. http://www.ctom.org/gallery/index.php

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

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2011-09-10 17:23
 
andrewcilley

Joined: 2011-08-24
Posts: 11
Posted: Mon, 2011-09-12 19:27

The first way you sent it over was perfect. I was wondering how I would edit the css and other template stuff. I know typically you would go into the theme.tpl file and can edit the css from the theme.css file but I wanted to make sure that's how I can do things. I need to get the fonts to match the rest of the site and to get rid of the purchase and sidebar icons as well as the Register « Sidebar part at the top. I'd also like to remove the date, owner, size, views, etc under the image and basically just have it be all of the images with only the name and description. If you can point me in the direction of the easiest way to edit these that would be great.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2011-09-12 20:44

if you look through the file, it is well commented.

Quote:
<!-- Some adjustment styles -->

and within that <style /> element you can certainly manipulate/hide whatever you need...

.gbSystemLinks, .buttonShowSidebar, .buttonPrinter {
    display: none;
}

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

 
andrewcilley

Joined: 2011-08-24
Posts: 11
Posted: Mon, 2011-09-12 20:54

Perfect! Where can I edit the css though?

I'm not sure if I've said this previously but thank you so much for your help and understanding of my lack of knowledge with this!

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2011-09-12 20:58
Quote:
Where can I edit the css though?

like I said above, use the <style /> element I provided in index.php's <head /> to override any styles you need.

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

 
andrewcilley

Joined: 2011-08-24
Posts: 11
Posted: Wed, 2011-09-21 00:13

I'm having two more little issues and a kind of big one.

Whenever I'm inside of the gallery(http://www.ctom.org/gallery/index.php?g2_itemId=29) and I click the arrows to go to the name page or the number 2 or 3 it pushes me back to the index page of the entire gallery. Is there any reason it would do this? I haven't touched anything other than the style in the index.php file so I'm not sure why it would do that.

Also, when I try to hide the gbBlock class it automatically hides the image because it is a part of it but I am only looking to get rid of the album title as well as the title below it with the 'Download photo in original format' text too but as I said, if I try to hide those then it automatically gets rid of the photo as well.

Is there a way to make the admin section separate from the layout? I know by hiding things there won't be a login link but is there a way to make a simple login page and to have it setup differently than the layout. For now I have to go to http://www.ctom.org/gallery/index.php?g2_view=core.UserAdmin&g2_subView=core.UserLogin&g2_return=%2Fgallery%2Findex.php to get into the gallery. This is for a client and I feel like if it's all smoshed into the layout they might get confused and I want to make it as simple as possible.

When you login to edit it also only allows you to edit the current gallery and doesn't give you the option to chose between them which would be complicated for a client.

If you can help me out with these things it would be greatly appreciated.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2011-09-21 01:39

try commenting out these two lines:

$gallery->setConfig('defaultAlbumId', $defaultAlbumId); // set the default g2_itemId of home album
$gallery->setConfig('breadcrumbRootId', $breadcrumbRootId); // set the default g2_itemId breadcrumb root

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

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2011-09-21 01:40
 
andrewcilley

Joined: 2011-08-24
Posts: 11
Posted: Wed, 2011-09-21 02:41
suprsidr wrote:
try commenting out these two lines:

$gallery->setConfig('defaultAlbumId', $defaultAlbumId); // set the default g2_itemId of home album
$gallery->setConfig('breadcrumbRootId', $breadcrumbRootId); // set the default g2_itemId breadcrumb root

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

I already had both of those in the code. Is there another way around that issue? Also, any idea why it send me back to the gallery when I go to page 2 or 3 or even click the arrows?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2011-09-21 02:49

I instructed you to comment out those lines.
they should now look like:

//$gallery->setConfig('defaultAlbumId', $defaultAlbumId); // set the default g2_itemId of home album
//$gallery->setConfig('breadcrumbRootId', $breadcrumbRootId); // set the default g2_itemId breadcrumb root

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

 
andrewcilley

Joined: 2011-08-24
Posts: 11
Posted: Wed, 2011-09-21 12:38

I did that(I believe) and it still isn't working. Is there anything that I should take out of the style aspect of the code that I currently have hidden that might be blocking this from happening?

Also, any idea about the page links going back to the index page?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2011-09-21 12:45