PDA

View Full Version : Ask the 8ball


dymo
30 Apr 2002, 05:48
this is another one of those scriptlets i had collected that i modified to provide a bit of fun for my users but its giving me a bit of a problem, its completely functional, just the response to the question is being parsed to the top of the page rather than under the question

add a template called 8ball
and insert the following


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


copy the attached 8ball.php into your forums directory
and then run it ie http://yoursite.com/forums/8ball.php

you can see a working demo here (http://www.gamer-networks.com/forums/8ball.php)

DWZ
30 Apr 2002, 07:20
augh, need to register :\

can you post a screenshot?

dymo
30 Apr 2002, 07:49
sorry about that forgot i added in the user check to the 8ball system
here are the screen shots
http://www.gamer-networks.com/forums/images/8ball-q.jpg
http://www.gamer-networks.com/forums/images/8ball-a.jpg

John
30 Apr 2002, 08:24
That answer doesn't look too hopeful :S

Chen
30 Apr 2002, 08:38
Originally posted by JohnWarwick
That answer doesn't look too hopeful :S
That's the whole point of 8-Ball. ;)

tweak
30 Apr 2002, 09:45
Kool Hack but i get these errors on your forum???

Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site2/fst/var/www/html/forums/8ball.php:1) in /home/virtual/site2/fst/var/www/html/forums/admin/functions.php on line 1647

Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site2/fst/var/www/html/forums/8ball.php:1) in /home/virtual/site2/fst/var/www/html/forums/admin/functions.php on line 1647


Also the answer appears in the top corner??

Floris
30 Apr 2002, 13:24
Does that javascript work on ie5 and ns4 and opera & mozilla ?

dymo
30 Apr 2002, 18:17
Originally posted by tweak
Kool Hack but i get these errors on your forum???

Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site2/fst/var/www/html/forums/8ball.php:1) in /home/virtual/site2/fst/var/www/html/forums/admin/functions.php on line 1647

Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site2/fst/var/www/html/forums/8ball.php:1) in /home/virtual/site2/fst/var/www/html/forums/admin/functions.php on line 1647


Also the answer appears in the top corner??

the answer in the corner is a bug hence its a beta release.

the header info you get on my forums is in the process of being hacked right now to support multiple cookies, just refresh it and it goes away.

if anyone has an idea of how to get the answer to appear under the question i could really use it


Xi the js should work on anything higher than ie 4 and ns 4, if the browser cnt use it , it should ignored, the js only provides the idiot correct of someone submitting a blank question
d

M.Smith
04 May 2002, 21:17
Originally posted by xiphoid
Does that javascript work on ie5 and ns4 and opera & mozilla ?

im suprised ns4 supports html never mind that js :p

GenSec
08 May 2002, 12:57
Originally posted by dymo


the answer in the corner is a bug hence its a beta release.

Move

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

up. Place before

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

BigJohnson
31 May 2002, 21:16
I like this hack alot and i have added more than a couple hundred different sayings to this 8 Ball. If someone else can create this hack to work with my 8 ball that i made with photoshop and insert the message inside the ball that would be awesome. That would be cool if there was a fading effect when you clicked the buttons after typing in your question and the page doesnt refresh to see you answer. Right when you click the button the 8 ball will fade to the answer. Is anyone with me on this one and willing to help?

GenSec
10 Jul 2002, 20:51
You can look at my version here (http://www.2x2online.com/magicmirror.php).

BigJohnson
11 Jul 2002, 16:05
Can you please post your version. That would be great. It looks great. Thanks.

GenSec
11 Jul 2002, 16:27
خي. Everything in the txt file.

THANKS Dymo for the nice forum addon!

Boofo
11 Jul 2002, 18:19
This part is kindof confusing in your text file:

Step 2: Replace in 8ball.php the last section to:

As is this part:

include("./footer.php"); //may be in your case it should be deleted

Can you please explain it a little better to this newbie? :)

Originally posted by GenSec
خي. Everything in the txt file.

THANKS Dymo for the nice forum addon!

GenSec
11 Jul 2002, 18:42
If your forum is just VB page
Replace Dymo


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


without

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



It's for those who like me using it on nonVb page and has footer.php file.

BigJohnson
11 Jul 2002, 20:36
Ya but can the answer go somewhere else besides below the footer. I hate that part.

GenSec
12 Jul 2002, 07:11
Originally posted by BigJohnson
Ya but can the answer go somewhere else besides below the footer. I hate that part. Why below. I said above and you can see on my page that problem just to move up eval("dooutput(\"".gettemplate("8ball")."\");");



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

BigJohnson
12 Jul 2002, 15:45
Ya thats what i have but the answer is below the footer on my site.