coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: bulldozer on April 10, 2004, 07:52:05 PM

Title: history
Post by: bulldozer on April 10, 2004, 07:52:05 PM
Whenever I click on pics and go back to index, the only way to see that that picture has already been viewed by you is that the view may change to show 1view, 2view etc.

It would be nice if some sort of border appears around pictures that have been viewed already.
Title: history
Post by: Joachim Müller on April 11, 2004, 09:09:46 AM
uh - this should be done easily with the use of css alone - just edit /themes/yourtheme/style.css and add the pseudo-class "visited" for "image"...

GauGau
Title: history
Post by: bulldozer on April 11, 2004, 05:36:49 PM
thanks
Title: history
Post by: bulldozer on April 11, 2004, 06:13:21 PM
I added:

.thumbnails a:visited {
      color: #0000ff;
      text-decoration: underline;
      border-width:1px;
      border: #5F5F5F;
}

and

.image a:visited {
        border-style: solid;
        border-width:3px;
        border-color: #00CCFF;
        margin: 2px;
}

Guess I need to work on it more because nothing changes.
Title: history
Post by: Joachim Müller on April 12, 2004, 08:29:15 AM
it's not that easy, sorry: the css classes "thumbnails" and "image" apply to the <img>-tag that doesn't have a hover event trigger.
You'll have to edit displayimage.php and look for        $pic_html = "<a href=\"javascript:;\" onClick=\"MM_openBrWindow('displayimage.php?pid=$pid&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=$winsizeX,height=$winsizeY')\">";Replace it with        $pic_html = "<a href=\"javascript:;\" onClick=\"MM_openBrWindow('displayimage.php?pid=$pid&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=$winsizeX,height=$winsizeY')\" class=\"yourclass1\">";

Edit themes/yourtheme/theme.php and find<a href="{LINK_TGT}">{THUMB}and replace it with<a href="{LINK_TGT}" class="yourclass2">{THUMB}

Edit themes/yourtheme/style.css and add this:.yourclass2 a:visited {
color: #0000ff;
text-decoration: underline;
border-width:1px;
border: #5F5F5F;
}

and

.yourclass1 a:visited {
border-style: solid;
border-width:3px;
border-color: #00CCFF;
margin: 2px;
}
You may want to define the other pseudo-classes (link, hover etc. as well for your new classes).

HTH

GauGau
Title: Re: history
Post by: bulldozer on June 05, 2004, 01:45:16 AM
I must have done something wrong because mine doesn't seem to be working.
Title: Re: history
Post by: Joachim Müller on June 05, 2004, 03:39:44 PM
link?

GauGau
Title: Re: history
Post by: bulldozer on June 05, 2004, 07:34:17 PM
It doesn't seem to be working on your demo site either http://coppermine.sourceforge.net/demo/
Title: Re: history
Post by: Casper on June 05, 2004, 07:55:15 PM
Quote from: bulldozer on June 05, 2004, 07:34:17 PM
It doesn't seem to be working on your demo site either http://coppermine.sourceforge.net/demo/

I'm fairly sure the demo is the basic application, and does not have this mod installed.  No-one is going to go through every theme and make the changes.