Moving sidebar to bottom of the screen & custom backgrounds
polopaul69
![]()
Joined: 2007-01-12
Posts: 84 |
![]() |
Gallery version = 2.1.2 core 1.1.0.2 I have been searching on the site to find out how to do a few things with the sidebar, but to no real avail. Basically instead of the sidebar being static at the side, i want to move the whole sidebar so that it sits at the bottom of the screen (with a centre alignment with the screen). I also then want to be able to put that into its own a box (different colour to the background) and insert a jump to box and the search blocks in there too. I have attached an example to show you what i mean. If anyone could assist i would be truely grateful as the idea is growing on me but don't know how to put it into practice. |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Why not just remove all the blocks you have in the sidebar and add them to the albums? Edit album -> them tab, remove all the bocks from the sidebar Dave _____________________________________________ |
|
polopaul69
![]()
Joined: 2007-01-12
Posts: 84 |
![]() |
how would i then make them horizontal and the search box & jump to box also, instead of vertical, in its own bordered box with a different colour? |
|
polopaul69
![]()
Joined: 2007-01-12
Posts: 84 |
![]() |
The blocks would still appear vertical if i just added them to album pages |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Some things you will be able to float depending on how many blocks you have. For example you could add div.block-albumselect-AlbumTree { float: right; } to you css and the album select tree will be to the right. _____________________________________________ |
|
polopaul69
![]()
Joined: 2007-01-12
Posts: 84 |
![]() |
Some things you will be able to float depending on how many blocks you have. For example you could add div.block-albumselect-AlbumTree { to you css and the album select tree will be to the right. I can't find div.block-albumselect-AlbumTree { in the Theme css. What line is it prob. on? Basically i want it just like in the attached example with the jump to and adv search features on the left and 4 or 5 thumbnail random images alongside it. |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
You need to ADD div.block-imageblock-ImageBlock { float: left; padding-top: 50px; } div.block-albumselect-AlbumTree { position: absolute; padding-top: 75px; } div.block-search-SearchBlock { padding-top:50px; float: left; } to your css. Use the FF browser and the web dev tool to fine tune, adding width and padding as required. Dave _____________________________________________ |
|
polopaul69
![]()
Joined: 2007-01-12
Posts: 84 |
![]() |
Dave Just tried adding that into the css and it messed up the sodebar pretty bad and the blocks are still aligned on top of each other with a larger gap in between and not side by side. I played around with the paddings you wrote but the imageblocks were still on top of each other. Is there any part off the css that you know of that determines the blocks alignment as could that be changed. I know that #gsSidebarF { Changes the width of the sidebar and i used that also when trying your code, but it didn't work out. Any other ideas? Do you know of anyone that has managed to do it who could show me an example on their site? |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
I just set it up on my test site: Dave |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
floridave that's cool stuff! We need this as a how-to on the codex! -------------- |
|
polopaul69
![]()
Joined: 2007-01-12
Posts: 84 |
![]() |
How on earth you managed that i do not know. I have been up all night trying to figure out how you did that. Is there anywhere in particular that you put into the theme.css the text: div.block-search-SearchBlock { div.block-albumselect-AlbumTree { iv.block-imageblock-ImageBlock { Like Valiant said - if you do have a "how-to" it would be fantastic. I just wish I had your god-like fingers to work the magic. |
|
polopaul69
![]()
Joined: 2007-01-12
Posts: 84 |
![]() |
I've managed to get the images horizontal, however when the sidebar is static it is positioned at the top. Where on the css is it that enables me to move it to different places on the screen? When floting sidebar i have managed to put it where it is needed. Can you assist in this last bit? Cheers |
|
polopaul69
![]()
Joined: 2007-01-12
Posts: 84 |
![]() |
Just noticed that the horizontal images are below the search and jump box. How did you get them alongside those features? |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Quote:
How on earth you managed that i do not know. Look at the source of my test site. the CSS is all there. valiant wrote:
that's cool stuff! We need this as a how-to on the codex! I am out of town so I should be able to do this this weekend. All I can say for now is read the thread over. The FF web browser and the WebDev tool might help as well. Dave |
|
polopaul69
![]()
Joined: 2007-01-12
Posts: 84 |
![]() |
I just spent the weekend trying to figure out how to place the sidebar at the bottom but to no avail. I read through your CSS and cannot see what you have entered to place the sidebar at the bottom when static. I can do it when the sidebar is floating but it messes up alot. I also looked at my author.tpl stuff and the sidebar.tpl to see if there was anyway of adding it to those but cannot see how you have done it. I am sorry to be a pain as this should be simple. Can you see what i am doing wrong? http://www.pauldancerphotography.com/main.php I already have FF & got the webdev tool but I am sure i am missing something simply. At the moment the sidebar is set as floating as when static it messes up the screen. Thank you in advance for any assistance on this. |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
I think you misunderstand... Only tested in Matrix theme: 2. Now all the block will be at the bottom but they will be lined up vertically. 3. Use CSS to 'float' the items and pad to position etc. div.block-imageblock-ImageBlock { float: left; padding-top: 0px; padding-left:10px; } div.block-albumselect-AlbumTree { position: relative; float: left; padding-top: 50px; padding-right:20px; } div.block-search-SearchBlock { padding-right:50px; padding-bottom:20px; position: absolute; } to your theme.css 4. Adjust the padding of the items as required with the FF/WebDev tool. Dave |
|
polopaul69
![]()
Joined: 2007-01-12
Posts: 84 |
![]() |
I know that this must be getting pretty frustrating for you, but i have don as said and played around with webdev but i can get the image blocks aligned vertically, but i cannot get them aligned horizontally. I removed all the Blocks to show in the sidebar and added the Blocks to show on album pages. I then added And since have been playing with the paddings etc, positionings etc yet the images are still vertical. I thought maybe the position of where in the theme.css the code goes would make a difference but no. I went back into admin and just added a few image blocks to my sidebar to see what would happen and they came out horizontal with the albums one's beow which were vertical. I don't know what to do????? All i do know is that it is something i REALLY want to do but can't for the life of my figure out 'what' 'why' 'when' & 'how'. Could it be that it is because i am using the PGTheme? You tested it out on the matrix theme. If poss, would you be able to have a look at my theme.css via http://www.pauldancerphotography.com/main.php and see if you can see anything wrong? Paul |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Quote:
Only tested in Matrix theme: Try that first Dave |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
You have a JS error as well. Dave |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Your theme.css has a extra Dave |
|
polopaul69
![]()
Joined: 2007-01-12
Posts: 84 |
![]() |
I noticed that you had a gallery.css on your site which i do not seem to have. What is that and could that be a reason? I also tried changing to matrix - nothing changed and i also tried copying and pasting your theme.css into mine to see if that would work but alas it did not. I have removed the extra z - probably from when i had to 'ctrl' 'z'. I just find it strange that something so simple to do in DW could be so difficult to do. I am probably missing something really simple. Will keep trying. Any further ideas you have would be great. |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Quote:
I noticed that you had a gallery.css on your site which i do not seem to have. What is that and could that be a reason? I tested it without that css and it still works. Quote:
Where is this JS Error you mentioned? When I view your site I am unable to open the sidebar with the 'options' link. Create a test album and send me login info in a PM Dave _____________________________________________ |
|
polopaul69
![]()
Joined: 2007-01-12
Posts: 84 |
![]() |
If you scroll down to the bottom of the screen, you'll find it there. I had earlier been playing with trying to get the sidebar static at the bottom of the page. At a funeral today but i will create a test album for you and send you a login when i get back. Cheers Dave |
|
polopaul69
![]()
Joined: 2007-01-12
Posts: 84 |
![]() |
Silly point, but how do i go about setting up a test album? |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Create an album. and create a user and make that user the owner of the album, or give that user full permissions to administrate that album. Dave |
|
polopaul69
![]()
Joined: 2007-01-12
Posts: 84 |
![]() |
Done (Just PM'd you) |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Works in Matrix. Does not in PG. _____________________________________________ |
|
polopaul69
![]()
Joined: 2007-01-12
Posts: 84 |
![]() |
Unfortunately not as i have downloaded Gallery 2.2 as it was only in Beta mode and because i am new to using Gallery, i thought best to wait for finalised product. Do you know why it wouldn't work in PGTheme? Also what is the real difference between Matrix & PG Anyway as i could probably get Matrix to look lile PG. If i was to download G2.2 what would you recommend i do (and how would i) before doing so? I know i would have to back up my gallery (but how) or is there an easy way to try out g2.2? |
|
gaynormcc
![]()
Joined: 2003-09-05
Posts: 426 |
![]() |
Oh Dave, Gaynor |
|
gaynormcc
![]()
Joined: 2003-09-05
Posts: 426 |
![]() |
polopaul69 Gaynor |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
PG theme puts all the blocks in a table and each block in a cell. Then loops through the blocks. {if $theme.params.albumBlocks} {* Show any other album blocks (comments, exif etc) *} <br/> <table border="0" width="98%"><tr><td> <table width="400" align="{if $theme.params.BlocksAlign}{$theme.params.BlocksAlign}{else}center{/if}"> <tr><td></td></tr> {foreach from=$theme.params.albumBlocks item=block} <tr> <td> <table align="{if $theme.params.BlocksInAlign}{$theme.params.BlocksInAlign}{else}center{/if}"> <tr> <td> {assign var=item value=$theme.item} {if empty($theme.parents)} {if ($block.0 != "rating.Rating") || ($theme.params.showGalleryRating == 'none')} {if ($block.0 != "comment.ViewComments") || empty($theme.params.AuthorComments)} {if ($block.0 != "cart.ShowCart") || empty($theme.params.AuthorCart)} {if ($block.0 != "checkout.ShowCart") || empty($theme.params.AuthorCart)} {g->block type=$block.0 params=$block.1} {/if} {/if} {/if} {/if} {else} {if ($block.0 != "rating.Rating") || ($theme.params.showAlbumRating == 'none')} {if ($block.0 != "comment.ViewComments") || empty($theme.params.AlbumComments)} {if ($block.0 != "cart.ShowCart") || empty($theme.params.AlbumCart)} {if ($block.0 != "checkout.ShowCart") || empty($theme.params.ALbumCart)} {g->block type=$block.0 params=$block.1} {/if} {/if} {/if} {/if} {/if} </td> </tr> </table> </td> </tr> {/foreach} </table> </td></tr></table> {/if} and remove all the table stuff. {foreach from=$theme.params.albumBlocks item=block} {g->block type=$block.0 params=$block.1} {/foreach} The theme is nice but some of the options never get used and adds code blote. Dave |
|
polopaul69
![]()
Joined: 2007-01-12
Posts: 84 |
![]() |
Would it be advisable then (as i do want this feature) to change my Theme to Matrix? (Do you think that its possible in Carbon as that is similar to PGTheme) I will try the stuff you put above and let you know if it works. |
|
polopaul69
![]()
Joined: 2007-01-12
Posts: 84 |
![]() |
Will also try and find out from Pedro himself if he has any luck with this sort of thing. Will keep you posted. |
|
polopaul69
![]()
Joined: 2007-01-12
Posts: 84 |
![]() |
If you wanna have a look Any help with the blue font issues would be great. |
|
polopaul69
![]()
Joined: 2007-01-12
Posts: 84 |
![]() |
Whoops messed that up a bit. I have succeeded in one thing which might be on the right track. I added & edditted the bit at the bottom to show in the album tpl {g->block type="core.GuestPreview" class="gbBlockBottom"} {* Our emergency edit link, if the user all blocks containing edit links *} WITH {g->block type="core.GuestPreview" class="gbBlock"} {* Our emergency edit link, if the user all blocks containing edit links *} {* Show any other album blocks (comments, etc) *} And i now get an image on the right but I also get an image on the left. Is this a start? |
|
polopaul69
![]()
Joined: 2007-01-12
Posts: 84 |
![]() |
Well I've kinda figured it out, I think, but have another little issue with it. Once i figured out exactly what i did, i will post for others. On all pages where the horizontal image-blocks are, the search box font has changed style, font & size and colour (now blue)as well as the DHTML and on the footer, the hover text is also blue. I don't know how it would have changed that, but if you clcik on an image right through to the enlargements, the footer etc is how it is meant to be and not like it is on the first pages. Any ideas on that one? |
|
polopaul69
![]()
Joined: 2007-01-12
Posts: 84 |
![]() |
Ended up having to remove it in PGTheme as although i have been playing with code etc, i haven't been able to get the same effect as with matrix, yet i have been editting PG for a while so decided that until i can figure it out completely (including implementing a border into it as well), i will be leaving it off. When i figure it out i will post to let everyone know. |
|