XPressME Integration Kit

Trac


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.