Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support when comment sent redirect to a different page?
Wackyracer8
Posted on 28 Feb 2010, 21:47:48

Access: Member
Total Posts: 8
Joined: 2010-02-22

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?

Thanks for the help.
#1959
Chris
Posted on 28 Feb 2010, 21:53:13

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.
#1960
Wackyracer8
Posted on 01 Mar 2010, 10:54:44

Access: Member
Total Posts: 8
Joined: 2010-02-22

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?

Thanks
#1968
Chris
Posted on 01 Mar 2010, 11:50:01

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

Code:
window.location = 'http://yourdonain.com/newpage';
#1969
Network-13.com © 2013