vBulletin Discuss vBulletin.

Reply
 
Thread Tools

  #1  
Old 03-30-2014, 03:44 PM
ozzy47 ozzy47 is offline
OzzModz Founder
 
Real Name: Chris
Join Date: Oct 2013
Posts: 99
ozzy47 is a jewel in the rough
Default April Fools Fun (vB4)
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;
Code:
if (date('F j') == 'April 1' AND THIS_SCRIPT == 'forumdisplay' AND in_array($foruminfo['forumid'], array(X,X,X)))
{
    $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> ';
$template_hook[headinclude_bottom_css] .= $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.

Last edited by ozzy47; 03-30-2014 at 03:50 PM..
Reply With Quote
  #2  
Old 03-30-2014, 03:48 PM
PoetJC's Avatar
PoetJC PoetJC is online now
Miss Thick_Jacq
 
Real Name: Black Betty.
Join Date: Jul 2006
Admin Experience: Beginner
Location: Somewhere Booping...
Posts: 5,908
PoetJC has a reputation beyond reputePoetJC has a reputation beyond reputePoetJC has a reputation beyond reputePoetJC has a reputation beyond reputePoetJC has a reputation beyond reputePoetJC has a reputation beyond reputePoetJC has a reputation beyond reputePoetJC has a reputation beyond reputePoetJC has a reputation beyond reputePoetJC has a reputation beyond reputePoetJC has a reputation beyond repute
Default
Ha! Looks kinda kewl actually ==> Thanks for the share!
Care to share similar code for XF?!

J.
__________________
JPiC Forum For Writers | Celebrating Diversity With The Typed Word
PoteQuotes.com | Home of Potent QuotablesCandiceFans.com | Schooling You in Soul


Reply With Quote
  #3  
Old 03-30-2014, 03:52 PM
ozzy47 ozzy47 is offline
OzzModz Founder
 
Real Name: Chris
Join Date: Oct 2013
Posts: 99
ozzy47 is a jewel in the rough
Default
If I had any clue how XF worked I would, but alas I bought it when it was on presale, but never really got into it.

I would imagine though, if someone knows the code, and what kind of conditionals they use, it could be done in XF.
Reply With Quote
  #4  
Old 03-30-2014, 04:05 PM
PoetJC's Avatar
PoetJC PoetJC is online now
Miss Thick_Jacq
 
Real Name: Black Betty.
Join Date: Jul 2006
Admin Experience: Beginner
Location: Somewhere Booping...
Posts: 5,908
PoetJC has a reputation beyond reputePoetJC has a reputation beyond reputePoetJC has a reputation beyond reputePoetJC has a reputation beyond reputePoetJC has a reputation beyond reputePoetJC has a reputation beyond reputePoetJC has a reputation beyond reputePoetJC has a reputation beyond reputePoetJC has a reputation beyond reputePoetJC has a reputation beyond reputePoetJC has a reputation beyond repute
Default
Quote:
Originally Posted by ozzy47 View Post
If I had any clue how XF worked I would, but alas I bought it when it was on presale, but never really got into it.

I would imagine though, if someone knows the code, and what kind of conditionals they use, it could be done in XF.
I'll be happy to take that XF license off your hands (for free) since it's apparently sitting around collecting dust
And yeah - I'm sure it can be done in XF - but I haven't clue #1 as to how lol
It's an awesome share for vB-Heads though - so thanks again!

J.
__________________
JPiC Forum For Writers | Celebrating Diversity With The Typed Word
PoteQuotes.com | Home of Potent QuotablesCandiceFans.com | Schooling You in Soul


Reply With Quote
  #5  
Old 03-30-2014, 05:14 PM
Hauyser's Avatar
Hauyser Hauyser is offline
Green Eggs and Ham
 
Real Name: Ryan
Join Date: Jul 2012
Admin Experience: Advanced
Location: United Kingdom
Age: 22
Posts: 117
Hauyser is just really niceHauyser is just really nice
Default
I have this used before, it's a right pain in the ass for the users!
__________________
“Why fit in when you were born to stand out?”
Dr. Seuss
Reply With Quote
  #6  
Old 03-30-2014, 06:59 PM
VICE's Avatar
VICE VICE is offline
Sinner
 
Real Name: Vain
Join Date: Jun 2013
Posts: 539
VICE is a splendid one to beholdVICE is a splendid one to beholdVICE is a splendid one to beholdVICE is a splendid one to beholdVICE is a splendid one to beholdVICE is a splendid one to beholdVICE is a splendid one to behold
Default
The release of vB4.3 would be the best April Fool this year.
__________________
What can be said at all can be said clearly, and what we cannot talk about we must pass over in silence.
Ludwig Wittgenstein, Tractatus Logico-Philosophicus (1922)
Reply With Quote
  #7  
Old 03-30-2014, 07:08 PM
ozzy47 ozzy47 is offline
OzzModz Founder
 
Real Name: Chris
Join Date: Oct 2013
Posts: 99
ozzy47 is a jewel in the rough
Default
Quote:
Originally Posted by VICE View Post
The release of vB4.3 would be the best April Fool this year.
Now now, be nice.
Reply With Quote
  #8  
Old 03-30-2014, 07:11 PM
PoetJC's Avatar
PoetJC PoetJC is online now
Miss Thick_Jacq
 
Real Name: Black Betty.
Join Date: Jul 2006
Admin Experience: Beginner
Location: Somewhere Booping...
Posts: 5,908
PoetJC has a reputation beyond reputePoetJC has a reputation beyond reputePoetJC has a reputation beyond reputePoetJC has a reputation beyond reputePoetJC has a reputation beyond reputePoetJC has a reputation beyond reputePoetJC has a reputation beyond reputePoetJC has a reputation beyond reputePoetJC has a reputation beyond reputePoetJC has a reputation beyond reputePoetJC has a reputation beyond repute
Default
Quote:
Originally Posted by VICE View Post
The release of vB4.3 would be the best April Fool this year.
lol
__________________
JPiC Forum For Writers | Celebrating Diversity With The Typed Word
PoteQuotes.com | Home of Potent QuotablesCandiceFans.com | Schooling You in Soul


Reply With Quote
  #9  
Old 03-31-2014, 07:37 AM
s.molinari's Avatar
s.molinari s.molinari is offline
Leader of Skooppa
 
Join Date: Sep 2012
Posts: 919
s.molinari has a brilliant futures.molinari has a brilliant futures.molinari has a brilliant futures.molinari has a brilliant futures.molinari has a brilliant futures.molinari has a brilliant futures.molinari has a brilliant futures.molinari has a brilliant futures.molinari has a brilliant futures.molinari has a brilliant futures.molinari has a brilliant future
Default
We had a April fools joke a couple of years ago on vB-Germany.com where we only rotated the site a half a degree and said it was a new design based on scientific studies that no human in the world holds their heads completely straight, when sitting in front of the computer. We explained, right handers have a tendency to tilt their heads to the left and lefties to the right. We said we had to make the design for righties first, since there are more of them, but that we were also working on an add-on, which works with a web cam to tilt the screen with the users head automatically. This is what is looked like.



Scott
__________________
Owner of Adduco Digital - Former German vBulletin Distributor and glad to not be selling it anymore!
Skooppa - the online community revolution has begun.
"There is only one boss. The customer. And he can fire everyone from the chairman down, simply by spending his money somewhere else."
-Sam Walton 1977-
Reply With Quote
  #10  
Old 03-31-2014, 08:35 AM
Boothby Boothby is offline
TAZ Rookie
 
Real Name: Stefan
Join Date: Jun 2013
Location: Mecklenburg
Posts: 9
Boothby has a spectacular aura about
Default
Yes I remember, Scott. And you forgot to remove the code, so that the page rotated last year again. I wonder what will happen this year.
Reply With Quote
  #11  
Old 03-31-2014, 09:04 AM
s.molinari's Avatar
s.molinari s.molinari is offline
Leader of Skooppa
 
Join Date: Sep 2012
Posts: 919
s.molinari has a brilliant futures.molinari has a brilliant futures.molinari has a brilliant futures.molinari has a brilliant futures.molinari has a brilliant futures.molinari has a brilliant futures.molinari has a brilliant futures.molinari has a brilliant futures.molinari has a brilliant futures.molinari has a brilliant futures.molinari has a brilliant future
Default
Ooh...it probably will rotate again.

Scott
__________________
Owner of Adduco Digital - Former German vBulletin Distributor and glad to not be selling it anymore!
Skooppa - the online community revolution has begun.
"There is only one boss. The customer. And he can fire everyone from the chairman down, simply by spending his money somewhere else."
-Sam Walton 1977-
Reply With Quote
  #12  
Old 03-31-2014, 11:44 AM
Alfa1's Avatar
Alfa1 Alfa1 is offline
Tazmanian
 
Join Date: May 2007
Admin Experience: Advanced
Location: Netherlands
Posts: 799
Alfa1 is a splendid one to beholdAlfa1 is a splendid one to beholdAlfa1 is a splendid one to beholdAlfa1 is a splendid one to beholdAlfa1 is a splendid one to beholdAlfa1 is a splendid one to beholdAlfa1 is a splendid one to beholdAlfa1 is a splendid one to behold
Default
My users will expect me to make pink unicorns popup all over the screen.
The userban one was kind of fun, though it caused some ruckus.

I would love a script to make the forum shatter like breaking glass or to make it drip or become fluid.
Reply With Quote
  #13  
Old 03-31-2014, 05:44 PM
ozzy47 ozzy47 is offline
OzzModz Founder
 
Real Name: Chris
Join Date: Oct 2013
Posts: 99
ozzy47 is a jewel in the rough
Default
If anyone else has trouble getting this to work do the following.

Change the first line of the code:
Code:
if (date('F j') == 'April 1' AND THIS_SCRIPT == 'forumdisplay' AND in_array($foruminfo['forumid'], array(X,X,X)))
To this:
Code:
if (date('F j') == 'April 1' AND THIS_SCRIPT == 'forumdisplay' AND in_array($GLOBALS['forumid'], array(X,X,X)))
Reply With Quote
  #14  
Old 03-31-2014, 06:20 PM
weave weave is offline
TAZ Regular
 
Real Name: Jason
Join Date: Mar 2014
Admin Experience: Advanced
Posts: 58
weave is on a distinguished road
Default
This is awesome!!
Reply With Quote
  #15  
Old 03-31-2014, 06:40 PM
ozzy47 ozzy47 is offline
OzzModz Founder
 
Real Name: Chris
Join Date: Oct 2013
Posts: 99
ozzy47 is a jewel in the rough
Default
It's actually pretty cool if you change the 180deg to something like 10deg, and remove the script.
Reply With Quote
  #16  
Old 03-31-2014, 06:49 PM
weave weave is offline
TAZ Regular
 
Real Name: Jason
Join Date: Mar 2014
Admin Experience: Advanced
Posts: 58
weave is on a distinguished road
Default
Quote:
Originally Posted by ozzy47 View Post
It's actually pretty cool if you change the 180deg to something like 10deg, and remove the script.
I assume this will work at say.....30 or 45?

Last edited by weave; 03-31-2014 at 07:20 PM..
Reply With Quote
  #17  
Old 03-31-2014, 06:51 PM
ozzy47 ozzy47 is offline
OzzModz Founder
 
Real Name: Chris
Join Date: Oct 2013
Posts: 99
ozzy47 is a jewel in the rough
Default
Yes it will work at any other degree, but you will probably need to remove the script, as that send you to the bottom of the page (which is actually the top), when it is at 180deg.
Reply With Quote
  #18  
Old 04-01-2014, 03:31 AM
Alfa1's Avatar
Alfa1 Alfa1 is offline
Tazmanian
 
Join Date: May 2007
Admin Experience: Advanced
Location: Netherlands
Posts: 799
Alfa1 is a splendid one to beholdAlfa1 is a splendid one to beholdAlfa1 is a splendid one to beholdAlfa1 is a splendid one to beholdAlfa1 is a splendid one to beholdAlfa1 is a splendid one to beholdAlfa1 is a splendid one to beholdAlfa1 is a splendid one to behold
Default
I guess that it does not work for vb3 as the css is handled differently in vb3?
Reply With Quote
  #19  
Old 04-01-2014, 06:47 AM
ozzy47 ozzy47 is offline
OzzModz Founder
 
Real Name: Chris
Join Date: Oct 2013
Posts: 99
ozzy47 is a jewel in the rough
Default
For vB3, I have this working on some sites, and others it shows a error at the top of the page, but TBH, the error adds to the look.

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(X,X,X)))
{
    $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.
Reply With Quote
  #20  
Old 04-01-2014, 12:23 PM
Alfa1's Avatar
Alfa1 Alfa1 is offline
Tazmanian
 
Join Date: May 2007
Admin Experience: Advanced
Location: Netherlands
Posts: 799
Alfa1 is a splendid one to beholdAlfa1 is a splendid one to beholdAlfa1 is a splendid one to beholdAlfa1 is a splendid one to beholdAlfa1 is a splendid one to beholdAlfa1 is a splendid one to beholdAlfa1 is a splendid one to beholdAlfa1 is a splendid one to behold
Default
Doesn't seem to work on litespeed.
Reply With Quote
Reply

  Admin Zone Forums > The Software Zone > Forum Software > vBulletin





Currently Active Users Viewing this Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
April Fools - Doing anything special? PoetJC Community Organization 10 04-02-2014 04:06 PM
April Fools Jokes? css59 Members & Staff 80 02-02-2011 03:42 PM
mybb april fools Mellow.zip Chit Chat 0 04-02-2007 03:30 PM
April fools! tristan_SMM Members & Staff 13 04-02-2007 11:14 AM
For April Fools NetDoc Chit Chat 0 04-01-2004 09:21 AM


 

All times are GMT -4. The time now is 05:59 PM.


Powered by: vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Page generated in 0.08433294 seconds with 15 queries
The Admin Zone © copyright 2003-2014 All Rights Reserved. Content published on The Admin Zone requires permission for reprint.