I am trying to add image frame support to the siriux theme. I was wondering if anybody has done that or had any luck. Also if anybody could suggest a theme like it that is simple. Let me know. Thanks
but it would be better if someone who knew siriux did the changes, since you probably need to change the matrix code a little to work in siriux.
tetonedge
Joined: 2005-09-17
Posts: 9
Posted: Sun, 2005-09-18 02:14
i am doing that right now, but it seems from the code, most of his custimization comes from CSS as the tpl files are different from the matrix.
valiant
Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-09-18 02:28
first change theme.inc, then reinstall (not just activate/deactivate. do uninstall etc.) the theme.
then you should see image frame options in site admin -> themes -> siriux.
and the css will be included in your pages automatically once you did the two changes i mentioned above.
Jayh
Joined: 2006-02-21
Posts: 21
Posted: Fri, 2006-03-10 00:39
tetonedge: was that working?
valiant: I know very little PHP...what to do with that "$this->setStandardSettings("? Is it enough just to add "'albumFrame' => '', 'itemFrame' => '', 'photoFrame' => '',"? And where to insert all those "{if $child.canContainChildren}............" things? There are two {if $child.canContainChildren} in album.tpl
mindless
Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2007-08-07 22:44
Here are diffs from current svn to change siriux to use imageframe...
Thanks, mindless!
In fact this change is for the gallery of the my girlfriend's website. She uses siriux and has asked me, why she can not change the image frames around the thumbnails and I began to modify the code. Hope this will work fine and she will be happy soon.
I will try this today and I will post the result and my comments later.
- - -
See my Gallery2 at: http://dichev.com/gallery/
dichev
Joined: 2007-05-25
Posts: 15
Posted: Wed, 2007-08-08 14:43
Cheers, mindless!
Your great help rocks...
Perfect explained and works fine from the first attempt to modify the code! The only thing, that I had to make, was to deactivate and uninstall siriux theme and install it and activate it again.
Many thanks for the time you have spent!
The result is siriux theme with image frames configurable from the template admin: http://velina.info/gallery/
Thanks again for the help and good luck everybody!
I have a little problem now. I have lost the static URLs to the photos. Gallery shows static URLs only for the albums and dynamic URLs for all photo-pages even in the gallery root album.
What have to change to fix this?
Sorry, that I am asking so many questions. I think after few more answers I will be more advanced with gallery and will stop boring you so much.
The code above is for G2.2.x.
For G2.1.x, change: {g->url params=$theme.pageUrl arg1="itemId=`$child.id`"}
to {g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}
dichev
Joined: 2007-05-25
Posts: 15
Posted: Mon, 2007-09-10 11:05
Sorry for the delay in my answer. Static URLs are working now.
It was my mistake, I have forgotten to tell you the Gallery version.
Big thanks, mindless!
- - -
See my Gallery2 at: http://dichev.com/gallery/
WebKat
Joined: 2002-11-22
Posts: 182
Posted: Mon, 2009-12-28 21:03
mindless: I feel dumb, but I can't figure out how to do anything with the code here. I tried and broke it. Heh. Is it asking too much to ask if someone can make the change (allow custom frame choice in Siriux theme) and send me the modified file(s)? Pretty please?
Hey opalcat, what version of G2 are you using or testing out?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 32509
hybrid, classic and matrix have frames. the other themes don't have them. you need to change theme.inc
see:
$this->setStandardSettings(
and in album.tpl
you have to replace the normal code with
to the right place (compare two themes)
but it would be better if someone who knew siriux did the changes, since you probably need to change the matrix code a little to work in siriux.
Posts: 9
i am doing that right now, but it seems from the code, most of his custimization comes from CSS as the tpl files are different from the matrix.
Posts: 32509
first change theme.inc, then reinstall (not just activate/deactivate. do uninstall etc.) the theme.
then you should see image frame options in site admin -> themes -> siriux.
and the css will be included in your pages automatically once you did the two changes i mentioned above.
Posts: 21
tetonedge: was that working?
valiant: I know very little PHP...what to do with that "$this->setStandardSettings("? Is it enough just to add "'albumFrame' => '', 'itemFrame' => '', 'photoFrame' => '',"? And where to insert all those "{if $child.canContainChildren}............" things? There are two {if $child.canContainChildren} in album.tpl
Posts: 8601
Here are diffs from current svn to change siriux to use imageframe...
Posts: 15
Thanks, mindless!
In fact this change is for the gallery of the my girlfriend's website. She uses siriux and has asked me, why she can not change the image frames around the thumbnails and I began to modify the code. Hope this will work fine and she will be happy soon.
I will try this today and I will post the result and my comments later.
- - -
See my Gallery2 at: http://dichev.com/gallery/
Posts: 15
Cheers, mindless!
Your great help rocks...
Perfect explained and works fine from the first attempt to modify the code! The only thing, that I had to make, was to deactivate and uninstall siriux theme and install it and activate it again.
Many thanks for the time you have spent!
The result is siriux theme with image frames configurable from the template admin:
http://velina.info/gallery/
Thanks again for the help and good luck everybody!
- - -
See my Gallery2 at: http://dichev.com/gallery/
Posts: 15
I have a little problem now. I have lost the static URLs to the photos. Gallery shows static URLs only for the albums and dynamic URLs for all photo-pages even in the gallery root album.
What have to change to fix this?
Sorry, that I am asking so many questions. I think after few more answers I will be more advanced with gallery and will stop boring you so much.
Thanks for your support in advance!
Edit: I have forgotten to post the location of the gallery: http://velina.info/gallery/
- - -
See my Gallery2 at: http://dichev.com/gallery/
Posts: 8601
The code above is for G2.2.x.
For G2.1.x, change:
{g->url params=$theme.pageUrl arg1="itemId=`$child.id`"}
to
{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}
Posts: 15
Sorry for the delay in my answer. Static URLs are working now.
It was my mistake, I have forgotten to tell you the Gallery version.
Big thanks, mindless!
- - -
See my Gallery2 at: http://dichev.com/gallery/
Posts: 182
mindless: I feel dumb, but I can't figure out how to do anything with the code here. I tried and broke it. Heh. Is it asking too much to ask if someone can make the change (allow custom frame choice in Siriux theme) and send me the modified file(s)? Pretty please?
>^,,^<
http://opalcat.com
Posts: 16504
Hey opalcat, what version of G2 are you using or testing out?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 182
The most recent one. 2.3.1.
>^,,^<
http://opalcat.com