Please login or register.

Login with username, password and session length
Advanced search  

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


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

Original Mod by Bakercad here:

0. backup!!!

1. Requires the following:

[MOD] Archives by Month and Year (sNews 1.4)


[MOD] Hidden comment form until clicked for 1.4

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 »