vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Easter Hack (https://vborg.vbsupport.ru/showthread.php?t=51776)

zajako 04-17-2003 10:00 PM

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.

Ryu 04-18-2003 06:04 PM

Can i see Demo

The_Wanderer 04-18-2003 06:07 PM

a rather pointless, yet funny hack ^_~

zajako 04-18-2003 06:16 PM

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.

The_Wanderer 04-18-2003 06:21 PM

hmm.. wont people be able to click the easteregg link more than one time and earn a ++++load of money?

assassingod 04-18-2003 06:23 PM

Not unless you make the chance of the egg appearing really low;)

Funny hack btw:p

zajako 04-18-2003 06:56 PM

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

rake 04-18-2003 06:57 PM

This reminds me of an awesome site i used to visit.... 2 years ago. The Easter Egg Archive. www.eeggs.com :)

zajako 04-18-2003 07:09 PM

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 :]

Logik 04-18-2003 08:51 PM

Funny hack. Amusin. Good job :)

zajako 04-18-2003 09:05 PM

thanks thanks :]

Logik 04-18-2003 09:19 PM

No problem. Keep up the good work!

NuclioN 04-18-2003 11:58 PM

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.

NuclioN 04-19-2003 12:33 AM

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. :(

zajako 04-19-2003 02:03 AM

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.

sonic3d 04-19-2003 02:43 AM

it doesn't work for me. i dunno what else to say

l8er
sonic

zajako 04-19-2003 03:24 AM

where did you put $eggshow
?

what did you set the odds to.

sonic3d 04-19-2003 03:27 AM

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

zajako 04-19-2003 03:48 AM

odd, aim me at zajako3, i can try to work with you on it.

sonic3d 04-19-2003 03:52 AM

ok but i dont see u as online

aim: Ayman86

l8er
sonic

zajako 04-19-2003 04:27 AM

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.

zajako 04-19-2003 05:06 AM

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.

subu1 04-19-2003 06:45 AM

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

zajako 04-19-2003 09:01 PM

thanks for the info subu1

Talisman 04-23-2003 04:19 PM

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

Koutaru 04-24-2003 09:20 PM

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

zajako 04-25-2003 06:54 PM

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

Koutaru 04-25-2003 09:37 PM

Thanks Zajako -- My sn is the same as it is on vB.org -- Koutaru
:)

zajako 05-14-2003 06:31 AM

koutaru i never see you online.

Koutaru 05-14-2003 07:21 PM

I IMed you once but I think you were busy

and dont worry about it, I figured it out :p

zajako 05-16-2003 12:05 AM

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.

gmarik 05-17-2003 08:03 AM

Is there a demo now?

Koutaru 05-18-2003 03:40 AM

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

gengar003 06-01-2003 12:56 AM

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?

Koutaru 06-01-2003 02:36 AM

put it in phpinclude or global.php ;) and then delete the code from index.php

gengar003 06-01-2003 12:52 PM

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...

gengar003 06-01-2003 01:14 PM

Ah. I see. I had it in phpinclude AND global.php, so it didn't work. :) Now it does!

gengar003 09-01-2003 06:58 PM

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
  • Page Generation 0.01326 seconds
  • Memory Usage 1,773KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (38)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete