Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest sNews - sNews 1.7 - with its own forums - for discussion and user mods.

Author Topic: [MOD]Archive by Month (collapsible/expandable) for 1.4  (Read 3467 times)

centered

  • Guest
[MOD]Archive by Month (collapsible/expandable) for 1.4
« on: June 07, 2007, 06:24:08 am »

Original Mod by Bakercad here: http://www.solucija.com/forum/viewtopic.php?id=4361

0. backup!!!

1. Requires the following:

[MOD] Archives by Month and Year (sNews 1.4)
http://www.solucija.com/forum/viewtopic.php?id=928

And

[MOD] Hidden comment form until clicked for 1.4
http://www.solucija.com/forum/viewtopic.php?id=4933

2. Find function archives()

This line:
Code: [Select]
echo "<p><b>" .$month_name. ", " .$year. "</b></p>";Replace with:
Code: [Select]
echo "<p><a title='" .$month_name. ", " .$year. "' onclick=toggle('sub2') style='cursor: pointer;'><b>" .$month_name. ", " .$year. "</b></a></p>";
echo "<div id='sub2' style='display: none;'>";
Then before the last closing bracket add:
Code: [Select]
echo '</div>';
« Last Edit: September 24, 2007, 01:46:11 am by philmoz »
Logged