MyBB Community Forums

Full Version: BBCode > MyCode and forwarding
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello!

Please rework this BBCode at MyCode with the same appearance:

<div style="margin:20px; margin-top:5px">
         <div class="smallfont" style="margin-bottom:2px">
         <b>Spoiler</b>: <input type="button" value="Pokaż" style="width:45px;font-size:10px;margin:0px;padding:0px;" onClick="if(this.parentNode.parentNode.getElementsByTagName​('div')[1].getElementsByTagName('div')[0].innerHTML != '')
         {
           this.parentNode.parentNode.getElementsByTagNa​me('div')[1].getElementsByTagName('div')[0].innerHTML = '';
           this.value = 'Pokaż';
         }
         else
         {
           this.parentNode.parentNode.getElementsByTagNa​me('div')[1].getElementsByTagName('div')[0].innerHTML = this.parentNode.parentNode.getElementsByTagName('d​iv')[1].getElementsByTagName('div')[1].innerHTML;
           this.value = 'Ukryj';
         }; return false;
         ">
         </div>
         <div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">
         <div></div><div style="display:none;">{TEXT}</div>
         </div>
         </div>

...and I would ask how to enable immediate redirect to the index after login / log out, no windows, "You are logged in, logged out, you will forwarding to the main page ..."

Thank you, best regards.
For your first question, do a search for spoiler mycode as there are a few threads on that.

Regarding the "Redirect" page, it is turned on / off from the Admin Control Panel (ACP).
ACP => Configuration => Board Settings => Server and Optimization Options
Yhh... I know I can find a lot of spoilers for MyBB, but I care about the fact that not only adapts to any style, color is still under construction is simple and pleasing to the eye.