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: image of the day/week/month (user defined)  (Read 13257 times)

0 Members and 1 Guest are viewing this topic.

pinguish

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 29
    • Pinguish - A Photographic Community
image of the day/week/month (user defined)
« on: June 29, 2004, 02:00:32 pm »

I've been working on a mod to provide an 'image of the week' function to my gallery.
its not the best code in teh world and i'm sure it could be cleaned up a bit.
However it does work
i have 3 files:
the image of the period file (which displays the current image of the period) and also by selection the last 10 images in this category.
the image of the period admin page (which allows you to edit/add/delete from the list).
and the sql file (as it makes an extra table).
the method used doesn't worry about images being deleted as its join works by only listing those where the image still exists in the picture table.

first off would peopel be interested in this as a general mod..
and second if so how do i submit it?

(currently it assumes the 1.3 table structure eg cpg130_)
but easily changed for non standards.

users would also have to add thier own link to the image period page.

you can see the mod in action on a friends website (www.karen-addison.com).

*****EDIT: files attached! - must learn to look properly now i know how to uplaod things to the board :) *****
*****EDIT:19/7/04 - security flaw on admin check fixed****


[attachment deleted by admin]

[edit GauGau]
archive re-attached. Sorry for the confusion, was deleted in error.
[/edit]
« Last Edit: August 15, 2006, 01:16:30 pm by pinguish »
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: image of the day/week/month (user defined)
« Reply #1 on: June 29, 2004, 08:59:07 pm »

Very nice,  ;)

Moving to mods board.
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

pinguish

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 29
    • Pinguish - A Photographic Community
Re: image of the day/week/month (user defined)
« Reply #2 on: June 30, 2004, 10:08:23 am »

cool got moved to mod..i assume i just update the zip file as i work on this mod as it needs to be streamlined a bit and i have plans for a few additions ;)
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: image of the day/week/month (user defined)
« Reply #3 on: June 30, 2004, 10:38:38 am »

Yes, just update the attachment on the first post, so that will always be up to date.
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

pinguish

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 29
    • Pinguish - A Photographic Community
Re: image of the day/week/month (user defined)
« Reply #4 on: July 19, 2004, 10:26:47 am »

zip file updated due to a security flaw in the admin check...if you are using this mod please check to ensure you have the latest version!
Logged

HighlanderBR

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: image of the day/week/month (user defined)
« Reply #5 on: October 04, 2004, 04:47:42 am »

Thanks for this MOD. Works fine  :)

With a few changes, I be able to show select pictures of the gallery in a website.
Logged

pepito

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 32
Re: image of the day/week/month (user defined)
« Reply #6 on: October 08, 2004, 03:57:18 am »

hello,
I hope it is not too late to ask you for advice!this mod seems to be exactly what I need!
I am running Ipb 1.3 with MyiBportal and my cppermine gallery is integrated with the bridge
I went to see on your site and this is exactly what I need :images from the gallery in a block of my portal
Can you explain me how to do it and if it is possible.I looked in the zip,understood a little for the files
for sql you mean to run the query in my ipb admin?and my main question is what code to put in my block?
thank you for a little help

Ps:I also saw on your portal the D-shoutbox in a block,I really looking for that a long time
because it only shows on the forum pages
Logged

pinguish

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 29
    • Pinguish - A Photographic Community
Re: image of the day/week/month (user defined)
« Reply #7 on: October 12, 2004, 03:41:42 pm »

this isn't really a coppermine problem (its ipb) most of these questions should be discussed at a site like invionsize.com (which is where the invision mods are posted) the portal block was a quick hack i did and not related to the mod in this thread.
the shoyubox is shown all over the site as i have edited my board wrapper to include it (the instructions for which are contained in the invision mod).
the mod this in thread is PURELY an image of the week mod. (its also very scrappy i just haven't got round to streamlining it yet - until that point its not even following standard coppermine conventions such the db prefix usage).
with regards the sql you shoudl run that from your php admin screen.
I'm happy to give advise regarding the changes you are talking about (and how i did them) but probably best you contact me via pm/email as i feel coppermine issues should be discussed on the coppermine board.

Logged

Shurik_A

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: image of the day/week/month (user defined)
« Reply #8 on: November 28, 2004, 05:17:01 pm »

I'm sorry for this kind of question:
"What excactly is picture ID?"

Thanks.
Logged

pinguish

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 29
    • Pinguish - A Photographic Community
Re: image of the day/week/month (user defined)
« Reply #9 on: November 28, 2004, 06:14:46 pm »

picture id is the number of the picture within the coppermine system..
(to find it go to an image and click (i) to show the information.
this gives a link to the image ie:    http://www.yoursite.com/Coppermine/displayimage.php?pos=-6858
that number at the end is the picture ID (everything after the - so in this example the picture id is 6858 )
and no need to say sorry i really do ihave to upgrade this mod to use proper coppermine functiosn and a better helpfile ;)
Logged

Shurik_A

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: image of the day/week/month (user defined)
« Reply #10 on: November 28, 2004, 09:42:43 pm »

and no need to say sorry i really do ihave to upgrade this mod to use proper coppermine functiosn and a better helpfile ;)

No, you don't I'm just a new one in this stuff. :))
Thanks.
Logged

TerryG

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 45
Re: image of the day/week/month (user defined)
« Reply #11 on: April 03, 2005, 01:03:34 am »


I notice the zip file was deleted by the admin...?

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: image of the day/week/month (user defined)
« Reply #12 on: April 03, 2005, 01:00:01 pm »

archive re-attached to first posting. Sorry for the confusion, was deleted in error.

Joachim
Logged

TerryG

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 45
Re: image of the day/week/month (user defined)
« Reply #13 on: April 04, 2005, 01:53:22 am »

Thank you!

:)

T.
Logged
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 19 queries.