vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Ask the 8ball (https://vborg.vbsupport.ru/showthread.php?t=38060)

BigJohnson 05-31-2002 07:16 PM

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 07-10-2002 06:51 PM

You can look at my version here.

BigJohnson 07-11-2002 02:05 PM

Can you please post your version. That would be great. It looks great. Thanks.

GenSec 07-11-2002 02:27 PM

Îê. Everything in the txt file.

THANKS Dymo for the nice forum addon!

Boofo 07-11-2002 04:19 PM

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? :)

Quote:

Originally posted by GenSec
??. Everything in the txt file.

THANKS Dymo for the nice forum addon!


GenSec 07-11-2002 04:42 PM

If your forum is just VB page
Replace Dymo
PHP Code:

          srand((double) microtime() * 1000000);
          
$count count($answers);
 eval(
"dooutput(\"".gettemplate("8ball")."\");");
          echo 
"You asked:<b> ";
          echo 
$requiredquestion;
          echo 
"</b><br><br>and the answer is: <b> " .
$answers[rand(0,$count)];
  }

  
?> 

without
PHP Code:

include("./footer.php"); 

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

BigJohnson 07-11-2002 06:36 PM

Ya but can the answer go somewhere else besides below the footer. I hate that part.

GenSec 07-12-2002 05:11 AM

Quote:

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")."\");");

PHP Code:

 <?
 require("./global.php");
if(!$bbuserinfo[userid]) {
  eval("dooutput(\"".show_nopermission()."\");");

 eval("dooutput(\"".gettemplate("8ball")."\");");
  if (isset($requiredquestion)) {
          $answers = array( "<font face=\"MS Sans Serif\" size=\"2\"
color=\"blue\">Yes</font>",
                                  "<font face=\"MS Sans Serif\" size=\"2\"
color=\"red\">No</font>",                                                                           
                                  "<font face=\"MS Sans Serif\" size=\"2\"
color=\"blue\">Of Course</font>",
                                  "<font face=\"MS Sans Serif\" size=\"2\"
color=\"red\">Never</font>",
                                  "Maybe",
                                  "Theres a Chance",
                                  "What do you think I am, psychic?",
                                  "Sometimes",
                                  "<font face=\"MS Sans Serif\" size=\"2\"
color=\"blue\">Im quit sure about that!</font>",
                                  "<font face=\"MS Sans Serif\" size=\"2\"
color=\"blue\">Thats probably true</font>", 
                                  "<font face=\"MS Sans Serif\" size=\"2\"
color=\"red\">Hell no..</font>",
                                  "<font face=\"MS Sans Serif\" size=\"2\"
color=\"red\">Dont even think about it....</font>",
                                  "Maby , maby not",
                                  "<font face=\"MS Sans Serif\" size=\"2\"
color=\"blue\">You may count on it</font>",
                                  "<font face=\"MS Sans Serif\" size=\"2\"
color=\"red\">The chanse is quit as big as seeing Jay Leno in a
g-string</font>",
                                  "<font face=\"MS Sans Serif\" size=\"2\"
color=\"red\">I would not even concider it..</font>",
                                  "<font face=\"MS Sans Serif\" size=\"2\"
color=\"blue\">I must say yes...</font>",
                                  "<font face=\"MS Sans Serif\" size=\"2\"
color=\"blue\">Damnd right ...</font>",
                                  "<font face=\"MS Sans Serif\" size=\"2\"
color=\"blue\">Sure thing.</font>.",
                                  "<font face=\"MS Sans Serif\" size=\"2\"
color=\"red\">Hahah your kidding right?</font>",
                                         
                                  "<font face=\"MS Sans Serif\" size =\"2\"
color=\"blue\">If you're lucky</font>");
          srand((double) microtime() * 1000000);
          $count = count($answers);
         echo "<table border=\"0\" align=\"center\" width=\"300\" cellpadding=\"3\" cellspacing=\"1\"><tr><td style=\"BORDER: #000000 1px solid; FONT-SIZE: 11px; COLOR: {codefontcolor}; FONT-FAMILY: Verdana,Arial; BACKGROUND-COLOR: {codebackground};\">";
         echo "$bbuserinfo[username]: <b>$requiredquestion</b>";
          echo "</td></tr><tr><TD style='filter:alpha(opacity=10)' onmouseover='nereidFade(this,100,30,5)' onmouseout='nereidFade(this,10,50,5)' background='images/3D.jpg' border=0 HEIGHT='300'  VALIGN='MIDDLE'><center><b>".
$answers[rand(0,$count)];
          echo "</center> </b></td></tr></table>";


  } else {

         echo "<table border=\"0\" align=\"center\" width=\"300\" cellpadding=\"3\" cellspacing=\"1\"><tr><td style=\"BORDER: #000000 1px solid; FONT-SIZE: 11px; COLOR: {codefontcolor}; FONT-FAMILY: Verdana,Arial; BACKGROUND-COLOR: {codebackground};\">";
         echo "$bbuserinfo[username]: <b></b>";
          echo "</td></tr><tr><TD style='filter:alpha(opacity=10)' onmouseover='nereidFade(this,100,30,5)' onmouseout='nereidFade(this,10,50,5)' background='images/3D.jpg' border=0 HEIGHT='300' ALIGN='CENTER' VALIGN='MIDDLE'><b><img src='http://www.2x2online.com/forum/$avatarurl'  border=0>";
          echo "</b></td></tr></table>";
}
  ?>


BigJohnson 07-12-2002 01:45 PM

Ya thats what i have but the answer is below the footer on my site.


All times are GMT. The time now is 01:47 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.01018 seconds
  • Memory Usage 1,769KB
  • 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
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete