4images Forum & Community
4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started 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
</head>
add above
<script language="JavaScript">
function a(txt) {
self.status = txt
}
function b() {
self.status = ""
}
</script>
2.) Find in details.html
2.1.) <a href="{prev_image_url}">{prev_image_name}</a>
replace with
<a href="{prev_image_url}" onMouseOver="a('{prev_image_name}');return true"
onMouseOut="b()">{prev_image_name}</a>
2.2.) <a href="{prev_image_url}">{prev_image_name}</a>
replace with
<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:
<a href="{prev_image_url}"><img src="{prev_thumb_file}" border="1"></a>
Replace with:
<a href="{prev_image_url}" onMouseOver="a('{prev_image_name}');return true"
onMouseOut="b()"><img src="{prev_thumb_file}" border="1"></a>
And Find:
<a href="{next_image_url}"><img src="{next_thumb_file}" border="1"></a>
Replace with:
<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
<a href="{cat_url}" class="maincat"><img src="{cat_image}">
Replace with:
<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
-
Hello,
verry nice, thank's
Darkness
-
@2.2 should ofcourse read:
<a href="{next_image_url}">{next_image_name}</a>
replace with
<a href="{next_image_url}" onMouseOver="a('{next_image_name}');return true"
onMouseOut="b()">{next_image_name}</a>
[/url]
(replaced all prev_ with next_) ?