Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

[求助] 请问游客使用外部链接,可以不跳转吗

[复制链接]
s673 发表于 2010-4-18 00:36:58 | 显示全部楼层 |阅读模式
http://www.stephy.tk/home/link.php?url=http://www.stephy.tk%2Fqun.html

如果不登陆的话,就跳转,我不想跳转,怎么办?
回复

使用道具 举报

shmoost 发表于 2010-4-22 22:42:19 | 显示全部楼层
这个...不好说..
回复

使用道具 举报

luyustu 发表于 2010-5-1 13:08:47 | 显示全部楼层
回复 2# shmoost


    你在link.php里面做相应的修改即可‘
  1. if(empty($space)) {
  2.         //游客直接跳转
  3.         showmessage('do_success', $url, 0);
  4. }
复制代码
修改成
  1. if(empty($space)) {
  2.         //游客直接跳转
  3.         //showmessage('do_success', $url, 0);
  4.         $url = shtmlspecialchars($url);
  5. }
复制代码
就可以实现楼主想要的方式了。
我的网站上就是这样做的。
http://daohang.luyustu.com/link.php?url=g.cn
http://home.luyustu.com/link.php?url=http://g.cn
楼主可以参考一下;
有问题可以及时交流。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-9-13 20:08 , Processed in 0.116559 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表