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: [blocks] Selecting photos/thumbnails  (Read 3570 times)

0 Members and 1 Guest are viewing this topic.

tkx

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 45
[blocks] Selecting photos/thumbnails
« on: November 28, 2003, 08:30:52 pm »

Ermm...  when showing the last uploaded images, etc... it shows all pictures... I haven't checked with the random image, but can you please change the select statements to include "WHERE approved='YES'"??..  and also I haven't tried with the private galleries, but I would hope that it wouldn't show thumbnails of private galleries.
Logged

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
[blocks] Selecting photos/thumbnails
« Reply #1 on: November 28, 2003, 08:41:43 pm »

None show if your not logged in as admin...

tkx

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 45
[blocks] Selecting photos/thumbnails
« Reply #2 on: November 28, 2003, 08:55:50 pm »

Is this new in RC4?   One of the blocks showed them all.. I verified as a regular and anonymous user... it was missing the "approved='YES'"

Quote from: "gtroll"
None show if your not logged in as admin...
Logged

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
[blocks] Selecting photos/thumbnails
« Reply #3 on: November 28, 2003, 09:02:58 pm »

are these the block with CPG- in the file name, if yes I must have missed that one just add after $ALBUMSET
Code: [Select]
AND approved='YES'
Pages: [1]   Go Up
 

Page created in 0.029 seconds with 18 queries.