yeah I did
51 2005-06-30 14:06
Re: Show currently playing song in signature/some talk about music & sigs (63 replies, posted in General discussion)
52 2005-06-29 19:50
Re: Show currently playing song in signature/some talk about music & sigs (63 replies, posted in General discussion)
Err I got a list of errors
53 2005-06-29 18:29
Re: Show currently playing song in signature/some talk about music & sigs (63 replies, posted in General discussion)
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?
54 2005-06-27 14:19
Re: PunBB 1.2.5 supermod 1.0.1 (13 replies, posted in PunBB 1.2 modifications, plugins and integrations)
I'm working on that
http://www.punres.org/viewtopic.php?id=427
55 2005-06-26 13:13
Re: Seeking help integrating into an HTML/.php site (10 replies, posted in PunBB 1.2 modifications, plugins and integrations)
No because that can really mess up your board.
Edit your header and footer but keep the important punb stuff
56 2005-06-26 03:01
Re: Seeking help integrating into an HTML/.php site (10 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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 2005-06-25 15:30
Re: Linux Server not sending email (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.
58 2005-06-25 15:27
Re: [help]Colored usergroups (4 replies, posted in PunBB 1.2 modifications, plugins and integrations)
What type of Database are you using?
59 2005-06-24 20:30
Re: [Release] Extra BBCodes 1.0.2 (1 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Nice one I'll have to test this on out when I get the chance
60 2005-06-19 19:00
Re: Icons by usernames... (4 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Do you mean the red squares un my name in this?
http://videogamenation.ath.cx/viewtopic … d=746#p746
61 2005-06-18 21:23
Re: Show currently playing song in signature/some talk about music & sigs (63 replies, posted in General discussion)
I have like php 4.3.* and the code that was given to me gave me the "call to an undifined function" error
62 2005-06-18 16:24
Re: Pls Help : how to remove "Newest registered user" (6 replies, posted in General discussion)
1. not quite sure
2. Only mods and admins can see IPs
63 2005-06-18 14:02
Re: Show currently playing song in signature/some talk about music & sigs (63 replies, posted in General discussion)
I'm not compiling PHP5 unless I need it.
I'm using something else
64 2005-06-18 13:42
Re: CMS Made Simple module (3 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Yay! It uses PunBB for the forums. (Wait. I already knew that. ) 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
Is there a demo of this?
65 2005-06-18 13:34
Re: Admin registration approval? (22 replies, posted in PunBB 1.2 modifications, plugins and integrations)
You can make it where members can't view the forum untill you change them to a different group.
66 2005-06-17 14:23
Re: [Mod] Subject of last post on index (5 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Someone else did this mod but this one is better.
67 2005-06-16 21:40
Re: Show currently playing song in signature/some talk about music & sigs (63 replies, posted in General discussion)
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
68 2005-06-16 15:59
Re: Show currently playing song in signature/some talk about music & sigs (63 replies, posted in General discussion)
Fairly easy to accomplish with xmms, don't know about media player.
how do you do it with XMMS?
69 2005-06-16 02:45
Re: life as a forum-admin! (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
70 2005-06-16 02:30
Re: adding bbcode (54 replies, posted in PunBB 1.2 modifications, plugins and integrations)
<strike> is not valid <del> is valid
thats why I use <em> instead of <i> and stuff like that.
71 2005-06-16 02:07
Re: adding bbcode (54 replies, posted in PunBB 1.2 modifications, plugins and integrations)
There is not much other BB you would need besides the ones supplied and of course
<del>text</del>
to be
[s]text[/s]
72 2005-06-16 00:56
Re: adding bbcode (54 replies, posted in PunBB 1.2 modifications, plugins and integrations)
instead of adding BBcode to your DB you could have it in a TXT (probly easyer)
73 2005-06-13 22:03
Re: PunBB 1.2.5 & Coppermine 1.3.3. (19 replies, posted in PunBB 1.2 modifications, plugins and integrations)
I think he wants the user database to be the same for punBB and Coppermine
74 2005-06-12 23:39
Re: To hell with G-mail Yahoo now gives a gig of storage. (30 replies, posted in General discussion)
XD thats so awxome
I'll keep that in mind
75 2005-06-12 22:36
Re: To hell with G-mail Yahoo now gives a gig of storage. (30 replies, posted in General discussion)
Yahoo is good... for receiving Gmail invites.
It's also good to use for Email validation.