mu.nu - It's mackerel stewed in chocolate!

May 23, 2004

MuNu Blogrolls - PHP Includes

Ace requested a cut and paste text listing for the blogrolls. I'm sure that the ecosystem counts the results from the javascript code, but just in case I took the scripts that Pixy did, modified them for a php include, and uploaded them to the MuNu site.

To get a MuNu blogroll in chronological order use this code:

<div class="sidetitle">
MuNuvians
</div>
<div class="side">
<?php include('http://munuviana.mu.nu/archives/mu.inc'); ?>
</div>

To get a MuNu blogroll in alphabetical order, use this code:

<div class="sidetitle">
MuNuvians
</div>
<div class="side">
<?php include('http://munuviana.mu.nu/archives/nu.inc'); ?>
</div>

You must have php extensions on your files for this to work. For the MuNubys, I think that your sites are set up as php. The older blogs would have to complete the conversion process.

Question for Pixy/Rob/???: How do you get the apostrophe to display in the blog names? General FYI:

Php is server side scripting. The script processing takes place at the server your site is hosted on, then sent to the requesting client.

Javascript is client side scripting. The information is sent to the requesting client. The script processing then takes place on the client side by the browser. For this to take place, the client computer has to have javascripting enabled in the browser via their internet settings.

[You Jr Brain Scientists out there correct me if I'm wrong on the above simple explainations. Thanks.]

Posted by: Madfish Willie at 05:04 AM | Comments (17) | Add Comment | Trackbacks (Suck)

1 Hmmm...how does one convert? There's no body part snipping or cold river immersion involved, is there?

Posted by: Susie @ at May 23, 2004 07:18 AM

2 Madfish:

You've got both includes pointing to the same file. Need to point the first one to mu.inc to get the chronological one. Doncha just hate typos!?

Posted by: Light & Dark @ at May 23, 2004 08:20 AM

3 D'oh! I copied the bottom one up to the top and forgot to change the filename. Thanks for the heads up.

Posted by: Madfish Willie @ at May 23, 2004 05:27 PM

4 Ok, confused... you need to escape various characters in order to get them to display. The include as is throws a parse error at the moment.

From the looks of it, you don't need to use PHP echos in the .inc files to get the blog rolls to dislpay. You can just use standard HTML and it will be included as is. I already use this technique for both my sidebars.

Let me know if this makes sense.

Posted by: Rob @ at May 24, 2004 11:17 AM

5 Thanks for the help, Mr Rob. All done and working like a champ. You da man!

Posted by: Madfish Willie @ at May 24, 2004 07:02 PM

6 Thanks for doing that, guys!

Posted by: ace @ at May 24, 2004 09:35 PM

7 I'm using it too, thanks! I don't want to rob anybody of ecosystem links.

Posted by: SpaceMonkey @ at May 31, 2004 02:34 PM

Hide Comments | Add Comment






Processing 0.0, elapsed 0.0114 seconds.
22 queries taking 0.0083 seconds, 29 records returned.
Page size 9 kb.
Powered by Minx 0.8 beta.