after commenting user is redirected to main page! after commenting user is redirected to main page!
 

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]

Main Menu

after commenting user is redirected to main page!

Started by purepersian, May 12, 2004, 02:50:00 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

purepersian

after they comment they are taken to the main coppermine page, the first one with anycontent.php atc..
the comment is stored though and it shows, but i dont want users redirected, i want them to stay there, what do i do?

Joachim Müller



Casper

You are using a nuke port, and it seems to me you have made modifications to the ability to post, as you require name input in the message field.
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

purepersian

i dont get you, i log in and am able to send a comment to the pictures, it doesnt ask for a name

but the problem is after you post ur comment u are redirected to the main page instead of staying where u are

any ideas?
yes im using cpgnuke

Casper

Funny that, first time I tried it,logged on as test, just putting a smiley in, no words, I received an error, telling me to type my name and enter a message.
Just tried same thing again, and it worked.

As I don't know cpgnuke, I can't help you, sorry.
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

purepersian

could it have something to do with this? i found it in the coppermine/db_input.php line 91 or something
is this correct?

            $redirect $CPG_URL "&file=displayimage&pos=" . (- $comment_data['pid']);
            
header($header_location $redirect);

hyperion

It's entirely possible.  You would have to know what the value of $CPG_URL and $header_location in the Nuked version.

Perhaps it is relative, but you server/client software doesn't understand that.  Try:



           $redirect = $CPG_URL . "&file=displayimage&pos=" . (- $comment_data['pid']);
            header($header_location.'http://'.$redirect);



This is just a guess, as this is not the Nuke support board.
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

purepersian

 ??? ??? :( >:( :\'( no i tried that, still same thing :(
any ideas, whats the code in the origional 1.3 ? maybe thatll work?

Casper

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