New Connect admin panel in Tiki4

View: New views
1 Messages — Rating Filter:   Alert me  

New Connect admin panel in Tiki4

by Marc Laporte-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi!

Please read and improve:
http://dev.tikiwiki.org/Connect
http://tikiwiki.org/Viral+Tiki
http://tikiwiki.org/Evolution+of+participation

Thanks!!

M ;-)


---------- Forwarded message ----------
From:  <marclaporte@...>
Date: Wed, Nov 4, 2009 at 9:10 PM
Subject: [Tikiwiki-cvs/svn] SF.net SVN: tikiwiki:[22897] branches/4.x
To: tikiwiki-cvs@...


Revision: 22897
         http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=22897&view=rev
Author:   marclaporte
Date:     2009-11-05 02:10:24 +0000 (Thu, 05 Nov 2009)

Log Message:
-----------
[NEW] New __connect__ admin panel, which restores __site register__
link (removed from admin panel in a previous version) and starts a new
concept to help Tiki site admins connect with other members of the
community. More details at http://dev.tikiwiki.org/Connect   TODO:
find another icon for RSS feed admin panel because this one is
hijacked :-)

Modified Paths:
--------------
   branches/4.x/templates/tiki-admin-include-anchors.tpl
   branches/4.x/templates/tiki-admin-include-list-sections.tpl
   branches/4.x/templates/tiki-admin.tpl
   branches/4.x/tiki-admin.php

Added Paths:
-----------
   branches/4.x/templates/tiki-admin-include-connect.tpl
   branches/4.x/tiki-admin_include_connect.php

Modified: branches/4.x/templates/tiki-admin-include-anchors.tpl
===================================================================
--- branches/4.x/templates/tiki-admin-include-anchors.tpl
2009-11-05 00:56:36 UTC (rev 22896)
+++ branches/4.x/templates/tiki-admin-include-anchors.tpl
2009-11-05 02:10:24 UTC (rev 22897)
@@ -26,6 +26,8 @@

 {self_link page="rss" _class="icon tips" _title="{tr}RSS{/tr}|{tr}RSS
feeds{/tr}"}{icon _id="pics/large/gnome-globe.png" alt="{tr}RSS{/tr}"
class="reflect" style="vertical-align: middle" width="32"
height="32"}{/self_link}

+{self_link page="connect" _class="icon tips"
_title="{tr}Connect{/tr}|{tr}Connect{/tr}"}{icon
_id="pics/large/gnome-globe.png" alt="{tr}Connect{/tr}"
class="reflect" style="vertical-align: middle" width="32"
height="32"}{/self_link}
+
 {if $prefs.feature_wiki eq 'y'}
 {self_link page="wiki" _class="icon tips"
_title="{tr}Wiki{/tr}|{tr}Wiki page settings and features{/tr}"}{icon
_id="pics/large/wikipages.png" alt="{tr}Wiki{/tr}" class="reflect"
style="vertical-align: middle" width="32" height="32"}{/self_link}
 {/if}

Added: branches/4.x/templates/tiki-admin-include-connect.tpl
===================================================================
--- branches/4.x/templates/tiki-admin-include-connect.tpl
                 (rev 0)
+++ branches/4.x/templates/tiki-admin-include-connect.tpl
2009-11-05 02:10:24 UTC (rev 22897)
@@ -0,0 +1,27 @@
+{remarksbox type="tip" title="{tr}Tip{/tr}"}
+       {tr}Tiki is a community project!{/tr} {tr}<a
href="http://info.tikiwiki.org/Join+the+community">{tr}Join the
community{/tr}</a>{/tr}
+{/remarksbox}
+
+<div class="adminoptionbox">
+
+               <fieldset>
+                       <legend>{tr}Promote your site{/tr}</legend>
+                               {tr}To submit your site to
TikiWiki.org:{/tr} <a href="tiki-register_site.php">{tr}Submit
site{/tr}</a>
+               </fieldset>
+
+
+<form class="admin" id="connect" name="connect"
action="tiki-admin.php?page=connect" method="post">
+
+               <fieldset>
+                       <legend>{tr}Help Tiki spread{/tr}</legend>
+                       {preference name=feature_bot_bar_power_by_tw}
+               </fieldset>
+
+               <div class="heading input_submit_container"
style="text-align: center;">
+                       <input type="submit" value="{tr}Change
preferences{/tr}" />
+               </div>
+
+</form>
+
+
+</div>
\ No newline at end of file

Modified: branches/4.x/templates/tiki-admin-include-list-sections.tpl
===================================================================
--- branches/4.x/templates/tiki-admin-include-list-sections.tpl
2009-11-05 00:56:36 UTC (rev 22896)
+++ branches/4.x/templates/tiki-admin-include-list-sections.tpl
2009-11-05 02:10:24 UTC (rev 22897)
@@ -33,8 +33,10 @@

       {self_link page="security" _class="admbox"
_style="background-image: url('pics/large/gnome-lockscreen48x48.png')"
_title="{tr}Security{/tr}"}<span>{tr}Security{/tr}</span>{/self_link}

-       {self_link page="rss" _class="admbox"
_style="background-image: url('pics/large/gnome-globe48x48.png')"
_title="{tr}Feeds{/tr}"}<span>{tr}Feeds{/tr}</span>{/self_link}
+       {self_link page="rss" _class="admbox"
_style="background-image: url('pics/large/gnome-globe48x48.png')"
_title="{tr}RSS feeds{/tr}"}<span>{tr}RSS
feeds{/tr}</span>{/self_link}

+       {self_link page="connect" _class="admbox"
_style="background-image: url('pics/large/gnome-globe48x48.png')"
_title="{tr}Connect{/tr}"}<span>{tr}Connect{/tr}</span>{/self_link}
+
       {self_link page="wiki" _class="admbox"
_style="background-image: url('pics/large/wikipages48x48.png')"
_selected="'`$prefs.feature_wiki`' != 'y'" _selected_class="admbox
off"}<img src="pics/trans.png" alt="{tr}Wiki{/tr}"
title="{tr}Wiki{/tr}{if $prefs.feature_wiki ne 'y'}
({tr}Disabled{/tr}){/if}" /><span>{tr}Wiki{/tr}</span>{/self_link}

       {self_link page="fgal" _class="admbox"
_style="background-image: url('pics/large/file-manager48x48.png')"
_selected="'`$prefs.feature_file_galleries`' != 'y'"
_selected_class="admbox off"}<img src="pics/trans.png" alt="{tr}File
Galleries{/tr}" title="{tr}File Galleries{/tr}{if
$prefs.feature_file_galleries ne 'y'} ({tr}Disabled{/tr}){/if}"
/><span>{tr}File Galleries{/tr}</span>{/self_link}

Modified: branches/4.x/templates/tiki-admin.tpl
===================================================================
--- branches/4.x/templates/tiki-admin.tpl       2009-11-05 00:56:36
UTC (rev 22896)
+++ branches/4.x/templates/tiki-admin.tpl       2009-11-05 02:10:24
UTC (rev 22897)
@@ -50,7 +50,7 @@
 "calendar", "intertiki", "kaltura", "freetags", "gmap",
 "i18n", "wysiwyg", "copyright", "category", "module", "look", "textarea",
 "multimedia", "ads", "profiles", "semantic", "plugins", "webservices",
-'sefurl'))}
+'sefurl', 'connect'))}
  {assign var="include" value=$smarty.get.page}
 {else}
  {assign var="include" value="list-sections"}

Modified: branches/4.x/tiki-admin.php
===================================================================
--- branches/4.x/tiki-admin.php 2009-11-05 00:56:36 UTC (rev 22896)
+++ branches/4.x/tiki-admin.php 2009-11-05 02:10:24 UTC (rev 22897)
@@ -340,6 +340,11 @@
               $helpUrl = "Kaltura+Config";
               $description = "Kaltura settings";//get_strings
tra("Kaltura settings")
               include_once ('tiki-admin_include_kaltura.php');
+       } else if ($adminPage == "connect") {
+               $admintitle = "Connect";
+               $helpUrl = "Connect";
+               $description = "Connect";
+               include_once ('tiki-admin_include_connect.php');
       } else {
               $helpUrl = '';
       }

Added: branches/4.x/tiki-admin_include_connect.php
===================================================================
--- branches/4.x/tiki-admin_include_connect.php                         (rev 0)
+++ branches/4.x/tiki-admin_include_connect.php 2009-11-05 02:10:24
UTC (rev 22897)
@@ -0,0 +1,15 @@
+<?php
+// (c) Copyright 2002-2009 by authors of the Tiki Wiki/CMS/Groupware Project
+//
+// All Rights Reserved. See copyright.txt for details and a complete
list of authors.
+// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See
license.txt for details.
+
+//this script may only be included - so its better to die if called directly.
+if (strpos($_SERVER["SCRIPT_NAME"], basename(__FILE__)) !== false) {
+       header("location: index.php");
+       exit;
+}
+if (isset($_REQUEST["connectcomprefs"])) {
+       check_ticket('admin-inc-connect');
+}
+ask_ticket('admin-inc-connect');


This was sent by the SourceForge.net collaborative development
platform, the world's largest Open Source development site.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Tikiwiki-cvs mailing list
Tikiwiki-cvs@...
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs



--
Marc Laporte

http://MarcLaporte.com
http://TikiWiki.org/MarcLaporte
http://AvanTech.net
http://OurWiki.net

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Tikiwiki-devel mailing list
Tikiwiki-devel@...
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel