url highlight problem - mixed mod

Support for the phpBB2 SEO mods released in the phpBB2 SEO Toolikt forum.

Moderator: Moderators

url highlight problem - mixed mod

Postby macnack » Tue Jun 20, 2006 7:13 am

Hello
I´ve a problem with url´s in seo mixed mod.
You can see my problem on this site: http://www.forum.detektoreninfo.de/sear ... or=macnack
The url in the Topic Title doesn´t work.
macnack
PR1
PR1
 
Posts: 101
Joined: Tue Jun 20, 2006 7:01 am
Location: Germany

Advertisement

Postby dcz » Tue Jun 20, 2006 8:00 am

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: Select all
includes/sessions.php



Find :

Code: Select all
      "'(?)viewtopic.php\?p=([0-9]+)'",



Replace with :

Code: Select all
      "'(?)viewtopic.php\?p=([0-9]+)((&)|(&)){0,1}'",



Find :

Code: Select all
      "post\\1.html",



Replace with :
Code: Select all
      "post\\1.html".if_query('\\2')."",



and welcome ;)
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: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Postby macnack » Tue Jun 20, 2006 8:15 am

Hi dcz
very good support in this forum :wink:
it work
thanks
macnack
PR1
PR1
 
Posts: 101
Joined: Tue Jun 20, 2006 7:01 am
Location: Germany

Postby dcz » Tue Jun 20, 2006 8:24 am

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: Select all
#
#-----[ 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 !='') ? "&amp;highlight=$highlight" : '';
      // www.phpBB-SEO.com SEO TOOLKIT END


#
#-----[ FIND ]------------------------------------------
#

         $post_url = append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $searchset[$i]['post_id'] . "&amp;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 || Search
____________________

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

Postby macnack » Tue Jun 20, 2006 9:40 am

Hi dcz
I am sorry that I ignore your welcome :oops:
but my english for answer is very bad ...
Fine to be a member of this forum :P

Don't forget the final touch :wink:


:oops: :oops: :oops:

I fixed it :wink:
macnack
PR1
PR1
 
Posts: 101
Joined: Tue Jun 20, 2006 7:01 am
Location: Germany

Postby dcz » Tue Jun 20, 2006 9:47 am

he, no problem at all.

The forum will change a lot this coming month, will soon set up groups and such and start the team ;)

Until then, fell free to ask whatever question in the relevant thread or forum.

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 ;)

++
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: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Postby macnack » Wed Jun 21, 2006 8:49 am

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 :oops: ),
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 :roll:
It´s first time I work with mod-rewrite/seo mods
macnack
PR1
PR1
 
Posts: 101
Joined: Tue Jun 20, 2006 7:01 am
Location: Germany

Postby dcz » Wed Jun 21, 2006 9:07 am

Oh I see, then you should ask for some help in the mod rewrite forum (asking for the correct redirections, if you know this is what to do) or in the SEO Techniques forum if you need general help to migrate domain (as it's what's seem to have happened in the end) to find out how to keep all those previous linking you had.

We'll be at least able to save all you previous backlinks ;)

And to answer, yes, Search Engine will now re-spider your site, and it's would be even faster is you'd used proper http 301 redirections ;)

++
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: 21238
Joined: Fri Apr 28, 2006 9:03 pm


Return to phpBB2 SEO MODS

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 1 guest


 
cron