douzhengnao8265 2011-02-04 06:33
浏览 78
已采纳

如何更改页面导航第一个数字链接到页面线程或帖子的原始网址

hi i need help i have page navigation look like this in the page navigation in vbuilletin 4.1.1:

First Previous ,1 , 2, Next Last

when i click the page 2 the url shows like that :

http://localhost/vbs/forumdisplay.php?f=2&page=2&order=desc

and that is fine with me but what i want is when i click back to the page number 1 or click the "first" button

i don't want it to show the url like this :

http://localhost/vbs/forumdisplay.php?f=1&page=2&order=desc

what i want is to show the original url of the first page for the thread or the post like this

http://localhost/vbs/forumdisplay.php?f=2

i tried to modify the pagenave template but with no success plz can anyone advice me what i can do ??

  • 写回答

1条回答 默认 最新

  • dongtang6775 2011-02-04 09:53
    关注
    if((int)$_GET['f']<2){
       header('Location: http://localhost/vbs/forumdisplay.php?f=2');
       die();
    }
    

    put this on top of the page... before any html output.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度