Welcome to Geeklog, Anonymous Monday, December 23 2024 @ 11:50 am EST

Geeklog Forums

Modifying blocks


Anonymous

Anonymous
Hi,
I would like to add "Contact Us" link in the "Sections" block instead of having it at the top (like the "Home" link).

Secondly, I want to get rid of the text Site Events in the Events block when I add an event. I want the events to show up directly.

Can someone tell me how can I achieve this?
Thanks.

- M

 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
For the sections block, you would need to add your link in function COM_showTopics() in lib-common.php. The events blocks is buitl in function COM_printUpcomingEvents() (also in lib-common.php) and you will find the offending text string there (actually, you will find $LANG01[102] which is the reference to that text from the language file). bye, Dirk
 Quote

Anonymous

Anonymous
Thank you.
 Quote

timyang

Anonymous
Dirk, I'm not good at PHP at all. In fact, I don't know anything about it but I'd still like to modify the Sections block. Could you show me an example of the code to add a link called Archive to the Sections block that points to http://mydomain.com/archive.php? And at exactly what point do I add it in the lib-common.php file? Much obliged! Tim
 Quote

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