打印

[求助] 关于相对地址的问题

0

关于相对地址的问题

想问一下:
引用地址做相对链接的时候,比如http://www.sis001.us/forum/viewt ... page=22#pid80807581这样一个链接,其中page值和pid值有什么逻辑关系或者运算方面的关系吗?
因为小弟最近在做文区的目录帖子,所以有此一问,希望能够得到解答。

另外,附一下和这个问题有关的实际问题,希望有助于论坛功能的改善:
在主题贴的每一个楼层上方都有『只看该作者』的按钮,当点击这个按钮后,同作者在该主题下的回复会被收集起来,对应的出现,比如本来第10页的回复可能会跑到4楼来,这个时候,尝试做对应回复的相对链接会发现:原回复的tid值和pid值不变,而page值由10变成1,所以最终导致制作的相对链接会指向错误的位置。
所以,也就是说page值其实是一个动态数值,会随着类似『只看该作者』这样的选项而出现变化,不知论坛是否可以考虑调整一下编码形式来使得类似的排版不至于影响相对链接的应用呢?

TOP

0
感谢小胖的提醒,我已经把问题提到管理区去了~

其实问题就是泛舟说的,由于最开始是通过只看该作者,来做的相对链接,所以现在要大面积返工
所以才来问问,看有什么比较好的方法没有,否则只有出死力气来返工了~

TOP

当前时区 GMT+8, 现在时间是 2024-9-13 06:36

Fatal error: Uncaught RedisException: OOM command not allowed when used memory > 'maxmemory'. in /home/wwwroot/sis/public_html/forum/include/dRedis.class.php:35 Stack trace: #0 /home/wwwroot/sis/public_html/forum/include/dRedis.class.php(35): Redis->exec() #1 /home/wwwroot/sis/public_html/forum/include/statistics.inc.php(287): dRedis::pipeExec() #2 /home/wwwroot/sis/public_html/forum/include/global.func.php(490): dstatistics() #3 /home/wwwroot/sis/public_html/forum/forumdata/templates/22_footer.tpl.php(41): output() #4 /home/wwwroot/sis/public_html/forum/forumdata/templates/22_viewthread.tpl.php(559): include('/home/wwwroot/s...') #5 /home/wwwroot/sis/public_html/forum/viewthread.php(440): include('/home/wwwroot/s...') #6 {main} Next RedisException: OOM command not allowed when used memory > 'maxmemory'. in /home/wwwroot/sis/public_html/forum/include/dRedis.class.php:35 Stack trace: #0 /home/wwwroot/sis/public_html/forum/include/dRedis.class.php(35): Redis->exec() #1 /home/wwwroot/sis/public_html/forum/include/statistics in /home/wwwroot/sis/public_html/forum/include/dRedis.class.php on line 35