![]() |
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
#1
IP: 49.87.209.254
|
|||
|
|||
|
帝国默认友情链接调出来是表格形式的,很不灵活,这里收藏了3种修改的办法。
1.修改e/class/t_functions.php文件里的代码,把友情链接那块的表格代码全去掉。这种方法有个缺点,一旦升级程序,或者转移网站时候重新安装程序,此文件会被覆盖。 织梦好,好织梦 2.用万能标签调友情链接 [ecmsinfo]’select lname as title,lurl as id,lpic as titlepic from phome_enewslink where classid=3 order by lid’,7,20,0,24,标签模板ID,1[/ecmsinfo] 用SQL查询调用,SQL语句: select lname as title,lurl as id,lpic as titlepic from phome_enewslink order by lid 标签模板中用[!--title--]表示站点名称、[!--id--]表示网站地址、[!--titlepic--]表示网站logo。 内容来自dedecms 3.灵动标签调用 [e:loop={'select * from [!db.pre!]enewslink where checked=1 order by lid’,20,24,0}] [e:loop={'select * from [!db.pre!]enewslink where checked=1 and classid=1 order by lid',50,24,0}]<a href="<?=$bqr[lurl]?>"><?=$bqr[lname]?></a> [/e:loop] 上面classid可设置为分类为首页链接。 |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|