标签 静态 下的文章

SeaCMS自定义地图页模板文件和生成静态文件名

编辑 /include/mkhtml.func.php 文件第43行,找到:

function makeAllmovie($by='video')
{
    global $mainClassObj;
    switch ($by){
        case 'video':
            $templatePath="/templets/".$GLOBALS['cfg_df_style']."/".$GLOBALS['cfg_df_html']."/map.html";
        break;

修改为

function makeAllmovie($by='video')
{
    global $mainClassObj;
    switch ($by){
        case 'video':
            $templatePath="/templets/".$GLOBALS['cfg_df_style']."/".$GLOBALS['cfg_df_html']."/self_all.html";
        break;

编辑 /include/mkhtml.func.php 文件第71行,找到:

case 'video':
    $allmoviename=sea_ROOT."/allmovie".getfileSuffix();
    createTextFile($content,$allmoviename);
    return "地图页生成完毕 <a target='_blank' href='../allmovie".getfileSuffix()."'><font color=red>浏览地图页</font></a><br>";
break;

修改为:
编辑 /include/mkhtml.func.php 文件第71行,找到:

case 'video':
    $allmoviename=sea_ROOT."/all".getfileSuffix();
    createTextFile($content,$allmoviename);
    return "地图页生成完毕 <a target='_blank' href='../all".getfileSuffix()."'><font color=red>浏览地图页</font></a><br>";
break;

更新缓存并重新生成即可

飞飞影视系统2.x自定义播放页静态路径

1、找到 /Lib/Lib/Action/Admin/CreateAction.class.php 第361行

//路径替换与生成
$player_dir_ji = preg_replace('/play-([0-9]+)-([0-9]+)-([0-9]+)/i','play-$1-'.$arr_sid[1].'-'.($pid+1).'',$player_dir);

修改为:

//路径替换与生成
$player_dir_ji = preg_replace('/([0-9]+)-([0-9]+)/i',$arr_sid[1].'-'.($pid+1).'',$player_dir);

2、找到 /Lib/Common/common.php 第777行

//播放页静态生成结构
function ff_play_url_dir($id,$sid,$pid,$cid,$name){
    $playdir = str_replace_dir(C('url_play'),$id,$cid,$name);
    if(C('url_html_play') == 2){
        $playdir .= '-'.$id.'-'.$sid.'-'.$pid;
    }    
    return $playdir;
}

修改为:

- 阅读剩余部分 -