Topics

User Functions

Events

There are no upcoming events

What's New

Stories

No new stories

Comments last 2 weeks

No new comments

Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Monday, May 20 2013 @ 09:38 AM EDT


 Forum Index > Support > General Geeklog Support New Topic Post Reply
 Add image to topic list
   
xico_lopez
 11/21/02 05:15PM (Read 1004 times)  
+----
Newbie

Status: offline


Registered: 11/05/02
Posts: 3
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

 
Profile Email
 Quote
Dirk
 11/22/02 12:56AM  
AAAAA
Admin

Status: offline


Registered: 01/12/02
Posts: 13027
You would have to hack function COM_showTopics() in lib-common.php. Shouldn't be hard to do ...

bye, Dirk

 
Profile Email Website
 Quote
xico_lopez
 11/23/02 08:34PM  
+----
Newbie

Status: offline


Registered: 11/05/02
Posts: 3
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.

 
Profile Email
 Quote
Anonymous: solomon
 10/13/04 09:54AM  

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
PHP 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
Anonymous: solomon
 10/13/04 11:34AM  

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
Dirk
 10/13/04 01:52PM  
AAAAA
Admin

Status: offline


Registered: 01/12/02
Posts: 13027
The topic's icon will also be available as a variable (in topicoption.thtml) in Geeklog 1.3.10.

bye, Dirk

 
Profile Email Website
 Quote
Content generated in: 2.10 seconds
New Topic Post Reply

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