New Theme: Siriux Minima Maxima

dj-3plet

Joined: 2005-03-12
Posts: 70
Posted: Tue, 2005-10-11 02:27

Hello, all. I created a new theme called Sirux Minima Maxima is my mod of the most excellent Siriux theme using my Minima Maxima header with G2 image block built in to the header.

A demo can be found here: http://www.sapito-family.com/

# Instructions #

Please only use one image option for the image block. I like the random image because the site then becomes a sort of gallery-wide slideshow just by clicking on the image block.

To change the site name, go to /themes/siriuxmm/templates/theme.tpl and change the link below:

<div class="menu">
<a href="/">Site Name</a>
</div>

The theme is optimized for thumbnails that are 120px square thumbnails, so if you don't have 120px square thumbnails, the image block is going to look funny in relation to the rest of the header.

To change header image, make one that is 120px tall. The width of the left hand side of the header is determined by the width of the theme, which you can change in G2 site admin > themes > Minima Maxima Siriux. The left hand side of the header is 135px less than the overall width of the theme, so keep that in mind when you make your header image. Name the image header.jpg and upload it to /themes/siriuxmm/images/.

If you want to remove the header image (which actually looks good because there is a 1px frame around that area), comment out the css like this:

#masthead #hleft {
float: left;
border: 1px solid #ccc;
background: //url('images/header.jpg') no-repeat;
height: 120px;
margin: 0;
padding: 0px 0px 0px 0px;
}

To change the color of the left hand side header, change the background like this:

background: #333 //url('images/header.jpg') no-repeat;

That's pretty much it! Enjoy and if you have a question, please feel free to email me:

triplet_daddy (at) hotmail (dot) com

AttachmentSize
Minima_Maxima_Siriux_1.0.zip82.23 KB
 
renebakkers

Joined: 2005-11-29
Posts: 1
Posted: Tue, 2005-11-29 15:18

Hello, i'm a WPG2 newbie !

I'm using Blix theme [WP] and Sirux Minima Maxima theme [G2] ( http://www.bakkers.biz/ )
I have tested several themes but the above mentioned themes are great!
But for a unknown reason (to me) my Blix sitebar ruler doesn't disappear in the wp-gallery2.php

Is Sirux Minima Maxima an add-on for the default theme?
Do i have to install an default theme like Sirux?

Thx

 
dj-3plet

Joined: 2005-03-12
Posts: 70
Posted: Sun, 2005-12-04 13:52

hi, since you're using the WPG2 plugin, you should post over at the WPG2 forum. you'll get much faster help over there for WPG2 issues. http://wpg2.ozgreg.com/forums

 
adriand

Joined: 2005-07-16
Posts: 14
Posted: Thu, 2005-12-22 08:29

for some reason this theme - nor the original siriux theme - does not work for me. i don't get any php errors on the page, and the javascript console doesnt say anything either. all i get is poorly formatted text and all the albums in a vertical column (as though the css didn't load properly). I have gallery 2.0.2, and even with a fresh install, it still has problems.

 
RoyBot

Joined: 2005-12-28
Posts: 1
Posted: Wed, 2005-12-28 03:59

Beautiful theme! Two quick fixes you may want to apply to your next theme upgrade:

- The directories and files permissions should be set to world readable
- The file "itemlinks.tpl" in the ../siriuxmm/templates/ directory has the word "links" as a capital "L" instead of lower-case

Once I made these changes everything worked well.

Thanks again for your work.

 
psygarden

Joined: 2003-03-25
Posts: 128
Posted: Wed, 2005-12-28 19:32

I like this simplistic theme a lot and wanted to install in for my second gallery, as it would be embedded in an existing website, still i get a lot of errors, it displays everything almost perfectly still gives me this error log at the bottom:

When i load the index page i get this error:

An error has occurred.

Back to the Gallery
Error Detail -
Error (ERROR_BAD_PARAMETER) : Smarty error: unable to read resource: "gallery:themes/siriuxmm/templates/itemlinks.tpl"

* in modules/core/classes/GallerySmarty.class at line 108 (gallerystatus::error)
* in lib/smarty/Smarty.class.php at line 1584 (gallerysmarty::trigger_error)
* in lib/smarty/Smarty.class.php at line 1410 (gallerysmarty::_fetch_resource_info)
* in lib/smarty/Smarty.class.php at line 1859 (gallerysmarty::_compile_resource)
* in modules/core/classes/GalleryTemplateAdapter.class at line 638 (gallerysmarty::_smarty_include)
* in g2data/smarty/templates_c/%%669922609/%%E9^E97^E97CCA98%%album.tpl.php at line 121 (gallerytemplateadapter::theme)
* in lib/smarty/Smarty.class.php at line 1861
* in modules/core/classes/GalleryTemplateAdapter.class at line 638 (gallerysmarty::_smarty_include)
* in g2data/smarty/templates_c/%%669922609/%%91^913^913336E5%%theme.tpl.php at line 67 (gallerytemplateadapter::theme)
* in lib/smarty/Smarty.class.php at line 1251
* in modules/core/classes/GallerySmarty.class at line 90 (smarty::fetch)
* in modules/core/classes/GalleryTemplate.class at line 228 (gallerysmarty::fetch)
* in main.php at line 318 (gallerytemplate::display)
* in main.php at line 87
* in main.php at line 80

System Information
Gallery version 2.0.1
PHP version 4.3.0 apache
Webserver Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_ssl/2.8.12 OpenSSL/0.9.6b PHP/4.3.0
Database mysql 3.23.56-log
Toolkits SquareThumb, Gd
Operating system Linux isratrance.com 2.4.18-27.7.xsmp #1 SMP Mon Nov 15 06:55:13 IST 2004 i686
Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7

When i load a subalbum i get this error:

Error Detail -
Error (ERROR_BAD_PARAMETER) : Smarty error: unable to read resource: "gallery:themes/siriuxmm/templates/itemlinks.tpl"

* in modules/core/classes/GallerySmarty.class at line 108 (gallerystatus::error)
* in lib/smarty/Smarty.class.php at line 1584 (gallerysmarty::trigger_error)
* in lib/smarty/Smarty.class.php at line 1410 (gallerysmarty::_fetch_resource_info)
* in lib/smarty/Smarty.class.php at line 1859 (gallerysmarty::_compile_resource)
* in modules/core/classes/GalleryTemplateAdapter.class at line 638 (gallerysmarty::_smarty_include)
* in g2data/smarty/templates_c/%%669922609/%%E9^E97^E97CCA98%%album.tpl.php at line 121 (gallerytemplateadapter::theme)
* in lib/smarty/Smarty.class.php at line 1861
* in modules/core/classes/GalleryTemplateAdapter.class at line 638 (gallerysmarty::_smarty_include)
* in g2data/smarty/templates_c/%%669922609/%%91^913^913336E5%%theme.tpl.php at line 67 (gallerytemplateadapter::theme)
* in lib/smarty/Smarty.class.php at line 1251
* in modules/core/classes/GallerySmarty.class at line 90 (smarty::fetch)
* in modules/core/classes/GalleryTemplate.class at line 228 (gallerysmarty::fetch)
* in main.php at line 318 (gallerytemplate::display)
* in main.php at line 87
* in main.php at line 80

System Information
Gallery version 2.0.1
PHP version 4.3.0 apache
Webserver Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_ssl/2.8.12 OpenSSL/0.9.6b PHP/4.3.0
Database mysql 3.23.56-log
Toolkits SquareThumb, Gd
Operating system Linux isratrance.com 2.4.18-27.7.xsmp #1 SMP Mon Nov 15 06:55:13 IST 2004 i686
Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7

 
dj-3plet

Joined: 2005-03-12
Posts: 70
Posted: Thu, 2005-12-29 11:46

i'm attaching a new version that should take care of that problem and also work properly with G2.02.

**edit** uploaded even NEWER version! :)

 
dj-3plet

Joined: 2005-03-12
Posts: 70
Posted: Thu, 2005-12-29 11:57

ok, i'm a rock head. i'm having trouble replacing the file. here goes again...

 
psygarden

Joined: 2003-03-25
Posts: 128
Posted: Thu, 2005-12-29 17:17

It appears my problem was caused entirely by an error in ONE filename, where there was a captital that shouldn't be there, as roybot reported just a few messages above mine:

The file "itemlinks.tpl" in the ../siriuxmm/templates/ directory has the word "links" as a capital "L" instead of lower-case

I assume this is fixed in the new version of the theme!

now i can start customising the colors to fit my new design

thanks a lot for this theme, it's simplicity makes it very very interested for embedding into existing sites!

 
psygarden

Joined: 2003-03-25
Posts: 128
Posted: Thu, 2005-12-29 19:37

I have 2 customisation questions i hope you won't mind answering:

-how do i remove the logo at the top of the album index?

-How would i go about changing the position of the album title that is now right of each image? I would like to have it centered just below the album thumbnail

i hope this is the right place to ask!

 
dj-3plet

Joined: 2005-03-12
Posts: 70
Posted: Thu, 2005-12-29 23:58
psygarden wrote:
1) how do i remove the logo at the top of the album index?

2) How would i go about changing the position of the album title that is now right of each image? I would like to have it centered just below the album thumbnail

1) instructions are at the top of this thread

2) i don't know off hand. i'd have to play with it, but it would mean changing some stuff in theme.css and album.tpl. sorry, there's no quick answer for that and i might not even be able to figure it out. i'm not a css guru by any stretch of the imagination... :)

 
mat

Joined: 2002-09-25
Posts: 70
Posted: Wed, 2006-01-04 15:31

I just recently installed this theme.

Is there a way on the main album (main.php) to show 2 columns with the years? The one column thing is not working for me.

Please advise.

 
dj-3plet

Joined: 2005-03-12
Posts: 70
Posted: Wed, 2006-01-04 23:45

i'm not sure i understand the question. i think you just need to make the width wider. you can do that in site admin > themes.

 
mat

Joined: 2002-09-25
Posts: 70
Posted: Sat, 2006-01-07 14:59

That's not that I want.

I'd like the first main page to have the photos in two columns. I have my main category thumbs 200px wide. That should allow for 2 thumbs to be side by side by year... For ex:

2005 2004
2003 2002

But it's simply doing this:
2005
2004
2003
etc....

Is there a fix for this?

Also can you display the view count somewhere in this theme?

 
dj-3plet

Joined: 2005-03-12
Posts: 70
Posted: Sat, 2006-01-07 15:06

how about a link to your site so i can see what you're talking about?

 
mat

Joined: 2002-09-25
Posts: 70
Posted: Sat, 2006-01-07 15:24

http://tinyurl.com/9zq8m

Thanks so much for the quick reply!

 
dj-3plet

Joined: 2005-03-12
Posts: 70
Posted: Sun, 2006-01-08 02:45

your theme is currently matrix.

 
mat

Joined: 2002-09-25
Posts: 70
Posted: Sun, 2006-01-08 03:53

ok, try now

sorry about that

 
dj-3plet

Joined: 2005-03-12
Posts: 70
Posted: Sun, 2006-01-08 14:34

you're using the siriux theme, not my adaption of it. however, you could play with this in your css:

.gallery-album {
width: 46%; /* Change to 96% if you want 1 Album per line */
padding-right: 3%;
}

 
mat

Joined: 2002-09-25
Posts: 70
Posted: Sun, 2006-01-08 15:13

I acutally just set it up with your Minima Maxima theme. It works in two columns much better than the standard one!

My next question is how to get "Views" to show up under the pictures or somewhere?

Thanks!

 
dj-3plet

Joined: 2005-03-12
Posts: 70
Posted: Sun, 2006-01-08 19:48

i just played around with it. for some reason, i couldn't get hte item info block to work in albums that do not have children. i'll play around with it a bit more later.

also, you still have the standard siriux installed.

 
mat

Joined: 2002-09-25
Posts: 70
Posted: Sun, 2006-01-08 22:12
dj-3plet wrote:
also, you still have the standard siriux installed.

hmmm... check out the code... the siriuxmm.css is being called up... at least on my end...

i have taken some of the header out though...

 
bluemuppet

Joined: 2006-01-09
Posts: 3
Posted: Mon, 2006-01-09 06:04

hey, great theme, worked perfectly for my little project thankyou!

was wondering if there is a way to display the number of views uder each photo / album that i have missed?

 
bluemuppet

Joined: 2006-01-09
Posts: 3
Posted: Mon, 2006-01-09 06:04

. sorry double post .

 
rgoth

Joined: 2006-02-20
Posts: 7
Posted: Mon, 2006-02-20 20:37

Hi Gang,

I am extremely new to Gallery so sorry for the dumb question. I just installed Gallery 2.02. It had the Siriux theme included and I liked it. But I do not like how it changes the administration template. Can you make it so the world sees Siriux but when you log in you can use a different template? Thanks for your help.

 
dj-3plet

Joined: 2005-03-12
Posts: 70
Posted: Mon, 2006-02-20 23:28

i don't think there's a way to do that. i just sort of put up with it as a necessary evil.

 
rgoth

Joined: 2006-02-20
Posts: 7
Posted: Tue, 2006-02-21 18:53

I found it Boys...... To be honest I think that although the end product looks good the people who developed gallery were not looking for it to be programmer friendly to end developers. Nothing is intuitive… Any how now that you have heard my rant here is what I did to solve my problem…

open this file

gallery2\modules\core\classes\helpers\ GalleryItemHelper_simple.class

Look for this line in “function fetchThemeId($item)”
**********************************************************************
return array(GalleryStatus::success(), $themeId);
**********************************************************************
it is at the very end of the function right before the closing “}”

CHANGE TO
**********************************************************************
/* If user is admin use Matrix theme else use default Theme */
$ret = GalleryCoreApi::assertUserIsSiteAdministrator();
if ($ret->isError()) {
return array(GalleryStatus::success(), $themeId);
}

return array(GalleryStatus::success(), 'matrix');
**********************************************************************

your end code looks like this

**********************************************************************

function fetchThemeId($item) {
global $gallery;

/* Find the right theme for this item */
if (GalleryUtilities::isA($item, 'GalleryAlbumItem')) {
$themeId = $item->getTheme();
} else {
list ($ret, $parent) = GalleryCoreApi::loadEntitiesById($item->getParentId());
if ($ret->isError()) {
return array($ret->wrap(__FILE__, __LINE__), null);
}

$themeId = $parent->getTheme();
}

if (empty($themeId)) {
list ($ret, $themeId) =
GalleryCoreApi::getPluginParameter('module', 'core', 'default.theme');
if ($ret->isError()) {
return array($ret->wrap(__FILE__, __LINE__), null);
}
}

/* No default? We're screwed */
if (empty($themeId)) {
return array(GalleryStatus::error(ERROR_BAD_PARAMETER, __FILE__, __LINE__), null);
}

/* Make sure we have adequate permissions */
$ret = GalleryCoreApi::assertUserIsSiteAdministrator();
if ($ret->isError()) {
return array(GalleryStatus::success(), $themeId);
}

return array(GalleryStatus::success(), 'matrix');
}
*********************************************************************************

You can change “matrix” for any theme you would like. Just use all lower case. There now does any of that seem to be intuitive? What kind of a file/class name is “GalleryItemHelper_simple.class” and why would any one look there to change the theme. If you would have you are a far smarter person than I. Oh yeah this works with Gallerry 2.02 I assume it works with all other versions as well.

 
dj-3plet

Joined: 2005-03-12
Posts: 70
Posted: Wed, 2006-02-22 00:16

good job! thanks!

 
Malachite

Joined: 2006-02-26
Posts: 2
Posted: Sun, 2006-02-26 07:37

Hi, I was wondering if someone could help me? I am just setting up this site and for some weird reason on the mail gallery page I have a '2006' up at the top of the page under the heading 'Limehouse Pet Photos' and I can't figure out how to get rid of it. I've looked all through the options and can't find where it's getting that from (it only happens with the Siriux or Siriux Minima Maxima Themes) Thanks in advance! Michelle
Here is the page:
http://www.limehousevet.com/photogallery/main.php

 
dj-3plet

Joined: 2005-03-12
Posts: 70
Posted: Sun, 2006-02-26 12:56

in album.tpl, delete the following:

{* Year separator *}
{if $theme.params.groupByYear}
{capture name=year}{g->date format="%Y" timestamp=$child.originationTimestamp}{/capture}
{if $smarty.capture.year != $currentYear}
<h3 style="clear: both;">{$smarty.capture.year}</h3>
{assign var="currentYear" value=$smarty.capture.year}
{/if}
{/if}

 
Malachite

Joined: 2006-02-26
Posts: 2
Posted: Sun, 2006-02-26 18:35

Thanks! :)

 
clue

Joined: 2006-02-28
Posts: 3
Posted: Tue, 2006-02-28 03:24

Hi, I just installed the siriuxmm theme and love how it looks.

One question:
When looking at thumbnails, is it possible for pictures that have comments to somehow stand out? In the Matrix theme below each thumbnail it shows the date, views, comments, etc. Is there something like that for the Siriux theme?

Thanks for the help!

 
clue

Joined: 2006-02-28
Posts: 3
Posted: Tue, 2006-02-28 03:45

Sorry, one more question..

When looking at the members list, some usernames are in bold. Are these members currently online looking at the pictures?

Thanks!

 
dj-3plet

Joined: 2005-03-12
Posts: 70
Posted: Tue, 2006-02-28 10:26

sorry, but those are both siriux questions. i think the answer is no for both but those questions should be asked over on the customization forum.

for your 2nd question, i know that some lists i the admin section are every other line bolded - see maintenance tasks as an example.

 
clue

Joined: 2006-02-28
Posts: 3
Posted: Tue, 2006-02-28 21:57

thanks!

 
phatass

Joined: 2006-03-20
Posts: 4
Posted: Tue, 2006-03-21 04:52

I am using the same base template you used (siriux). What I can't figure out is how to put images into columns. I have seen threads on this but they don't really make sense with what I am doing. I tried modifieng your code but got the capital letter error everytime, when I fixed that the tumbnails went back into columns so I switched back to my original. Any help with geting them into 3 columns would be greatlly appreciated. Here is the link to my gallery if you want to look at it. http://www.phatasscycles.com/gallery/

Robby

 
dj-3plet

Joined: 2005-03-12
Posts: 70
Posted: Tue, 2006-03-21 10:31

it looks like your layout css is completely missing. look in theme.tpl and make sure your stylesheet link is good. this is what shows up when i view source (this is the entire head):

Quote:
<html>
<head>
<title>Phat Ass Gallery</title>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<script language="JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

//-->
</script>

<style type="text/css">
.content { width: 560px; }
.gallery-thumb { width: 180px; height: 180px; }
.gallery-album { height: 210px; }
</style>

</head>

 
phatass

Joined: 2006-03-20
Posts: 4
Posted: Wed, 2006-03-22 01:03

Okay, I got that to work and I greatlly appreciate it. Now the only thing I want to do is bring the gallery description from the bottom of the page to the top. Is that in the include file or other? Also, how would I go about moving it up? www.phatasscycles.com/gallery

Robby

 
dj-3plet

Joined: 2005-03-12
Posts: 70
Posted: Wed, 2006-03-22 01:42

looks like you got it working.

 
phatass

Joined: 2006-03-20
Posts: 4
Posted: Wed, 2006-03-22 04:52

Yeah, I don't really know this programing language so it's hit or miss. I appreciate you taking a look. I could use help lining up my album thumbnails with their title below them. Any insight as to where I should look in order to do this? I've tried moving things around in album.tpl as well as theme.css. I figure it is somewhere in the css file.

http://www.phatasscycles.com/gallery/

Robby

 
smsa

Joined: 2005-02-22
Posts: 6
Posted: Mon, 2006-04-17 19:03

Please update Sirux Minima Maxima for Gallery 2.1!

 
Benneton

Joined: 2007-01-29
Posts: 1
Posted: Mon, 2007-01-29 21:07

I had the siriuxmm theme working up until now. Today I upgraded to version 2.1 of Gallery the update went fine told me that some modules were not compatible and that I needed to fix this. After that no more warnings about incompatebility. Until I wanted to see my updated Gallery. Now I get this message:
Configuration Error: Missing Theme
Missing Theme

This album is configured to use the siriuxmm theme, but it is either inactive, not installed, or incompatible. To fix this problem you can install or activate this theme or select another default theme.

I went in to the site admin to select another theme, but infortunatly I cannot get the 'old' albums to change to this new theme.
Site admin on themes tells me this:
Siriux.net Gallery theme skinned with Minima Maxima header (siriuxMM)
Niet compatibele thema! (non compatible theme)
Core API Vereist: 6.5 (beschikbaar: 7.3) (core API needed 6.5 (available 7.3))
Thema API Vereist: 2.0 (beschikbaar: 2.3) (theme API needed 2.0 (available 2.3))

Is there someone who can get the siriuxmm theme to version 2.1 or help me getting my albums back in another theme.

Thank you all in advance for the support.

Bernard