PG theme

Blind Pew

Joined: 2005-10-18
Posts: 3
Posted: Tue, 2005-10-18 07:36

Is there anything in the PGTheme that might be influencing the colors of the scrollbars for Internet Explorer? I have Gallery2 embedded in my Mambo site, and when I look at it in Internet Explorer the scrollbars take on some grey colors. I want them to be the default colors.

In my non-embedded Gallery2 the scrollbars are fine, so I checked how the other Gallery2 themes would act in the embedded version and they are fine. This leads me to think that something is happening only with the PGTheme.

I did a complete check of the code in Dreamweaver and could not find any scrollbar css. Does anyone have ideas how to solve this?

Other than this, the PGTheme works beautifully in my website.

 
pgilbert

Joined: 2005-03-28
Posts: 157
Posted: Tue, 2005-10-18 09:15

LFrank,

I made some changes:

Quote:
{g->callback type="comment.LoadComments" itemId=$child.id show=$show}
{assign var="SelectId" value=$child}
<a href="javascript:void(0)"
onmouseout= "blockICpic{$child.id}.src='{g->url href='themes/PGtheme/images/'}comments.gif'" onclick="ShowLayer('blockIC{$child.id}','visible')"
onmouseover= "blockICpic{$child.id}.src='{g->url href='themes/PGtheme/images/'}commentson.gif';ShowLayer('blockIC{$child.id}','hidden') ">
<img id="blockICpic{$child.id}" src="{g->url href='themes/PGtheme/images/'}comments.gif" alt="Photo Comments" longdesc="Show Photo Comments" />
</a>

Quote:
{foreach from=$theme.children item=child}
<div id="blockIC{$child.id}" style="position: absolute; left:{$theme.params.sidebarL+140}px; top: {$theme.params.sidebarT+20}px;
z-index: 10; visibility: hidden; filter: alpha(opacity=93); -moz-opacity: 0.93; opacity: 0.93;">
<div id="blocksICIn{$child.id}" style="position: relative; left: 0px; top: 0px;
z-index: 10; filter: alpha(opacity=100); -moz-opacity: 1; opacity: 1;" class="gcBackground1 gcBorder2">
{if !empty ($theme.params.OtherBlocks) }
{* Show comments blocks *}

{g->block type="comment.ViewComments" item=$SelectId }
<table>
<tr>
<td style="text-align: right">
{if empty($theme.params.colorpack)}
<a onclick="MM_showHideLayers('blockIC{$child.id}','','hide')" onmouseover="MM_showHideLayers('blockIC{$child.id}','','hide')" title="Close">
<img src="{g->url href='themes/PGtheme/images/'}close.gif" alt="close"/></a>
{else}
<a onclick="MM_showHideLayers('blockIC{$child.id}','','hide')" onmouseover="MM_showHideLayers('blockIC{$child.id}','','hide')" title="Close">
<img src="{g->url href='modules/colorpack/packs/'}{$theme.params.colorpack}/images/close.gif" alt="close"/></a>
{/if}
</td>
</tr>
</table>
{/if}
</div>
<br/>
</div>
{/foreach}

But it shows allways the 1st child comment...

I realy don't know how to solve this, i'm thinking on giving up from that feature, and, as you have on your site, have links on album top navigation to comment the album, and no comments to childs, and have comments to photos only on photo.tpl
http://pedrogilberto.net/gallery2/theme.html
http://pedrogilberto.net/gallery2/

 
pgilbert

Joined: 2005-03-28
Posts: 157
Posted: Tue, 2005-10-18 09:18

Blind Pew,

At the top of "theme.js" you should change or delete this:

Quote:
if (ie && window.attachEvent) {
window.attachEvent('onload', function () {
var scrollBorderColor ='#888888';
var scrollfaceColor ='#aaaaaa';
with (document.body.style) {
scrollbarDarkShadowColor =scrollBorderColor;
scrollbar3dLightColor =scrollBorderColor;
scrollbarArrowColor ='#666666';
scrollbarBaseColor =scrollfaceColor;
scrollbarfaceColor =scrollfaceColor;
scrollbarHighlightColor =scrollfaceColor;
scrollbarShadowColor =scrollfaceColor;
scrollbarTrackColor ='#aaaaaa';
}
});
}

http://pedrogilberto.net/gallery2/theme.html
http://pedrogilberto.net/gallery2/

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Tue, 2005-10-18 09:32

Pedro, I'm fighting with the same ... only I only get always the last comment of an item.
I've just opened another thread (not to spoil this thread here) at http://gallery.menalto.com/node/38597.
I'm thinking on preloading individual popups and separately storing the different child.id's in an array like CommentNumber[x].

Perhaps somebody else has an idea too.

 
pgilbert

Joined: 2005-03-28
Posts: 157
Posted: Tue, 2005-10-18 11:09

LFrank, it's working...

Quote:
{if isset ($theme.permissions.comment_view)}{* comments view *}
{if !empty ($theme.params.OtherBlocksBtn)}
<td>
{g->callback type="comment.LoadComments" itemId=$child.id show=$show}
{if empty($item)} {assign var=item value=$child} {/if}

{if !empty($block.comment.LoadComments.comments)}
<a href="javascript:void(0)"
onmouseout= "blockICpic{$child.id}.src='{g->url href='themes/PGtheme/images/'}comments.gif'" onclick="ShowLayer('blockIC{$child.id}','visible')"
onmouseover= "blockICpic{$child.id}.src='{g->url href='themes/PGtheme/images/'}commentson.gif';ShowLayer('blockIC{$child.id}','hidden') ">
<img id="blockICpic{$child.id}" src="{g->url href='themes/PGtheme/images/'}comments.gif" alt="Photo Comments" longdesc="Show Photo Comments" class="navactions"/>
</a>
{/if}

<div id="blockIC{$child.id}" style="position: absolute; left:{$theme.params.sidebarL+140}px; top: {$theme.params.sidebarT+20}px; width:250px;
z-index: 10; visibility: hidden; filter: alpha(opacity=93); -moz-opacity: 0.93; opacity: 0.93;">
<div id="blocksICIn{$child.id}" style="position: relative; left: 0px; top: 0px;
z-index: 10; filter: alpha(opacity=100); -moz-opacity: 1; opacity: 1;" class="gcBackground1 gcBorder2">
{if !empty ($theme.params.OtherBlocks) }
{* Show comments blocks *}

{g->block type="comment.ViewComments" item=$child }
<table>
<tr>
<td style="text-align: right">
{if empty($theme.params.colorpack)}
<a onclick="MM_showHideLayers('blockIC{$child.id}','','hide')" onmouseover="MM_showHideLayers('blockIC{$child.id}','','hide')" title="Close">
<img src="{g->url href='themes/PGtheme/images/'}close.gif" alt="close"/></a>
{else}
<a onclick="MM_showHideLayers('blockIC{$child.id}','','hide')" onmouseover="MM_showHideLayers('blockIC{$child.id}','','hide')" title="Close">
<img src="{g->url href='modules/colorpack/packs/'}{$theme.params.colorpack}/images/close.gif" alt="close"/></a>
{/if}
</td>
</tr>
</table>
{/if}
</div>
<br/>
</div>

</td>

{/if}
{/if} {* comments view *}

http://pedrogilberto.net/gallery2/theme.html
http://pedrogilberto.net/gallery2/

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Tue, 2005-10-18 11:23

Wow... perfect. Great - I'm speechless

It really was "only" these little differences to the original code? Looks like - yeah...
I need to go home to my machine - but still have some meetings to finish here, ... sigh

 
pjfenneran
pjfenneran's picture

Joined: 2005-09-23
Posts: 7
Posted: Tue, 2005-10-18 12:54

So now that this issue is resolved with the comments can a V5 come out with the updated code?

Patrick

 
mincel
mincel's picture

Joined: 2005-10-14
Posts: 134
Posted: Tue, 2005-10-18 16:37

Hi,
I have been working around adding watermark to full size images in popup window.

Quote:
onclick="window.open('{g->url arg1="view=core.DownloadItem" arg2="itemId=`$theme.item.id`"}','viewWindow', 'width=screen.width,height={$theme.sourceImage.height+30}px, resizable=yes,scrollbars=yes');"

instead of core.DownloadItem i tried to use core.ShowItem but it just showed the whole page instead of the picture.
Is there a way to do that?

http://gallery.mincel.com

 
g5

Joined: 2005-02-03
Posts: 18
Posted: Tue, 2005-10-18 16:41

I must say, i am blown away by this theme..... It is quite shhhweeeet....

I have a few questions that i am sure someone can point me in the right direction on:

1 - I can't seem to access my albums / sub - albums from the admin side anymore? I did at first, however in testing settings/features, it's as if this ability has dissappeared? Any suggestions?

2 - I seem to have lost the ability to navigate from an item page? Previously i had the "first - back - next - last options at the bottom of the image, however now they are gone? I know it is a setting, but i have yet to find it and return it back to normal.

Whether or not it's relevant, i have g2 embedded in Joomla. running PGtheme_V1.0RC4.zip.

Cheers,

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Tue, 2005-10-18 16:56

Pedro, super - have implemented everything now on my site. Works perfect.
Perhaps you'll find my ideas regarding the album- and first page comments and how I split the EXIF and Comments completely on my site usefull ;)
Thanks, Lutz

 
jt_sea

Joined: 2005-07-22
Posts: 7
Posted: Tue, 2005-10-18 17:09

First off, love this theme! Not quite certain how the MicroThumbs - (peerWindowSize) Micro Thumbs diplayed plus first and last functions. Can someone explain this to me?

Regards,
JT

 
nicheplayer

Joined: 2005-08-03
Posts: 35
Posted: Tue, 2005-10-18 18:44

Ugh. I've been looking all over for information on how to remove the badges (icons, whatever) in the footer (unpossible, wc3 XHTML 1.0, etc.). I backed up and modified my footer.tpl, but the changes I made caused it to go away completely. Clearly I was working in the wrong file.... TIA!

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Tue, 2005-10-18 19:33

nicheplayer, no - you were on the right track ;)
those are displayed by

<td nowrap="nowrap">
      <div>
        <div style="position:relative; float:left">
          {g->logoButton type="validation"}
          {g->logoButton type="gallery2"}
          {g->logoButton type="gallery2-version"}
          {g->logoButton type="donate"}

Simply comment out those you don't want... or delete the line completely

<td nowrap="nowrap">
      <div>
        <div style="position:relative; float:left">
          {* g->logoButton type="validation" *}
          {g->logoButton type="gallery2"}
          {g->logoButton type="gallery2-version"}
          {g->logoButton type="donate"}

Gallery version = 2.0+ core 1.0.3
PHP version = 5.1.0RC1 apache2handler
Webserver = Apache/2.0.54 (Win32) DAV/2 mod_ssl/2.0.54 OpenSSL/0.9.7g PHP/5.1.0RC1
Database = mysql 5.0.11-beta-nt-log
Gallery-URL = https://lf-photodesign.de

 
tomcat76
tomcat76's picture

Joined: 2003-04-22
Posts: 133
Posted: Tue, 2005-10-18 20:20

Just upgraded to RC4
First spotted the popup window for full size image is still oversized...

I also have one movie file, now not sure if this a a fault of the PGtheme or g2 but on the thumbnails it says [Render error: missing entity]

I have lots of shopping baskets as well... which clicking on produced:-
Error (ERROR_PERMISSION_DENIED) :

* GalleryController.class at line 153 (gallerystatus::error)
* g2\main.php at line 165 (gallerycontroller::loadcontroller)
* g2\main.php at line 87
* g2\main.php at line 80

Gallery version = 2.0 core 1.0.0
PHP version = 4.3.11 apache2handler
Webserver = Apache/2.0.54 (Win32) PHP/4.3.11
Database = mysql 4.1.12a-nt
Toolkits = Exif, ImageMagick, NetPBM, SquareThumb
Operating system = Windows NT STEVE 5.1 build 2600
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7

Regards Steve

 
victrola

Joined: 2005-10-18
Posts: 7
Posted: Tue, 2005-10-18 23:01

I swear to heck that I am not new to this stuff, but never-the-less, I am still lost on something so simple that it's driving me crazy.

I really love this theme, but I have two things, simple one first:

I don't like the Site ID in my Status Bar in IE. What file is that in, and what part of the code do I remove?

Two, and this one is probably a lot more complicated, and maybe I should even take it to another thread, but the entire Cart feature just needs to go. I wouldn't mind it if I could get it to DO something, but as it is, I can add things to cart, but once they are there, I have no options to do anything with them (except Empty Cart... very productive). So, rather than mess around with that feature when I don't really want it anyway, I'd like to eradicate it completely. I want every link to the Cart out of my sidebar. How do I edit the Item Actions to remove all traces of it?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2005-10-19 00:05

victrola, deactivate cart module in Site Admin / Modules.
maybe look for <title> in templates/theme.tpl ?

 
Fjelsten

Joined: 2005-10-15
Posts: 66
Posted: Wed, 2005-10-19 11:16

I have already done this but I still get the "Add to cart" buttons.

 
moobrien

Joined: 2005-10-19
Posts: 1
Posted: Wed, 2005-10-19 11:45

My modules don't seem to show up, it's a real pain in the ass. Well I mean the new modules from PGTheme. Everything else seems to work, but they won't show up in Site Admin - Modules.

Frame,Colorpack and that other one that's added. I'll give you all the "before I ask for help" information once I can fix my gallery because it won't let me login now. Just wondering if the module thing is a FAQ or something.

 
archshrk
archshrk's picture

Joined: 2005-04-29
Posts: 45
Posted: Wed, 2005-10-19 14:51

What went wrong?
I widened my Wordpress Theme to gain more real estate but for some reason, PG Theme got too wide in FF but not in IE. Everything was fine for both before my changes. Is there some condition statement that affects this within PG Theme?
www.archshrk.com/wp-gallery2.php embedded
www.archshrk.com/gallery2 stand alone

 
g5

Joined: 2005-02-03
Posts: 18
Posted: Wed, 2005-10-19 16:01
victrola wrote:
Two, and this one is probably a lot more complicated, and maybe I should even take it to another thread, but the entire Cart feature just needs to go. I wouldn't mind it if I could get it to DO something, but as it is, I can add things to cart, but once they are there, I have no options to do anything with them (except Empty Cart... very productive). So, rather than mess around with that feature when I don't really want it anyway, I'd like to eradicate it completely. I want every link to the Cart out of my sidebar. How do I edit the Item Actions to remove all traces of it?

I too have this problem. I do not want a cart on my site as it is a family site.... Thing is, i have never installed the cart module? I can get rid of the "Add to Cart" link under the albums/photos/items simply by simply unchecking " Items - Show Actions" from the PGTheme options, however doing this then disables my ability to edit any of the albums/photos/items as the Actions dropdown no longer appears also?? How does one retain one without the other??

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Wed, 2005-10-19 17:00

Pedro,
I've added the functionality to move around all "pop-up's" (EXIF, Comments, Sidebar) by dragging them over the window.
You can test it on my site. Added only a

<div id="blocks" style="position: absolute; left:{$theme.params.sidebarL+80}px; top:{$theme.params.sidebarT+60}px;
    z-index: 5; visibility: hidden; filter: alpha(opacity=93); -moz-opacity: 0.93; opacity: 0.93;">
    <div id="blocksIn" style="position: relative; left: 0px; top: 0px;  
        z-index: 5; filter: alpha(opacity=100); -moz-opacity: 1; opacity: 1;" 
          onmousedown="dragStart(event, 'blocks')"  class="gcBackground1 gcBorder2">

to the layers and some code to the theme.js.
Fits perfectly into your theme (I'm sending the scripts via PM)

CU
Lutz

Gallery version = 2.0+ core 1.0.3
PHP version = 5.1.0RC1 apache2handler
Webserver = Apache/2.0.54 (Win32) DAV/2 mod_ssl/2.0.54 OpenSSL/0.9.7g PHP/5.1.0RC1
Database = mysql 5.0.11-beta-nt-log
Gallery-URL = https://lf-photodesign.de

 
mincel
mincel's picture

Joined: 2005-10-14
Posts: 134
Posted: Wed, 2005-10-19 17:03

Hi,
There is security related issue. Even if i remove "view original version" permission, "full size photo POPUP navigation icon" is displayed in the photo page.
I am not sure but

Quote:
{if !empty($theme.sourceImage)}

check is missing

http://gallery.mincel.com

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Wed, 2005-10-19 17:12

mincel, true - but the full size isn't displayed - you'll get an error. There is already an option in the theme admin to disable the FullSize if I remember correctly

Gallery version = 2.0+ core 1.0.3
PHP version = 5.1.0RC1 apache2handler
Webserver = Apache/2.0.54 (Win32) DAV/2 mod_ssl/2.0.54 OpenSSL/0.9.7g PHP/5.1.0RC1
Database = mysql 5.0.11-beta-nt-log
Gallery-URL = https://lf-photodesign.de

 
victrola

Joined: 2005-10-18
Posts: 7
Posted: Wed, 2005-10-19 17:53
mindless wrote:
victrola, deactivate cart module in Site Admin / Modules.
maybe look for <title> in templates/theme.tpl ?

The cart things still show up, as another person has posted, even with the Cart module deactivated.

Also, I tried removing the <title> information from theme.tpl but there was no change in the Status Bar.

 
mincel
mincel's picture

Joined: 2005-10-14
Posts: 134
Posted: Wed, 2005-10-19 18:19

Hi,
Thank you for quick response Frank, yes you are right, full size isn't displayed. Theme admin has an option to disable that icon, but i want some users to access to full size images. In my opinion icon shouldn't be displayed, if a user has no permissions. Displaying error message to users is not good I think.

http://gallery.mincel.com

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Wed, 2005-10-19 18:32

mincel, to have those users access the full size, you don't need the icon. If they have the permission to see the full sized ones, the full size will be an option below of the allowed sizes pop-down menue. But your right, adding the check_permissions is an easy patch.

Gallery version = 2.0+ core 1.0.4
PHP version = 5.1.0RC1 apache2handler
Webserver = Apache/2.0.54 (Win32) DAV/2 mod_ssl/2.0.54 OpenSSL/0.9.7g PHP/5.1.0RC1
Database = mysql 5.0.11-beta-nt-log
Gallery-URL = https://lf-photodesign.de

 
mincel
mincel's picture

Joined: 2005-10-14
Posts: 134
Posted: Wed, 2005-10-19 18:39

Yes you are right, thank you. I have another question, actually i post a comment for this before, but i did not got any answer, is it possible to add watermarks to full size images in a popup window.

http://gallery.mincel.com

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Wed, 2005-10-19 18:49

mincel, you could try to set the watermark only for the fullsized image in "Edit Photo", "Watermark"-Tab Step 3.
This should apply the watermark only to Full size (won't damage the original file) which is then displayed in the PopUp.
(I'm using watermarks only to prevent/visualize hotlinking)

Gallery version = 2.0+ core 1.0.4
PHP version = 5.1.0RC1 apache2handler
Webserver = Apache/2.0.54 (Win32) DAV/2 mod_ssl/2.0.54 OpenSSL/0.9.7g PHP/5.1.0RC1
Database = mysql 5.0.11-beta-nt-log
Gallery-URL = https://lf-photodesign.de

 
mincel
mincel's picture

Joined: 2005-10-14
Posts: 134
Posted: Wed, 2005-10-19 19:01

Yes, I tried that, it adds watermarks to full size image, if it is not in popup window (probably it displays the original image), but I want to add watermarks to images in the popup window.

http://gallery.mincel.com

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Wed, 2005-10-19 19:12

mincel, that might be the cause - I make some thoughts (btw. nice pictures on your site ;))

Gallery version = 2.0+ core 1.0.4
PHP version = 5.1.0RC1 apache2handler
Webserver = Apache/2.0.54 (Win32) DAV/2 mod_ssl/2.0.54 OpenSSL/0.9.7g PHP/5.1.0RC1
Database = mysql 5.0.11-beta-nt-log
Gallery-URL = https://lf-photodesign.de

 
archshrk
archshrk's picture

Joined: 2005-04-29
Posts: 45
Posted: Wed, 2005-10-19 19:23

I've noticed that the thumbnails and resized images have developed artifacts (little white pixels) especially in black areas. They are not there in the full size pop-up or if I switch G2 themes. What is causing this and how can it be fixed? A good example is here --> http://archshrk.com/gallery2/Wedding

www.archshrk.com/gallery2

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Wed, 2005-10-19 19:26

archshrk, what graphic tool are you using? I can't see any artifacts on my site - and to be honest - none on your example page, too.

Gallery version = 2.0+ core 1.0.4
PHP version = 5.1.0RC1 apache2handler
Webserver = Apache/2.0.54 (Win32) DAV/2 mod_ssl/2.0.54 OpenSSL/0.9.7g PHP/5.1.0RC1
Database = mysql 5.0.11-beta-nt-log
Gallery-URL = https://lf-photodesign.de

 
mincel
mincel's picture

Joined: 2005-10-14
Posts: 134
Posted: Wed, 2005-10-19 19:31

Thank you Frank, If you make your thoughts real, it really makes me appreciate. Because I would like to make available my full size images.

http://gallery.mincel.com

 
g5

Joined: 2005-02-03
Posts: 18
Posted: Wed, 2005-10-19 19:32

Could anyone point me in the right direction as to why this would occur as shown in the attached image? I have yet to change any sizing in the theme, so i am thinking this is a bug?

It only occurs whenever i check off either "Photo Navigation - Show pics on the TOP of the Photo" OR "Photo Navigation - Show pics on the BOTTOM of the Photo"

Thanks,

 
n0nnahs

Joined: 2005-10-19
Posts: 1
Posted: Wed, 2005-10-19 20:08

Hi -
Just upgraded to G2 and installed this theme. It is a gorgeous theme! So clean and the colours aren't overbearing as in some of the other themes. I've been able to change my logo's and some other settings (via the G2 site admin). However, I don't want the 'shopping cart' option at all. I've disabled this in the modules admin, but it's still showing up within the theme and I can't figure out how to get rid of it! Strangely in Firefox it shows up w/ the words 'add to cart' but in explorer it shows as a broken image with alt.text.

Also, the icons for navigation are so small (and faint in the Snow colorpack) - are other icon packs available that are still nice and clean as these are? If not, I'm happy to live with it, but the mouseover doesn't work on Firefox to let a user know what the icons mean. Please note I am not really a designer/techie - I know very basic things so if what I'm asking involves a lot of work, I'll probably have to skip it!

You can see my gallery here to see what I'm talking about - http://www.librarygirl.co.uk.

Many thanks for your help and to Pedro for a lovely theme!

-shannon

 
archshrk
archshrk's picture

Joined: 2005-04-29
Posts: 45
Posted: Wed, 2005-10-19 20:17
LFrank wrote:
archshrk, what graphic tool are you using? I can't see any artifacts on my site - and to be honest - none on your example page, too.

See attached image. This is what I see when I look at my web site. Screen capture taken from http://archshrk.com/gallery2/Wedding/06140019.jpg.html I also notice that some of the pixels that are closer to the center fade from white to grey as if the loading "pinwheel" was spinning around in the background.

Gallery version = 2.0.1 core 1.0.0.1
PHP version = 4.4.0 cgi
Webserver = Apache/1.3.33 (Unix) FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.7d PowWeb/1.1
Database = mysql 4.1.11-log
Toolkits = ArchiveUpload, Exif, Gd, ImageMagick, NetPBM, Thumbnail

 
McKillem

Joined: 2005-10-19
Posts: 3
Posted: Wed, 2005-10-19 20:32

I have a problem with loading other colorschemes.
U uploaded everything in all the directories the way stated as explained.

I can activate the theme and it works fine, but i somehow cannot figure out how to set a diffrent color scheme, in my case that would be PGcharcoal.
I hope i make sence.

I have the latest and greatest versions of both gallery2 and the theme

 
mcnnr3

Joined: 2005-10-19
Posts: 5
Posted: Wed, 2005-10-19 21:00

how can i get rid of the add to cart button (or ideally, link it to the checkout module here http://gallery.menalto.com/node/33285), and make the add/view comment buttons show instead of the add comment link below everything? (see screenshot) thanks alot!

Gallery version = 2.0.1 core 1.0.0.1
PHP version = 4.3.10 cgi
Webserver = Apache/1.3.33 (Unix)
Database = mysql 4.0.25-standard-log
Toolkits = ArchiveUpload, NetPBM, Exif
Operating system = Linux infong 2.4 #1 SMP Mon Aug 9 10:21:08 CEST 2004 i686 unknown
Browser = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)

 
jt_sea

Joined: 2005-07-22
Posts: 7
Posted: Wed, 2005-10-19 21:15

Ok, I'm stumped. I've installed the latest version (release 4) as I thought the comments would suit my needs. Unfortunately, I can't get this to work. It is not showing the block layer when I click on or mouseover the block icon (camera). Odd thing is when I mouse over the icon it swiches to what appears to be the alt name. Here are a couple of examples;

Comment only added
Photo Properties Only
Photo Properties and Comment\

Any help would be greatly appreciated.

Regards,
JT

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Thu, 2005-10-20 06:17

jt_sea, that's because the respective "on"-gif is missing. Check your "/modules/colorpack/packs/PGsnow/images/" respectively the "/PGthemes/images/" if it really contains the icon "blockon.gif" and wether your server has permission to see it.

Gallery version = 2.0+ core 1.0.4
PHP version = 5.1.0RC1 apache2handler
Webserver = Apache/2.0.54 (Win32) DAV/2 mod_ssl/2.0.54 OpenSSL/0.9.7g PHP/5.1.0RC1
Database = mysql 5.0.11-beta-nt-log
Gallery-URL = https://lf-photodesign.de

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Thu, 2005-10-20 06:23

archshrk, that's obviously a browser issue - with Firefox the page displays perfectly. With IE, I see the artifacts you've mentioned, too. Could be a transparency issue. I tried to reproduce a black image on my site with IE and it displays fine (except the other CSS issues which made me switch to Firefox)

Gallery version = 2.0+ core 1.0.4
PHP version = 5.1.0RC1 apache2handler
Webserver = Apache/2.0.54 (Win32) DAV/2 mod_ssl/2.0.54 OpenSSL/0.9.7g PHP/5.1.0RC1
Database = mysql 5.0.11-beta-nt-log
Gallery-URL = https://lf-photodesign.de

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Thu, 2005-10-20 06:32

n0nnahs, thats an issue on RC4 - Pedro is working on it. You can easily fix the icons if you know the theme CSS, the class defined is smaller than the icon itsself (navicons, if I remember correctly).

Gallery version = 2.0+ core 1.0.4
PHP version = 5.1.0RC1 apache2handler
Webserver = Apache/2.0.54 (Win32) DAV/2 mod_ssl/2.0.54 OpenSSL/0.9.7g PHP/5.1.0RC1
Database = mysql 5.0.11-beta-nt-log
Gallery-URL = https://lf-photodesign.de

 
g5

Joined: 2005-02-03
Posts: 18
Posted: Thu, 2005-10-20 12:16

LFrank, i am assuming you are referencing the add to cart issue as being one in RC4? This issue has come up many times know on this thread, however this is the first answer i have seen posted....

Since this appears on the 1st page, album page, photo page and i think the item page, what specifically would one look for if he wanted to simply comment out the code so that it simply does not call it?

Cheers,

LFrank wrote:
n0nnahs, thats an issue on RC4 - Pedro is working on it. You can easily fix the icons if you know the theme CSS, the class defined is smaller than the icon itsself (navicons, if I remember correctly).

Gallery version = 2.0+ core 1.0.4
PHP version = 5.1.0RC1 apache2handler
Webserver = Apache/2.0.54 (Win32) DAV/2 mod_ssl/2.0.54 OpenSSL/0.9.7g PHP/5.1.0RC1
Database = mysql 5.0.11-beta-nt-log
Gallery-URL = https://lf-photodesign.de

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Thu, 2005-10-20 12:40

g5, album.tpl, navigatorTop.tpl as well as NavigatorPhotoTop- and Bottom.tpl contain these lines.
Look for appearances of

     {if !empty($theme.params.colorpack)}
                                        <a href="{g->url arg1="controller=checkout.AddToCart" arg2="itemId=`$child.id`" arg3="return=`$theme.item.id`"}" 
onmouseout= "cart{$child.id}.src='{g->url href='modules/colorpack/packs/'}{$theme.params.colorpack}/images/add_cart.gif'"
onmouseover= "cart{$child.id}.src='{g->url href='modules/colorpack/packs/'}{$theme.params.colorpack}/images/add_carton.gif'">
                                          <img id="cart{$child.id}" src="{g->url href='modules/colorpack/packs/'}{$theme.params.colorpack}/images/add_cart.gif" alt="Add to Cart" longdesc="Add to Cart" title="{g->text text=$theme.params.ItemsAddCartText}" /></a>
                                      </td>
                                      {if !empty ($theme.params.ItemsActionsText)}
                                      <td>
<a href="{g->url arg1="controller=checkout.AddToCart" arg2="itemId=`$theme.item.id`" arg3="return=`$child.id`"}" 
onmouseout= "cart{$child.id}.src='{g->url href='modules/colorpack/packs/'}{$theme.params.colorpack}/images/add_cart.gif'"
onmouseover= "cart{$child.id}.src='{g->url href='modules/colorpack/packs/'}{$theme.params.colorpack}/images/add_carton.gif'">
                                          {g->text text=$theme.params.ItemsAddCartText}</a>
                                      </td>
                                      {/if}
                                    {else}
                                        <a href="{g->url arg1="controller=checkout.AddToCart" arg2="itemId=`$child.id`" arg3="return=`$theme.item.id`"}" 
onmouseout= "cart{$child.id}.src='{g->url href='themes/PGtheme/images/'}add_cart.gif'"
onmouseover= "cart{$child.id}.src='{g->url href='themes/PGtheme/images/'}add_carton.gif'">
                                          <img id="cart{$child.id}" src="{g->url href='themes/PGtheme/images/'}add_cart.gif" alt="Add to Cart" longdesc="Add to Cart" title="{g->text text=$theme.params.ItemsAddCartText}" /></a>
                                      </td>
                                      {if !empty ($theme.params.ItemsActionsText)}
                                      <td>
<a href="{g->url arg1="controller=checkout.AddToCart" arg2="itemId=`$child.id`" arg3="return=`$theme.item.id`"}" 
onmouseout= "cart{$child.id}.src='{g->url href='themes/PGtheme/images/'}add_cart.gif'"
onmouseover= "cart{$child.id}.src='{g->url href='themes/PGtheme/images/'}add_carton.gif'">
                                          {g->text text=$theme.params.ItemsAddCartText}</a>
                                      </td>
                                    {/if}
                                  {/if} {* cart end *}												

and comment it off. I've adapted to use the PayPal Cart - in the Original Files, arg1 would
be

arg1="controller=cart.AddToCart"

Gallery version = 2.0+ core 1.0.4
PHP version = 5.1.0RC1 apache2handler
Webserver = Apache/2.0.54 (Win32) DAV/2 mod_ssl/2.0.54 OpenSSL/0.9.7g PHP/5.1.0RC1
Database = mysql 5.0.11-beta-nt-log
Gallery-URL = https://lf-photodesign.de

 
aph
aph's picture

Joined: 2005-10-13
Posts: 2
Posted: Thu, 2005-10-20 13:51

Hi, I haven't searched through the whole thread. I don't understand half of what people are saying which is why. I did search the boards though but didn't come up with a solution.

I really like the theme, but I'd like to use it only as a way of presenting photos of myself and friends - I'm not interested in selling the pictures.

The problem is it comes up with a a little basket and the options add to cart. Is there a way I can turn this off because it doesn't really apply for my site.

I'm new to Gallery, and CMS' as a whole but I'm interested in learning :D

I'll be grateful for help to do this!

 
g5

Joined: 2005-02-03
Posts: 18
Posted: Thu, 2005-10-20 14:17

That did it LFrank. Thank you kindly......

Couple of comments though....
1 - This snipped only seems to appear in album.tpl and not the others.
1 - My snippet was somewhat different.

Quote:
{*
{if !empty($theme.params.colorpack)}
<a href="{g->url arg1="controller=cart.AddToCart" arg2="itemId=`$theme.item.id`" arg3="return=`$theme.item.id`"}"
onmouseout= "cart{$child.id}.src='{g->url href='modules/colorpack/packs/'}{$theme.params.colorpack}/images/add_cart.gif'"
onmouseover= "cart{$child.id}.src='{g->url href='modules/colorpack/packs/'}{$theme.params.colorpack}/images/add_carton.gif'">
<img id="cart{$child.id}" src="{g->url href='modules/colorpack/packs/'}{$theme.params.colorpack}/images/add_cart.gif" alt="Add to Cart" longdesc="Add to Cart" title="{g->text text=$theme.params.ItemsAddCartText}" /></a>
</td>
{if !empty ($theme.params.ItemsActionsText)}
<td>
<a href="{g->url arg1="controller=cart.AddToCart" arg2="itemId=`$theme.item.id`" arg3="return=`$theme.item.id`"}"
onmouseout= "cart{$child.id}.src='{g->url href='modules/colorpack/packs/'}{$theme.params.colorpack}/images/add_cart.gif'"
onmouseover= "cart{$child.id}.src='{g->url href='modules/colorpack/packs/'}{$theme.params.colorpack}/images/add_carton.gif'">
{g->text text=$theme.params.ItemsAddCartText}</a>
</td>
{/if}
{else}
<a href="{g->url arg1="controller=cart.AddToCart" arg2="itemId=`$theme.item.id`" arg3="return=`$theme.item.id`"}"
onmouseout= "cart{$child.id}.src='{g->url href='themes/PGtheme/images/'}add_cart.gif'"
onmouseover= "cart{$child.id}.src='{g->url href='themes/PGtheme/images/'}add_carton.gif'">
<img id="cart{$child.id}" src="{g->url href='themes/PGtheme/images/'}add_cart.gif" alt="Add to Cart" longdesc="Add to Cart" title="{g->text text=$theme.params.ItemsAddCartText}" /></a>
</td>
{if !empty ($theme.params.ItemsActionsText)}
<td>
<a href="{g->url arg1="controller=cart.AddToCart" arg2="itemId=`$theme.item.id`" arg3="return=`$theme.item.id`"}"
onmouseout= "cart{$child.id}.src='{g->url href='themes/PGtheme/images/'}add_cart.gif'"
onmouseover= "cart{$child.id}.src='{g->url href='themes/PGtheme/images/'}add_carton.gif'">
{g->text text=$theme.params.ItemsAddCartText}</a>
</td>
{/if}
{/if}
*}
{/if} {* cart end *}

Notice the ending.... I had an extra closing if than yours before {* cart end *}.

In any event, they are now gone. Thanks a mil....

FYI, anyone interested in seeing G2 within Joomla, here ya go LINK. Please keep in mind that this is a work in progress!!!!

Cheers,

 
jt_sea

Joined: 2005-07-22
Posts: 7
Posted: Thu, 2005-10-20 15:30

That soloved my link showing incorrectly. Now I still can't get the layer to show when I click on the block link. Any ideas? Thanks for you time btw, you've been very helpful.

Regards,
JT

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Thu, 2005-10-20 15:33

g5, oops - I highly customized my theme to have the cart on a few more places (which will probably come in RC5, too) ;)

Gallery version = 2.0+ core 1.0.4
PHP version = 5.1.0RC1 apache2handler
Webserver = Apache/2.0.54 (Win32) DAV/2 mod_ssl/2.0.54 OpenSSL/0.9.7g PHP/5.1.0RC1
Database = mysql 5.0.11-beta-nt-log
Gallery-URL = https://lf-photodesign.de

 
victrola

Joined: 2005-10-18
Posts: 7
Posted: Thu, 2005-10-20 15:57

LFrank, thank you so much! Cart feature is successfully non-existant on my gallery!

I still need help removing the Site ID information from my Status Bar though. I prefer for people to be able to see where they're going.

I have no idea what to look for though, as I've never used this before.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-10-20 15:58

aph

site admin -> modules:
disable and uninstall the cart module.