| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
darjana
Joined: 01 Feb 2008 Posts: 30
|
Posted: 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..  |
|
|
| Back to top |
|
 |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 4551
|
|
| Back to top |
|
 |
darjana
Joined: 01 Feb 2008 Posts: 30
|
Posted: 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  |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15414
|
|
| Back to top |
|
 |
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |