Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: history  (Read 3913 times)

0 Members and 1 Guest are viewing this topic.

bulldozer

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 62
history
« 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
history
« Reply #1 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
Logged

bulldozer

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 62
history
« Reply #2 on: April 11, 2004, 05:36:49 pm »

thanks
Logged

bulldozer

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 62
history
« Reply #3 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
history
« Reply #4 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
Code: [Select]
       $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
Code: [Select]
       $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
Code: [Select]
<a href="{LINK_TGT}">{THUMB}and replace it with
Code: [Select]
<a href="{LINK_TGT}" class="yourclass2">{THUMB}

Edit themes/yourtheme/style.css and add this:
Code: [Select]
.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
Logged

bulldozer

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 62
Re: history
« Reply #5 on: June 05, 2004, 01:45:16 am »

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: history
« Reply #6 on: June 05, 2004, 03:39:44 pm »

link?

GauGau
Logged

bulldozer

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 62
Re: history
« Reply #7 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/
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: history
« Reply #8 on: June 05, 2004, 07:55:15 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.
Logged
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
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 14 queries.