只需一步,快速开始
<!--{if empty($threadlist)}--> <p class="emp xs2 xg2">{lang search_nomatch}</p> <!--{else}--> <div class="slst mtw"> <ul> <!--{loop $threadlist $thread}--> <li class="pbw"> <h3 class="xs3"><a href="forum.php?mod=viewthread&tid=$thread[tid]&highlight=$index[keywords]" target="_blank" $thread [highlight]>$thread[subject]</a></h3> <p class="xg1">$thread[replies] {lang a_comment} - $thread[views] {lang a_visit}</p> <p><!--{if !$thread['price'] && !$thread['readperm']}-->$thread[message]<!--{else}-->{lang thread_list_message1}<!--{/if}-- ></p> <p> <span>$thread[dateline]</span> - <span> <!--{if $thread['authorid'] && $thread['author']}--> <a href="home.php?mod=space&uid=$thread[authorid]" target="_blank">$thread[author]</a> <!--{else}--> <!--{if $_G['forum']['ismoderator']}--><a href="home.php?mod=space&uid=$thread[authorid]" target="_blank">{lang anonymous}</a><!--{else}-->{lang anonymous}<!--{/if}--> <!--{/if}--> </span> - <span><a href="forum.php?mod=forumdisplay&fid=$thread[fid]" target="_blank" class="xi1">$thread[forumname]</a></span> </p> </li> <!--{/loop}--> </ul> </div> <!--{/if}-->复制代码 在其前面加入 <div id="xmc_search_ads"> <div class="xmc_search_adsl">复制代码在其后面加入 </div> <div class="xmc_search_adsr"><div class="tglj"><a href="http://www.xmcong.com/plugin.php?id=cc_sx:cctxt&to=union_members">推广链接</a></div> <div class="adcontent"><script type='text/javascript' src='http://www.xmcong.com/api.php?mod=ad&adid=custom_8'></script></div></div> </div> <div style="clear:both"></div>复制代码然后加入CSS代码 /* 论坛帖子搜索页面右侧广告 */ #xmc_search_ads{margin:0;padding:0;} .xmc_search_adsl{float:left;width:70%;} .xmc_search_adsr{float:right;width:25%;margin-left:10px;margin-top:20px;padding:10px 10px;border-left: 1px solid rgb(225, 225, 225);} .tglj{width:100%;} .tglj a{color:#666666} .adcontent{width:100%;margin-bottom:20px;margin-top:15px;}复制代码演示地址:http://www.xmcong.com/search-forum-srchfrom-167000-searchsubmit-yes.html 至此就已经基本结束完成右侧加入后台广告位代码了,终于该广告位的文字广告还是图片广告或是flash广告的具体最佳显示效果可根据自己喜欢好进行CSS的添加和修改! 本只 是对列表做了浮动效果以达添加广告位,希望可以帮助到大家,具体演示效果可见如下演示:
查看全部评分
站长团队
Smirk
adicom
使用道具 举报
本版积分规则 发表回复 回帖后跳转到最后一页
手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )
GMT+8, 2024-12-23 14:36 , Processed in 0.025939 second(s), 4 queries , Gzip On, Redis On.
Powered by Discuz! X3.4
Copyright © 2001-2023, Tencent Cloud.