| |
|
| :: |
| Author |
Message |
murph
Joined: 24 Jun 2006 Posts: 14
|
Posted: Wed Jun 28, 2006 12:41 pm Post subject: Simple Sub forum and mod rewrite migration |
|
|
| I have you dynamic meta tags mod installed...on reading the link you gave for the subforum mod addon it talks about XS mod being required...i don't think i have this installed? |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15125
|
|
| Back to top |
|
 |
murph
Joined: 24 Jun 2006 Posts: 14
|
Posted: Wed Jun 28, 2006 12:52 pm Post subject: Re: Simple Sub forum and mod rewrite migration |
|
|
| So do i need to be using an XS template or can i just upload it and continue using my existing normal template? |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15125
|
Posted: Wed Jun 28, 2006 12:58 pm Post subject: Re: Simple Sub forum and mod rewrite migration |
|
|
| murph wrote: | | So do i need to be using an XS template or can i just upload it and continue using my existing normal template? |
With Simple sub forum, you need XS mod. XS mod will work with every templates, the XS one using additional templating functions and regular one being more basic.
In both case, it will be faster thanks to the cache system
Don't forget to chmod the cache folder to 777 and better for security if you put an .htaccess file with this inside :
| Code: | <Limit GET POST PUT>
Order Allow,Deny
Deny from All
</Limit> |
in cache/
++ |
_________________ 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 |
|
 |
murph
Joined: 24 Jun 2006 Posts: 14
|
Posted: Wed Jun 28, 2006 1:34 pm Post subject: Re: Simple Sub forum and mod rewrite migration |
|
|
Ok XS installed...there was one file to overwrite...but no hacks in that file
Now to do the Subforum mod.
One question...if i have already installed your dyn meta tag mod...should i delete your mod, then apply the subforum and then the subforum hack you mentioned afterwards?
Or will it be ok to leave your meta tag mod in place, do the subforum hacks and then add the extra subforum/meta tag fix? |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15125
|
|
| Back to top |
|
 |
murph
Joined: 24 Jun 2006 Posts: 14
|
Posted: Wed Jun 28, 2006 2:00 pm Post subject: Re: Simple Sub forum and mod rewrite migration |
|
|
| Ah...i just realised i may have a problem. I am using a forum i bought off someone else and it uses some kind of rewrite for the urls...but i don't think it's an official released mod. Is this going to cause me problems with using subforums? |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15125
|
Posted: Wed Jun 28, 2006 2:07 pm Post subject: Re: Simple Sub forum and mod rewrite migration |
|
|
All right, so I divided the topic as we started to go a bit to far off topic
Anyway, for your last question, it depends on the mod rewrite used.
A link to the forum could help out here to understand.
And it should be possible to migrate to one of the phpBB SEO mod rewrites, since they should be a lot more efficient
Tell me more about your mod rewrite, you should have some code in the page_header.php.
++ |
_________________ 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 |
|
 |
murph
Joined: 24 Jun 2006 Posts: 14
|
Posted: Wed Jun 28, 2006 2:15 pm Post subject: Re: Simple Sub forum and mod rewrite migration |
|
|
page_header:
| Code: | // Begin Keyword URL Mod
ob_start();
function make_url_friendly($url)
{
$url = strtolower($url);
$find = array(' ',
'&',
'\r\n',
'\n',
'/',
'\\',
'+');
$url = str_replace ($find, '-', $url);
$find = array(' ',
'é',
'è',
'ë',
'ê');
$url = str_replace ($find, 'e', $url);
$find = array(' ',
'ó',
'ò',
'ô',
'ö');
$url = str_replace ($find, 'o', $url);
$find = array(' ',
'á',
'à',
'â',
'ä');
$url = str_replace ($find, 'a', $url);
$find = array(' ',
'í',
'ì',
'î',
'ï');
$url = str_replace ($find, 'i', $url);
$find = array(' ',
'ú',
'ù',
'û',
'ü');
$url = str_replace ($find, 'u', $url);
$find = array('/[^a-z0-9\-<>]/',
'/[\-]+/',
'/<[^>]*>/');
$repl = array('',
'-',
'');
$url = preg_replace ($find, $repl, $url);
return $url;
}
function if_query($amp)
{
if($amp != '')
{
return '?';
}
}
function rewrite_urls($content)
{
$url_in = array('/(?<!\/)viewforum.php\?f=([0-9]+)((&)|(&)){0,1}([^>]+>)(.*?)<\/a>/e',
'/(?<!\/)viewtopic.php\?p=([0-9]+)((&)|(&)){0,1}([^>]+>)(.*?)<\/a>/e',
'/(?<!\/)viewtopic.php\?t=([0-9]+)((&)|(&)){0,1}([^>]+>)(.*?)<\/a>/e');
$url_out = array("make_url_friendly('\\6') . '.f\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
"make_url_friendly('\\6') . '.p\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
"make_url_friendly('\\6') . '.t\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'");
$content = preg_replace($url_in, $url_out, $content);
$content = str_replace('="templates/', '="/templates/', $content);
return $content;
}
// End Keyword URL Mod |
I think he said it was a custom written mod? |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15125
|
Posted: Wed Jun 28, 2006 2:27 pm Post subject: Re: Simple Sub forum and mod rewrite migration |
|
|
Well, not that custom, this is the webmedic mod rewrite's good old code
So basically the steps will be the same as per the regular one.
Since this subject has already been covered in the French forums, and that it will for sure be interesting for many, I think the proper way to go would be to post a new topic to ask for migration form the webmedic's mod rewrite to the phpBB SEO one's in the phpBB mod Rewrite forum.
This way, will be useful to more people
And, for the pros and cons to migrate, very simple : no cons, only pros
You'll be able to keep the exact same URLs but will get rid of the fancy pagination ones, end up with a zero dupes pagination and with a faster code ( a lot actually ) so ...
++ |
_________________ 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 |
|
 |
murph
Joined: 24 Jun 2006 Posts: 14
|
Posted: Wed Jun 28, 2006 2:44 pm Post subject: Re: Simple Sub forum and mod rewrite migration |
|
|
Thread started  |
|
|
| Back to top |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|