Ozzy47
Administrator
This is something someone asked for on vB.org, so I thought I would post it here to. Cute little way to flip some of your forums upside down for April Fools.
Create a plugin, ACP --> Plugins & Products --> Add New Plugin
Product: vBulletin
Hook Location: parse_templates
Execution Order: 5
Plugin PHP Code: Add the following;
Then open up your headinclude template, and ass this at the very bottom:
Just change X,X,X to the forums you want this to happen on.
Also note, I wrote this to only happen on April 1, so if you want to test it, change the date.
Create a plugin, ACP --> Plugins & Products --> Add New Plugin
Product: vBulletin
Hook Location: parse_templates
Execution Order: 5
Plugin PHP Code: Add the following;
Code:
if (date('F j') == 'April 1' AND THIS_SCRIPT == 'forumdisplay' AND in_array($foruminfo['forumid'], array([COLOR=#ff0000][SIZE=2][B]X,X,X[/B][/SIZE][/COLOR])))
{
$invert = '<style type="text/css">
body {
-webkit-transform: rotate(180deg);
-moz-transform: rotate(180deg);
-ms-transform: rotate(180deg);
-o-transform: rotate(180deg);
transform: rotate(180deg);
}
</style>
<script>
window.onload=toBottom;
function toBottom() {
window.scrollTo(0, document.body.scrollHeight);
}
</script> ';
eval($invert);
}
Then open up your headinclude template, and ass this at the very bottom:
Code:
$invert
Just change X,X,X to the forums you want this to happen on.
Also note, I wrote this to only happen on April 1, so if you want to test it, change the date.