yeah I did

Err I got a list of errors

scottywz wrote:

To get a random quote without looking at my signature, go:
Random Quote
Random Quote (no title)
All Quotes (see below)
or All Quotes (no title) (see below)

In the query string, you can put in ?action=all_quotes and it will dump all the quotes. One problem: It does the same thing as ?action=random_quote which I have that way because, with variables $q[1], $q[2], etc., I want to display all those variables (they contain ^the quotes), but I don't know how. How do I get it to do that?

The code I have now is:

<?php 

/* A Huge Comment */ 

/* Start App */ 

$nlt = "\n";

/*                      Define quotes                      */
/***********************************************************/
/* (Use ".$nlt at the end of each string except the last.) */

    /* Quote 1 */
    $q1t1 = "\"You know I was thinking hype could really help you, Harold. You're hyper now, so just".$nlt;
    $q1t2 = "back off one letter, and you're there.\" - Red, The Red Green Show";
    $q[1] = $q1t1.$q1t2;

    /* Quote 2 */
    $q2t1 = "\"It's the Possom Lodge Word Game. You know everybody dreams about a two-week vacation".$nlt;
    $q2t2 = "in Hawaii. Well, now you can do more than just dream about it! Ha-ha! Now, you can sit".$nlt;
    $q2t3 = "down and plan it out on your brand new pad of paper!\" - Harold, The Red Green Show";
    $q[2] = $q2t1.$q2t2.$q2t3;

    /* Quote 3 */
    $q3t1 = "\"Can you hear me? Am I talking?\" - Red, The Red Green Show".$nlt;
    $q3t2 = "(After shooting holes inside his Possum van with the doors shut.)";
    $q[3] = $q3t1.$q3t2;

    /* Quote 4 */
    $q4t1 = "\"BOBBY, EAT YOUR CHICKEN!\" - Peggy, King of the Hill".$nlt;
    $q4t2 = "(After being angry at someone else.)";
    $q[4] = $q4t1.$q4t2;

    /* Quote 5 */
    $q5t1 = "Red: \"... This week, we got some good news, got some bad news.\"".$nlt;
    $q5t2 = "Harold: \"What's the bad news?\"".$nlt;
    $q5t3 = "Red: \"Meet my nephew, Harold. And, now, the good news....\"".$nlt;
    $q5t4 = "- Dialog from \"The Group Photo Project\", The Red Green Show";
    $q[5] = $q5t1.$q5t2.$q5t3.$q5t4;

/* End Define Quotes */

$st = $q[rand(1,5)].$nlnt; // The number after the comma should be replaced the number of quotes defined above

/* Don't mod past here unless you know the risks. */

$action = isset($_GET['action']); 

if (!$action) { 

$action = ""; 

} 

else { 

$action = $_GET['action']; 

} 

$title = isset($_GET['html_title']); 

if (!$title) { 

$title = ""; 

} 

else { 

$title = $_GET['html_title']; 

} 

/* If $title == 'yes' or undefined */

if ($action == 'random_quote' && !$title) {
header("Expires: Thu, 04 Jul 1776 00:00:00 GMT");              //
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); //
header("Cache-Control: no-store, no-cache, must-revalidate");  // We don't want it cached. And, yes, the Declaration of Independence was signed on a Thursday.
header("Cache-Control: post-check=0, pre-check=0", false);     //
header("Pragma: no-cache");                                    //
echo '<title>Random Quote</title>'."\n\n".'<pre>'.$st.'</pre>'; // Where's the quote?
}

else if ($action == 'all_quotes' && !$title) {
header("Expires: Thu, 04 Jul 1776 00:00:00 GMT");              //
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); //
header("Cache-Control: no-store, no-cache, must-revalidate");  // We don't want it cached. And, yes, the Declaration of Independence was signed on a Thursday.
header("Cache-Control: post-check=0, pre-check=0", false);     //
header("Pragma: no-cache");                                    //
echo '<title>All Quotes</title>'."\n\n".'<pre>'.$st.'</pre>'; // Where's the quote? // The All Quotes feature is not available yet.
} 

else if ($action == 'random_quote' && $title == 'yes') {
header("Expires: Thu, 04 Jul 1776 00:00:00 GMT");              //
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); //
header("Cache-Control: no-store, no-cache, must-revalidate");  // We don't want it cached. And, yes, the Declaration of Independence was signed on a Thursday.
header("Cache-Control: post-check=0, pre-check=0", false);     //
header("Pragma: no-cache");                                    //
echo '<title>Random Quote</title>'."\n\n".'<pre>'.$st.'</pre>'; // Where's the quote?
}

else if ($action == 'all_quotes' && $title == 'yes') {
header("Expires: Thu, 04 Jul 1776 00:00:00 GMT");              //
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); //
header("Cache-Control: no-store, no-cache, must-revalidate");  // We don't want it cached. And, yes, the Declaration of Independence was signed on a Thursday.
header("Cache-Control: post-check=0, pre-check=0", false);     //
header("Pragma: no-cache");                                    //
echo '<title>All Quotes</title>'."\n\n".'<pre>'.$st.'</pre>'; // Where's the quote? // The All Quotes feature is not available yet.
}

/* If $title == 'no' */ 

else if ($action == 'random_quote' && $title == 'no') {
header("Expires: Thu, 04 Jul 1776 00:00:00 GMT");              //
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); //
header("Cache-Control: no-store, no-cache, must-revalidate");  // We don't want it cached. And, yes, the Declaration of Independence was signed on a Thursday.
header("Cache-Control: post-check=0, pre-check=0", false);     //
header("Pragma: no-cache");                                    //
echo '<pre>'.$st.'</pre>'; // Where's the quote?
}

else if ($action == 'all_quotes' && $title == 'no') {
header("Expires: Thu, 04 Jul 1776 00:00:00 GMT");              //
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); //
header("Cache-Control: no-store, no-cache, must-revalidate");  // We don't want it cached. And, yes, the Declaration of Independence was signed on a Thursday.
header("Cache-Control: post-check=0, pre-check=0", false);     //
header("Pragma: no-cache");                                    //
echo '<pre>'.$st.'</pre>'; // Where's the quote? // The All Quotes feature is not available yet.
} 

/* End App */ 

?>

where /* A Huge Comment */ is, well, a huge comment.

Also html_title can be in the query string, but is optional. If it's not there or set to yes it will add an HTML <title> </title> to the output. If it's set to no it won't.

I got it to work but how do I put it into an image like you have in your sig?

I'm working on that
http://www.punres.org/viewtopic.php?id=427

No because that can really mess up your board.

Edit your header and footer but keep the important punb stuff

I don't know if this will help you but it will clear some stuff up.

The <pun_header> and stuff you see in main.tpl are replaced with code in subsets in header.php (using string replace)

57

(5 replies, posted in General discussion)

The function is more than likely disabled. My host disallows emails yet I still have the script saying it's sent.

What type of Database are you using?

Nice one I'll have to test this on out when I get the chance

Do you mean the red squares un my name in this?
http://videogamenation.ath.cx/viewtopic … d=746#p746

I have like php 4.3.* and the code that was given to me gave me the "call to an undifined function" error

1. not quite sure

2. Only mods and admins can see IPs

I'm not compiling PHP5 unless I need it.

I'm using something else

scottywz wrote:

Yay! It uses PunBB for the forums. (Wait. I already knew that. smile ) CMS Made Simple could be abbreviated as CMS, which could be a recursive acronym then for CMS: Made Simple. (Back on topic...)

your second joke from you I've seen today tongue

Is there a demo of this?

You can make it where members can't view the forum untill you change them to a different group.

Someone else did this mod but this one is better. smile

Nibbler(cpg) wrote:

XMMS has a plugin called "Song Change" that runs a command you specify when the song changes. I set it to the command

php send.php "%s"

the script base64 encodes the title to keep the special chars, and calls a file on the server with ?song=whatever that decodes and writes it to a text file. The file song.php makes the graphic when called.

$im = imagecreatetruecolor(600, 30);
$bg = imagecolorallocate($im, 255, 255, 255);
imagecolortransparent($im, $gb);
$textcolor = imagecolorallocate($im, 0, 0, 255);
$song = file_get_contents('song.txt');
$song = $song ? $song : '[Offline]';
imagestring($im, 5, 0, 0, "Now playing: $song", $textcolor);
header("Content-type: image/png");
imagepng($im);

You need to be running php locally to use this method of course , but I'm sure there are other ways,

Thanks
I've been meaning to set up a server.

edit: I have a server set up with the pages. What command do I set "sound changer" to

Nibbler(cpg) wrote:

Fairly easy to accomplish with xmms, don't know about media player.

http://www.ic-gallery.com/stuff/song.php

how do you do it with XMMS?

69

(26 replies, posted in General discussion)

I just realized something

the guy that asked to be a mod on my forum did not read the rules (it says Read and agree)

Moderators
Im the only one that can assign moderators. If you show that you are a good person, and I feel you deserve it, I will make you a moderator. Begging to be a moderator will get you no where. If you do, that will pretty much ruin your chances of becoming one

<strike> is not valid <del> is valid

thats why I use <em> instead of <i> and stuff like that.

There is not much other BB you would need besides the ones supplied and of course

<del>text</del>

to be

[s]text[/s]

instead of adding BBcode to your DB you could have it in a TXT (probly easyer)

I think he wants the user database to be the same for punBB and Coppermine

XD thats so awxome

I'll keep that in mind

Yahoo is good... for receiving Gmail invites.

It's also good to use for Email validation.