Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 09:04 pm EDT

Geeklog Forums

Replacing Language Calls With Images


Status: offline

jhackwith

Forum User
Chatty
Registered: 07/24/04
Posts: 63
Location:Lewiston, Idaho
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
"Beauty... is the shadow of God on the universe." ~ Gabriela Mistral -- Desolacíon
 Quote

Status: offline

jhackwith

Forum User
Chatty
Registered: 07/24/04
Posts: 63
Location:Lewiston, Idaho
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).
"Beauty... is the shadow of God on the universe." ~ Gabriela Mistral -- Desolacíon
 Quote

Status: Banned

machinari

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

suprsidr

Forum User
Full Member
Registered: 12/29/04
Posts: 555
Location:Champaign, Illinois
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

FlashYourWeb and Your Gallery with the E2 XML Media Player for Gallery2 - http://www.flashyourweb.com
 Quote

Status: offline

suprsidr

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

If that is what you are looking for?

Cheers
FlashYourWeb and Your Gallery with the E2 XML Media Player for Gallery2 - http://www.flashyourweb.com
 Quote

Status: offline

jhackwith

Forum User
Chatty
Registered: 07/24/04
Posts: 63
Location:Lewiston, Idaho
Thanks so much for the replies; I'm playing with the posted code with great results.
"Beauty... is the shadow of God on the universe." ~ Gabriela Mistral -- Desolacíon
 Quote

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