Links FAQ

Frequently asked questions about the Links directory script.

Q1: How do I add categories?

Short Answer:

Edit the @categories array in the script.

Long Answer:

Categories are defined in the script configuration. Find the @categories array and add your categories:

@categories = (
    'Computers',
    'Entertainment',
    'Sports',
    'News',
    'Shopping',
    'Education'
);

Q2: Can I moderate links before they appear?

Short Answer:

Yes, enable moderation mode.

Long Answer:

The Links script includes a moderation feature. To enable it:

  1. Find the $moderate variable in the script
  2. Set it to 1: $moderate = 1;
  3. Create a moderation file with proper permissions (666)
How Moderation Works:
  1. User submits a link
  2. Link is saved to moderation file
  3. You review the moderation file
  4. Copy approved links to main links file
  5. Delete spam/inappropriate submissions

Q3: How do I delete or edit existing links?

Short Answer:

Edit the links data file directly.

Long Answer:

Links are stored in a pipe-delimited text file. To edit or delete:

To Delete a Link:
  1. Open the links data file
  2. Find the line with the link
  3. Delete the entire line
  4. Save the file
To Edit a Link:
  1. Open the links data file
  2. Find the line with the link
  3. Edit the fields (keep pipes)
  4. Save the file
Link Format:
Title|URL|Category|Description|Email|Date

Q4: How do I change the sort order?

Short Answer:

Modify the sort subroutine in the script.

Long Answer:

By default, links are sorted alphabetically by title. To change this:

Alphabetical

Default - sorts by title A-Z

Newest First

Sort by date, newest at top

By Category

Group by category, then title

Related FAQs

Guestbook FAQ

Questions about the Guestbook script

WWWBoard FAQ

Questions about the bulletin board

All FAQs

Browse all script FAQs