Welcome to Geeklog, Anonymous Friday, November 15 2024 @ 12:01 am EST

Geeklog Forums

Topic Images


Status: offline

adydas

Forum User
Junior
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.

 Quote

Status: offline

Dirk

Site Admin
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
 Quote

All times are EST. The time is now 12:01 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