The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 861 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
News Manager Archive
#5
n00dles101 Wrote:Is this the sort of thing your looking for?
I use this for a different CMS but don't see why it should't work with your News manager.
Just make sure $results is an array of dates.

Then just change the HREF to a search page that returns the articles your looking for.

mike...


Code:
<ul>
<?php
$months=array("January","February","March","April","May","June","July","August","September","October","November","December");
$results= your array of dates from your pages;
$dates=array();
foreach ($results as $item){
    $d_var=explode("/",date($item));    
    $year=    $d_var[2];  
    $month=    $lmonths[$d_var[0]-1];
    @$dates[$year][$month]+= 1;
    
}
foreach ($dates as $year=>$months){    
    foreach($months as $mon=>$num){
        echo "<li><a href='#' title='{$num} Articles'>{$mon} {$year}</a></li>";
    }    
}
?>
</ul>

Awesome! Ill give this a try, thanks for your help.

On another completely unrelated note, how is your custom fields plugin going? I cannot seem to find the repository for it, and you removed the link from your footer.
Reply


Messages In This Thread
News Manager Archive - by mikeh - 2011-04-27, 06:59:51
News Manager Archive - by yojoe - 2011-04-27, 07:48:32
News Manager Archive - by mikeh - 2011-04-28, 00:12:49
News Manager Archive - by n00dles101 - 2011-04-28, 00:26:57
News Manager Archive - by mikeh - 2011-04-28, 00:49:54
News Manager Archive - by n00dles101 - 2011-04-28, 01:02:21
News Manager Archive - by mikeh - 2011-04-28, 02:47:21
News Manager Archive - by n00dles101 - 2011-04-28, 03:21:00
News Manager Archive - by Connie - 2011-04-28, 04:03:59
News Manager Archive - by n00dles101 - 2011-04-28, 05:32:11
News Manager Archive - by Connie - 2011-04-28, 16:37:22
News Manager Archive - by roog - 2011-05-17, 19:23:57



Users browsing this thread: 2 Guest(s)