Changeset 584

Show
Ignore:
Timestamp:
09/19/06 14:30:56 (2 years ago)
Author:
ben
Message:

Weblog category fixes.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/htaccess-dist

    r580 r584  
    5252RewriteRule ^([A-Za-z0-9]+)\/weblog\/?$ _weblog/index.php?weblog_name=$1 
    5353ReWriteRule ^([A-Za-z0-9]+)\/weblog\/skip=([0-9]+)$ _weblog/index.php?weblog_name=$1&weblog_offset=$2 
    54 RewriteRule ^([A-Za-z0-9]+)\/weblog\/([^\/]+)\/?$ _weblog/index.php?weblog_name=$1&filter=$2 
    55 ReWriteRule ^([A-Za-z0-9]+)\/weblog\/([^\/]+)\/skip=([0-9]+)$ _weblog/index.php?weblog_name=$1&filter=$2&weblog_offset=$3 
     54RewriteRule ^([A-Za-z0-9]+)\/weblog\/category\/([^\/]+)\/?$ _weblog/index.php?weblog_name=$1&filter=$2 
     55ReWriteRule ^([A-Za-z0-9]+)\/weblog\/category\/([^\/]+)\/skip=([0-9]+)$ _weblog/index.php?weblog_name=$1&filter=$2&weblog_offset=$3 
    5656RewriteRule ^([A-Za-z0-9]+)\/weblog\/archive\/?$ _weblog/archive.php?weblog_name=$1 
    5757RewriteRule ^([A-Za-z0-9]+)\/weblog\/archive\/([0-9]+)\/([0-9]+)\/?$ _weblog/archive_month.php?weblog_name=$1&year=$2&month=$3 
  • devel/mod/adash/index.php

    r551 r584  
    1515             
    1616    // Load global variables 
    17         global $CFG, $PAGE, $page_owner
     17        global $CFG, $PAGE, $page_owner, $profile_id
    1818     
    1919    // Get the current user 
     
    3232         
    3333        $page_owner = $user_id; 
     34        $profile_id = $page_owner; 
    3435         
    3536    // Initialise page body and title 
  • devel/units/weblogs/weblogs_view.php

    r580 r584  
    4141    } 
    4242     
     43    if (!empty($filter)) { 
     44        $filterlink = "category/".urlencode($filter)."/"; 
     45    } else { 
     46        $filterlink = ""; 
     47    } 
     48     
    4349    $weblog_name = htmlspecialchars(optional_param('weblog_name'), ENT_COMPAT, 'utf-8'); 
    4450     
     
    4854        $run_result .= <<< END 
    4955                 
    50                 <a href="{$CFG->wwwroot}{$weblog_name}/weblog/skip={$display_weblog_offset}">&lt;&lt; $back</a> 
     56                <a href="{$CFG->wwwroot}{$weblog_name}/weblog/{$filterlink}skip={$display_weblog_offset}">&lt;&lt; $back</a> 
    5157                 
    5258END; 
     
    6066        $run_result .= <<< END 
    6167                 
    62                 <a href="{$CFG->wwwroot}{$weblog_name}/weblog/skip={$display_weblog_offset}">$next &gt;&gt;</a> 
     68                <a href="{$CFG->wwwroot}{$weblog_name}/weblog/{$filterlink}skip={$display_weblog_offset}">$next &gt;&gt;</a> 
    6369                 
    6470END;