| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
emma1989

Joined: 17 Sep 2007 Posts: 22
|
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?
The mod is here, and works with 2.0.22
http://www.phpbbhacks.com/download/6077
Thanks guys xx |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14779
|
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"; |
 |
_________________ 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 |
|
 |
emma1989

Joined: 17 Sep 2007 Posts: 22
|
Posted: Sat Oct 06, 2007 10:12 am Post subject: Re: statusmail mod advanced mod rewrite - easy? |
|
|
It looks sexier that way  |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14779
|
|
| Back to top |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |