4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: b.o.fan on May 03, 2005, 08:43:26 PM

Title: [MOD] Show Image name in Status bar / Bildname in Statuszeile
Post by: b.o.fan on May 03, 2005, 08:43:26 PM
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
Title: Re: [MOD] Show Image name in Statusline / Bildname in Statuszeile
Post by: Darkness2001 on January 05, 2006, 05:44:15 PM
Hello,

verry nice, thank's

Darkness
Title: Re: [MOD] Show Image name in Status bar / Bildname in Statuszeile
Post by: novw 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_) ?