![]() |
Easter Hack
This hack displays a Easter Egg where you want it in your header or footer randomly at a set percentage.
The Egg links to a random link you set in the file. YOu create pages that have extra features or hidden pages, then set them as a link for one of the eggs. Screenshot: https://vborg.vbsupport.ru/attachmen...&postid=384059 NOte: IF this seems to not be working try pasteing the coding added to global.php to your php_include template. |
Can i see Demo
|
a rather pointless, yet funny hack ^_~
|
I would show you one, but on my site its being reserved for easter sunday (this sunday).
Basicaly it shows a little egg that is a random link to your "Easter Eggs" Its only real point is to simulate an easter egg hunt for your site. if you have an rpg system on your site you can make it add gold or something similar by running a query like this one: $DB_site->query("UPDATE user rpgmoney=rpgmoney+100 WHERE userid='$bbuserinfo[userid]"); THis example is for the rpg money with my rpg beta hack. YOu can just change the feild rpgmoney to gold money etc. |
hmm.. wont people be able to click the easteregg link more than one time and earn a ++++load of money?
|
Not unless you make the chance of the egg appearing really low;)
Funny hack btw:p |
good point wanderer, thats why its up to you for crateing the security for it, or you can just configure the code to run the query on the page the egg shows up, so it will only work when the egg shows up.
I dont have it set up for that so i did not go to that extent for coding. How i set it up was to reveal hidden features like a java arcade, old versions of my site back from when i was an html starter etc :P Its all in funn ;p |
This reminds me of an awesome site i used to visit.... 2 years ago. The Easter Egg Archive. www.eeggs.com :)
|
heh yeah it is an awesome site and that was the concept kinda i was aiming at but more aimed for the holidays an not software easter eggs :]
|
Funny hack. Amusin. Good job :)
|
thanks thanks :]
|
No problem. Keep up the good work!
|
Funny hack :) I've put the $eggshow in the postbit as well. Does this mean by the default settings that these eggs can show up...in all of the topic/reply's?
Another question i have is the url to the egg.gif. Is the default correct if you have forum/images/easter/egg.gif ? Because if this is not right the members will search untill they die. |
After starting the egghunt (testing it for easter) our members began to digg the whole forum for the eggs in postings and footers...but they're finding nothing. I've set the eggodds to 50 but nope..no egg. :(
|
Thats cause you can't put it in post bits.
Postbits use a function and functions only carry globals recalled. To fix this in admin/functions.php find: function buildpostbit( shortly under that you see a line that says //users global blah blah blah just add $eggshow before the ; on that line But this will show an egg in every post not just one. If you want it to choose a random post ignore all that ijust said above then instead of having the coding in the global put it in the postbit function under the globals If you do that be sure to set the random lower. |
it doesn't work for me. i dunno what else to say
l8er sonic |
where did you put $eggshow
? what did you set the odds to. |
i put $eggshow in both the header and footer templates. i put my odds to both 100, 50, 1 and i went to all the pages at least 20 times.
l8er sonic |
odd, aim me at zajako3, i can try to work with you on it.
|
ok but i dont see u as online
aim: Ayman86 l8er sonic |
The problem was sonic forgot the query and the on off switch in the admin cp.
This of coursed caused it to be off, and not work. |
if you have problems with it place the coding in global.php in php_include template.
I know that works for sure. Heres a screen shot on my site. |
it works, thank you, but before i have the same error, no eggs, but now i put the code in the phpinclude Template, its run:-)))
greetz subu1 |
thanks for the info subu1
|
Am installing this ...... not for Easter or an egg hunt, but will change the image and references to make it a search for lost treasure (or something).
Will make the graphic a mean old Pirate's treasure chest that links our members to an old map (X marks the spot!!) or off onto some quest should they successfully answer a riddle. Should be interesting whichever way we decide to go with this. Thanks for the great hack! /me installs |
Is there any way to have the rpg money query vary in amount of money? Just wondering :)
And could you point me in the direction of adding security to the query? Thanks :sleep: I'm so sorry for being a PHP newbie |
your fine, aim me zajako2 and i can work with you on making the query work and be secure, as well as reward a random amount
|
Thanks Zajako -- My sn is the same as it is on vB.org -- Koutaru
:) |
koutaru i never see you online.
|
I IMed you once but I think you were busy
and dont worry about it, I figured it out :p |
to take credit just use - instead of plus :]
or if that cuases problems just create it seperately like this: $totalpoints= $bbuserinfo[storep]-$rtclist; Then set storep = $totalpoints You also have my permission to release it as a seperate, more useful hack :] just credit me. |
Is there a demo now?
|
I don't think you need a demo :) its pretty much self explanitory -- and it works!
Zajako, I don't think I'm going to release it as a separate hack since it is basically your code - if they want it, they can find it here :p |
I put $eggshow in my forumhome template, and it worked, then I moved it to the header template, and it didn't work.
What's up w/ that? |
put it in phpinclude or global.php ;) and then delete the code from index.php
|
Hm, I tried putting it in Phpinclude and global.php, but it didn't work, and it was never in index.php to begin with...
|
Ah. I see. I had it in phpinclude AND global.php, so it didn't work. :) Now it does!
|
I wuv this. ^_^ Its great.
|
All times are GMT. The time now is 04:25 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|