New Theme - Darkness

shake_n_bake
shake_n_bake's picture

Joined: 2009-09-13
Posts: 1
Posted: Mon, 2009-09-14 04:26

I've created a new Gallery 3 theme named Darkness, based on the color scheme and style of the Gallery 2 Ebony theme. Here's a link to my test site (it can be quite slow):

http://g3.frozen.ca

It's still a work in progress, but you can try it out if you want, it's attached.

Note: You must have the latest code to use this theme. It does not work with Beta 2.

The album and photo pages are done, and I'll be tackling the movie page next. There are still other things that need to be done, and bugs that need to be fixed, but it's quite usable now for simple viewing. Any and all feedback is appreciated.

It displays a lot of little pieces of information right now (owner, date, size, # views), but I'm going to make all those things optional, as soon as I figure out how to create theme variables that the administrator can edit. Does anybody know how that works, or even if it's been implemented yet.

On a related note, it looks like Gallery 3 is using the jQuery UI with one of the ThemeRoller themes, but it doesn't look like there's any way to choose/use a different theme. Has that mechanism been designed or implemented yet?

If these things haven't been done yet, I might be interested in taking a crack at them. I'm also very interested in how frames will be done.

AttachmentSize
darkness_v1.zip87.08 KB
Login or register to post comments
einarornth

Joined: 2009-07-22
Posts: 4
Posted: Mon, 2009-09-14 22:19

Great job, I like it.

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 16315
Posted: Tue, 2009-09-15 01:57

Thanks, Looks great!
I have created a codex page for you to fill in stuff that you feel is needed:
http://codex.gallery2.org/Gallery3:Themes:darkness
Feel free to edit as required.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
dreamkiller

Joined: 2008-01-28
Posts: 34
Posted: Sun, 2009-09-27 15:52

Nice theme but just a little problem with more than 34 pages.

and some organisation problem with the image

http://dreamkiller.fr/gallery3/index.php/Photoblog

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9281
Posted: Sun, 2009-09-27 16:34

Looks like you're going to need to dig into this part of pager.html.php

    <?php
      if ($total_pages > 1) {
        $pageItems = t("Pages") . ": ";
        for ($i = 1; $i <= $total_pages; $i++) {
          if ($i == $current_page)
          {
            $pageItems .= "<span>$i</span>";
          }
          else {
            $pageItems .= "<a href = \"" . str_replace('{page}', $i, $url) . "\">" . $i . "</a>";
          }
        }
        echo $pageItems;
      }
    ?>

Or figure out how to make "digg" style pagination, which I've been struggling with:
http://gallery.menalto.com/node/91300
http://docs.kohanaphp.com/libraries/pagination

If I find something, get help or learn how to do this I'll post back in here
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9281
Posted: Sun, 2009-09-27 17:04

Quick note: I did get some information from the devs in IRC, I'll play around and see what I can come up with.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 16315
Posted: Sat, 2009-10-03 21:08

See if this helps with paging:
http://gallery.menalto.com/node/91548#comment-323011

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
nyzrox

Joined: 2009-10-06
Posts: 6
Posted: Tue, 2009-10-06 00:47

Is it possble when within a Album, to have the Pages 1,2,3,4 etc at the bottom?

Otherswise you find yourself scrollowing dwn looking at thumbnails, then having to scroll back to the top to move to the next page....

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9281
Posted: Tue, 2009-10-06 01:36

Sure edit themes/YourTheme/views/album.html.php

You'll want to probably make your own copy if you start hacking on a default theme as any upgrade will overwrite your changes:
http://codex.gallery2.org/Gallery3:Tutorials:Themes#Creating_your_own_theme_by_copying_the_default_theme
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
nyzrox

Joined: 2009-10-06
Posts: 6
Posted: Tue, 2009-10-06 01:53

Ok awesome, il take a look into it.

Now all i need to do is try and get EmbedLinks compatible with Darkness.

Would be ideal if the Buttons for 'Show BBCode' Were in the Title bar above the picture. Inbetween Title, & Who uploaded it an When.

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 16315
Posted: Tue, 2009-10-06 01:54

Copy or move this bit
<?= $theme->pager() ?>
to the bottom.

Now your a theme developer! :-)

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
nyzrox

Joined: 2009-10-06
Posts: 6
Posted: Tue, 2009-10-06 02:04

Already done that thats Floridave.

Trying to get my head around getting the EmbedLinks to work with 'Darkness' now.

Thanks for that

Login or register to post comments
boost

Joined: 2007-01-04
Posts: 13
Posted: Mon, 2009-10-19 14:02

Cant get it to display properly.
You have 4 pictures per row, I can only get 3.

How do I change that ?

My gallery

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 16315
Posted: Mon, 2009-10-19 22:52

Could be a few things but this should fix your issue:

#gContent #gAlbumGrid .gItem {
  float: left;
  overflow: hidden;
  padding: 3px;
  position: relative;
  background-color: #161616;
}

Adjusting the padding.
I would also see if there is a with issue with some titles or the owner, See if changing the owners name from gallery Administrator to something shorter.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
boost

Joined: 2007-01-04
Posts: 13
Posted: Tue, 2009-10-20 05:25

The padding did it. Thanks.

Login or register to post comments
Calanquemar

Joined: 2009-10-14
Posts: 7
Posted: Wed, 2009-10-21 12:59

Hi there,

I get some problem when I want to see my photos in high resolution (logged as Administrator). This message is prompted :

So here's the error:
The page you requested, file_proxy/Marseille-Sunrises/a1P1010120n.jpg, could not be found.
File: system/core/Kohana.php, line: 841

And here's how we got there:
modules/gallery/controllers/file_proxy.php [57]:
Kohana::show_404( )
File_Proxy_Controller->__call( Marseille-Sunrises, Array
(
[0] => a1P1010120n.jpg
)
)
system/core/Kohana.php [291]:
ReflectionMethod->invokeArgs( File_Proxy_Controller Object
(
[uri] => URI Object
(
)

[input] => Input Object
(
[use_xss_clean:protected] => 1
[magic_quotes_gpc:protected] => 1
[ip_address] =>
)

)
, Array
(
[0] => Marseille-Sunrises
[1] => Array
(
[0] => a1P1010120n.jpg
)

)
)
system/core/Event.php [209]:
Kohana::instance( )
system/core/Bootstrap.php [55]:
Event::run( Array
(
[0] => Kohana
[1] => instance
)
)
index.php [86]:
require( system/core/Bootstrap.php )

Ok, found it, I gave the full size access to everyone, then restricted it back to registered users and it's working now, cool :-)

Login or register to post comments
drdavidge

Joined: 2009-11-03
Posts: 1
Posted: Tue, 2009-11-03 20:49

looks pretty cool. does the attached zip include these changes mentioned here?

Login or register to post comments
DixitS

Joined: 2009-10-08
Posts: 4
Posted: Mon, 2009-11-16 02:39

Im using the latest code and cant seem to get the albums page to show any of the albums or pictures. Just get a blank gallery page like as if there were no albums added.

If I go to the dashboard I can see the latest pictures, and can click on them and it works but still cant get the albums page with the columns/rows to show. Also the right side of the page (if I get to the picture itself) I see all the links to the admin/menu options listed, which is pushing the whole page down about 1/2 a page. Ive attached some screenshots to show what Im talking about.

Wondering if this is something that is with the new/latest code? Because noticed the same thing on the 3nids theme as well, same exact problem in that main page shows nothing but a blank/empty gallery.

And yes Im using the latest experimental code.

Dixit

AttachmentSize
picturegallery.png105.07 KB
blankgallery.png40.21 KB
Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9281
Posted: Mon, 2009-11-16 17:11

Make sure you have the latest version of Darkness, but I doubt it's been updated to work with the latest changes in the code base. Right now the only theme I know that works is the default, wind.

I don't know when the Darkness theme was last updated, but there have been massive changes to CSS and from your screenshots that looks like a big part of it.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
DixitS

Joined: 2009-10-08
Posts: 4
Posted: Mon, 2009-11-16 17:18

Researching this more, I saw that thread in the forum about the CSS coding changed. So I believe your right. I do have the latest since this forum what he has attached is the latest.

The 3nids theme is the same way, but I assume maybe the developer of the theme hasnt been on the latest experimental gallery code either.

Dixit

Login or register to post comments