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)
-   -   Random Quote Hack (https://vborg.vbsupport.ru/showthread.php?t=38139)

Sketch 05-01-2002 10:00 PM

Random Quote Hack
 
If anyone else has hacked this, I could not find it, so here I post.

This is my first hack. Simple one. Took 5 minutes to create. Designed for vB 2.2.5 but may work on other versions too. Requires MySQL so if you're a high end vB'er that is using another db, you'll have to modify this to your highly customized situation.

The hack creates a new table (unpopulated) and randomly selects one quote from the table everytime the page loads. It displays on the home page immediately above the forums.

Demonstration can be seen at (not online anymore)

Good luck
Sketch

TWTCommish 05-02-2002 02:55 AM

It has indeed been done before. :) Sorry man. :(

Random Quote On ForumHome

DWZ 05-02-2002 02:58 AM

Quote:

Originally posted by TWTCommish
It has indeed been done before. :) Sorry man. :(

Random Quote On ForumHome

althought that one still has problems :(

Sketch 05-02-2002 02:59 AM

Ah well. His is a bit better, it would seem with integrated means to add quotes whereas you're on your own with mine. Valiant effort on my part anyways. ;)

Sketch

Velocd 05-02-2002 03:14 AM

Valiant indeed. ;)

Floris 05-02-2002 06:28 AM

Sorry dude, lesane beat you to it :)

Sketch 05-02-2002 09:42 AM

oh well. I had fun doing it anyways. ;)

Sketch

Sparkz 05-02-2002 09:52 AM

Hmm, Sketch, you're not supposed to remove the copyright-notice from the footer. It is clearly stated with comments surrounding it.

Sketch 05-02-2002 10:59 AM

Sparkz,

I did not look into the original footer in depth, I just copied my footer from my other board straight over. Ctrl-A/Ctrl-V without much attention given. Now that I look at the original, you're right and I have corrected that. Thanks.

Sketch

Sparkz 05-02-2002 11:16 AM

:)


All times are GMT. The time now is 01:33 PM.

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.01100 seconds
  • Memory Usage 1,728KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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