vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   vB RANDOM QUOTE ON FORUMHOME (https://vborg.vbsupport.ru/showthread.php?t=96226)

adamgessel 09-13-2005 10:00 PM

vB RANDOM QUOTE ON FORUMHOME
 
This hack will work for every Release Candidate version.

=============
DEMO BOARD
=============
Demo board is located at: http://www.forumfreedom.net/
Feel free to visit.

=============
DESCRIPTION
=============
This hack will add custom random quotes directly below the navbar (See the example ). You customize the quotes in a text file easily, and a random one is displayed. Makes it very easy. This hack was requested in the vbulletin 3.5 request forum.

Keep in mind that this will randomize any text and display different lines of the text file randomly, so it can be used for more than quotes.

=============
INSTALLATION
=============
Difficulty: Easy
Time: 1-2 Minutes

PLEASE CLICK INSTALL!!!

KuRi 09-14-2005 02:36 AM

do correct me if im wrong but cant the file edit be subsidised by a plugin??

adamgessel 09-14-2005 02:37 AM

It can but it's getting late over here and some people wanted this hack, so I'll probably update it tomorrow but I haven't read up on plugins and I'm not sure how to create them... I'll have to do the rest tomorrow but this works and will keep people happy. It's hardly any work on the installer's part.

KuRi 09-14-2005 02:47 AM

ive tested it with plugin and it works... allso you mite wanna update your instructions as its the forumhome template you want to edit not the navbar template and commenting lines out of templates with // wont work you need to use <!-- text --> <!-- /end text -->

KuRi 09-14-2005 02:53 AM

As im so nice ive done the fixes for you.... no file edit requred :):)

EDIT: i forgot to add the updated instructions file to the zip.... and i have allso updated the template edit so it is collapsable :):)

Boofo 09-14-2005 03:03 AM

Why would you want to display different lines of the quotes randomly? That would mess up a quote with more than one line to it.

Also, you need to make a test count for your demo links in your Mods instead of enticing users to register at your forums just to see what the mod looks like. Posting pics here in the thread would be better. ;)

KuRi 09-14-2005 03:11 AM

updated again... no need for rand.php as that can be put in the plugin..... now all i need to do is get rid of the need for the txt file lol

EDIT: Added a screenshot of the result using my update....

Andreas 09-14-2005 09:35 AM

I'd make it a mySQL Table, with some nice ACP Script to manage quotes and then just randomly select one?

And why global_start if it's only for Forumhome?

Btw: I had to remove the original ZIP due to license issues.

Barakat 09-14-2005 11:44 AM

just fix the
PHP Code:

<--! vbRandomQuote by Adam Gessel --> 

to
PHP Code:

<!-- vbRandomQuote by Adam Gessel --> 

in the formhome so as not to show up .

adamgessel 09-14-2005 08:15 PM

I will make this better of course, I know I didn't do it the best way but if you want it, here it is. Just understand that this was something I did quick, and it will be updated and you will know when an update comes.


All times are GMT. The time now is 05:45 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.01034 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_php_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