Welcome to Geeklog, Anonymous Friday, October 07 2022 @ 08:10 am EDT

Geeklog Forums

Block that includes all links in a category


Status: offline

wfzimmerman

Forum User
Chatty
Registered: 10/24/03
Posts: 50
I want to create a block that displays all the links in a category. I know this must call one of the link functions, which I can figure out from the code, but am fuzzy on all the stuff which goes around it.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Not sure what your actual problem is ...

To get all the link categories, use something like
Text Formatted Code
DB_query("SELECT DISTINCT category FROM {$_TABLES['links']}");
 
(which can actually be found in links.php).

bye, Dirk
 Quote

All times are EDT. The time is now 08:10 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content