Welcome to Geeklog, Anonymous Tuesday, July 08 2025 @ 02:13 pm EDT

Geeklog Forums

Replacing Language Calls With Images


Status: offline
Forum User
Chatty
Registered: 07/24/04
Posts: 63
I'm working on a GL project right now that is coming along famously. However, I'm working with a site navigation designed by someone else and would like to do something, but am unsure where to start.

What I would like to do is replace certain language calls with images. For example, in the User Functions block, I would like an image (that says "User Functions) to be called instead of the text from the language file. This is essential for continuity of design.

I figure that someone out there has done this before, or might know where I could start looking. I'm on the beginner side of intermediate with PHP, MySQL, etc. as I am a web dev but I haven't been able to track down the specific function call that I need to alter.

Any ideas?

TIA,
Jason Hackwith
 Quote

Status: offline
Forum User
Chatty
Registered: 07/24/04
Posts: 63
Just a bump for this topic, because I'm still very interested in providing this feature for my clients.

NOTE: I am quite willing to negotiate payment terms for a subcontractor who is willing to work on this. Please reply here or at web master at into the flame dot com (no spaces, @ sign, obviously).
 Quote

Status: Banned
Forum User
Full Member
Registered: 03/22/04
Posts: 1512
Quote by jhackwith: I'm working with a site navigation designed by someone else and would like to do something, but am unsure where to start.
If you mentioned the particular script name your are referring to, maybe we'll see if anyone has experience with it, e.g., the menu plugin or blaine's glmenu, etc.

otherwise, if you already know where the text can be found in the language file, you can put html into that array as long as you escape it properly. What i mean to say is that you can put the img tags and style into the language file itself.
 Quote

Status: offline
Forum User
Full Member
Registered: 12/29/04
Posts: 555
caffeinated
With javascript this would be simple. I use something similar in my toggle blocks.
Text Formatted Code
if (document.getElementById(id) == "topics"){
document.getElementById(id).innerHTML = "<img src='topics.gif' height='10' width='60' border='0' alt=''>";
 

and then in block-header.thtml you would give:
Text Formatted Code

<div id="{block_title}">  {block_title}</div>
 


if you look at my toggle blocks package, you could probably disect it and make this work easilySmile
 Quote

Status: offline
Forum User
Full Member
Registered: 12/29/04
Posts: 555
brainy
You can find full instructions with code for replacing block titles here.

If that is what you are looking for?

Cheers
 Quote

Status: offline
Forum User
Chatty
Registered: 07/24/04
Posts: 63
Thanks so much for the replies; I'm playing with the posted code with great results.
 Quote

All times are EDT. The time is now 02:13 pm.

  • 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