http://www.brad-johnson.com/forum/index.php
I link to my forum because I want you to take a look at how the MOD looks on my forum. Scroll down near the bottom of the index, and you will see the random quotation area below the "Who Is Online" or, as I renamed it, "Forum Statistics" section. I would like to be able to do that.
The particular random quotation MOD I'm using is "Random Quotes 2.0". Unfortunately, I couldn't find it searching this forum, but I do have the MOD saved on my hard drive, so here is the info:
Code: Select all
###########################################################################################
## Hack Title: Random Quotes
## Hack Version: 2.0
## Author: Yo^Bam <yobam@linux.nu>
## Fixed by: Acid <acid_junky@web.de
## Description: Displays a random quote on your phpBB.
##
## Files To Edit: index.php, index_body.tpl
## Included Files: quotes.txt
###########################################################################################
##
## quotes.txt goes in your phpBB root dir.
##
###########################################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
###########################################################################################
#
#-----[ OPEN /index.php ]------------------------------
#
#
#-----[ FIND around line 262 ]-----------------------------------
#
$template->assign_vars(array(
'TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts),
#
#-----[ REPLACE WITH ]-------------------------------------------
#
srand ((double) microtime() * 1000000);
$zitate = file("quotes.txt");
$i = count($zitate)-1;
$template->assign_vars(array(
'QUOTE' => $zitate[rand(0,$i)],
'TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts),
#
#-----[ OPEN /templates/xxx/index_body.tpl ]------------------------------
#
#
#-----[ ADD wherever you want ]-----------------------------------
#
<span class="gen">{QUOTE}</span>
#
#-----[ SAVE/CLOSE ALL FILES ]-----------------------------------
# EoM
Extra features such as. . .
-- the ability for users to submit their own quotations into a queue for validation by the admin;
-- the ability for users to comment on any quotation sort of like each random quotation having a guestbook page;
would be cool but aren't as important for me as just having a MOD that does the same thing and can be made to look and function the same way as the one I'm currently using.
EDIT: Also, the quotes.txt file uses html to format the quotes, and each quote is recognized by being on a new line. I was wondering if this could be applied to a phpBB3 MOD, or if I'd have to reformat my whole list.