Web Design-4 case do not call home page the method that assigns note of edition piece theme-Website Design |
|
Plug-in unit address: HTtp://webdesign.zoapcon.comnet/thread-696558-1-1.html Plug-in unit is pretty good, but conceal the edition that ability of group of specific perhaps user examines edition piece piece thematic post can show in home page on 4 grid How to revise ability to let home page don’t 4 case call the thematic note that assigns edition piece? For instance Fid=10 edition piece thematic post 1, open systematic file Index.php, search following similar code: $colorarray = Array(” , ‘red’ , ‘orange’ , ‘yellow’ , ‘green’ , ‘cyan’ , ‘blue’ , ‘purple’ , ‘gray’); / / stick newly Headword of $hack_cut_str = 26; // is counted $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, 60, 247, 257, 268) AND T.displayorder Not In (-1, – 2) ORDER BY T.dateline DESC LIMIT 0, 10 “); 2, if do not want to call a certain edition piece the theme is stuck, can amend afore-mentioned code And F.fid Not In (0) For: And F.fid Not In (10) , among them the 10 Fid that call edition piece to do not think, The edition that perhaps wants to call Fid=10 only piece, can revise afore-mentioned code to be: And F.fid In (10) 3, demonstrate an address: Http://webdesign.zoapcon.comcn/ |