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: visual confirmation during new album creation  (Read 3619 times)

0 Members and 1 Guest are viewing this topic.

pinpoint222

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 77
    • The Rawalpindi Website
visual confirmation during new album creation
« on: October 26, 2006, 09:17:34 am »

Single image based verfication : using it during new albums or for other verfications.

Question was asked in this thread http://forum.coppermine-gallery.net/index.php?topic=36235.0
As the question was not related to comment hack for comments SO i am replying it in this new thread.


Here is what was asked

Quote
Hello pinpoint222

Really good idea, it works good... but....

...I have one problem - this protection also works when I add a new album and I want to write a description of this album (in album properties visible only in admin mode) and there's no field to write this code. Please help


Its good to hear it fulfilled your need for comments.

However .. there are few things which come first

1-- Although my hack only requires insertion of 3 lines but still those 3 lines are added in Core files as u can see(db_input.php)..  All hacks for comment system do the same but i think my hack has the smallest code. Hacking core files is not recommended ...Do it only when its really needed (spam in this case) and Do NOT FORGET Where u added the hack . When u will upgrade to newer version of Coppermine u must see that u put that hack code(those 3 lines) in the same file at the same location. Another beauty of this hack is that it is independent of Coppermine version but still works 100%.

2-- Now to ur new album issue.. This is what i get.  You want people/admin  to type in that image code while they try to create new albums or write new album's properties?
Logged

newkai

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: visual confirmation during new album creation
« Reply #1 on: October 29, 2006, 11:58:54 pm »

What tomeq11 asked, and I'm having the same problem...

Your hack messes up the ability to change album info! When I try to change my album properties, I get the comments error page!

When I edit an album's properties and click "Update Album", I get "Comments Could not be added. Redirecting. Please wait..."

So what we're asking is if you could modify your hack so it doesn't get rid of our ability to edit our albums!  :)

Your hack works great to prevent spam though!

Thanks,

Kai
Logged

pinpoint222

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 77
    • The Rawalpindi Website
Re: visual confirmation during new album creation
« Reply #2 on: October 30, 2006, 10:48:52 am »

HI

Thank you for the bug notification.. But now i have fixed it

No more messing with db_input.php file at all.  We will use a copy of it now.

Full details are here ..Read my last post in this thread

http://forum.coppermine-gallery.net/index.php?topic=36235.0
 

The summary is here
So here is the Summary of this MOD Now for everyone

1-- Change Theme.php as described in the start of this thread
2-- Make a copy of original db_input.php file and name it db_input2.php
3-- Add the 3 LINES to db_input2.php file.
4-- Keep both db_input.php and db_input.php in the same folder
5-- Upload the image and done.php as described at the start of the thread.
6- All check .tested and go.
7-- The end


That will solve all the problems..
The file db_input2.php which we created will be used Only to add comments.

Let me know if you got it working too. i have tested it and it is working.
Logged
Pages: [1]   Go Up
 

Page created in 0.013 seconds with 20 queries.