Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: after commenting user is redirected to main page!  (Read 6225 times)

0 Members and 1 Guest are viewing this topic.

purepersian

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
after commenting user is redirected to main page!
« 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?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: after commenting user is redirected to main page!
« Reply #1 on: May 12, 2004, 06:31:07 am »

link plus test user account?

GauGau
Logged

purepersian

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: after commenting user is redirected to main page!
« Reply #2 on: May 12, 2004, 05:41:15 pm »

http://www.borobiroon.com/index.php?name=coppermine

Username: test
Password: password1

thank u so much
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: after commenting user is redirected to main page!
« Reply #3 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.
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

purepersian

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: after commenting user is redirected to main page!
« Reply #4 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
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: after commenting user is redirected to main page!
« Reply #5 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.
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

purepersian

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: after commenting user is redirected to main page!
« Reply #6 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);
Logged

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -
Re: after commenting user is redirected to main page!
« Reply #7 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.
Logged
"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

(http://www.mozilla.org/products/firefox/buttons/getfirefox_small.png)

purepersian

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: after commenting user is redirected to main page!
« Reply #8 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?
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: after commenting user is redirected to main page!
« Reply #9 on: May 13, 2004, 04:38:58 pm »

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
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 18 queries.