Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
[BLOCK] Random quote
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2011-03-27 18:13:17
Block that shows a random quote.

Create quote_block.php

<?

begin_block("Random Quote");

?><center><?

$file= "./quotes.txt";

$quotes = file($file);

srand((double)microtime()*1000000);

$randomquote = rand(0,count($quotes)-1);

echo $quotes[$randomquote];

?></center><?

end_block();

?>


Create a file called quotes.txt in root and add quotes like this:

This is the first quote - Person One

This is the second quote - Person Two



[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=4840"]quote_block.php[/url]

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=4841"]quotes.txt[/url]

Enjoy
quote_block.php
Download
quotes.txt
Download
example.PNG
example.PNG
Unknown User
2013-02-03 20:48:22
Thank you.
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728