Author Topic: changing "catagories/new images" text to images?  (Read 3370 times)

0 Members and 1 Guest are viewing this topic.

Offline Shap

  • Full Member
  • ***
  • Posts: 114
    • View Profile
changing "catagories/new images" text to images?
« on: December 14, 2002, 05:22:02 PM »
Is it possible to change the text on the homepage that says catagories, and New Images, to an image instead of text?

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Yes
« Reply #1 on: December 14, 2002, 05:38:16 PM »
Absolutely.

Just edit the template and replace
Code: [Select]
{lang_top_images}
with an HTML <img> tag like this:
Code: [Select]
<img src="{template_url}/images/my_top_images.gif" border="0">

Alternatively, you can also edit your language file.  Assuming english:
Open lang/english/main.php and replace:
Code: [Select]
$lang['top_images'] = "Top Images";
with something like this:
Code: [Select]
$lang['top_images'] = "<img src=\"{template_url}/images/my_top_images.gif\" border=\"0\">";
Take special note of how there is a backslash (\) character before the embedded double quote (") characters in the line.  This method will replace all the occurrences of "Top Images" everywhere in the templates.

{template_url} will get replaced with the location of your templates so just upload the my_top_images.gif to your template's "images" directory.

Offline Shap

  • Full Member
  • ***
  • Posts: 114
    • View Profile
changing "catagories/new images" text to images?
« Reply #2 on: December 14, 2002, 07:19:21 PM »
thanks!