Removing Sidebar
andrewcilley
Joined: 2011-08-24
Posts: 11 |
Posted: Tue, 2011-09-06 18:18 |
http://www.ctom.org/gallery/gallery2embedded.php 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! |
|
Posts: 11
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
Posts: 8339
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
Posts: 11
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.
Posts: 8339
$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.
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
Posts: 11
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?
Posts: 8339
Not sure what you did there.
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.
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
Posts: 11
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.
Posts: 8339
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
Posts: 8339
I've played a bit http://www.flashyourweb.com/gallery2/embed_samples/ctom.php
if you like my changes, I'll pass them on.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 11
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.
Posts: 8339
if you look through the file, it is well commented.
and within that <style /> element you can certainly manipulate/hide whatever you need...
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 11
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!
Posts: 8339
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
Posts: 11
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.
Posts: 8339
try commenting out these two lines:
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 8339
Also you can send your client to http://www.ctom.org/gallery/main.php?g2_view=core.UserAdmin&g2_subView=core.UserLogin
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 11
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?
Posts: 8339
I instructed you to comment out those lines.
they should now look like:
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 11
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?
Posts: 8339
that is what should solve that issue.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2