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 May 23, 2004 05:04 AM
Comments
#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
#8

>Spyware Removal - Net Cop - Spyware Removal

Posted by Net-Cop at February 15, 2005 11:08 AM
Live Comment Preview
Post a comment









Remember personal info?