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_official / html / modules / example [ view in CVS ]

Date Directory [filter] File(s) [view] Author [filter]
11 Aug 2002 16:51:05postnuke_official/html/modules/examplepninit.php,1.1,1.2 pnuser.php,1.1,1.2Mike
 add example block displaying other items

Update of /home/cvsroot/postnuke_official/html/modules/example
In directory ns7.hostnuke.net:/tmp/cvs-serv11441

Modified Files:
	pninit.php pnuser.php 
Log Message:
add example block displaying other items


Index: pninit.php
===================================================================
RCS file: /home/cvsroot/postnuke_official/html/modules/example/pninit.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** pninit.php	7 Aug 2002 01:30:22 -0000	1.1
--- pninit.php	11 Aug 2002 16:51:03 -0000	1.2
***************
*** 160,163 ****
--- 160,164 ----
      // Register Block types (this *should* happen at activation/deactivation)
      pnBlockTypeRegister('example', 'first');
+     pnBlockTypeRegister('example', 'others');
  
      // Initialisation successful

Index: pnuser.php
===================================================================
RCS file: /home/cvsroot/postnuke_official/html/modules/example/pnuser.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** pnuser.php	7 Aug 2002 01:30:22 -0000	1.1
--- pnuser.php	11 Aug 2002 16:51:03 -0000	1.2
***************
*** 385,388 ****
--- 385,394 ----
  
  
+     // Save the currently displayed item ID in a temporary variable cache
+     // for any blocks that might be interested (e.g. the Others block)
+     // You should use this -instead of globals- if you want to make
+     // information available elsewhere in the processing of this page request
+     pnVarSetCached('Blocks.example', 'exid', $exid);
+ 
      // Let any hooks know that we are displaying an item.  As this is a display
      // hook we're passing a URL as the extra info, which is the URL that any


Directory filter : [ all ] / postnuke_official / html / modules / example [ 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