Online Environment Development

tsa network architecture
Submitted by alan dawson on Mon, 2007/05/28 - 09:41. Online Environment Development | Other discussion topics | techie» 
 
  
Hiding the Navigation Menus - except for logged in users
Submitted by alan dawson on Sat, 2007/05/12 - 13:24. drupal | Online Environment Development | Other discussion topicsCreated a custom block with the below php code and then disabled the drupal built in navigation block
<?php
global $user;
if ($user->uid) {
if ($menu = menu_tree()) {
   echo "";
   echo "- ";
   print $menu ;
   echo "
 

Customising Drupal for TSA
Submitted by alan dawson on Fri, 2007/05/04 - 19:04. drupal | Fieldwork | Online Environment DevelopmentUsed the taxonomy_access module to create public and private tags. Anonymous users can see the public tagged content but only registered users can see the private content.
plagiarised a quick php sql query to list all registered users and links to there profiles.
<?php
$header = array(
  array('data' => t('Username'), 'field' => 'u.name', 'sort' => 'asc')
);
$sql = "SELECT u.uid, u.name FROM {users} u WHERE u.uid > 1";
$sql .= tablesort_sql($header);
$result = pager_query($sql, 50);
$status = array(t('blocked'), t('active'));
while ($account = db_fetch_object($result)) {

