Ramui forum script
Home :: Ramui forum script :: Ramui webblog script Report bugs :: Refreshing window after comment approved
Select Style:
User:
User:
Password:
Keep me login in this computer

Refreshing window after comment approved

I set option to approve comment automatically from admin panel. But after comment has been submitted and approved page is not getting refreshed to view the comment live. Yes when I manually refresh window comment becomes live, but should it not be automatic?
Posted by: gaurav;   Post:3;   Comments:0;  Date of Join: Jul 21, 2011, 05:04
Post date: Jul 25, 2011, 05:10
New topicReplyContactReport

Re: Refreshing window after comment approved

I think you are right. In next version I shall update this feature. At this moment you can do the following steps to refresh window after comment approved.
1. Open JavaScript file /fw_blog/script/comment.js for editing.
2. You can use Windows Notepad for editing.
3. At line – 12 find the following line of text.

if(fw_connection.readyState == 4 && fw_connection.status == 200){


4. After that line insert a new line of text as given below.
Code
if(fw_connection.responseText.indexOf('<span style="color:green; font-size:12px;">Your comment has been published.</span>')>0){window.opener.location.reload(true);}
5. Save that file and upload it.
If you are unable to edit this file then please download the following attachment; unpack / unzip it and replace the original file.[attachment=0]comment.js.zip[/attachment]

-----------------------------------------------------------
Web hosting directory

Posted by: admin;   Post:34;   Comments:116;  Date of Join: Nov 05, 2008, 08:04
Post date: Jul 26, 2011, 14:14
ContactReport