• OzzModz is no longer taking registrations. All registrations are being redirected to Snog's Site
    All addons and support is available there now.

Moderated threads

stratos

New member
When some categories in forum are in moderated before show new threads... and user make some, they don't realize that threads
are in moderate condition, the description that says (your thread must moderated first) does not last enough in time.

Is there a way how to make this better.

Thanks and sorry for my English
 

Ozzy47

Administrator
In the template, STANDARD_REDIRECT, find this bit of code.

HTML:
<meta http-equiv="Refresh" content="2; URL={vb:raw url}" />

And change it to something like this.

HTML:
<meta http-equiv="Refresh" content="10; URL={vb:raw url}" />

And this line.

HTML:
var timerID = setTimeout("exec_refresh();", 100);

To something like this.

HTML:
var timerID = setTimeout("exec_refresh();", 1000);

That should show the message for 10 seconds. This is untested, but I think it's right.
 

stratos

New member
Something like this I had in mind, did not know where to change.

This works but it has effect to all categories, so its problem some one to wait when making new thread in categories that does not go to moderate condition.
Is there something else, thanks for helping though
 

Ozzy47

Administrator
Sure, I think this might work, lets go back to the original lines, find:

HTML:
<meta http-equiv="Refresh" content="2; URL={vb:raw url}" />

And change it to:

HTML:
<vb:if condition="THIS_SCRIPT == 'newthread'">
<meta http-equiv="Refresh" content="10; URL={vb:raw url}" />
<else />
<meta http-equiv="Refresh" content="2; URL={vb:raw url}" />
</vb:if>

Find this:

HTML:
var timerID = setTimeout("exec_refresh();", 100);

And change it to this:

Code:
<vb:if condition="THIS_SCRIPT == 'newthread'">
    var timerID = setTimeout("exec_refresh();", 1000);
<else />
    var timerID = setTimeout("exec_refresh();", 100);
</vb:if>

Again this is not tested, but I think it's right.
 

stratos

New member
Actually tested first to make thread to no moderate condition categories, I am still waiting, does not redirect to thread,
only if I press "Click here if your browser does not automatically redirect you."

Why should this work, I don't see difference be twin normal threads making and moderated condition threads.
Is there somewhere rules or code to write only for moderate condition act different than the other option?

10 minutes pass nothing yet to redirect after normal post making, did not try to moderate condition

Thank you
 
Top