history history
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

history

Started by bulldozer, April 10, 2004, 07:52:05 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bulldozer

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.

Joachim Müller

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

bulldozer


bulldozer

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.

Joachim Müller

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

bulldozer

I must have done something wrong because mine doesn't seem to be working.

Joachim Müller


bulldozer

It doesn't seem to be working on your demo site either http://coppermine.sourceforge.net/demo/

Casper

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.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here