Changeset 216

Show
Ignore:
Timestamp:
02/17/09 01:21:27 (9 months ago)
Author:
cedenoj
Message:

fixes #2828 added a link to create a new community as well as to list all communities in the right sidebar

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • elgg/branches/20090118-r198/mod/community/lib/communities_owned.php

    r33 r216  
    1212            } 
    1313            $body .= "</ul>"; 
     14            $body .= "<p><a href=\"" . url . $_SESSION['username'] . "/communities/owned#create_community\">[Create Communities]</a></p>"; 
    1415            // $run_result .= $body; 
    1516            $run_result .= "<li id=\"community_owned\">"; 
  • elgg/branches/20090118-r198/mod/community/lib/community_memberships.php

    r33 r216  
    55if ($page_owner != -1) { 
    66    if (user_type($page_owner) == "person" || user_type($page_owner) == "external") { 
     7        $body .= "<ul>"; 
    78        if ($result = run('community:membership:data',array($page_owner))) { 
    8             $body = "<ul>"; 
    99            foreach($result as $row) { 
    1010                $row->name = run("profile:display:name",$row->ident); 
    1111                $body .= "<li><a href=\"" . url . $row->username . "/\">" . $row->name . "</a></li>"; 
    1212            } 
    13             $body .= "</ul>"; 
    14             $run_result .= "<li id=\"community_membership\">"; 
    15             $run_result .= templates_draw(array( 
    16                                                 'context' => 'sidebarholder', 
    17                                                 'title' => __gettext("Community memberships"), 
    18                                                 'body' => $body 
    19                                                 ) 
    20                                           ); 
    21             $run_result .= "</li>"; 
    22         } else { 
    23             $run_result .= ""; 
    2413        } 
     14        $body .= "</ul>"; 
     15        $body .= "<p><a href=\"" . url . "mod/browser/index.php?display=communities\">[View all Communities]</a></p>"; 
     16        $run_result .= "<li id=\"community_membership\">"; 
     17        $run_result .= templates_draw(array( 
     18            'context' => 'sidebarholder', 
     19            'title' => __gettext("Community memberships"), 
     20            'body' => $body 
     21            ) 
     22        ); 
     23        $run_result .= "</li>"; 
    2524    } else if (user_type($page_owner) == "community") { 
    2625        $friends = array(); 
  • elgg/branches/20090118-r198/mod/community/templates/community_create.html

    r33 r216  
    11<div class="community_create"> 
    2     <h2>{{title}}</h2> 
     2    <a name="create_community"></a> 
     3    <br /> 
     4    <h1>{{title}}</h1> 
    35    <form action="" method="post"> 
    46    {{form_fields}}