[geeklog-cvs] Geeklog-1.x/plugins/links README, NONE, 1.1 config.php, 1.17, 1.18 functions.inc, 1.80, 1.81
Oliver
ospiess at qs1489.pair.com
Tue Aug 28 03:33:32 EDT 2007
- Previous message (by thread): [geeklog-cvs] Geeklog-1.x/public_html/layout/professional/images addchild.png, NONE, 1.1
- Next message (by thread): [geeklog-cvs] Geeklog-1.x/plugins/links/language chinese_simplified_utf-8.php, 1.3, 1.4 chinese_traditional_utf-8.php, 1.3, 1.4 dutch.php, 1.2, 1.3 english.php, 1.18, 1.19 english_utf-8.php, 1.5, 1.6 estonian.php, 1.1, 1.2 estonian_utf-8.php, 1.1, 1.2 german.php, 1.3, 1.4 german_formal.php, 1.2, 1.3 german_formal_utf-8.php, 1.2, 1.3 german_utf-8.php, 1.2, 1.3 japanese.php, 1.8, 1.9 japanese_utf-8.php, 1.7, 1.8 polish.php, 1.2, 1.3 russian.php, 1.2, 1.3 slovenian.php, 1.1, 1.2 slovenian_utf-8.php, 1.1, 1.2 ukrainian.php, 1.3, 1.4 ukrainian_koi8-u.php, 1.1, 1.2 ukrainian_utf-8.php, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /usr/home/geeklog2/cvsroot/geeklog/Geeklog-1.x/plugins/links
In directory qs1489.pair.com:/tmp/cvs-serv65146
Modified Files:
config.php functions.inc
Added Files:
README
Log Message:
install new links plugin with cateogory tree
--- NEW FILE: README ---
README for Links plugin
1) viewing children of private categories
If you have a category tree as follows:
Root viewable by anonymous
-- Sub1 not viewable by anonymous
---- Sub2 viewable by anonymous
The "jump to" selectbox on the links index.php page will not show anything below "Root" for anonymous users. If the user tries to enter the category id for Sub1 directly, they will be refused access. If they enter the category id for Sub2 directly, they will be given access.
I think this needs a solution, but checking all parents back to root (or until the user does not have access) may be expensive.
2) Removed INDEX links_lid (lid) from table links as lid is already PRIMARY.
3) Colouring of rows in the category edit view does not appear to work correctly in all cases. Not sure how to fix this.
4) There is a top level "root" directory in the database, but this cannot be directly edited. The "Root" name is taken from the language file to help multilingual sites. In the future, a new set of categories with a parent id of "user" can be created for private link trees. Consequently, users are not allowed to save categories with a cid of "site" or "user".
5) added "category" type of new autotag
6) added simple multilingual support
7) Even if a user does not have read access to a category, if he has read access on any links in that category, they will show up in the top ten links listing. This needs to be fixed by either (i) when a category is saved, modify access rights on links contained in that category to match or (ii) by doing some nifty JOINing when calling the top ten links.
Index: functions.inc
===================================================================
RCS file: /usr/home/geeklog2/cvsroot/geeklog/Geeklog-1.x/plugins/links/functions.inc,v
retrieving revision 1.80
retrieving revision 1.81
diff -C2 -d -r1.80 -r1.81
*** functions.inc 22 Apr 2007 04:51:28 -0000 1.80
--- functions.inc 28 Aug 2007 07:33:30 -0000 1.81
***************
*** 141,155 ****
$title = COM_truncate( $A['title'], $_CONF['title_trim_length'],
'...' );
- $link_title = array();
if( $title != $A['title'] )
{
! $link_title = array('title'=>$A['title']);
}
-
- $newlinks[] = COM_createLink(
- $title, $lcount, $link_title) . LB;
[...1302 lines suppressed...]
- *
- */
- function plugin_autouninstall_links ()
- {
- $out = array (
- /* give the name of the tables, without $_TABLES[] */
- 'tables' => array('links','linksubmission'),
- /* give the full name of the group, as in the db */
- 'groups' => array('Links Admin'),
- /* give the full name of the feature, as in the db */
- 'features' => array('links.edit', 'links.moderate', 'links.submit'),
- /* give the full name of the block, including 'phpblock_', etc */
- 'php_blocks' => array(),
- /* give all vars with their name */
- 'vars'=> array()
- );
- return $out;
}
--- 1969,1972 ----
Index: config.php
===================================================================
RCS file: /usr/home/geeklog2/cvsroot/geeklog/Geeklog-1.x/plugins/links/config.php,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** config.php 28 Aug 2007 05:33:56 -0000 1.17
--- config.php 28 Aug 2007 07:33:30 -0000 1.18
***************
*** 34,38 ****
* @package Links
* @filesource
! * @version 1.0.1
* @since GL 1.4.0
* @copyright Copyright © 2005-2006
--- 34,38 ----
* @package Links
* @filesource
! * @version 1.1
* @since GL 1.4.0
* @copyright Copyright © 2005-2006
***************
*** 58,62 ****
* @global array $_LI_CONF['version']
*/
! $_LI_CONF['version'] = '1.0.1'; // Plugin Version
/**
--- 58,62 ----
* @global array $_LI_CONF['version']
*/
! $_LI_CONF['version'] = '2.0'; // Plugin Version
/**
***************
*** 141,152 ****
$_LI_CONF['delete_links'] = 0;
! /** What to show after a link has been saved? Possible choices:
! * 'item' -> forward to the target of the link
! * 'list' -> display the admin-list of links
! * 'plugin' -> display the public homepage of the links plugin
! * 'home' -> display the site homepage
! * 'admin' -> display the site admin homepage
*/
! $_LI_CONF['aftersave'] = 'list';
/**
--- 141,169 ----
$_LI_CONF['delete_links'] = 0;
! /**
! * indent used in category edit page
! * What characters to use for the indent when listing categories for editing in the admin section.
! *
! * @global array $_LI_CONF['show_top10']
*/
! $_LI_CONF['indent'] = "--";
!
! /**
! * show category descriptions
! * Whether to show subcategory descriptions when viewing a category or not.
! *
! * @global array $_LI_CONF['show_top10']
! */
! $_LI_CONF['show_category_descriptions'] = true;
!
! /**
! * enable multilingual features
! * Whether to enable simple multilingual behaviour or not.
! *
! * @global array $_LI_CONF['show_top10']
! */
! $_LI_CONF['enable_multilingual_links'] = false;
!
!
/**
***************
*** 166,169 ****
--- 183,187 ----
$_TABLES['links'] = $_DB_table_prefix . 'links';
$_TABLES['linksubmission'] = $_DB_table_prefix . 'linksubmission';
+ $_TABLES['linkcategories'] = $_DB_table_prefix . 'linkcategories';
?>
- Previous message (by thread): [geeklog-cvs] Geeklog-1.x/public_html/layout/professional/images addchild.png, NONE, 1.1
- Next message (by thread): [geeklog-cvs] Geeklog-1.x/plugins/links/language chinese_simplified_utf-8.php, 1.3, 1.4 chinese_traditional_utf-8.php, 1.3, 1.4 dutch.php, 1.2, 1.3 english.php, 1.18, 1.19 english_utf-8.php, 1.5, 1.6 estonian.php, 1.1, 1.2 estonian_utf-8.php, 1.1, 1.2 german.php, 1.3, 1.4 german_formal.php, 1.2, 1.3 german_formal_utf-8.php, 1.2, 1.3 german_utf-8.php, 1.2, 1.3 japanese.php, 1.8, 1.9 japanese_utf-8.php, 1.7, 1.8 polish.php, 1.2, 1.3 russian.php, 1.2, 1.3 slovenian.php, 1.1, 1.2 slovenian_utf-8.php, 1.1, 1.2 ukrainian.php, 1.3, 1.4 ukrainian_koi8-u.php, 1.1, 1.2 ukrainian_utf-8.php, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the geeklog-cvs
mailing list