forum.coppermine-gallery.net

Support => Older/other versions => cpg1.2 PHPnuke/Postnuke Support => Topic started by: purepersian on May 12, 2004, 02:50:00 am

Title: after commenting user is redirected to main page!
Post by: purepersian on May 12, 2004, 02:50:00 am
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?
Title: Re: after commenting user is redirected to main page!
Post by: Joachim Müller on May 12, 2004, 06:31:07 am
link plus test user account?

GauGau
Title: Re: after commenting user is redirected to main page!
Post by: purepersian on May 12, 2004, 05:41:15 pm
http://www.borobiroon.com/index.php?name=coppermine

Username: test
Password: password1

thank u so much
Title: Re: after commenting user is redirected to main page!
Post by: Casper on May 12, 2004, 06:07:26 pm
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.
Title: Re: after commenting user is redirected to main page!
Post by: purepersian on May 12, 2004, 06:17:26 pm
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
Title: Re: after commenting user is redirected to main page!
Post by: Casper on May 12, 2004, 06:25:04 pm
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.
Title: Re: after commenting user is redirected to main page!
Post by: purepersian on May 12, 2004, 06:47:40 pm
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);
Title: Re: after commenting user is redirected to main page!
Post by: hyperion on May 13, 2004, 03:02:51 am
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:

Code: [Select]

           $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.
Title: Re: after commenting user is redirected to main page!
Post by: purepersian on May 13, 2004, 04:27:16 pm
 ??? ??? :( >:( :\'( no i tried that, still same thing :(
any ideas, whats the code in the origional 1.3 ? maybe thatll work?
Title: Re: after commenting user is redirected to main page!
Post by: Casper on May 13, 2004, 04:38:58 pm
Try the nuke support board, http://coppermine.findhere.org/modules.php?name=Forums