Post Titles' anchored links not working.

phpBB3 SEO Advanced mod Rewrite support forum.
This mods performs URL rewriting for phpBB, injecting forums and topic titles in their URLs.

Moderator: Moderators

Post Titles' anchored links not working.

Postby stealthmktg » Fri Apr 17, 2009 8:01 pm

Just installed phpBB SEO - relatively painless - so I'm quite happy with it! (good job y'all). The only little bug that we've found is this (hard to explain):

When viewing a topic the link on the post title is not being rewritten properly or at all.

eg. what should be -http://www.example.com/topic-txx.html#p408
is being written as
eg. -http://www.example.com/#p408

and one gets booted back to the root.

I'm sure it's just an edit I missed in the initial instructions - any help?
stealthmktg
 
Posts: 13
Joined: Thu Apr 16, 2009 7:44 pm

Advertisement

Re: Post Titles' anchored links not working.

Postby stealthmktg » Fri Apr 17, 2009 8:09 pm

So to reiterate this, the link on the post title above:
Code: Select all
<h3 class="first"><a href="http://www.phpbb-seo.com/en/advanced-seo-url/article-t4395.html#p25810" title="Post Titles' anchored links not working.">Post Titles' anchored links not working.</a></h3>


on my forum would be written as :
Code: Select all
<h3 class="first"><a href="http://www.phpbb-seo.com/#p25810" title="Post Titles' anchored links not working.">Post Titles' anchored links not working.</a></h3>
stealthmktg
 
Posts: 13
Joined: Thu Apr 16, 2009 7:44 pm

Re: Post Titles' anchored links not working.

Postby stealthmktg » Fri Apr 17, 2009 8:50 pm

I've checked and re-checked and definitely have this step complete in viewtopic_body.html:
Code: Select all
<a href="{U_VIEW_TOPIC}#p{postrow.POST_ID}">{postrow.POST_SUBJECT}</a>


The other steps on that page seem to be not working as well - everything involving U_VIEW_TOPIC
stealthmktg
 
Posts: 13
Joined: Thu Apr 16, 2009 7:44 pm

Re: Post Titles' anchored links not working.

Postby dcz » Sat Apr 18, 2009 1:35 pm

mm, if the templates (all of them) are properly modded as it seems, then the issue must be in viewtopic.php. But before you double check it, make sure that you have no other :
Code: Select all
<a href="#

in your viewtopic_body.html template, since these type of links won't work with virtual folders, they need to use a complet url. And :
Code: Select all
{U_VIEW_TOPIC}

should actually hold the topic's current url in the template.

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21376
Joined: Fri Apr 28, 2006 9:03 pm

Re: Post Titles' anchored links not working.

Postby stealthmktg » Mon Apr 20, 2009 1:18 pm

There are 2 instances of
Code: Select all
<a href="#
in viewtopic_body.html. In the pagination at top (line 55) and bottom (line 250)

I double-checked viewtopic.php and all mods looked ok...
stealthmktg
 
Posts: 13
Joined: Thu Apr 16, 2009 7:44 pm

Re: Post Titles' anchored links not working.

Postby stealthmktg » Mon Apr 20, 2009 3:32 pm

I emptied the cache directory a few dozen times while in a browser hard refreshing on most/all topics on the forum. Everything seems to be working well now. Thanks for your help/response...
stealthmktg
 
Posts: 13
Joined: Thu Apr 16, 2009 7:44 pm

Re: Post Titles' anchored links not working.

Postby stealthmktg » Mon Apr 20, 2009 7:38 pm

Ok, so now I notice that once the site is browsed some (and cache files created) the title and "to top" links start breaking. They work only when the eight /cache/tpl_prosilver_* files are removed.
Last edited by stealthmktg on Mon Apr 20, 2009 8:53 pm, edited 1 time in total.
stealthmktg
 
Posts: 13
Joined: Thu Apr 16, 2009 7:44 pm

Re: Post Titles' anchored links not working.

Postby stealthmktg » Mon Apr 20, 2009 8:53 pm

The cache files are not being created properly. eg. The post link looks like this in /cache/tpl_prosilver_viewtopic_body.html.php
<a href="#p<?php echo $_postrow_val['POST_ID']; ?>">

:?
stealthmktg
 
Posts: 13
Joined: Thu Apr 16, 2009 7:44 pm

Re: Post Titles' anchored links not working.

Postby nemoprincess » Wed Apr 22, 2009 9:32 am

Hello,
maybe I have a similar issue. Everything works fine but when I edit a post, after edit is ended, it returns -http://www.mysite.com/forum/post7.html#p7, instead of -http://www.mysite.com/forum/post-title-t7.html, that was not rewritten so I have a not found error page.
Can someone help me please?
thanks
nemoprincess
 
Posts: 12
Joined: Thu Mar 27, 2008 4:20 pm

Re: Post Titles' anchored links not working.

Postby dcz » Wed Apr 22, 2009 12:58 pm

@ stealthmktg
did you replace all the :
Code: Select all
<a href="#

with :
Code: Select all
<a href="#{U_VIEW_TOPIC}

in your viewtopic_body.html ?

You may as well need to clear your template's cache using the style acp instead of just clearing phpBB's cache.

@ nemoprincess
It's not really comparable, and beside, it's not an issue, there is no real need to rewrite these links differently since bots do not post (thus do not see these) and the zero duplicate is redirecting them anyway (depending on your post redirection option).
So it's not an SEO threat at all, and rather a cosmetic matter.

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21376
Joined: Fri Apr 28, 2006 9:03 pm

Re: Post Titles' anchored links not working.

Postby stealthmktg » Wed Apr 22, 2009 1:17 pm

dcz wrote:You may as well need to clear your template's cache using the style acp instead of just clearing phpBB's cache.


Now we're talkin'! I had no idea there was a separate cache for each template/style. I think I'm all fixed up now. Thank you!

...on to zero duplicate now...
stealthmktg
 
Posts: 13
Joined: Thu Apr 16, 2009 7:44 pm

Re: Post Titles' anchored links not working.

Postby nemoprincess » Thu Apr 23, 2009 2:18 pm

Hello,
thanks for your answer dcz. Maybe I was not very clear,sorry. I installed phpbb seo advanced, everythig works fine except post editing. When a user edit a post, then he doesn't come back to his message but obtain a 404 error page.
Can someone help me? Thank you very much.
nemoprincess
 
Posts: 12
Joined: Thu Mar 27, 2008 4:20 pm

Re: Post Titles' anchored links not working.

Postby dcz » Sun Apr 26, 2009 11:43 am

Could be due to the .htaccess, could you post here the url resulting in a 404 ?
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21376
Joined: Fri Apr 28, 2006 9:03 pm

Re: Post Titles' anchored links not working.

Postby nemoprincess » Wed Apr 29, 2009 7:11 am

I have a not found error and the url not found is

-www.mywebsite.com/forum/post2.html#p2
nemoprincess
 
Posts: 12
Joined: Thu Mar 27, 2008 4:20 pm

Re: Post Titles' anchored links not working.

Postby dcz » Fri May 01, 2009 1:10 pm

http://demo.phpbb-seo.net/post3.html#p3
message26070.html#p26070

These should work, so a 404 most likely means a .htaccess issue, the weird thing being that it should usually fail for all urls when it does, not posts only.

Could you post your .htaccess and tell me where you implemented it. Your site url could help out too.

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21376
Joined: Fri Apr 28, 2006 9:03 pm

Next

Return to Advanced SEO URL

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 17 guests