Random Quote Generator

Main phpBB support such as administration and configuration for 3.x line only.

Moderator: Moderators

Random Quote Generator

Postby chaco on Thu Oct 16, 2008 4:13 pm

I would like a Random Quote Generator on my forum, I require a step by step guide as to how to go about adding this, I have a code I more or less just need to know where to put it, I would like the Quotes to appear in the portal section.

The below picture is from my site, this is the banner, I wish for the quotes to appear at the bottom next to the picture, and also for them to be randomized every time I refresh.

If someone can help me please, I would really appreciate it ^_^

Image

I also have this code, which I can use that I found on another topic, but I have no idea what to do with it.

<?php
$title[0] = "Quote 0";
$title[1] = "Quote 1";
$title[2] = "Quote 2";
$title[3] = "Quote 3";
$title[4] = "Quote 4";
// get a random number
$randomize = rand(0, 4); // Change four to how many arrays you have
echo ($title[$randomize]);
?>
chaco
Registered User
Registered User
 
Posts: 2
Joined: Thu Oct 16, 2008 3:53 pm

Re: Random Quote Generator

Postby chaco on Fri Oct 17, 2008 4:07 pm

Hello?
chaco
Registered User
Registered User
 
Posts: 2
Joined: Thu Oct 16, 2008 3:53 pm

Re: Random Quote Generator

Postby husker on Fri Oct 17, 2008 10:11 pm

There may be a mod. Check out http://phpbbhacks.com
User avatar
husker
Moderator
Moderator
 
Posts: 633
Joined: Wed Dec 22, 2004 11:08 pm
Location: Colorado, USA


Return to phpBB Support

Who is online

Users browsing this forum: No registered users and 3 guests