11
sugar
SNS module review
  • 2010/1/8 8:51

  • sugar

  • Just popping in

  • Posts: 26

  • Since: 2003/8/24


It's a prototype module do SNS in Xoops

Detail see
http://www.flickr.com/photos/1213/sets/72157623163833826/


Change point
1. support openid
http://www.flickr.com/photos/1213/4255544511/in/set-72157623163833826/

2. sns prototype, everyone own self page
http://www.flickr.com/photos/1213/4256065578/in/set-72157623163833826/

3. more AJAX
http://www.flickr.com/photos/1213/4256224808/in/set-72157623163833826/

4. send pm to multi users
http://www.flickr.com/photos/1213/4255462145/in/set-72157623163833826/

5. micro blog like twitter
http://www.flickr.com/photos/1213/4255494565/in/set-72157623163833826/

6. private friends group
http://www.flickr.com/photos/1213/4256257118/in/set-72157623163833826/

7. privacy to profile data
http://www.flickr.com/photos/1213/4255316695/in/set-72157623163833826/

samplehttp://intra.snapshot.tw/user/index.php
account: demo test
password: demo test



12
sugar
Re: Login (openid) module 1.2
  • 2010/1/6 5:56

  • sugar

  • Just popping in

  • Posts: 26

  • Since: 2003/8/24


Get Windows Live Application ID Steps

1. visithttps://live.azure.com and sign in your Windows Live ID (MSN account)

2. visithttps://live.azure.com/cloud/provisioning/templates.aspx?projectid=0 then click Live Services: Existing APIs

3. Create a Service Component, Return URL same as your mainfile.php XOOPS_URL value

4 see your Live Services and Active Directory Federation



13
sugar
Re: Login (openid) module 1.2
  • 2010/1/6 3:15

  • sugar

  • Just popping in

  • Posts: 26

  • Since: 2003/8/24


@yingzhao

I will found some bugs and fixed
please download login 1.3 and upload to replace 1.2
then update this module

thanks for your report



14
sugar
Login (openid) module 1.2
  • 2009/12/29 16:25

  • sugar

  • Just popping in

  • Posts: 26

  • Since: 2003/8/24


allow user use google, yahoo, windows live, flickr, openid account register or login Xoops

require RB Framework and CURL

for google, yahoo, windows live mode
after linked openid and XOOPS account first time
when user already logined google, yahoo, windows live web services
user can one click link auto login without enter nickname and password

if user already had XOOPS account still can link openid
this module allow one account(uid) mirror a lot of openids

demo
http://www.1cm.tw/demo/modules/login/

download
http://code.google.com/p/xoops-rb-framework/downloads/list



15
sugar
PHP5 Method Chaining
  • 2009/11/16 4:15

  • sugar

  • Just popping in

  • Posts: 26

  • Since: 2003/8/24


SQL
$sql 'SELECT * FROM '.$xoopsDB->prefix('article').' WHERE uid = 1 AND status = 1 ORDER BY created DESC LIMIT 0, 10';



with XoopsPersistableObjectHandler
$article_handler =& xoops_getmodulehandler('article''news');
$criteria = new CriteriaCompo(new Criteria('uid'1));
$criteria->add(new Criteria('status'1));
$criteria->setLimit(10);
$criteria->setStart(0);
$criteria->setSort('created''DESC');
$articles $article_handler->getObjects($criteriatrue);



with RbCrudHandler
$article_handler =& xoops_getmodulehandler('article''news');
$articles $article_handler->where('uid = 1 AND status = 1')->order_by('created DESC')->limit(100)->getObjects();


or
$article_handler =& xoops_getmodulehandler('article''news');
$article_handler->where('uid = 1');
$article_handler->where('status = 1');
$article_handler->order_by('created DESC');
$article_handler->limit(100);
$articles $article_handler->getObjects();


or
$condition = array();
$condition[] = 'uid = 1';
$condition[] = 'status = 1';

$article_handler =& xoops_getmodulehandler('article''news');
$article_handler->where($condition)->order_by('created DESC')->limit(100);
$articles $article_handler->getObjects();


or
$condition = array();
$condition[] = 'uid = 1';
$condition[] = 'status = 1';

$article_handler =& xoops_getmodulehandler('article''news');
$articles $article_handler->getObjects($condition'created DESC'10 ,0);


do as you like



16
sugar
Re: RBFramework & RBTool - create module prototype eazy~
  • 2009/11/6 13:07

  • sugar

  • Just popping in

  • Posts: 26

  • Since: 2003/8/24


Fatal errorCannot redeclare load_object()

I fix this bug and upload new files
or you can
edit Frameworks/rb/functions.ini.php
find load_object replace to rb_load_object
find load_functions replace to rb_load_functions

edit Frameworks/rb/functions.php
find load_functions replace to rb_load_functions

edit modules/rbtool/include/functions.php
find load_object replace to rb_load_object

edit modules/rbtool/sample/functions.txt
find load_object replace to rb_load_object


=================

todo module can download here now
http://code.google.com/p/xoops-rb-framework/downloads/list



17
sugar
RBFramework & RBTool - create module prototype eazy~
  • 2009/11/6 10:56

  • sugar

  • Just popping in

  • Posts: 26

  • Since: 2003/8/24


Chinese talking here please

RB Framework - simple manipulate sql order for XOOPS object handler
http://code.google.com/p/xoops-rb-framework/

RB Tool - Create XOOPS module prototype and use RB Framework object handler
http://code.google.com/p/xoops-rb-framework/wiki/rbTool

Resized Image


Resized Image



18
sugar
Re: todo module (PHP5)
  • 2009/5/16 3:25

  • sugar

  • Just popping in

  • Posts: 26

  • Since: 2003/8/24


thanks trabid

I change code be
$kwd = isset($_REQUEST['kwd']) ? trim($myts->stripSlashesGPC($_REQUEST['kwd'])) : '';
$compl = isset($_REQUEST['compl']) ? trim($myts->stripSlashesGPC($_REQUEST['compl'])) : '0';

        if (!empty(
$kwd)) {
            
$search_column = array('tag''title''note');
            
$search_sql '(';
            foreach (
$search_column as $column) {
                
$search_sql .= $column.' LIKE '.$xoopsDB->quoteString('%'.$kwd.'%').' OR ';
            }
            
$search_sql substr($search_sql0, -4);
            
$search_sql .= ')';
            
$criteria[] = $search_sql
        }
        if (
$compl != 'all') {
            
$criteria[] = 'complete = '.$xoopsDB->quoteString($compl);
        }



19
sugar
todo module (PHP5)
  • 2009/5/15 18:27

  • sugar

  • Just popping in

  • Posts: 26

  • Since: 2003/8/24


Referhttp://www.pozdeev.com/mytinytodo/

online demo (admin mode)
http://www.1cm.tw/demo4/modules/todo/index.php

download
http://www.1cm.tw/demo4/common/todo_v1.zip

double click task to edit
drag task be change weight
module config can set more tag




TopTop
« 1 (2)



Login

Who's Online

197 user(s) are online (120 user(s) are browsing Support Forums)


Members: 0


Guests: 197


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits