導航:首頁 > 萬維百科 > 帝國cms多張標題圖片

帝國cms多張標題圖片

發布時間:2020-11-17 14:52:41

1、帝國cms模版,別的正常,唯獨標題圖片調用不出來!

第一步,檢查你的這個數據表{$dbtbpre}ecms_game 中是否含有 titlepic 這個欄位;
第二步,如果沒有包含這個欄位,那麼你要給它添加上去;
如果有這個欄位也仍然調用不出來,可能這個欄位的值 本身就為空字元串。

你這個程序的if判斷似乎有點問題,請你檢查你的判斷邏輯是否正確,你的程序意思是:if($userr[game]) 如果查詢結果中game欄位存在值,那麼$game='';else否則如果game欄位不存在值,那麼......<img src='".$userr[titlepic].'"/> 其中這里的$userr[titlepic]也很可能如第二步猜測的不存在該值(查無該條記錄)!

2、帝國CMS怎樣調用如下圖,在文章前面加個欄目名稱

欄目名稱標簽

[!--class.name--] :欄目名稱(帶鏈接)

[!--this.classname--] :欄目名稱(不帶鏈接)


看你的標簽[ecmsinfo]0,10,28,1,4,2,0[/ecmsinfo]用的是標簽模板里ID為2 的 《標題列表模板》
點擊標題列表模板後面的修改,

在「列表內容模板(list.var) (*)」里把欄目名稱標簽加上


如:

<li>[!--class.name--]<a href="[!--titleurl--]" title="[!--oldtitle--]">[!--title--]</a></li>

3、帝國cms新聞系統模型,前台列表頁如何設置成默認顯示內容第一張圖片(圖片是上傳和外鏈的兩種形式的)

在添加信息時注意編輯器下面的那個「取第 張上傳圖為標題圖片」 寫上一就可以了

4、帝國cms首頁多表調用,要調用欄目縮略圖+標題。

本來不想回答 去年做過項目4表聯合 拿去自己改吧 不會改就沒辦法 不解釋

[e:loop={'select * 
from 
(
(select id,classid,istop,title,titleurl,titlepic,newstime from phome_ecms_news where istop=1 order by newstime desc limit 13 )
Union All
(select id,classid,istop,title,titleurl,titlepic,newstime from phome_ecms_news1 where istop=1 order by newstime desc limit 13)
Union All
(select id,classid,istop,title,titleurl,titlepic,newstime from phome_ecms_news2 where istop=1 order by newstime desc limit 13)
Union All
(select id,classid,istop,title,titleurl,titlepic,newstime from phome_ecms_news3 where istop=1 order by newstime desc limit 13)
)  as A  order by newstime desc  limit 20',0,24,0}]
<?php
$fb=$empire->fetch1("select * 
from 
(
(select id,classid,smalltext from phome_ecms_news_data_1 where id='$bqr[id]' and classid='$bqr[classid]')
Union All
(select id,classid,smalltext from phome_ecms_news1_data_1 where id='$bqr[id]' and classid='$bqr[classid]')
Union All
(select id,classid,smalltext from phome_ecms_news2_data_1 where id='$bqr[id]' and classid='$bqr[classid]')
Union All
(select id,classid,smalltext from phome_ecms_news3_data_1 where id='$bqr[id]' and classid='$bqr[classid]')
)  as A");
?>
<li class="clearfix">
<a target='_blank' href="<?=$bqr[titleurl]?>" title="<?=$bqr[title]?>" class="index-img"><img src="<?=$bqr[titlepic]?$bqr[titlepic]:'404.jpg'?>" alt="<?=$bqr[title]?>"></a>
<div class="index-text">
<h1><a target='_blank' href="<?=$bqr[titleurl]?>"><?=$bqr[title]?></a>
</h1>
<div class="index-con"></div>
<div class="index-intro"><a target="_blank" href="<?=$bqr[titleurl]?>?from=index_new_intro"><?=$fb[smalltext]?></a></div>
<div class="index-like clearfix">
<span class="time">
 <?php
$fr=$empire->fetch1("select * 
from 
(
(select id,classid,infotags from phome_ecms_news_data_1 where id='$bqr[id]' and classid='$bqr[classid]')
Union All
(select id,classid,infotags from phome_ecms_news1_data_1 where id='$bqr[id]' and classid='$bqr[classid]')
Union All
(select id,classid,infotags from phome_ecms_news2_data_1 where id='$bqr[id]' and classid='$bqr[classid]')
Union All
(select id,classid,infotags from phome_ecms_news3_data_1 where id='$bqr[id]' and classid='$bqr[classid]')
)  as A");
            $keyr=explode(',',$fr[infotags]);
            for($i=0;$i<2;$i++)
            {
            echo'<span><a href="/liaotian/tags-'.$keyr[$i].'-0.html" target=_blank>'.$keyr[$i].'</a></span>&nbsp;&nbsp;';
            }
            ?>
</span>
<span class="time"><?=format_datetime($bqr[newstime],"m-d")?></span>
<div class="post-ope">
<a href="/e/public/digg/?classid=<?=$bqr[classid]?>&id=<?=$bqr[id]?>&dotop=1&ajaxarea=diggnum<?=$bqr[id]?>" class="post-like-btn post-like" id="post-like-top-btn">
<script>
document.write('<script src="/e/public/ViewClick/?classid=<?=$bqr[classid]?>&id=<?=$bqr[id]?>&down=5?t='+Math.random()+'"><'+'/script>');
</script>
</a>
</div>
</div>
</div>
</li>

[/e:loop]

功能:聯合取4表數據 關聯取附表簡介 並取標簽 附加頂功能 動態瀏覽量等

5、帝國cms列表頁,內容頁怎麼自定義標題呢?

網站的title 如果在模板裡面有定義的話,是可以在 後台 設置的
首頁支持的變數:
[!--pagetitle--]:網站名稱
[!--pagedes--]:頁面描述
[!--pagekey--]:頁面關鍵字

模板內寫好變數後, 在後台 : 系統 -> 系統設置 -> 系統參數設置
網站名稱 對應的就是 模板里的 [!--pagetitle--]

6、如何將內容頁圖片集的圖片分頁顯示 帝國cms

TAG:帝國cms
如何製作帝國cms內容頁的調用欄目縮略圖
帝國cms6.0後已經無法用[!--class.classimg--]直接調用欄目縮略圖了,5.1以前的能行,現在只能在列表頁能用[!--class.classimg--]調用縮略圖標簽,現在只有用靈動或者萬能標簽才能調用,調用代碼如下
[e:loop={"select classimg from phome_enewsclass where classid='$GLOBAL[navclassid]'",1,24,0}]
[/e:loop]

7、帝國cms列表模版,大圖展示和列表展示,改用什麼標簽調用?

如果是用[!--empirenews.listtemp--]<!--list.var1--> [!--empirenews.listtemp--]這個標簽,你應該可以把兩套要循環的代碼都放在下面的「列表內容模板」里吧,我想既然是切換的,那在你的css或者js里肯定有控制一套代碼顯示的時候另一套代碼隱藏的代碼的,所以不會兩套都顯示出來的

或者你也可以用靈動標簽,根據參數循環你的兩套代碼,不用去管「列表內容模板」了,結果是一樣的。

8、帝國CMS網站里怎麼添加圖片?

看親的問題應該是帝國cms新手,建議親多從百度搜索帝國cms教程,就算你提的這三個問題解決了,後期肯定還有不少問題呢

第一個問題,給網站添加圖片 要對應的在後台的 標題圖片 裡面修改
第二個問題,添加之後進入數據更新 更新後即可在前台顯示
第三個問題 導航在模板裡面修改

9、帝國cms 首頁怎麼添加帶圖片和標題的新內容啊?

你是說首頁調用吧,用靈動標簽很簡單。

[e:loop={1,10,0,0}]
<a href="<?=$bqsr['titleurl']?>" target="_blank"><img src="<?=$bqr['titlepic']?>"><?=$bqr['title']?></a> <br>
[/e:loop]
這段代碼是調用欄目id為1的10條最新信息。

其中<?=$bqsr['titleurl']?>是調用文章的地址,<?=$bqr['titlepic']?>是圖片路徑,<?=$bqr['title']?>是文章標題。這種調用如果文章沒有標題圖片就調用不出來圖片。可以用這種寫法
<img src="<?=$bqr[titlepic]?$bqr[titlepic]:$public_r[newsurl]."e/data/images/notimg.gif"?>" width="60" height="60" alt="">,這樣如果沒有標題圖片會調用默認圖片notimg。

愛建站公益網有詳細教程,你可以看我資料找到網址,在這里就不發了

10、圖片+標題+摘要 帝國cms靈動標簽怎麼調?

用e:loop 調用

[e:loop={17,1,0,1}]
標題圖片:<img src="<?=$bqr[titlepic]?>" alt="<?=$bqsr[title]?>" />
內容簡介截取前200個位元組(一個中文字元是兩個位元組):<?=esub($bqr[smalltext],200)?>
標題:<?=$bqsr[title]?>
[/e:loop]

與帝國cms多張標題圖片相關的知識