XPressME Integration Kit

Trac


Ignore:
Timestamp:
Mar 3, 2009, 8:33:23 PM (16 years ago)
Author:
toemon
Message:

XOOPS mainfile.phpのdefine文を事前に読み取りwp-config.phpのDB接続関係を生成することにより、XOOPSシステムを必要なときだけ呼び出す仕組みを作る。
およびイベント通知関係の修正(まだゲストのアクセス権限がないと駄目)

Location:
trunk/wp-content/themes/xpress_default/blocks
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/xpress_default/blocks/recent_comments_block_theme.php

    r49 r95  
    11<?php 
    2 if( ! defined( 'XOOPS_ROOT_PATH' ) ) exit ; 
     2//if( ! defined( 'XOOPS_ROOT_PATH' ) ) exit ; 
    33 
    44function recent_comments_block($options) 
     
    99        $selected = array_slice($options,3); // get allowed cats 
    1010        $this_template = empty( $options[4] ) ? 'db:'.$mydirname.'_block_comments.html' : trim( $options[4] ); 
    11         $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; 
    12          
     11//      $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; 
     12        $mydirpath = get_xpress_dir_path(); 
    1313        $this_url = '/modules/'. $mydirname; 
    1414        $call_url = $_SERVER['REQUEST_URI']; 
  • trunk/wp-content/themes/xpress_default/blocks/recent_posts_content_block_theme.php

    r58 r95  
    11<?php 
    2 if( ! defined( 'XOOPS_ROOT_PATH' ) ) exit ; 
     2//if( ! defined( 'XOOPS_ROOT_PATH' ) ) exit ; 
    33 
    44function recent_posts_content_block($options) 
     
    1111    $selected = array_slice($options,5); // get allowed cats 
    1212        $this_template = empty( $options[6] ) ? 'db:'.$mydirname.'_block_content.html' : trim( $options[6] ); 
    13         $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; 
     13//      $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; 
     14        $mydirpath = get_xpress_dir_path(); 
    1415         
    1516        $this_url = '/modules/'. $mydirname; 
Note: See TracChangeset for help on using the changeset viewer.