Stage 1: Removing nasty lines in veloria theme
Makc666
Joined: 2003-12-26
Posts: 78 |
Posted: Sun, 2005-03-06 22:49 | |||
Stage 1: Removing nasty lines in veloria theme ================================================ So this if you don't want to remove it than you have to pass "Step 3". BUT!! If you don't add the above line in /config.php, you will have problems discrebed here: That's why I strongly recommened you to add that line and to move neccesary options to another place from that left Sidebar panel. ================================================ Step 1: -----[ OPEN ]------------------------------------------------ /themes/veloria/styles/theme.css -----[ FIND ]------------------------------------------------ #gsHeader { display: block; width: 100%; background-color: #A3A300; } -----[ REPLACE WITH ]------------------------------------------ #gsHeader { display: block; width: 100%; margin: 0; padding: 0; background-color: #A3A300; }
================================================ A: In main css file: /templates/layout.css.php there is code: #gsHeader { display: block; clear: both; margin: 0 16px 0 0; padding: 0 0 0 8px; } As you understand now, we add two lines in: /themes/veloria/styles/theme.css
|
||||
Posts: 78
Step 2:
We are removing that nasty horizontal line shown by red point on screenshot with number 2.
================================================
As you see I commented out the line
padding: 2px 8px;
and that nasty horizontal line will disappear - screenshot 3 in next post
================================================
Posts: 78
Step 3: (read note at the beginning)
A very easy step, we will just make galleries table "width = 100%" shown by red point on screenshot with number 3.
================================================
Q: What we made?
A: We separated two options: one for "Site Admin", another for "Users' Site Part".
In other words you will see that left Sidebar panel in "Site Admin" area,
but you will not see it in Users' part as we add line:
GalleryCapabilities::set('showSidebar', false);
to /config.php
That's why for "Users' Site Part" we set "width: 100%;",
and for "Site Admin" we set "width: 78%;"
Also we removed line:
border-left: 4px solid #000000;
for proper showing of "Users' Site Part".
================================================
Posts: 78
Step 4: (for those who didn't change /config.php file)
================================================
You have to pick up your own value for "width: 78%;"
I set it "width: 85%;" BUT!!! It will be different for you.
Because if you make it two big, you will have problems.
You can look for some decision here:
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=25513
================================================
If you followed my recommendations with /config.php and steps 1, 2, 3 you will get gallery as on screenshot below!
P.S. Sorry for any grammar mistakes, not my native language and I am very tired of all that coding :P
Posts: 239
very cool - once a few of us have a chance to look at this i have a feeling we will probably make some changes to matrix/veloria.
Thanks!
Posts: 78
And one more note.
Of couse I was making all those changes with MY OWN theme.
Like:
/themes/testone/styles/theme.css
That's why I suggest you to create yourown theme.
How is described here:
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=27074
Also please see Known Issue #1 in the README.
Posts: 78
Did some one tried to remove this nasty space in FULLSIZE mode as on screen shot?
As think the source/reason of this space it that image code is generated with width="1280" height="837"
But how to fix it - I don't know.
And of course this values overrides some how
Posts: 14
Hi
I did follow the instructions. First, I added the line “GalleryCapabilities::set('showSidebar', false);
Posts: 78
Are you shure you have Gallery 2 and not 1 ?
Gallery2's config.php doesn't have so a lot of lines in my variant.
I added:
GalleryCapabilities::set('showSidebar', false);
after line:
$gallery->setConfig('mode.embed.only', false);
So it lookes like:
$gallery->setConfig('mode.embed.only', false);
GalleryCapabilities::set('showSidebar', false);
Posts: 14
Hi Makc666,
Yes. I using G2. The core version is 0.9.3.
I followd you and put the "gallerycapabilities" into the same location. But I have the same problem...
I have to turn on a specific module to let G2 know "gallerycapabilities" ?
Posts: 78
I realy don't know why it doesn't work for you.
I was given this advise here by one of the developers:
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&p=109032#109032
And I didn't do any extra steps.
I am using Matrix layout and veloria theme.
Posts: 14
hmm.... interesting. I have downloaded the latest G2 and have a fresh install on different host.
But I still can't remove the left-sidebar.
Posts: 78
Try to clean cache of G2 in data:
delete all folders in
/g2data/cache/
delete all folders in
/g2data/smarty/templates_c/
DON"T delete "templates_c" it self
but I think it will not help
Posts: 14
I still having undefined class error even cleaned the cache and template_c directory.
May I know what G2 version you using? :wink:
Posts: 78
G2 Beta 1
Gallery Core Module installed 0.9.0
Posts: 14
OK. I can remove the left sidebar now.
In the directory "$gallery2/modules/core/classes", there is a file named "GalleryCapabilities.class".
I changed 'showSidebar' to false in "&_getconfig()" function. After that, the left sidebar does't display.