LifeType 中文開發論壇

支援 => 使用與操作 => 主題作者是: netstu 於 一月 23, 2006, 10:13:21 上午



主題: 大家好,如何使index.php?blogId=xxx这样的网址处于一个框架之中
作者: netstu一月 23, 2006, 10:13:21 上午
如题。

补充:不想通过修改模板的方式,因为那样的话,我每套模板都需要加上框架。

如何通过程序让这样的URL在一个框架之中,谢谢。


主題: Re: 大家好,如何使index.php?blogId=xxx这样的网址处于一个框架之中
作者: winman一月 23, 2006, 10:23:03 上午

如何通过程序让这样的URL在一个框架之中,谢谢。

让URL在一个框架中? 看不明白,能传一张屏幕截图上来吗?


主題: Re: 大家好,如何使index.php?blogId=xxx这样的网址处于一个框架之中
作者: netstu一月 23, 2006, 07:13:59 下午
大家看一下CU的吧,我的意思也就是想做点自己的广告之类的,想在每个用户的上方显示一些自己的链接。

比如: http://www.cublog.cn/u/10957/ 最上方的连接。


主題: Re: 大家好,如何使index.php?blogId=xxx这样的网址处于一个框架之中
作者: 3gboke一月 23, 2006, 07:21:08 下午
这种方式很多站都是采用的调用js实现的..
 你只需要做个 js 然后在模版的header里面加上就OK了..   


主題: Re: 大家好,如何使index.php?blogId=xxx这样的网址处于一个框架之中
作者: netstu一月 23, 2006, 07:42:53 下午
暂时还没想到用js如何做?请指教。


主題: Re: 大家好,如何使index.php?blogId=xxx这样的网址处于一个框架之中
作者: lss一月 23, 2006, 10:21:58 下午
.......我的意思也就是想做点自己的广告之类的,想在每个用户的上方显示一些自己的链接。
............

hi netstu:

試試 adRotate plugin (http://wiki.lifetype.net/index.php/PLog_1.0/Plugins/adrotate) ,wiki 裡面說明摘要如下:
引用
AdRotate is a simple pLog plugin that will display a random ad within its database whenever generateAdLink is called. It currently only supports banner ads and does not allow specification of the properties of the banner ads.
我是沒用過,不過應該是你要的東西吧!

lss


主題: Re: 大家好,如何使index.php?blogId=xxx这样的网址处于一个框架之中
作者: netstu一月 24, 2006, 08:33:09 上午
lss 你好
谢谢你,不过这个好象不是我所想要的。因为这也需要修改每一个模板。


主題: Re: 大家好,如何使index.php?blogId=xxx这样的网址处于一个框架之中
作者: lss一月 24, 2006, 11:01:59 上午
你要的大概是像這樣吧:
引用
<frameset row="120,*">
<frame src="你的ad廣告網頁">
<frame src="你的 LT 首頁">
</frameset>
這只是簡單的 frame 標籤應用,用最簡單的方法來完成,可能一下子沒想起來這樣用吧! ;-)
以前也有人提過用這個方法來隱藏醜醜的一般網址 :-)

lss


主題: Re: 大家好,如何使index.php?blogId=xxx这样的网址处于一个框架之中
作者: markwu一月 24, 2006, 11:14:04 上午
可以作,但是有點複雜,你必須懂 PHP 還要能修改程式:

1. 寫一支 plugin, 只有管理員可以用
2. 透過smarty 的 prefilter 把你要顯示的topbar 加到模版中。
3. 這樣只有站長可以修改,其他人都不行。

你可以參考:http://forums.lifetype.net/viewtopic.php?t=2554&postdays=0&postorder=asc&highlight=topbar&start=0

Mark