add "preview"

bigu_c
bigu_c's picture

Joined: 2007-10-28
Posts: 421
Posted: Sat, 2009-09-12 13:15

http://g2-sites.com/gallery/color-pack1/20060506_000.jpg.html

I see this feature: (from NZDI theme)

Color Pack - NZDI Light Grey - Preview

Is this easy to add this feature to CARBON theme?

Thanks!

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sat, 2009-09-12 16:42

You'd have to look at and dig into the NZDI theme to see how they do it and massage that code to work with Carbon. Since Carbon loads the thumbs into the photo page just like that does, I don't see why it wouldn't be possible.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
bigu_c
bigu_c's picture

Joined: 2007-10-28
Posts: 421
Posted: Sat, 2009-09-12 16:51

Sorry, what do you mean?

Is this feature cannot apply to Carbon theme?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sat, 2009-09-12 17:06

No, I think it can be. But I don't have time to dig into the code, you'll need to do that yourself. I think because Carbon, just like NZDI already loads the thumbs into into the photo page it should be "easy" if you know HTML a bit of CSS and maybe some PHP/Smarty for the templating. But for some of that you can probably copy and paste from the NZDI theme.

Granted I've not looked at the code for either one of those themes :)
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
bigu_c
bigu_c's picture

Joined: 2007-10-28
Posts: 421
Posted: Sat, 2009-09-12 17:21

I know some HTML and CSS, but today I tried copy / paste from NDZI to Carbon (in photo.tpl) but failed

:(

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sat, 2009-09-12 17:46

I have a feeling variable names and some other stuff isn't going to line up just right.

If you have a few days maybe a week or so, I can probably dig into it at some point.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
bigu_c
bigu_c's picture

Joined: 2007-10-28
Posts: 421
Posted: Sat, 2009-09-12 17:55

I can wait and I hope in near day you can help me to do this.

Thank you!

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sat, 2009-09-12 18:02

Your other options would be to modify NDZI to look (color wise) more like Carbon.

Also take a look at this site where you can demo all kinds of themes:
http://themes.gallery2.hu/index.php
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
bigu_c
bigu_c's picture

Joined: 2007-10-28
Posts: 421
Posted: Sat, 2009-09-12 18:22

(First, sorry for my English)

You can check this link:

http://g2-sites.com/gallery/color-pack1/20060506_000.jpg.html

I like this part on that site:

[img]http://img12.imageshack.us/img12/8900/42049517.jpg[/img]

I want to apply this part to CARBON theme.

If this is easy you can help me to do.

If this is too hard. I will do it by my hand in future when I can learn more about PHP, MySQL, Smarty, HTM and CSS (sorry currently I don't have enough money to go to school).

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sat, 2009-09-12 18:25

No need to go to school for this stuff :) Google is a great resource. Asking questions, trying, reading books and hitting google is how I've learned most of my knowledge, though yes, I did go to school for some stuff.

I an in no way an expert in PHP, MySQL, HTML, CSS, etc Smarty isn't something you'd go to school for anyway. It's just a templating engine that's used in G2. G3 will be much easier to customize as long as you know HTML and CSS. And in the future more graphical stuff may happen to make it even easier for the non-tech person.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2009-09-12 21:33

I don't have time to do the css and formatting for you but if you take:

        <fieldset id="micro-navigation-wrapper" class="gcBorder2">
        <legend class="gcBackground2 gcBorder2">
        <a href="{g->url params=$theme.pageUrl arg1="itemId=`$theme.parent.id`"}">{$theme.parent.title|markup }</a>
        {g->text text=" - Preview"}</legend>
        <div id="micro-navigation">
          {assign var="lastIndex" value=0}
          {assign var="columnIndex" value=0}
            {foreach from=$data.peers item=peer}
              {assign var="title" value=$peer.title|default:$peer.pathComponent}
              {if ($peer.peerIndex == $data.thisPeerIndex)&& !empty($peer.thumbnail)}
                  <span id="current-image">{g->image item=$peer image=$peer.thumbnail maxSize=$theme.params.sizeThumbnails title="$title"}</span>
              {else}
                  {if !empty($peer.thumbnail)}
                  <a href="{g->url params=$theme.pageUrl arg1="itemId=`$peer.id`"}">
                   {g->image item=$peer image=$peer.thumbnail maxSize=$theme.params.sizeThumbnails title="$title"}
                  </a>
                  {/if}
              {/if}
              {assign var="lastIndex" value=$peer.peerIndex}
            {/foreach}
        </div></fieldset>

and place that at the bottom of photo.tpl it should get you started.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sat, 2009-09-12 23:01

Thanks Dave
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
bigu_c
bigu_c's picture

Joined: 2007-10-28
Posts: 421
Posted: Mon, 2009-09-14 11:01

Hi Dave,

I added your code to photo.tpl but don't see any thumbnail.

I tried to change:

{assign var="lastIndex" value=10}
{assign var="columnIndex" value=10}

But thumbnails still doesn't show.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2009-09-14 13:36

Works for me on the matrix theme. Try that first. Clear cache?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
bigu_c
bigu_c's picture

Joined: 2007-10-28
Posts: 421
Posted: Mon, 2009-09-14 14:13

I'm using Carbon theme, deleted template and database cache too but still doesn't show.

http://www.car-pictures.us/audi/a5/Audi_A5_Sportback_01.jpg.html

Thanks!

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2009-09-14 23:30

Make it work in the matrix theme first .

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
bigu_c
bigu_c's picture

Joined: 2007-10-28
Posts: 421
Posted: Tue, 2009-09-15 08:37

I added that code to my photo.tpl on Matrix theme but got same result.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2009-09-15 14:36

Seems to work for me I don't know waht you are doing wrong.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team