scriptygoddess

19 Jun, 2002

Add a link script

Posted by: Jennifer In: Scripts

Current Version: 0.9 beta
last updated: 6/24/02

******IMPORTANT UPDATE 11/02******
There's been a number of bugs found with this script. Lynda had been working on a mySQL version but that was several months ago – so I think she's moved on.

I'm sorry, but I've ceased development of this script. Blogrolling.com seems to be developing (or has developed) one very similar (for mysql as well) that seemed to be more advanced than mine. I began to feel like I was re-inventing the wheel, except that my version of it was coming out square 😉
**************************************

About this script:
This script will create and maintain a list of links (similar to, although admitedly not as cool as, blogroller). The nice thing about this is that it lives on your server. you can still customize the display. you can chose to display a randomly selected few from the list. you can still use a bookmarklet to add links (IE only)And, as opposed to blogroller, even if the user has javascript disabled, the list will still display. (Please note that this is written in PHP and thus requires that you can run PHP on your server)

Download it here. The instructions are VERY easy (see the readme) – there's only one file you have to edit.

Current Version:
0.9 (beta) released 6/24
please note: minimal testing has been done. So please email any bugs you find to me.

Future Development:
-addition of link and bookmarklet for IE search bar page.
-support for "priority" sorting.
-ability to list "images" instead of just text links
-ability to have a "public" add a list form – which holds links until approved (email notification when link is added)
-clean up sloppy code!!! (put as much stuff as possible in reusable functions)
… care to suggest a feature you'd like to see?

Additional Credit:
This script was based originally on a script sent in by Liz.
XML parsing class provided by Hans Anderson Corporation.

**Important!** When you create your links file… make sure you back it up… Again, this is a BETA script sooo… there's no guarantees :)

66 Responses to "Add a link script"

1 | Liz

September 27th, 2002 at 11:29 am

Avatar

Hi, is a new version ever coming out?
Thanks,
Liz

2 | Jennifer

September 27th, 2002 at 1:56 pm

Avatar

I had intended to make a new one… but time has been really short recently. I think it needs quiet an overhaul – and I just haven't had the time to devote to it like I had had before. :(

Anyone is free to take on the challenge though, and I'd be happy to help out/advise…

3 | Shannon

October 21st, 2002 at 9:28 pm

Avatar

About the "flex scanner" error on the linkadmin page…
Try this:
ftp into linkfiles.php, it should have a list of your lists, go to the end of the last list name and hit delete a time or two. This should fix the problem.

4 | Bob Roach

November 8th, 2002 at 7:36 am

Avatar

Is anyone still here?

5 | Jennifer

January 15th, 2003 at 9:12 am

Avatar

If your server was recenlty upgraded and/or if you've recently started getting a weird error using the weblogs checking code – you'll need to make a slight change to weblogsupdate.php

Look for this line:
$file = "http://www.weblogs.com/weblogUpdates/changes.xml";
and change it to this:
$file = "http://weblogs.com/weblogUpdates/changes.xml";
(remove the "www." part of the url)

That should fix the problem.

6 | reb

January 15th, 2003 at 11:11 am

Avatar

i know you're not really offering support for this anymore, so i'm sending this question out to anyone out there who will find it in the kindess of their heart to help me. :) i keep getting the following error when i put the code on page….

Warning: main(class.xml.php) [function.main]: failed to create stream: No such file or directory in /home/reb/public_html/links/weblogsupdate.php on line 2

Fatal error: main() [function.main]: Failed opening required 'class.xml.php' (include_path=") in /home/reb/public_html/links/weblogsupdate.php on line 2

i have no idea what to do next. any help would be awesome! thank you!

7 | Jennifer

January 15th, 2003 at 12:52 pm

Avatar

Aside from the change I made… it looks like paths to files also need to be absolute paths. (Found this on Christine's site.
so files need to be like this:
/home/path/to/file/file.php
instead of using http://yoursite.com/path/to/file/file.php.

Don't know if that helps at all…

8 | Jennifer

January 15th, 2003 at 1:36 pm

Avatar

It looks like my bug fix may not be needed after all… If you're getting errors, give it a try. If you're not – don't worry about it. :)

9 | David

January 16th, 2003 at 12:11 pm

Avatar

One problem I'm getting.. is at the main screen it has a weird message.

It's kind of long:
"links:
:‹e .a ..;‹e styles.css×<‹e addalink.php=‹eaddalinkform.phpi³Ø>‹e addalist.php?‹e class.xml.php@‹e editlink.phpA‹e footer.php×B‹e getCode.phpC‹e linkadmin.phpD‹elinkconfig.phpE‹e linkfiles.phpF‹e moveLinks.phpG‹emyBookmarklet.php³ØH‹e readme.txt×I‹eremovealist.phpJ‹eremovelink.phpK‹e topnav.php×L‹eweblogsupdate.php³ØM‹e@ links.phpx×"

10 | reb

January 17th, 2003 at 3:07 pm

Avatar

hmm…well, i didn't change any of the paths to web paths…..just followed the instructions that came with the download and only put absolute paths in it. do i need to change any paths within the files themselves?

11 | Jamie Moore

April 10th, 2003 at 9:48 am

Avatar

Hey I take it that this is a good service!

12 | Jill

April 18th, 2003 at 2:51 pm

Avatar

Don't know if anyone is still reading comments on this post but I am running into errors trying to set it up…

Warning: fopen(/home/perpetua/public_html/links/) [function.fopen]: failed to create stream: Is a directory in /home/perpetua/public_html/links/addalinkform.php on line 20

Warning: fwrite(): supplied argument is not a valid stream resource in /home/perpetua/public_html/links/addalinkform.php on line 25

Warning: fwrite(): supplied argument is not a valid stream resource in /home/perpetua/public_html/links/addalinkform.php on line 30

Warning: fwrite(): supplied argument is not a valid stream resource in /home/perpetua/public_html/links/addalinkform.php on line 32

Warning: fclose(): supplied argument is not a valid stream resource in /home/perpetua/public_html/links/addalinkform.php on line 33

Any idea what the problem is? I made sure I chmodded the appropriate files. Awesome script btw!!

13 | Jill

April 18th, 2003 at 3:12 pm

Avatar

Ok… making progress. I have gotten rid of the above errors but still get the following on the admin page…

Warning: main(/home/perpetua/public_html/links/) [function.main]: failed to create stream: Inappropriate ioctl for device in /home/perpetua/public_html/links/linkadmin.php on line 30

Warning: main() [function.main]: Failed opening '/home/perpetua/public_html/links/' for inclusion (include_path='.:/usr/local/lib/php') in /home/perpetua/public_html/links/linkadmin.php on line 30

14 | Akilesh Ayyar

May 7th, 2003 at 4:06 am

Avatar

Hi everyone. I took the script and made a few small revisions to it. The main change is that it can now import and export OPML (though you can't much manipulate it). I wanted this feature because I use an RSS aggregator, and want to easily be able to have my blogroll keep up with my news reading list.

You can download the revised script here

Please inform me if there are any major bugs, though I don't think I'll be adding new features. This is, at least for the moment, a one-shot thing.

I hope you enjoy it.

15 | Jennifer

September 11th, 2003 at 6:20 pm

Avatar

Hi! I have just installed add-a-link (and everything is fine) but I am having problems trying to figure out what the path to my links files is.. Call me blonde but this is what I am getting..(?)

Example:
<?
//change the path below to point to where your links file are
$pathToLinks = " ";

I keep getting a warning when I go to the admin about this, So if anyone could help me out I would greatly appreciate it.. Feel free to email if you got a few minutes..:)
Thanks..
Jenn

16 | Affy

November 30th, 2004 at 8:41 pm

Avatar

i can't remove links

Featured Sponsors

Genesis Framework for WordPress

Advertise Here


  • Scott: Just moved changed the site URL as WP's installed in a subfolder. Cookie clearance worked for me. Thanks!
  • Stephen Lareau: Hi great blog thanks. Just thought I would add that it helps to put target = like this:1-800-555-1212 and
  • Cord Blomquist: Jennifer, you may want to check out tp2wp.com, a new service my company just launched that converts TypePad and Movable Type export files into WordPre

About


Advertisements