Welcome to Geeklog, Anonymous Saturday, November 30 2024 @ 07:47 am EST

Geeklog Forums

Add image to topic list


xico_lopez

Anonymous
I'm wondering how to add a icon to each item in the topic list. Just a little image about the topic like say a image of question mark for help or something like that. Thanks guys
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
You would have to hack function COM_showTopics() in lib-common.php. Shouldn't be hard to do ... bye, Dirk
 Quote

xico_lopez

Anonymous
Thanks, i just play with it and i think i'll can do it. I have to add a field to the topic table in order to put the desired image.
 Quote

solomon

Anonymous
caffeinated
Hi

I wish to do this also - have a little looksie at what I'm working on. You will notice that it's pretty heavily re-templated.

You will also see the little orange arrow in the left column. What I want to do is have this icon next to each element in the right hand topic navigation. This navigation links to various static pages.

I can achieve it by templating the footer to accommodate this but this is not particularly X-browser compatible and means I need to alter it if we drop or make new pages.

I've had a look at lib-common and tried hacking COM_showtopics by changing
Text Formatted Code


return $retval;

to

$retval = "<img src="yada yada"> ".$retval;
return $retval;

 

but have not had much success.

Does anyone know how to hack this function properly? I hope I've managed to explain this well enough for someone to give me a hand here

Cheers
 Quote

solomon

Anonymous
embarrassed
d'oh

there's me looking for the hard way to do it when all I needed to do was look in topicoption.thtml!
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The topic's icon will also be available as a variable (in topicoption.thtml) in Geeklog 1.3.10.

bye, Dirk
 Quote

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