Table of Contents
≡ 本周热门 ≡
今日发帖
≡ 论坛图片 ≡
≡ 最新帖子 ≡
≡ 最新回复 ≡
Home php教程 php手册 首页四格,首页五格For6.0(GBK)(UTF-8)[12种组合][9-18][版主安装测试通过]

首页四格,首页五格For6.0(GBK)(UTF-8)[12种组合][9-18][版主安装测试通过]

Jun 13, 2016 pm 12:31 PM
gbk utf-8 download Install test of combination pass front page

下载万次的首页四格,首页五格For6.0(GBK)(UTF-8)[12种组合][9-18][版主安装测试通过]
引用:
本插件由版主sakurakawaii于07年9月8日15:30分
在Windows XP Discuz!6.0.0标准模版 IE6 Mysql4.1下测试安装无错
本测试仅代表此插件安装无错,不包括今后长期使用中可能出现的问题引用:
声明:本程序引用了部分5.0四格的代码,若是源码作者有意见请短信我,一定删除发布!
经过大量修改和flash设置增加了好多自定义设置,此插件可以说是坛内功能最全,美观最好的一个!庆祝本插件通过版主测试!

更新列表及插件优点:

9-18:应朋友要求增加首页六格(图+新帖+回复+本周热门+本月精华+今日排行)请到附件包最下面下载
9-15:更新了有少数朋友服务器不支持=$show?>导致图片不显示的问题。(直接下载包然后覆盖pic.php就可以了)
9-13:应坛友要求加入四格带建站天数不带图片的调用组合!(演示见附件最下面)
9-10:加入坛内很少有的 UTF-8 版四格和五格,请大家下载使用!(见附件最下面)
9-9 8:00 更新:
引用:
修正了所有组合中的当屏幕分辨率小或开启分栏时帖子标题换行的问题!
9-8 14:00 
应有朋友要求,新改四格风格,目前共有七种调用方法(见附件)。
应大家要求新加了下面两种组合(已发布)
1,图片,新帖,最新回复,本周热门,今日发帖排行(首页五格)
2,新帖,最新回复,本周热门,精华帖
9-7:解决了敏感词语过滤后仍在四格显示的问题!
9-6:突破:一改以往flash样式,改变文字在下的不美观,并解决好多朋友提出的图片卡,flash 调用问题!现在速度飞快,而且可以自行定制flash 中按键,文字,背景颜色以及背景透明度。真正人性化,满足你配套论坛风格色彩的要求!
9-6:特别更新:当论坛开通了主题回收站时,不再出现帖子放到主题回收站后仍在首页四格显示的情况!

关于各种可以自行设置的参数注释 (鉴于有很多朋友不知道设置方法,现将可以设置的内容全部写在下面,以供大家使用)
1/3:  pic.php 中

复制代码 代码如下:


$shownums = 5;//演示个数 6以内 
$searchnums = 50;//搜索总数. 
$cachelife = 1800;//缓存时间. 
$orderby = 'dateline';//搜索顺序:按日期dateline.按浏览次数downloads.随机rand. 
$cachename = 'showpic';//缓存名.若与何插件冲突请修改,只要不冲突不会影响使用. 
$searchfid = '';//搜索fid范围.不限制留空.请用逗号相隔,如'1,2,3'. 

var config='5|0xffffff|0x0099ff|50|0xffffff|0x0099ff|0x000000' 
//-- config 参数 -- 自动播放时间(秒)|文字颜色|文字背景色|文字背景透明度|按键数字颜色|当前按键颜色|普通按键色彩  
var swf_width=255   设置flash 宽 
var swf_height=175 设置flash 高2/3


index.php中

复制代码 代码如下:



$hack_cut_str = 26; //标题字数 
DESC LIMIT 0, 10" //设置显示条数 


如果不想调用某个版或某个区或者某些版的帖子可在index.php预留给大家的位置增加:(共三处)
and f.fid not in (0)
增加为:
and f.fid not in (1,2,3)其中123为 不想调用的 fid,
或者只想调用 1 2 3 改为:and f.fid in (1,2,3)3/3: discuz.htm 中引用:
如果想把最新回复中的链接打开时指向最后回复此帖的位置,只需将discuz.htm 中的:

复制代码 代码如下:



改为:

复制代码 代码如下:



需要像官方一样每个区加入伸缩点击功能的请在discuz.htm 中改写(五格的,如果是四格就根据

≡ 本周热门 ≡


复制代码 代码如下:


今日发帖


  
  
  

为:

复制代码 代码如下:



     首页四格,首页五格For6.0(GBK)(UTF-8)[12种组合][9-18][版主安装测试通过]
    

    

今日发帖


   
  
  
  

演示图:(根据要求新写的风格,使得在官方的六种风格中更加配套完善。。。)

使用本插件需要增加的文件有: 

pic.php      //调用论坛图片数据, 
list.gif 和listbg.gif       //标题处的图片 
focus.swf   //调用图片的flash [此swf 与以往的大不相同,个人觉得更不错] 
需修改的文件有: 

index.php 
discuz.htm 
=======================  开始增加和修改  ============================ 
步骤:共分4步 

将pic.php / list.gif / listbg.gif / focus.swf 按下载到的附件结构传到FTP(网站) 
其中:pic.php 在论坛根目录 
list.gif / listbg.gif / focus.swf 在images文件夹下 
打开 index.php  
查找:

复制代码 代码如下:


$rsshead = $rssstatus


在之上加:

复制代码 代码如下:


//----首页四格代码开始
$colorarray = array('', 'red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'purple', 'gray');
//新贴
$hack_cut_str = 26; //标题字数
$hack_cut_strauthor = 9;
$new_post_threadlist = array();
$nthread = array();
$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");
while($nthread = $db->fetch_array($query)) {
        $nthread['forumname'] = ereg_replace(']*>','',$nthread['name']);
        $nthread['view_subject'] = cutstr($nthread['subject'],$hack_cut_str);
        $nthread['view_author'] = cutstr($nthread['author'],$hack_cut_strauthor);
        $nthread['date']= gmdate("$dateformat $timeformat", $nthread['dateline'] + $timeoffset * 3600);
        $nthread['lastreplytime']= gmdate("$dateformat $timeformat", $nthread[lastpost] + ($timeoffset * 3600));
        if($nthread['highlight']) {
                $string = sprintf('%02d', $nthread['highlight']);
                $stylestr = sprintf('%03b', $string[0]);
                $nthread['highlight'] = 'style="';
                $nthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
                $nthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
                $nthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
                $nthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
                $nthread['highlight'] .= '"';
        } else {
                $nthread['highlight'] = '';
        }
        $new_post_threadlist[] = $nthread;
}
//新回复
$hack_cut_str = 26; //标题字数
$hack_cut_strauthor = 9;
$new_reply_threadlist = array();
$rthread = array();
$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");
while($rthread = $db->fetch_array($query)) {
        $rthread['forumname'] = ereg_replace(']*>','',$rthread['name']);
        $rthread['view_subject'] = cutstr($rthread['subject'],$hack_cut_str);
        $rthread['view_lastposter'] = cutstr($rthread['lastposter'],$hack_cut_strauthor);
  $rthread['date']= gmdate("$dateformat $timeformat", $rthread['dateline'] + $timeoffset * 3600);
        $rthread['lastreplytime']= gmdate("$dateformat $timeformat", $rthread[lastpost] + ($timeoffset * 3600));
        if($rthread['highlight']) {
                $string = sprintf('%02d', $rthread['highlight']);
                $stylestr = sprintf('%03b', $string[0]);
                $rthread['highlight'] = 'style="';
                $rthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
                $rthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
                $rthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
                $rthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
                $rthread['highlight'] .= '"';
        } else {
                $rthread['highlight'] = '';
        }
        $new_reply_threadlist[] = $rthread;
}
//热帖
$hack_cut_str = 26; //标题字数
$hack_cut_strauthor = 9;
$new_hot_threadlist = array();
$mthread = array();
$ctime=$timestamp-3600*24*7;//最后7是天数为本周  
$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 t.dateline>$ctime AND f.fid not in (0) AND t.displayorder not in (-1,-2) ORDER BY t.replies DESC LIMIT 0, 10");
while($mthread = $db->fetch_array($query)) {
        $mthread['forumname'] = ereg_replace(']*>','',$mthread['name']);
        $mthread['view_subject'] = cutstr($mthread['subject'],$hack_cut_str);
        $mthread['view_lastposter'] = cutstr($mthread['lastposter'],$hack_cut_strauthor);
  $mthread['date']= gmdate("$dateformat $timeformat", $mthread['dateline'] + $timeoffset * 3600);
        $mthread['lastreplytime']= gmdate("$dateformat $timeformat", $mthread[lastpost] + ($timeoffset * 3600));
        if($mthread['highlight']) {
                $string = sprintf('%02d', $mthread['highlight']);
                $stylestr = sprintf('%03b', $string[0]);
                $mthread['highlight'] = 'style="';
                $mthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
                $mthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
                $mthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
                $mthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
                $mthread['highlight'] .= '"';
        } else {
                $mthread['highlight'] = '';
        }
        $new_hot_threadlist[] = $mthread;
}
//----首页四格代码结束


打开 templates/default/discuz.htm 
查找:

复制代码 代码如下:




复制代码 代码如下:





  
  
   
   
   
   
  
  
  
   
   
   
   
  

≡ 论坛图片 ≡

≡ 最新帖子 ≡

≡ 最新回复 ≡

≡ 本周热门 ≡


    <script></script>
   

    
     
      
      
     
    
首页四格,首页五格For6.0(GBK)(UTF-8)[12种组合][9-18][版主安装测试通过]
      
       
        
                   
        
       
      
      

   

    
     
      
      
     
    
首页四格,首页五格For6.0(GBK)(UTF-8)[12种组合][9-18][版主安装测试通过]
      
       
      
      

   

    
     
      
      
     
    
首页四格,首页五格For6.0(GBK)(UTF-8)[12种组合][9-18][版主安装测试通过]
      
       
      
      

   




上传刚才修改过的 index.php 及 discuz.htm
==========================================================================
如果你没有修改过这两个文件可以下载附件(请注意为:0904最新6.0.0正式版)直接覆盖就可以了!
==========================================================================
附件中的每个包都是独立的,请根据喜爱及版本区别下载直接上传就可以使用了,不需要任何数据库设置!
最后:请记得每次覆盖或改写文件后一定要更新缓存!

请大家支持一下我的另一个原创插件:论坛音乐区所有歌曲连播[图]
请安装好的朋友留下您的网站地址!可以话请评分一下哦!谢谢!
希望大家喜欢!
晕,更新后,下载次数被我删除了,原先已有5000次左右!
所有文件打包
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What should I do if I download other people's wallpapers after logging into another account on wallpaperengine? What should I do if I download other people's wallpapers after logging into another account on wallpaperengine? Mar 19, 2024 pm 02:00 PM

When you log in to someone else's steam account on your computer, and that other person's account happens to have wallpaper software, steam will automatically download the wallpapers subscribed to the other person's account after switching back to your own account. Users can solve this problem by turning off steam cloud synchronization. What to do if wallpaperengine downloads other people's wallpapers after logging into another account 1. Log in to your own steam account, find cloud synchronization in settings, and turn off steam cloud synchronization. 2. Log in to someone else's Steam account you logged in before, open the Wallpaper Creative Workshop, find the subscription content, and then cancel all subscriptions. (In case you cannot find the wallpaper in the future, you can collect it first and then cancel the subscription) 3. Switch back to your own steam

Introduction to how to download and install the superpeople game Introduction to how to download and install the superpeople game Mar 30, 2024 pm 04:01 PM

The superpeople game can be downloaded through the steam client. The size of this game is about 28G. It usually takes one and a half hours to download and install. Here is a specific download and installation tutorial for you! New method to apply for global closed testing 1) Search for "SUPERPEOPLE" in the Steam store (steam client download) 2) Click "Request access to SUPERPEOPLE closed testing" at the bottom of the "SUPERPEOPLE" store page 3) After clicking the request access button, The "SUPERPEOPLECBT" game can be confirmed in the Steam library 4) Click the install button in "SUPERPEOPLECBT" and download

Where to download files from Quark Network Disk_How to download Quark Network Disk to local area and share Where to download files from Quark Network Disk_How to download Quark Network Disk to local area and share Mar 21, 2024 pm 03:57 PM

As a convenient and practical network disk tool, Quark can help users easily obtain their favorite resources. What if you want to download a file locally? Let the editor tell you now, let’s learn it together! How to download Quark Network Disk to local sharing method 1. First open the Quark software, enter the homepage, and click the [Cloud Icon] on the lower right; 2. Then on the Quark Network Disk page, we click the [Document] function; 3. Then go to the document page, select the file you want to download, and click the [three-dot icon]; 4. After the final click, we click [Download] in the pop-up dialog box;

Detailed steps for downloading files from qq Detailed steps for downloading files from qq Mar 22, 2024 pm 09:10 PM

1. First we open file management. 2. Click Internal Storage. 3. Scroll down and sort to find Tencent (Tencent folder) starting with t. 4. Click to enter and find QQfile_recv, click to enter to view.

How to download Beilehu children's songs How to download Beilehu children's songs Mar 28, 2024 am 11:10 AM

As an indispensable accompaniment to children's growth, Beilehu's children's songs have won the love of countless parents and children with their cheerful melody, vivid pictures and entertaining and educational content. In order to allow babies to enjoy the joy brought by children's songs anytime and anywhere, many parents hope to download Beilehu's children's songs to their mobile phones or tablets so that they can listen to their children at any time, but how to save Beilehu's children's songs? On your mobile phone, this tutorial will bring you a detailed introduction. Users who don’t understand it yet can come and read along with this article to learn more. Beilehu Nursery Rhymes Download Children's Songs Multi-Picture Tutorial: Open the software and select a children's song you want to download. The editor takes "Classic Children's Songs" as an example. 2. Click the "Download" button below the children's song star.

Can't UC videos be downloaded? How to download videos in UC browser Can't UC videos be downloaded? How to download videos in UC browser Mar 20, 2024 pm 08:51 PM

UC Browser is a browser that everyone is using. It allows everyone to get some unique online experience. It is super convenient and can search for a variety of resources for you, some of which you cannot enjoy on other platforms. Everyone can view his video works here. The content is very exciting. Everyone is immersed in it and can't stop at all. They also want to download the video locally so that they can watch it at any time. Whenever you want to watch it, you can just When I watched it, it was very convenient. I have sorted out the specific method of downloading the video. I hope it can help you. How to download videos to the local area in UC Browser: 1. Open UC Browser, click on the menu bar, and select Download/Video; 2. Click on the cached video; 3. Click on the video selection

How to download and save Douyin videos How to download and save Douyin videos Mar 25, 2024 pm 09:46 PM

How to download and save Douyin videos? You can download and save videos in Douyin short video APP. Most users don’t know how to download and save Douyin videos. Next is the diagram of how to download and save Douyin videos brought by the editor. Text tutorial, interested users come and take a look! Tutorial on how to use Douyin: How to download and save Douyin videos 1. First open the Douyin short video APP, enter the main page and click the [Share] button on the right; 2. After that, the multi-function bar will expand below, slide to the right to find [ Save local] icon; 3. Then you need to wait for the download, and then the [Saved, please go to the album to view] border will appear; 4. Finally jump to the album page, and you can see that the video you just downloaded has been saved.

How to install Podman on Ubuntu 24.04 How to install Podman on Ubuntu 24.04 Mar 22, 2024 am 11:26 AM

If you have used Docker, you must understand daemons, containers, and their functions. A daemon is a service that runs in the background when a container is already in use in any system. Podman is a free management tool for managing and creating containers without relying on any daemon such as Docker. Therefore, it has advantages in managing containers without the need for long-term backend services. Additionally, Podman does not require root-level permissions to be used. This guide discusses in detail how to install Podman on Ubuntu24. To update the system, we first need to update the system and open the Terminal shell of Ubuntu24. During both installation and upgrade processes, we need to use the command line. a simple

See all articles