Welcome to Geeklog, Anonymous Tuesday, June 06 2023 @ 07:35 pm EDT

Geeklog Forums

Topic Images

Status: offline


Forum User
Registered: 02/26/04
Posts: 33
What would be the best way to place the topic image icon in front of the topic text link, on the standard topic block navigation that come with GL.


Status: offline


Site Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The function that displays the Topics block is COM_showTopics in lib-common.php. It shouldn't be too hard to do: Add 'imageurl' to the SQL request at the beginning of that function, then, further down, add the image to each of the entries. Also see admin/topics.php for some hints on handling the images.

Actually, I would make a copy of that function and create a PHP block, which could then replace Geeklog's Topics block. This would save you from doing the changes again when a new version comes out.

bye, Dirk

All times are EDT. The time is now 07:35 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