顯示具有 xoops 標籤的文章。 顯示所有文章
顯示具有 xoops 標籤的文章。 顯示所有文章

2011年9月16日 星期五

[XOOPS]換掉整個 Banner

    預設的Banner我不是很喜歡所以想換掉......

    先打開所使用的版型的『theme.html』,找到下面這一段程式碼,

<!-- customized header contents -->
    <{$xoops_module_header}>
</head>
<body id="<{$xoops_dirname}>" class="<{$xoops_langcode}>">

<!-- Start Header -->
<table cellspacing="0">
    <tr id="header">
        <td id="headerlogo"><a href="<{xoAppUrl /}>" title="<{$xoops_sitename}>"><img src="<{xoImgUrl xoops-logo.png}>" alt="<{$xoops_sitename}>" /></a></td>
        <td id="headerbanner"><{$xoops_banner}></td>
    </tr>
    <tr>
        <td id="headerbar" colspan="2">&nbsp;</td>
    </tr>
</table>
<!-- End header -->















接著就妳高興怎麼改就怎麼改啦~~~

當然前提是要看得懂 html 跟那些 XOOPS 變數的意義......

[XOOPS]特定使用者登入後才出現的物件

    如果希望某個連結是在特定帳號登入後才出現,可以透過下列程式碼來達成這個效果,

<{if $xoops_uname == '特定帳號' }>
  <a href="<{xoAppUrl 想要出現的連結}>" style="text-decoration:none"
     target="_self"><font color="#3367FF">[ 連結顯示名稱 ]</font></a>
<{/if}>








特定帳號登入前:


特定帳號登入後:

[XOOPS] 使用者登入後才顯示歡迎詞

如果要在使用者登入後才顯示歡迎詞可以在 Theme 的『theme.html』中加上下列程式碼在要出現歡迎詞的地方。

 <{if $xoops_uname }>
          歡迎詞 !!!
<{/if}>
                                       








登入前:


登入後:
Powered By Blogger