年年我发



返回   年年我发 > 网站建设 > 建站交流 > Web Directory
用户名
密码
 
注册账号 论坛帮助 会员列表 日历事件网赚工具 标记版面已读

回复
 
主题工具 搜索本主题 显示模式
  #1   IP: 222.184.76.57
旧 2007-07-10, 02:41 AM
topvip topvip 当前离线
超级版主
 
注册日期: 2006-01-04
帖子: 618
精华: 11
现金: 4905 元
资产: 7353 元
声望: 10 topvip 正向着好的方向发展
默认 How to list 5 random FEATURED sites on the front page? (phpld)

in the index.php change the red code for the one listed
$random_link = $db->GetAll("SELECT * FROM {$tables['link']['name']} WHERE FEATURED = 1 AND STATUS=2 ORDER BY RAND() LIMIT 5");
$tpl->assign('random_link', $random_link);

Instead of using this in the main.tpl:

{if $category.ID eq 0 and not $p and not $qu}

use this from tojo:

{if !$uid & !$search & empty($category.ID) & !$list & $scriptname == "index"}

also you need to add this to the init.php right before the ?>

$tpl->assign('scriptname' , basename($_SERVER[PHP_SELF], ".php"));

this works
回复时引用此帖

wellcome to www.0058.net
回复


当前查看此主题的会员: 1 (0 位会员和 1 位游客)
 
主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

论坛启用 BB 代码
论坛启用 表情符号
论坛启用 [IMG] 代码
论坛禁用 HTML 代码
论坛跳转

相似的主题
主题 主题作者 版面 回复 最后发表
From usd10 per Week to usd 800 per Week sunshine Google Adsense 0 2007-05-09 08:30 PM
Secret Out - How Google Ranks Websites smiling 搜索引擎市场营销研究 0 2006-05-14 06:51 PM
Comprehensive List of SEO Tools topvip 搜索引擎市场营销研究 0 2006-03-23 01:16 AM
Successful Site in 12 Months with Google Alone sunshine 搜索引擎市场营销研究 0 2006-02-27 09:27 PM
Building for the user and the bot. admin 建站交流 0 2006-01-17 03:54 PM


所有时间均为北京时间. 现在的时间是 09:55 AM, Free Patent & Patent Ideas


Powered by vBulletin 3.5.2 Chinese Exhibition Happy New Year
©2000 - 2009,Jelsoft Enterprises Ltd  Desiccant Molecular Sieve Weight Loss Bentonite Trade Manager