Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Support for PhpBB3. Post here to get help with any phpBB3 related issue here There is no support here! Only Read Access!
Forum rules
In order the get any support, you will have to do following:
1. Use a describing title!
2. Describe your problem and what happened when the problem occured
3. Tell us what version of phpBB3 you are currently using.
Else your topic may be ignored or locked!
##########################################################################################
## 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
this is the mod for Random Quotes but it only displays on the index page i even put (QUOTE) on the overall header but still didnt work anyway to make it work on everypage?
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4171: file(quotes.txt) [function.file]: failed to open stream: No such file or directory
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4300: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4302: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4303: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4304: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)