Welcome to Geeklog, Anonymous Friday, March 29 2024 @ 03:49 am EDT

Geeklog Forums

Images in Blocks


Eddy Tumath

Anonymous
Hi Guys

I'm using Geeklog as the base for a site I'm building for a charity based here in the UK. I'll be sure to let you see when I'm done.

I have a question though :

I need to put an image in to the block that holds the upcoming events. I can't find where to do this though. I've looked in lib-common.php but can't find anything.

I had to put some images in the login block, and that was easy enough. The Events on is proving far, far more difficult.

Any advice greatly appreciated.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
That would be function COM_printUpcomingEvents in lib-common.php.

The block header and footer for the events block can also be overridden in the usual manner by setting new templates for $_BLOCK_TEMPLATE['events_block']. Which may be preferrable to modifiying the code.

bye, Dirk
 Quote

Eddy

Anonymous
Quote by Dirk: That would be function COM_printUpcomingEvents in lib-common.php.

The block header and footer for the events block can also be overridden in the usual manner by setting new templates for $_BLOCK_TEMPLATE['events_block']. Which may be preferrable to modifiying the code.

bye, Dirk


Dirk, thanks for the suggestion. I actually went down a different path though.

For anyone facing the same problems as me in the future, I went in to the Language file and found the text I wanted to replace. In this case it was "Site Events".

In place of :

Text Formatted Code
    102 => 'Site Events',
 


I now have :

Text Formatted Code
    102 => "<img border=\"0\" src=\"http://www.dreamflight.org/ednewsite/images/titles/events_blue_19pt.gif\">",
 
 Quote

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