I have some topics which have many pages. If a post in a page has number > 1, its anchor link doesn't work.
Example: this topic has 2 pages:
http://codologic.com/forum/index.php?u=/topic/1562/avatar-not-appear-in-chat
@adesh posted a post and his link is:
http://codologic.com/forum/index.php?u=/topic/1562/avatar-not-appear-in-chat/#post-9269
If you click on the above link, it doesn't go to Adesh post but go to the the first post in that topic.
We have to modify this file:
codoforum\sites\default\themes\default\templates\forum\topic.html
Line 76, from:
{{{i18n "posted"}}} <a href="{{{const "RURI"}}}topic/{{tid}}/{{safe_title}}/{{page}}#post-{{post_id}}">{{post_created}}</a>
To:
{{{i18n "posted"}}} <a href="{{{const "RURI"}}}topic/{{tid}}/{{safe_title}}/post-{{post_id}}#post-{{post_id}}">{{post_created}}</a>
I have some topics which have many pages. If a post in a page has number &gt; 1, its anchor link doesn't work.
**Example**: this topic has 2 pages:
http://codologic.com/forum/index.php?u=/topic/1562/avatar-not-appear-in-chat
@adesh posted a post and his link is:
http://codologic.com/forum/index.php?u=/topic/1562/avatar-not-appear-in-chat/#post-9269
If you click on the above link, it doesn't go to Adesh post but go to the the first post in that topic.
We have to modify this file:
``
codoforum\sites\default\themes\default\templates\forum\topic.html
``
Line 76, from:
``
{{{i18n "posted"}}}&amp;nbsp;&lt;a href="{{{const "RURI"}}}topic/{{tid}}/{{safe_title}}/{{page}}#post-{{post_id}}"&gt;{{post_created}}&lt;/a&gt;
``
To:
``
{{{i18n "posted"}}}&amp;nbsp;&lt;a href="{{{const "RURI"}}}topic/{{tid}}/{{safe_title}}/post-{{post_id}}#post-{{post_id}}"&gt;{{post_created}}&lt;/a&gt;
``
NguoiAnPhu.com
Powered by Codoforum 4.3
(https://github.com/nguoianphu/codoforums-vietnam).