Stage 1: Removing nasty lines in veloria theme

Makc666
Makc666's picture

Joined: 2003-12-26
Posts: 78
Posted: Sun, 2005-03-06 22:49

Stage 1: Removing nasty lines in veloria theme

================================================
NOTE:
One little note for all.
I removed left Sidebar panel by adding to /config.php
line:
GalleryCapabilities::set('showSidebar', false);

So this if you don't want to remove it than you have to pass "Step 3".
And go to Step 4.

BUT!! If you don't add the above line in /config.php, you will have problems discrebed here:
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=25513

That's why I strongly recommened you to add that line and to move neccesary options to another place from that left Sidebar panel.
Lets start.

================================================
We will work with: /themes/veloria/styles/theme.css

Step 1:
We are solving the problem with that nasty vertical line shown by red point on screenshot with number 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;
}

================================================
Q: Why it appeared?

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
to override that MAIN settings in: /templates/layout.css.php
================================================

AttachmentSize
g2-strange-borders-before---step-1.png19.85 KB
 
Makc666
Makc666's picture

Joined: 2003-12-26
Posts: 78
Posted: Sun, 2005-03-06 22:51

Step 2:
We are removing that nasty horizontal line shown by red point on screenshot with number 2.

-----[ OPEN ]------------------------------------------------
/themes/veloria/styles/theme.css

-----[ FIND ]------------------------------------------------
/*      horizontal history links - 'trail of breadcrumbs' */
.gbBreadCrumb { 
	margin: 0;
	padding: 2px 8px; 
  border-top: 4px solid #000000;
  background-color: #A35200;
}

-----[ REPLACE WITH ]------------------------------------------ 
/*      horizontal history links - 'trail of breadcrumbs' */
.gbBreadCrumb { 
	margin: 0;
/*	padding: 2px 8px; */
  border-top: 4px solid #000000;
  background-color: #A35200;
}

================================================
As you see I commented out the line
padding: 2px 8px;
and that nasty horizontal line will disappear - screenshot 3 in next post
================================================

 
Makc666
Makc666's picture

Joined: 2003-12-26
Posts: 78
Posted: Sun, 2005-03-06 22:52

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.

-----[ OPEN ]------------------------------------------------
/themes/veloria/styles/theme.css

-----[ FIND ]------------------------------------------------
#gsAlbumContents, #gsAdminContents {
        float: left;
        border-left: 4px solid #000000;
        width: 78%;
        padding: 0;
  background-color: #eee;    
}

-----[ REPLACE WITH ]------------------------------------------ 
#gsAlbumContents {
        float: left;
        width: 100%;
        padding: 0;
  background-color: #eee;    
}

#gsAdminContents {
        float: left;
        border-left: 4px solid #000000;
        width: 78%;
        padding: 0;
  background-color: #eee;    
}

================================================
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".
================================================

 
Makc666
Makc666's picture

Joined: 2003-12-26
Posts: 78
Posted: Sun, 2005-03-06 23:02

Step 4: (for those who didn't change /config.php file)

-----[ OPEN ]------------------------------------------------
/themes/veloria/styles/theme.css

-----[ FIND ]------------------------------------------------
#gsAlbumContents, #gsAdminContents {
        float: left;
        border-left: 4px solid #000000;
        width: 78%;
        padding: 0;
  background-color: #eee;    
}

-----[ REPLACE WITH ]------------------------------------------ 
#gsAlbumContents, #gsAdminContents {
        float: left;
        border-left: 4px solid #000000;
        width: 85%;
        padding: 0;
  background-color: #eee;    
}

================================================
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

 
volksport
volksport's picture

Joined: 2002-10-06
Posts: 239
Posted: Sun, 2005-03-06 23:06

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!

 
Makc666
Makc666's picture

Joined: 2003-12-26
Posts: 78
Posted: Sun, 2005-03-06 23:09

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

cd themes 
mkdir mytheme 
cp veloria/theme.inc mytheme 
Edit mytheme/theme.inc, replace Veloria with MyTheme 
mkdir mytheme/styles 
cp veloria/styles/theme.css mytheme/styles 
Edit mytheme/styles/theme.css any way you want 

Also please see Known Issue #1 in the README.

 
Makc666
Makc666's picture

Joined: 2003-12-26
Posts: 78
Posted: Sat, 2005-03-12 02:35

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

Quote:
<td class="LL"><div class="V">&</div></td> <td rowspan="1" colspan="1"
><img class="ImageFrame_image" src="***********/gallery2/d/6341-1/2773_51.jpg" width="1280" height="837" id="IFid1" alt="2773_51.jpg" longdesc="2773_51.jpg"/></td>
<td class="RR"><div class="V">&</div></td> </tr>

 
bigserpent

Joined: 2005-02-04
Posts: 14
Posted: Sun, 2005-03-13 18:17

Hi

I did follow the instructions. First, I added the line “GalleryCapabilities::set('showSidebar', false);

 
Makc666
Makc666's picture

Joined: 2003-12-26
Posts: 78
Posted: Sun, 2005-03-13 18:33

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);

 
bigserpent

Joined: 2005-02-04
Posts: 14
Posted: Sun, 2005-03-13 18:47

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" ?

 
Makc666
Makc666's picture

Joined: 2003-12-26
Posts: 78
Posted: Sun, 2005-03-13 18:57
bigserpent wrote:
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" ?

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.

 
bigserpent

Joined: 2005-02-04
Posts: 14
Posted: Mon, 2005-03-14 08:35

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.

 
Makc666
Makc666's picture

Joined: 2003-12-26
Posts: 78
Posted: Mon, 2005-03-14 09:04
bigserpent wrote:
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.

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 :)

 
bigserpent

Joined: 2005-02-04
Posts: 14
Posted: Mon, 2005-03-14 09:24

I still having undefined class error even cleaned the cache and template_c directory. :(

May I know what G2 version you using? :wink:

 
Makc666
Makc666's picture

Joined: 2003-12-26
Posts: 78
Posted: Mon, 2005-03-14 09:48
bigserpent wrote:
May I know what G2 version you using? :wink:

G2 Beta 1
Gallery Core Module installed 0.9.0

 
bigserpent

Joined: 2005-02-04
Posts: 14
Posted: Mon, 2005-03-14 10: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.