Xaraya / Postnuke CVS Notices - Message

Note: this list is kept only as a demonstration for CVSNotice. For the latest CVS notices, see the Xaraya and Postnuke sites

View Statistics - Next Notice - Previous Notice

Directory filter : [ all ] / postnuke_modules / articles [ view in CVS ]


Deprecated: Function gmstrftime() is deprecated in /home/mikespub/www/list.php on line 509
Date Directory [filter] File(s) [view] Author [filter]
28 Jul 2002 17:39:44postnuke_modules/articlespnuser.php,1.30,1.31 pnuserapi.php,1.18,1.19Mike
 change default view & short URLs a bit

Update of /home/cvsroot/postnuke_modules/articles
In directory ns7.hostnuke.net:/tmp/cvs-serv2542

Modified Files:
	pnuser.php pnuserapi.php 
Log Message:
change default view & short URLs a bit


Index: pnuser.php
===================================================================
RCS file: /home/cvsroot/postnuke_modules/articles/pnuser.php,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** pnuser.php	28 Jul 2002 02:03:19 -0000	1.30
--- pnuser.php	28 Jul 2002 17:39:42 -0000	1.31
***************
*** 29,33 ****
  function articles_user_main()
  {
!     return articles_user_view();
  }
  
--- 29,35 ----
  function articles_user_main()
  {
!     //return articles_user_view();
!     pnRedirect(pnModURL('articles', 'user', 'view', array('ptid' => 1)));
!     return;
  }
  
***************
*** 250,253 ****
--- 252,256 ----
          $article['link'] = pnModURL('articles', 'user', 'display',
                                      array('aid' => $article['aid'],
+                                           'ptid' => $article['pubtypeid'],
                                            'cids' => $cids));
          $article['title'] = '<a class="pn-title" href="' .
***************
*** 436,440 ****
                                               'user',
                                               'display',
!                                              array('aid' => $aid)));
  
      // Template depending on publication type
--- 439,444 ----
                                               'user',
                                               'display',
!                                              array('aid' => $aid,
!                                                    'ptid' => $article['pubtypeid'])));
  
      // Template depending on publication type
***************
*** 469,472 ****
--- 473,481 ----
          $output->LineBreak(2);
      }
+ 
+     $output->Text("
+ // TODO: filter out by supported 'root categories'
+ ");
+     $output->LineBreak();
  
      $output->Text(pnML('Category'));

Index: pnuserapi.php
===================================================================
RCS file: /home/cvsroot/postnuke_modules/articles/pnuserapi.php,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** pnuserapi.php	11 Jul 2002 00:07:37 -0000	1.18
--- pnuserapi.php	28 Jul 2002 17:39:42 -0000	1.19
***************
*** 443,447 ****
      // specify some short URLs relevant to your module
      if ($func == 'main') {
!         $path = '/' . $module . '/index.html';
      } elseif ($func == 'view') {
          if (isset($cids) && is_array($cids)) {
--- 443,447 ----
      // specify some short URLs relevant to your module
      if ($func == 'main') {
!         $path = '/' . $module . '/news/index.html';
      } elseif ($func == 'view') {
          if (isset($cids) && is_array($cids)) {
***************
*** 458,462 ****
          }
      } elseif ($func == 'display' && isset($aid)) {
!         $path = '/' . $module . "/$aid.html";
      // TODO: do we even care about those when we display an article ?
          // just add the cids as regular parameters ?cids[0]=1&cids[1]=4...
--- 458,466 ----
          }
      } elseif ($func == 'display' && isset($aid)) {
!         if (isset($ptid) && isset($pubtypes[$ptid])) {
!             $path = '/' . $module . '/' . $pubtypes[$ptid]['name'] . "/$aid.html";
!         } else {
!             $path = '/' . $module . "/$aid.html";
!         }
      // TODO: do we even care about those when we display an article ?
          // just add the cids as regular parameters ?cids[0]=1&cids[1]=4...
***************
*** 516,520 ****
              if ($params[1] == $pubtype['name']) {
                  $args['ptid'] = $id;
!                 return array('view', $args);
              }
          }
--- 520,530 ----
              if ($params[1] == $pubtype['name']) {
                  $args['ptid'] = $id;
!                 if (!empty($params[2]) && preg_match('/^(\d+)\.html$/',$params[2],$matches)) {
!                     $aid = $matches[1];
!                     $args['aid'] = $aid;
!                     return array('display', $args);
!                 } else {
!                     return array('view', $args);
!                 }
              }
          }


Directory filter : [ all ] / postnuke_modules / articles [ view in CVS ]

View Statistics - Next Notice - Previous Notice


Visit Developer Site - Browse CVS Repository Syndicate via backend.rss
(max. once per hour please)
Powered by CVSNotice 0.1.3