首页四格:论坛图片调用+最新发帖+最后回复+第一视频广告(点了就有钱)(6.0/GBK)
<P><FONT size=1></FONT> </P><P><FONT size=1>作者:飞飞feifei</FONT></P>
<P><FONT size=4></FONT> </P>
<P><FONT size=4>本站装上之后感觉非常不错,特别收藏发布于此,提供给各位站长分享使用!</FONT></P>
<P><FONT size=4></FONT> </P>
<P><FONT size=4></FONT> </P>
<P><FONT size=4>本<SPAN class=t_tag onclick=tagshow(event) href="tag.php?name=%B2%E5%BC%FE">插件</SPAN>只是把原程序四格的最后一格稍作修改,改为第一<SPAN class=t_tag onclick=tagshow(event) href="tag.php?name=%CA%D3%C6%B5">视频</SPAN><SPAN class=t_tag onclick=tagshow(event) href="tag.php?name=%B9%E3%B8%E6">广告</SPAN>的位置。</FONT></P>
<P><FONT size=4></FONT> </P>
<P> </P>
<P> </P>
<P><FONT color=#0000ff size=4>广告投放的商家不用你去找,更谈不上广告的投放内容如何<SPAN class=t_tag onclick=tagshow(event) href="tag.php?name=%C9%E8%D6%C3">设置</SPAN>;有了第一视频广告,点了就<SPAN class=t_tag onclick=tagshow(event) href="tag.php?name=%D7%AC%C7%AE">赚钱</SPAN>;点得越多收入就越大。</FONT></P>
<P></P>
<P> </P>
<P> </P>
<P><FONT color=blue><FONT size=4>第一视频联播网是中国唯一立体化的、覆盖全方位网络的、资质完备的网络视频播放网,是以中国131余万合法登记的网站为基础,VODone BUS为平台,广告投放者为用户,将三者利益紧密结合的<SPAN class=t_tag onclick=tagshow(event) href="tag.php?name=%CD%F8%C2%E7">网络</SPAN>视频联盟。她将聚沙成塔,点石成金,帮助商家触及长尾,与加盟网站分享财富。从2007年1月份开始,第一视频联播网(原第一视频播放联盟)快速增长,截至2007年7月已有6000余家加盟网站。第一视频的播放平台发布的节目和广告在6000家网站的页面里同时播放,加盟者将与第一视频共同分享播放广告所得利润。</FONT></FONT></P>
<P></P>
<P> </P>
<P> </P>
<P> </P>
<P><FONT color=#0000ff size=5>第一视频广告的<SPAN class=t_tag onclick=tagshow(event) href="tag.php?name=%D7%A2%B2%E1">注册</SPAN>地址为:<A href="http://bus.vodone.com/bus/exe.htm?34270">http://bus.vodone.com/bus/exe.htm?34270</A></FONT></P>
<P></P>
<P> </P>
<P> </P>
<P><FONT size=5>演示:</FONT><A href="http://www.meiyadesign.com" target=_blank><FONT size=5>http://www.meiyadesign.com</FONT></A></P> <P>需修改的<SPAN class=t_tag onclick=tagshow(event) href="tag.php?name=%CE%C4%BC%FE">文件</SPAN>:<BR>1, index.<SPAN class=t_tag onclick=tagshow(event) href="tag.php?name=php">php</SPAN><BR>2, discuz.htm<BR><BR>======================= 开始 ============================<BR>步骤:共分5步<BR><BR>1、将pic.php picli.gif focus.swf 按<SPAN class=t_tag onclick=tagshow(event) href="tag.php?name=%CF%C2%D4%D8">下载</SPAN>到的<SPAN class=t_tag onclick=tagshow(event) href="tag.php?name=%B8%BD%BC%FE">附件</SPAN>结构传到FTP(网站)<BR> pic.php: 在<SPAN class=t_tag onclick=tagshow(event) href="tag.php?name=%C2%DB%CC%B3">论坛</SPAN>根目录<BR> picli.gif focus.swf: 在images文件夹下<BR><BR><BR>2、打开:/index.php<BR>查找:</P>
<P> </P>
<P> </P>
<P>$rsshead = $rssstatus</P>
<P></P>
<P> </P>
<P><FONT color=#ff0000>在上面加:</FONT></P>
<P><FONT color=#ff0000></FONT> </P>
<P> </P>
<P>//----<SPAN class=t_tag onclick=tagshow(event) href="tag.php?name=%CA%D7%D2%B3">首页</SPAN>四格代码开始<BR>$colorarray = array('', 'red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'purple', 'gray');<BR>//新贴<BR>$hack_cut_str = 26; //标题字数<BR>$hack_cut_strauthor = 9;<BR>$new_post_threadlist = array();<BR>$nthread = array();<BR>$query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t, {$tablepre}forums f WHERE t.fid<>'$fid' AND f.fid=t.fid AND f.fid not in (0) AND t.displayorder not in (-1,-2) ORDER BY t.dateline DESC LIMIT 0, 10");<BR>while($nthread = $db->fetch_array($query)) {<BR> $nthread['forumname'] = ereg_replace('<[^>]*>','',$nthread['name']);<BR> $nthread['view_subject'] = cutstr($nthread['subject'],$hack_cut_str);<BR> $nthread['view_author'] = cutstr($nthread['author'],$hack_cut_strauthor);<BR> $nthread['date']= gmdate("$dateformat $timeformat", $nthread['dateline'] + $timeoffset * 3600);<BR> $nthread['lastreplytime']= gmdate("$dateformat $timeformat", $nthread + ($timeoffset * 3600));<BR> if($nthread['highlight']) {<BR> $string = sprintf('%02d', $nthread['highlight']);<BR> $stylestr = sprintf('%03b', $string);<BR> $nthread['highlight'] = 'style="';<BR> $nthread['highlight'] .= $stylestr ? 'font-weight: bold;' : '';<BR> $nthread['highlight'] .= $stylestr ? 'font-style: italic;' : '';<BR> $nthread['highlight'] .= $stylestr ? 'text-decoration: underline;' : '';<BR> $nthread['highlight'] .= $string ? 'color: '.$colorarray[$string] : '';<BR> $nthread['highlight'] .= '"';<BR> } else {<BR> $nthread['highlight'] = '';<BR> }<BR> $new_post_threadlist[] = $nthread;<BR>}<BR>//新回复<BR>$hack_cut_str = 26; //标题字数<BR>$hack_cut_strauthor = 9;<BR>$new_reply_threadlist = array();<BR>$rthread = array();<BR>$query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t, {$tablepre}forums f WHERE t.fid<>'$fid' AND f.fid=t.fid AND t.closed NOT LIKE 'moved|%' AND t.replies !=0 AND f.fid not in (0) AND t.displayorder not in (-1,-2) ORDER BY t.lastpost DESC LIMIT 0, 10");<BR>while($rthread = $db->fetch_array($query)) {<BR> $rthread['forumname'] = ereg_replace('<[^>]*>','',$rthread['name']);<BR> $rthread['view_subject'] = cutstr($rthread['subject'],$hack_cut_str);<BR> $rthread['view_lastposter'] = cutstr($rthread['lastposter'],$hack_cut_strauthor);<BR> $rthread['date']= gmdate("$dateformat $timeformat", $rthread['dateline'] + $timeoffset * 3600);<BR> $rthread['lastreplytime']= gmdate("$dateformat $timeformat", $rthread + ($timeoffset * 3600));<BR> if($rthread['highlight']) {<BR> $string = sprintf('%02d', $rthread['highlight']);<BR> $stylestr = sprintf('%03b', $string);<BR> $rthread['highlight'] = 'style="';<BR> $rthread['highlight'] .= $stylestr ? 'font-weight: bold;' : '';<BR> $rthread['highlight'] .= $stylestr ? 'font-style: italic;' : '';<BR> $rthread['highlight'] .= $stylestr ? 'text-decoration: underline;' : '';<BR> $rthread['highlight'] .= $string ? 'color: '.$colorarray[$string] : '';<BR> $rthread['highlight'] .= '"';<BR> } else {<BR> $rthread['highlight'] = '';<BR> }<BR> $new_reply_threadlist[] = $rthread;<BR>}<BR><BR>//----首页四格代码结束</P>
<P></P>
<P> </P>
<P>3、打开:templates/default/discuz.htm <BR><BR>查找:</P>
<P> </P>
<P> </P>
<P><div id="ad_text"></div></P>
<P></P>
<P> </P>
<P><FONT color=#ff0000>在下面加:</FONT></P>
<P><FONT color=#ff0000></FONT> </P>
<P> </P>
<BLOCKQUOTE><!-- 首页四格代码开始 --><BR><div class="mainbox forumlist" style="padding:0;margin:0;"><BR> <table cellspacing="0" cellpadding="0"><BR> <thead class="category"><BR> <tr><BR> <td align="center" style="padding:0 1px 0 0"><h3>≡ 论坛<SPAN class=t_tag onclick=tagshow(event) href="tag.php?name=%CD%BC%C6%AC">图片</SPAN> ≡<BR><BR></h3></td><BR> <td align="center" style="padding:0"><h3>≡ 最新<SPAN class=t_tag onclick=tagshow(event) href="tag.php?name=%CC%FB%D7%D3">帖子</SPAN> ≡</h3></td><BR> <td align="center" style="padding:0 1px 0 1px"><h3>≡ 最新回复 ≡<BR><BR></h3></td><BR> <td align="center" style="padding:0"><h3>≡ 广而告之 ≡</h3></td><BR> </tr><BR> </thead><BR> <tr><BR> <td width="25%"><BR> <script type="text/javascript" src="pic.php"></script><BR> </td><BR> <td width="25%"><BR> <table border="0" cellpadding="0" cellspacing="0" <BR><BR>width="100%"><BR> <tr valign="top"><BR> <td width="24" style="padding:0;border-<BR><BR>top:0px;"><img src="images/list.gif" border="0" /></td><BR> <td background="images/listbg.gif" <BR><BR>style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat-y" width="100%"><BR> <!--{loop $new_post_threadlist $nthread}--><BR> <!--{if $nthread}--><BR> <a href="viewthread.php?<BR><BR>tid=$nthread" $nthread['highlight'] title='最新帖子 {LF}所在论坛: $nthread<BR><BR>{LF}主题标题: $nthread {LF}<SPAN class=t_tag onclick=tagshow(event) href="tag.php?name=%D6%F7%CC%E2">主题</SPAN>作者: $nthread{LF}发表时间: $nthread<BR><BR>{LF}浏览次数: $nthread 次 {LF}回复次数: $nthread 次{LF}最后回复: $nthread<BR><BR>{LF}{lang lastpost}: $nthread'>$nthread</a><br /><BR> <!--{else}--><BR> <a href="viewthread.php?<BR><BR>tid=$nthread" $nthread['highlight'] title='最新帖子 {LF}所在论坛: $nthread<BR><BR>{LF}主题标题: $nthread {LF}主题作者: $nthread{LF}发表时间: $nthread<BR><BR>{LF}浏览次数: $nthread 次 {LF}回复次数: $nthread 次{LF}最后回复: 暂时没有回<BR><BR>复'>$nthread</a><br /><BR> <!--{/if}--><BR> <!--{/loop}--><BR> </td><BR> </tr><BR> </table><BR> </td><BR> <td width="25%"><BR> <table border="0" cellpadding="0" cellspacing="0" <BR><BR>width="100%"><BR> <tr valign="top"><BR> <td width="24" style="padding:0;border-<BR><BR>top:0px;"><img src="images/list.gif" border="0" /></td><BR> <td background="images/listbg.gif" <BR><BR>style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat-y" width="100%"><BR> <!--{loop $new_reply_threadlist $rthread}--><BR> <a href="viewthread.php?<BR><BR>tid=$rthread" $rthread['highlight'] title='最新回复 {LF}所在论坛: $rthread<BR><BR>{LF}主题标题: $rthread{LF}主题作者: $rthread{LF}发表时间: $rthread<BR><BR>{LF}浏览次数: $rthread 次{LF}回复次数: $rthread 次{LF}最后回复: $rthread<BR><BR>{LF}{lang lastpost}: $rthread'>$rthread</a><br /><BR> <!--{/loop}--><BR> </td><BR> </tr><BR> </table><BR> </td><BR> <td width="25%"><BR> <table border="0" cellpadding="0" cellspacing="0" <BR><BR>width="100%"><BR> <BR><!--- 广告代码开始 ---><BR><BR><FONT color=red><script src=http://www.vodone.com/bus/ownerjs/advjs_33/33674/33674_36687_p7_.js></script></FONT><BR><BR><!--- 广告代码结束 ---><BR><BR> </table><BR> </td><BR> </tr><BR> </table><BR></div><BR><!-- 首页四格代码结束 --></BLOCKQUOTE>
<P></P>
<P> </P>
<P>4、以上步骤都做好了后,请再打开:templates/default/discuz.htm<BR>找到</P>
<P> </P>
<P> </P>
<BLOCKQUOTE><script src=http://www.vodone.com/bus/ownerjs/advjs_33/33674/33674_36687_p7_.js></script></BLOCKQUOTE>
<P></P>
<P> </P>
<P>替换为你自己的第一视频广告代码。<BR><BR>5、上传刚才修改过的 index.php 及 discuz.htm<BR><BR>最后:请记得每次覆盖或改写文件后一定要更新缓存!</P>
<P> </P>
<P> </P> 对这方面不懂,不过做站的人肯定用得上,支持:)
唉!看的暈呼呼的!! :L 看不懂啊,不过还是支持老大
页:
[1]