Home four grid, home five For6.0 (GBK) (UTF-8) [12 combinations][9-18][moderator installation test via]_php tutorial

Source: Internet
Author: User
Tags dateformat
Download million times home four grid, home five For6.0 (GBK) (UTF-8) [12 combinations][9-18][moderator installation test pass]
Reference:
This plugin by moderator Sakurakawaii on September 8, 07 15:30 minutes
Test installation error under Windows XP discuz!6.0.0 Standard template IE6 Mysql4.1
This test only represents this plug-in installation error-free, and does not include issues that may arise in future long-term use:
Disclaimer: This procedure refers to a part of the 5.0 four-block code, if the source author has comments please SMS me, must delete the release!
After a lot of changes and flash settings to add a lot of custom settings, this plug-in can be said to be the most complete function of the altar, the most beautiful one! Celebrate this plugin through moderator test!

List of updates and plug-in benefits:

9-18: Add the first Page Six to the friend request (picture + new Post + reply + this week's top + the essence of the Month + today's ranking) please download it at the bottom of the accessory package
9-15: Updated with a few friends server not supported An issue that causes the picture to not appear. (Download the package directly and overwrite the pic.php.)
9-13: The request of the altar friends to join the four-band build station days without pictures of the call combination! (See the bottom of the annex for demo)
9-10: Join the altar very few UTF-8 version four and five, please download use! (see annex at the bottom)
9-9 8:00 Update:
Reference:
Fixed the issue of post title wrapping in all combinations when the screen resolution is small or when the column is open!
9-8 14:00
There should be a friend request, a new four-grid style, there are currently seven methods of invocation (see annex).
At the request of the new addition of the following two combinations (released)
1, pictures, new posts, latest reply, this week's top, today's post ranking (home five)
2, new posts, latest reply, this week's hot, the essence of posts
9-7: Solve the problem that the sensitive words are still displayed in four panes after filtering!
9-6: Breakthrough: A change in the past Flash style, change the appearance of the text in the next, and solve a lot of friends put forward the picture card, flash call problem! It is now fast and can customize Flash keys, text, background color and background transparency. True humanization, meet the needs of your supporting forum style color!
9-6: Special UPDATE: When the forum opened the theme Recycle Bin, no longer post to the theme Recycle Bin is still on the first page four display situation!

A variety of parameters can be set on their own comments (in view of a lot of friends do not know how to set the method, now you can set the contents of all written below, for everyone to use)
1/3: in pic.php
Copy CodeThe code is as follows:
$shownums = 5;//Demo number within 6
$searchnums = total number of 50;//searches.
$cachelife = 1800;//Cache time.
$orderby = ' dateline ';//search Order: Dateline by date. By number of views downloads. Random Rand.
$cachename = ' showpic ';//cache name. If there is a conflict with any plugin, modify it, as long as the conflict does not affect the use.
$searchfid = ';//search for FID range. Leave blank. Please use commas, such as ' a '.

var config= ' 5|0xffffff|0x0099ff|50|0xffffff|0x0099ff|0x000000 '
--config parameter--auto play time (seconds) | text color | text background color | text Background Transparency | Key number Color | current button Color | normal button color
var swf_width=255 setting Flash Width
var swf_height=175 set Flash High 2/3

In index.php
Copy CodeThe code is as follows:

$hack _cut_str = 26; Title Words
DESC LIMIT 0, 10 "//Set Display bar number

If you do not want to call a version or a section or some version of the post can be reserved for everyone in the index.php location added: (Total three locations)
and F.fid not in (0)
Added to:
and F.fid not in (all-in-one) where 123 is the FID that does not want to be called,
or just call 1 2 3 instead: and F.fid in (All-in-one) 3/3: discuz.htm Reference:
If you want to turn on the link in the latest reply, point to the location where you last reply to this post, just discuz.htm:
Copy CodeThe code is as follows:

Switch
Copy CodeThe code is as follows:

Need to be like the official each zone to add the scaling click Function, please rewrite in discuz.htm (five, if the quadrant motif is based on

≡ popular ≡ this week


Copy CodeThe code is as follows:

Post today






For:
Copy CodeThe code is as follows:



Post today







Demo diagram: (according to the new style of writing, so that in the official six styles more complete ... )

The additional files required to use this plugin are:

pic.php//Call forum image data,
List.gif and listbg.gif//pictures at the title
FOCUS.SWF//Call the image flash [this swf is quite different from the previous one, personally feel more good]
The files to be modified are:

index.php
Discuz.htm
======================= start adding and modifying ============================
Step: A total of 4 steps

Upload pic.php/list.gif/listbg.gif/focus.swf to FTP (website) by downloading the attachment structure
Where: pic.php in forum root directory
List.gif/listbg.gif/focus.swf under the Images folder
Open index.php
Find:
Copy CodeThe code is as follows:
$rsshead = $rssstatus

On top add:
Copy CodeThe code is as follows:
----Home four grid code start
$colorarray = Array (' ', ' red ', ' orange ', ' yellow ', ' green ', ' cyan ', ' blue ', ' purple ', ' gray ');
New Stickers
$hack _cut_str = 26; Title Words
$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;
}
New reply
$hack _cut_str = 26; Title Words
$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 B Y 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;
}
Hot Posts
$hack _cut_str = 26; Title Words
$hack _cut_strauthor = 9;
$new _hot_threadlist = Array ();
$mthread = Array ();
$ctime = $timestamp -3600*24*7;//The last 7 is the number of days for this week
$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.displayord Er 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;
}
----Home Four grid end of code

Open templates/default/discuz.htm
Find:
Copy CodeThe code is as follows:


Copy CodeThe code is as follows:

















≡ Forum photo ≡

≡ Latest posts ≡

≡ Latest reply ≡

≡ popular ≡ this week










!--{loop $new _post _threadlist $nthread}-->
!--{if $nthread [replies]}-->
$nthread [View_subject]
!--{else}-->
$nthread [View_subject]
!--{/if}-->
!--{/loop}-->








!--{loop $new _repl Y_threadlist $rthread}-->
$rthread [View_subject]
!--{/loop}-->








$mthread [View_subject]






Upload the index.php and discuz.htm you have just modified
==========================================================================
If you have not modified these two files can download the attachment (please note that: 0904 the latest 6.0.0 official version) directly covered on it!
==========================================================================
Each package in the attachment is independent, please download the direct upload according to the love and version difference, you can use it without any database settings!
Last: Remember to update your cache every time you overwrite or overwrite a file!

Please support my other original plugin: forum music area All songs Lianbo [image]
Please set up your friend to leave your website address! Please give me a good rating. Thank you!
Hope everyone likes it!
Halo, after the update, I deleted the number of downloads, the original has been about 5,000 times!
All Files Packaged

http://www.bkjia.com/PHPjc/318420.html www.bkjia.com true http://www.bkjia.com/PHPjc/318420.html techarticle download million times of home four, home five For6.0 (GBK) (UTF-8) [12 combinations][9-18][moderator installation test through] reference: This plugin by moderator Sakurakawaii on September 8, 07 15:30 in the windowsxp ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.