When a user makes a comment on a post I want to be able for them to get a confirmation that they have posted a comment (which this already does), and then when they click the ok button they get redirected back to the news page rather than show the comment they made. is this possible? and how?
Access: Admin
Total Posts: 1395
Joined: 2006-05-19
I'm not quite sure I follow. Currently when a user makes a comment, the current page refreshes (assuming you're not using ajax comments) and shows the new comment the user has just submitted.
Yea I am using ajax comments. Instead of the page being refreshed showing them the comments list, I want to send them to a different page once they have submitted their comment. Is that a little clearer?
Access: Admin
Total Posts: 1395
Joined: 2006-05-19
Ah yes. To do this edit index.php, around line 265~ you'll see this line of code
Code:
alert(data[1]);
This is the alert prompt that the user normally gets once they submit a message, you can add this line of code below it to redirect or simply replace it