I've minorly updated the hack. If your forum is in English, no need to update as all this update adds is easier translating of it. There are no other changes.
For those not using English, here's the changed lines:
- The "Thread Management" string has been replaced by "$vbphrase[viper_opencloseqr_thread_management]".
- The checkbox, it's label, etc. has been replaced with this line (replace the line with this new line):
HTML Code:
<label for="cb_openclose"><input type="checkbox" name="openclose" value="1" id="cb_openclose" tabindex="1" /><span id="qr_openclosestatus"><if condition="$show['closethread']">$vbphrase[viper_opencloseqr_close_thread]<else />$vbphrase[viper_opencloseqr_open_thread]</if></span></label>
Code:
document.getElementById("qr_openclosestatus").innerHTML = "Open";
has been replaced with:
Code:
document.getElementById("qr_openclosestatus").innerHTML = "$vbphrase[viper_opencloseqr_open_thread]";
Code:
document.getElementById("qr_openclosestatus").innerHTML = "Close";
has been replaced with:
Code:
document.getElementById("qr_openclosestatus").innerHTML = "$vbphrase[viper_opencloseqr_close_thread]";
Then just import the product now attached to the original post and the the new phrases will be created. They can be found under "Show Thread" and are prefixed with "viper_opencloseqr_".