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  
 
   
statusmail mod advanced mod rewrite - easy?

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite  » Advanced mod Rewrite
::  
Author Message
emma1989



Joined: 17 Sep 2007
Posts: 22

statusmail mod advanced mod rewrite - easy?Posted: Wed Oct 03, 2007 9:03 pm    Post subject: statusmail mod advanced mod rewrite - easy?

THis is a great mod (statusmail mod) and it send a list (digest) of the latest topics, weekly. these topics, obviously are in /viewtopic.php etc form...

It only uses one file statusmail.php, so surely a mod to this mod for advanced mod rewrite could be quite easy? Cool

The mod is here, and works with 2.0.22 Smile

http://www.phpbbhacks.com/download/6077

Thanks guys Smile xx
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14779

statusmail mod advanced mod rewrite - easy?Posted: Sat Oct 06, 2007 8:41 am    Post subject: Re: statusmail mod advanced mod rewrite - easy?

The mod is apparently outputting post urls (viewtopic.php?p=xx), the one we rewrite as postxx.html since they are duplicate.
The problem is in this case is we would need quite some modding to convert these to topic url.

These url are not shown to bots, so it's no big deal to leave them as they are, but you can easily have them rewritten to postxx.html.

Open incluldes/statusmail.php and find :
Code:
                        $str_newposts .= " - <a href=\"".$str_vturl."?".POST_POST_URL."=".$row_posts['last_post_id'].'#'.$row_posts['last_post_id']."\">".$lang['SM_Link']."</a> \n";


Raplace with :
Code:
                        $str_newposts .= " - <a href=\"" . $server_protocol . $server_name . $server_port . $script_name . append_sid("viewtopic." . $phpEx . "?".POST_POST_URL."=" . $row_posts['last_post_id']).'#'.$row_posts['last_post_id']."\">".$lang['SM_Link']."</a> \n";


Find :
Code:
                        $str_newposts .= $lang['SM_Link'].": ".$str_vturl."?".POST_POST_URL."=" . $row_posts['last_post_id'].'#'.$row_posts['last_post_id']." \n";


Replace with :
Code:
                         $str_newposts .= $lang['SM_Link'].": ". $server_protocol  . $server_name . $server_port . $script_name . append_sid("viewtopic.".$phpEx."?".POST_POST_URL."=".$row_posts['last_post_id']).'#'.$row_posts['last_post_id']." \n";


Wink

_________________
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
emma1989



Joined: 17 Sep 2007
Posts: 22

statusmail mod advanced mod rewrite - easy?Posted: Sat Oct 06, 2007 10:12 am    Post subject: Re: statusmail mod advanced mod rewrite - easy?

It looks sexier that way Razz
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14779

statusmail mod advanced mod rewrite - easy?Posted: Sun Oct 07, 2007 1:05 pm    Post subject: Re: statusmail mod advanced mod rewrite - easy?

Well, if this is about being sexier, it must be worth it Mr. Green

I doubt bots could be sensible to this sort of matters but, who knows exactly when such boundaries will fell Laughing

Anyway, glad you like it Wink

++

_________________
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  » phpBB mod Rewrite  » Advanced mod Rewrite
Page 1 of 1

Navigation Similar Topics

Jump to: