| :: |
| Author |
Message |
macnack PR0

Joined: 20 Jun 2006 Posts: 97
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14403
|
Posted: Tue Jun 20, 2006 8:00 am Post subject: Re: url highlight problem - mixed mod |
|
|
yeah, you have found it The bug. Found out about it yesterday in the french forums, was updating
Will be fixed in next release, very soon, this link is not used this often, that's why I missed it first/
Anyway:
Open :
| Code: | | includes/sessions.php |
Find :
| Code: | | "'(?)viewtopic.php\?p=([0-9]+)'", |
Replace with :
| Code: | | "'(?)viewtopic.php\?p=([0-9]+)((&)|(&)){0,1}'", |
Find :
Replace with :
| Code: |
"post\\1.html".if_query('\\2')."", |
and welcome  |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
macnack PR0

Joined: 20 Jun 2006 Posts: 97
|
Posted: Tue Jun 20, 2006 8:15 am Post subject: Re: url highlight problem - mixed mod |
|
|
Hi dcz
very good support in this forum
it work
thanks |
_________________ macnack |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14403
|
Posted: Tue Jun 20, 2006 8:24 am Post subject: Re: url highlight problem - mixed mod |
|
|
Hey your are welcome
Actually, I am very close to optimize all of the phpBB SEO mod Rewrite with this fix obviously, but took as well the occasion to rewrite the format_url() function , much more faster now, and to take car a bit further about highlights.
Anyway, update will be easy.
If you want you can thus add this small highlight fix, even though it does concern this particular link your are talking about and this is a post (viewtopic.php?p=) and thus a duplicate that should be disallowed by the robots.txt, it will be implemented in 0.0.2
| Code: | #
#-----[ OPEN ]------------------------------------------
#
#
search.php
#
#-----[ FIND ]------------------------------------------
#
for($i = 0; $i < count($searchset); $i++)
{
#
#-----[ BEFORE, ADD ]------------------------------------------
# Here You can also choose not to output any highlight, which is better as far as SEO, but a bit less user-friendly.
# To do so just delete the $highlight_ok in the next replace and do not apply this one.
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$highlight_ok = ($highlight !='') ? "&highlight=$highlight" : '';
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
$post_url = append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $searchset[$i]['post_id'] . "&highlight=$highlight_active") . '#' . $searchset[$i]['post_id'];
#
#-----[ REPLACE WITH ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$post_url = append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $searchset[$i]['post_id'] . $highlight_ok) . '#' . $searchset[$i]['post_id'];
// www.phpBB-SEO.com SEO TOOLKIT END |
It's basicaly the same principle as for the viewtopoic link, a simple check on the highlight will save unecessary use.
As well you can decide to get rid of it, but it's less important here than for the viewtopic link, again dupe
Don't forget the final touch
Could as well use mx Google Sitemaps and mx Sitemaps to go bit further
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
macnack PR0

Joined: 20 Jun 2006 Posts: 97
|
Posted: Tue Jun 20, 2006 9:40 am Post subject: Re: url highlight problem - mixed mod |
|
|
Hi dcz
I am sorry that I ignore your welcome
but my english for answer is very bad ...
Fine to be a member of this forum
I fixed it  |
_________________ macnack |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14403
|
|
| Back to top |
|
 |
macnack PR0

Joined: 20 Jun 2006 Posts: 97
|
Posted: Wed Jun 21, 2006 8:49 am Post subject: Re: url highlight problem - mixed mod |
|
|
| dcz wrote: | I have seen that your site needed a bit of work, so you will soon see a big difference.
From 77 indexed pages pages, today, not all cached to ...
mx Google Sieamaps and mx Sitemaps will help a lot
++ |
Hi dcz
my forum was hacked at 3.6.06 (not updatet ),
www.forum.detektoreninfo.de is a new url.
Google find today 66.700 matches from old forum urls...
Hope google find them next at new url
It´s first time I work with mod-rewrite/seo mods |
_________________ macnack |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14403
|
|
| Back to top |
|
 |
|
|