Author Topic: [RERELEASED] Magic 8 Ball  (Read 34416 times)

Offline eugeniu

[RERELEASED] Magic 8 Ball
« on: January 08, 2007, 09:42:06 am »
Sorry everyone, it never crossed my mind that others will want to use this script later on =(. Well the download link has been updated, enjoy!

This script has a user type a question and submit it. On the next page, the user sees a magic 8 ball, his question, and a random answer from the script. A very useful script. ;)

Download: http://www.fuzillion.com/SMF/personal/downloads/magic8ball.zip
« Last Edit: February 20, 2008, 09:28:50 am by eugeniu »

Offline Maniakc

Re: Magic 8 Ball
« Reply #1 on: January 10, 2007, 12:21:52 pm »
Best item ever! :P

Its very pointless, but I love it, thanks for the great item! :D

Offline eugeniu

Re: Magic 8 Ball
« Reply #2 on: January 10, 2007, 09:13:22 pm »
Thanks. :)

Offline TechnoDragon

Re: Magic 8 Ball
« Reply #3 on: January 11, 2007, 09:59:08 pm »
Great Item and it is a hit on my forum!  Great job!
Don't tell me to get into shape...I have a shape...It is round!


Offline doon

Re: Magic 8 Ball
« Reply #4 on: August 11, 2007, 02:31:00 am »
can u plzz check those linkz again..... thnxxx

zero061099

  • Guest
Re: Magic 8 Ball
« Reply #5 on: August 16, 2007, 04:18:53 am »
Can we possibly get another link please?

J-xToF

  • Guest
Re: Magic 8 Ball
« Reply #6 on: September 17, 2007, 02:14:33 am »
Link is dead.
Update link plz?

Alundra

  • Guest
Re: Magic 8 Ball
« Reply #7 on: September 27, 2007, 07:47:31 am »
please fix the links lol

Offline inkstains

Re: Magic 8 Ball
« Reply #8 on: September 27, 2007, 03:55:01 pm »
your best bet is to probably try emailing the author of the mod

Offline eugeniu

Re: Magic 8 Ball
« Reply #9 on: November 13, 2007, 07:09:05 am »
Wow! I completely forgot about this! Must have been all those months ago when I lost my forums  :P. Hm, I hope it still works with whatever version of the SMF-Shop there is now...lol.

I'll look for the download in my backups folder ^_^.

Alundra

  • Guest
Re: [RERELEASED] ]Magic 8 Ball
« Reply #10 on: November 16, 2007, 11:01:21 am »
did you find it?

Offline eugeniu

Re: [RERELEASED] ]Magic 8 Ball
« Reply #11 on: November 24, 2007, 11:30:33 pm »
Yes, I updated the link about 16 days ago...

Offline Ponchito147

Re: [RERELEASED] ]Magic 8 Ball
« Reply #12 on: February 03, 2008, 01:27:16 pm »
I think you have a bug in your script:

Excuse my English. :-)

If an bad-intentioned user buys the Magic Ball, he can insert any html code in the "question" field. Thatīs very dangerous, because he can obtain the admin password, or hack the forum.....

Here is the solution:

You have to replace the code from $sizeof = count($answer); to </center>";  with this one:

$sizeof = count($answer);
   $random = (rand()%$sizeof);
//make the question a variable
        $cambiar = $_POST['question'];
// Change al the < and >
        $cambiar = str_replace("<","&#8249;",$cambiar);
        $cambiar = str_replace(">","&#8250;",$cambiar);
// print all in the page

return "<center><img src='http://xxxx.lomasinteresante.net/Sources/shop/xx/8ball.jpg' width=300 height=320><br />Tu pregunta fue $cambiar<br /><br />La bola responde:<br /><br />$answer[$random]</center>";

Note: Donīt forget to  change the path for your image and translate al to your language.

Offline hellocritter

Re: [RERELEASED] ]Magic 8 Ball
« Reply #13 on: February 13, 2008, 11:51:05 am »
Sorry, one big silly question... where do I install this script?

This sounds really fun and I would love to try it. Thank you!

Offline hellocritter

Re: [RERELEASED] ]Magic 8 Ball
« Reply #14 on: February 13, 2008, 03:02:48 pm »
Oh I figure it. Thanks! Cool stuff!