phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
a help with seo mod n other

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 Forum
::  
Author Message
darjana



Joined: 01 Feb 2008
Posts: 30

a help with seo mod n otherPosted: Mon Dec 01, 2008 3:55 am    Post subject: a help with seo mod n other

Code:
      //[begin] Url to Link
      if ($allow_bbcode && $allow_magic_url)
      {
         $viewtopic_url = preg_quote(generate_board_url() . '/viewtopic.' . $phpEx . '?', '/') . 'f=([0-9]+)&t=';
         preg_match_all('/(^|[\n ])(' . $viewtopic_url . ')([0-9]+)([\w\#$%&~\-;:=,?@\[\]+]*)/si', $this->message, $matches);
         foreach ($matches[0] as $k => $str)
         {
            $topic_post_id = $matches[4][$k];
            $topic_title = '';
            $sql = 'SELECT topic_title
               FROM ' . TOPICS_TABLE . '
               WHERE topic_id = ' . (int) $topic_post_id;
            if ($result = $db->sql_query($sql))
            {
               $topic_title = $db->sql_fetchfield('topic_title');
            }
            $db->sql_freeresult($result);
      
            if (!empty($topic_title))
            {
               $this->message = str_replace($str, $matches[1][$k] . '[url=' . trim($str) . ']' . $topic_title . '[/url]', $this->message);
            }
         }
      }
      //[end] Url to Link


it doesnt change the title as it should do if i use seo mod.

Code:
Author Notes:Will transform the internal links of type viewtopic.php?f=1&t=1 to the links [url=viewtopic.php?f=1&t=1]Topic name[/url]


Forgot to say: phpbb-seo rocks.. Cool
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 4551

a help with seo mod n otherPosted: Mon Dec 01, 2008 11:10 am    Post subject: Re: a help with seo mod n other

This is not that simple to do in the general case, but we're are currently working on a similar script additionally able to translate viewtopic.php urls to the rewritten ones in posts.

_________________
phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible !
Back to top
darjana



Joined: 01 Feb 2008
Posts: 30

a help with seo mod n otherPosted: Wed Dec 03, 2008 3:26 am    Post subject: Re: a help with seo mod n other

sorry for being rude, but any updates on your mod? really wish to get hold of mod like this.

thanks Wink
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15414

a help with seo mod n otherPosted: Sat Dec 06, 2008 9:06 am    Post subject: Re: a help with seo mod n other

Time will come don't worry, and it's not an SEO threat to keep a forum with viewtopic.php links in posts right now, thanks to the zero duplicate.

It will only be a bit better after the links will have been edited by the script.

_________________
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
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 Forum
Page 1 of 1

Navigation

Jump to: