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_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']; 
Note: See TracChangeset for help on using the changeset viewer.