Author Topic: [MOD] Show Image name in Status bar / Bildname in Statuszeile  (Read 7386 times)

0 Members and 1 Guest are viewing this topic.

b.o.fan

  • Guest
Now, Here is my first MOD. Please not so hart, if something is not right. :?

If you want show the name of Next and Previous image on status bar than look @ this here.

Files to edit:

/templates/<YOUR_TEMPLATE>/header.html
/templates/<YOUR_TEMPLATE>/details.html
/templates/<YOUR_TEMPLATE>/category_bit.html

1.) Find in header.html

Code: [Select]
</head>
add above

Code: [Select]
<script language="JavaScript">
        function a(txt) {
                self.status = txt
        }
        function b() {
                self.status = ""
        }
</script>

2.) Find in details.html

2.1.)
Code: [Select]
<a href="{prev_image_url}">{prev_image_name}</a>
replace with

Code: [Select]
<a href="{prev_image_url}" onMouseOver="a('{prev_image_name}');return true"
onMouseOut="b()">{prev_image_name}</a>

2.2.)
Code: [Select]
<a href="{prev_image_url}">{prev_image_name}</a>
replace with

Code: [Select]
<a href="{prev_image_url}" onMouseOver="a('{next_image_name}');return true"
onMouseOut="b()">{prev_image_name}</a>

// if you show the NEXT and PREV Picture with a Tumb. You must change this. //
Like the Picure above. :)

Find this:
Code: [Select]
<a href="{prev_image_url}"><img src="{prev_thumb_file}" border="1"></a>
Replace with:
Code: [Select]
<a href="{prev_image_url}" onMouseOver="a('{prev_image_name}');return true"
onMouseOut="b()"><img src="{prev_thumb_file}" border="1"></a>

And Find:

Code: [Select]
<a href="{next_image_url}"><img src="{next_thumb_file}" border="1"></a>
Replace with:

Code: [Select]
<a href="{next_image_url}" onMouseOver="a('{next_image_name}');return true"
onMouseOut="b()"><img src="{next_thumb_file}" border="1"></a>

3. Find in category_bit.html

Code: [Select]
<a href="{cat_url}" class="maincat"><img src="{cat_image}">
Replace with:

Code: [Select]
<a href="{cat_url}" class="maincat" onMouseOver="a('{cat_name}');return true"
onMouseOut="b()"><img src="{cat_image}">

now the Category Name is shown in the Statusline too.

Now i wish you a lot of Fun.

 :D :D

b.o.fan
« Last Edit: January 06, 2006, 12:24:35 AM by V@no »

Offline Darkness2001

  • Full Member
  • ***
  • Posts: 151
    • View Profile
    • photo-galerie-online
Re: [MOD] Show Image name in Statusline / Bildname in Statuszeile
« Reply #1 on: January 05, 2006, 05:44:15 PM »
Hello,

verry nice, thank's

Darkness

Offline novw

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: [MOD] Show Image name in Status bar / Bildname in Statuszeile
« Reply #2 on: March 21, 2006, 10:41:40 AM »
@2.2 should ofcourse read:

Code: [Select]
<a href="{next_image_url}">{next_image_name}</a>

replace with

Code: [Select]
<a href="{next_image_url}" onMouseOver="a('{next_image_name}');return true"
onMouseOut="b()">{next_image_name}</a>
[/url]

(replaced all prev_ with next_) ?