Welcome to Geeklog Sunday, October 24 2021 @ 02:29 pm EDT

Geeklog Forums

Block that includes all links in a category


Status: offline

wfzimmerman

Forum User
Chatty
Registered: 24/10/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: 12/01/02
Posts: 13073
Location:Stuttgart, Germany
Not sure what your actual problem is ...

To get all the link categories, use something like
PHP 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 02:29 pm.

  • 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