siriux theme hack - updated items?

-fiscus-

Joined: 2004-06-08
Posts: 25
Posted: Tue, 2005-05-10 14:37

I am running the sirux theme fully intergrated into Wordpress.

I love how siruix is simple and clean, however I miss the feature if you update an album where it used to say UPDATED and then tagged the new photo's as new.

I tried having a look through the default matrix template/layout looking for references to the newitems module. I couldn't seem to come up with much.

I was just wondering if someone can point me in the right direction.

Basically I just want to pinch the code from the default matrix theme that lists and album/photo's as new/updated and then insert that into my sirux theme.

THanks.

 
drazin

Joined: 2002-11-23
Posts: 144
Posted: Tue, 2005-05-10 15:15

*seconded*

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2005-05-10 15:27

look for references to itemSummaries in matrix tpl..

 
-fiscus-

Joined: 2004-06-08
Posts: 25
Posted: Tue, 2005-05-10 23:25

Thanks that seemed to work!

 
IamNear

Joined: 2006-03-08
Posts: 57
Posted: Sat, 2006-03-18 14:45

I also miss this feature, what do I need to do to enable the "updated" module for sirux? For example http://siriux.net/photos/main.php

 
IamNear

Joined: 2006-03-08
Posts: 57
Posted: Mon, 2006-03-20 09:51

Furthermore, on the photo pages siriux.net has a cool left and right arrow image that hovers over the photo -- how can I enable this? Anyone know?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2006-03-20 16:31

that feature was just added to CVS.. it did not make it into 2.1-RC-2a, but it will be in 2.1 final. you can try it now with a current nightly snapshot.

 
IamNear

Joined: 2006-03-08
Posts: 57
Posted: Mon, 2006-03-20 16:38

Cool, can you provide the link to the CVS? Thanks.

 
nicokaiser

Joined: 2004-10-04
Posts: 118
Posted: Mon, 2006-03-20 17:07

This is a patch (against current G2.1 CVS version) to make the theme display the "updated" or "new" tags like on
http://siriux.net/photos/

Unfortunately I don't have a clean G2.1 CVS version running so I couldn't test it...

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2006-03-20 21:22

thanks Nico, I've added this in CVS (though I just used an {if} instead of foreach+if)

IamNear, click "download" above and you'll find info about CVS and nightly snapshots. Get tomorrow's nightly snapshot to get both newitems support and the nav arrows.

 
IamNear

Joined: 2006-03-08
Posts: 57
Posted: Wed, 2006-03-22 13:06

This patch works a charm, mindless please could you also add to the CVS updated/new to idividual items on the album page. The following code just needs to be added after the last </a> on the album.tpl page.

Quote:
{foreach from=$child.itemSummaries key=name item=summary}
{if ($name == newitems)}<span class="summary-{$name} summary">{$summary}</span>{/if}
{/foreach}

Thanks.

 
pauschpageDOTcom

Joined: 2004-03-20
Posts: 118
Posted: Wed, 2006-03-22 14:04

Short question. Id like to put the text: date, counter and "upadted" images under the thumbnail pictures of the albums and photos.
I know, that i have to put this "showDate=true showOwner=$showOwner showSize=true showViewCount=true showSummaries=true

 
fleas17

Joined: 2006-03-01
Posts: 11
Posted: Wed, 2006-03-22 21:58

I've updated to the very latest in CVS and I don't see these updates at all?

Also, if we manually update to Siriux 1.0.5, it prevents the CVS from being able to update (during the upgrade process the Gallery Updater chokes on the version of the Siriux files). Will the latest Siriux make it into CVS soon?

 
nicokaiser

Joined: 2004-10-04
Posts: 118
Posted: Wed, 2006-03-22 22:41

The current version in CVS is newer than the newest released "contrib" version (1.0.5). So try to revert to the CVS version and you're up to date.

 
fleas17

Joined: 2006-03-01
Posts: 11
Posted: Thu, 2006-03-23 14:28

OK, I removed by siriux directory and then updated from CVS. It created a new siriux directory, and sure enough, it is 1.0.5. But, I do not see the arrows on the photos when I hover on a clicked one. Shouldn't I?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2006-03-23 17:16

fleas17, yes current CVS has that feature.. though we are currently waiting on sourceforge to fix bad locks in CVS.
IamNear, siriux doesn't display any text with image thumbnails.. I'll leave it up to Nico if he wants new/updated displayed for individual photos (or maybe a theme option for this).

 
IamNear

Joined: 2006-03-08
Posts: 57
Posted: Fri, 2006-03-24 11:56

I just updated to Gallery 2.1 (Blackjack)... am I the only one unhappy with the new siriux theme? In my opinion the new CSCS is just plain horrible -- underlined hyperlinks, item action taking up the whole page... is there anyway to downgrade or revert to the original?

 
nicokaiser

Joined: 2004-10-04
Posts: 118
Posted: Sat, 2006-03-25 00:37

You are always free to change the CSS ;-)
The old CSS is still in CVS so you can easily revert these changes.

 
pauschpageDOTcom

Joined: 2004-03-20
Posts: 118
Posted: Sat, 2006-03-25 20:47

In my version it works - with new and updated items.
Can anybody tell me, what do I have to add if I like to have a counter under the images and albums?

please!

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sat, 2006-03-25 22:54

look at how matrix and other themes use core.ItemInfo block

 
pauschpageDOTcom

Joined: 2004-03-20
Posts: 118
Posted: Sun, 2006-03-26 08:50

okay...

when I add (in album.tpl)

Quote:
{foreach}
{g->block type="core.ItemInfo"
item=$child
showDate=true
showOwner=$showOwner
showSize=true
showViewCount=true
showSummaries=true
class="giInfo"}
</div>
{/foreach}

after the last </a>, Then i get the error "Fatal error: Smarty error: [in gallery:themes/siriux/templates/album.tpl line 1]: syntax error: foreach: missing 'from' attribute (Smarty_Compiler.class.php, line 1149) in /home/XXXX/html/gallery/lib/smarty/Smarty.class.php on line 1088"

Edit:
I also tried...

Quote:
{if ($child.viewCount > 0)}
{g->text text="%d Angesehen" arg2=$child.viewCount}
{/if}

What do I have to change?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2006-03-26 16:53

you don't need to add a foreach, it's already there in album.tpl. either one of those should work if you put it in the right place.. probably inside the second <div class="gallery-thumb">

 
pauschpageDOTcom

Joined: 2004-03-20
Posts: 118
Posted: Sun, 2006-03-26 17:24

incredible... now it works with...

Quote:
{if ($child.viewCount > 0)}
{g->text text="%d Angesehen" arg1=$child.viewCount}
{/if}

Last question... What do i have to add - if I like to show it with class "Counter"?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2006-03-26 21:06

you can add any html you like.. just put <span class="Counter"> before the g->text and </span> after.

 
rillest

Joined: 2003-10-20
Posts: 14
Posted: Fri, 2006-04-28 13:08

Hi,
I have a customized theme based on the latest siriux. I copied this code snippet:

{if isset($child.itemSummaries.newitems.new)}
           <span class="summary-newitems summary">{$child.itemSummaries.newitems}</span>
          {/if}

from the albums.tpl to the photo.tpl to show summaries next to the thumbnails.. however I would like to ONLY show "new" and NOT "updated" on the photo page, can this be done?
Regards
rILLEST

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2006-04-28 14:44

doesn't site admin / newitems have separate entries for new/updated? try updated=0

 
rillest

Joined: 2003-10-20
Posts: 14
Posted: Wed, 2006-05-03 08:22

Sorry mindless, I didn't describe my needs correctly... If you choose updated=0 then updated won't show at all.. I would like to show the "updated" text only on the root albums page and the "new" text only on the album's thumbnail page. So that when I add new items to an album it will display the "updated" text on the root albums page and then when entering the album it will display the "new" text next to the newly added item (thumbnail). Is it possible to access "new" and "updated" individually in $child.itemSummaries.newitems ..something like this: $child.itemSummaries.newitems.new and $child.itemSummaries.newitems.updated ?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2006-05-03 18:40

not sure how that differs from the normal behavior.
maybe you can use css to accomplish what you want.. set display:none for the css when you don't want something to show.

 
JohnnyC

Joined: 2006-08-22
Posts: 22
Posted: Wed, 2006-08-23 05:24

Hey guys. Check out my post regarding Siruix and non-image files: http://gallery.menalto.com/node/53443
Any ideas?