| |
|
| :: |
| Author |
Message |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
|
 |
AmirAbbas phpBB SEO Team


Joined: 11 May 2006 Posts: 529 Location: IRAN
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
AmirAbbas phpBB SEO Team


Joined: 11 May 2006 Posts: 529 Location: IRAN
|
Posted: Sun Oct 29, 2006 3:20 pm Post subject: Re: mixed rewrite mod and persian UTF-8 encoding |
|
|
i think i found another bug
see this part of code
in this topic http://forum.persia-cms.com/topic-vt81.html
| Code: | <link rel="chapter forum" href="mobile-phones-vf1.html" title="اخبار سایت Persia CMS" />
<link rel="chapter forum" href="mobile-phones-vf2.html" title="دایرکتوری - Persia CMS Directory" />
<link rel="chapter forum" href="mobile-phones-vf3.html" title="گفتگو پیرامون مسائل سایت Persia CMS" />
<link rel="chapter forum" href="mobile-phones-vf32.html" title="اخبار و اطلاعیه های Hosting" />
<link rel="chapter forum" href="mobile-phones-vf33.html" title="سوالات قبل از خرید" />
<link rel="chapter forum" href="mobile-phones-vf5.html" title="بخش CSS" />
<link rel="chapter forum" href="mobile-phones-vf6.html" title="بخش XHTML و HTML" />
<link rel="chapter forum" href="mobile-phones-vf8.html" title="پشتیبانی phpBB Persia ا (support)" />
<link rel="chapter forum" href="mobile-phones-vf9.html" title="پشتیبانی phpBB فارسی" />
<link rel="chapter forum" href="mobile-phones-vf10.html" title="مقالات آموزشی phpBB" />
<link rel="chapter forum" href="mobile-phones-vf11.html" title="پشتیبانی MyBB فارسی" />
<link rel="chapter forum" href="mobile-phones-vf12.html" title="پشتيباني Drupal فارسی" />
<link rel="chapter forum" href="mobile-phones-vf26.html" title="پشتیبانی e107 فارسی" />
<link rel="chapter forum" href="mobile-phones-vf27.html" title="پشتیبانی mambo فارسی" />
<link rel="chapter forum" href="mobile-phones-vf13.html" title="پشتيباني phpadsnew" />
<link rel="chapter forum" href="mobile-phones-vf14.html" title="اصول و مبانی سئو - SEO principles" />
<link rel="chapter forum" href="mobile-phones-vf15.html" title="تکنیک های سئو - SEO techniques" />
<link rel="chapter forum" href="mobile-phones-vf16.html" title="موتور جستجو های Google , Yahoo! , MSN" />
<link rel="chapter forum" href="mobile-phones-vf17.html" title="تبادل لینک" />
<link rel="chapter forum" href="mobile-phones-vf18.html" title="دایرکتوری ها - directories" />
<link rel="chapter forum" href="mobile-phones-vf19.html" title="ابزار های سئو برای webmaster ها - SEO tools" />
<link rel="chapter forum" href="mobile-phones-vf29.html" title="گوشی های موبایل - Mobile Phones" />
<link rel="chapter forum" href="mobile-phones-vf30.html" title="نرم افزار های تلفن همراه - Mobile Phone Softwares" />
<link rel="chapter forum" href="mobile-phones-vf31.html" title="بازی های تلفن همراه - Mobile Phone Games" />
<link rel="chapter forum" href="mobile-phones-vf20.html" title="اینترنت و وب - internet & web" />
<link rel="chapter forum" href="mobile-phones-vf35.html" title="معرفی Ebook و کتاب" />
<link rel="chapter forum" href="mobile-phones-vf21.html" title="نرم افزار - Software" />
<link rel="chapter forum" href="mobile-phones-vf22.html" title="گفتگوی آزاد" />
<link rel="chapter forum" href="mobile-phones-vf25.html" title="معرفی Site و Weblog اعضا" />
<link rel="chapter forum" href="mobile-phones-vf28.html" title="معرفی اعضای جدید" />
<link rel="chapter forum" href="mobile-phones-vf23.html" title="بازارچه" />
<link rel="chapter forum" href="mobile-phones-vf24.html" title="موسیقی" /> |
pay attention to href part
the keywords are all the same
this problem is exist in all of my topics
you can check it online of forum.persia-cms.com and forum.irani.ch
i have some page indexed in yahoo in this way
the keyword in URLs is the same and just vt-XX numbers are different |
_________________ طراحی وب ، آموزش سئو ، آموزش CSS ، phpbb فارسی ، phpbb3 فارسی ، دروپال فارسی
طراحی وب ، قالب وبلاگ ، استاندارد وب ، آموزش CSS و HTML ، آموزش php |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
AmirAbbas phpBB SEO Team


Joined: 11 May 2006 Posts: 529 Location: IRAN
|
Posted: Fri Nov 03, 2006 3:50 am Post subject: Re: mixed rewrite mod and persian UTF-8 encoding |
|
|
| Code: | #
#-----[ OPEN ]------------------------------------------
#
includes/function.php
#
#-----[ FIND ]------------------------------------------
#
$nav_links['chapter forum'][$forum_rows[$j]['forum_id']] = array (
'url' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=" . $forum_rows[$j]['forum_id']),
#
#-----[ REPLACE WITH ]------------------------------------------
#
$nav_links['chapter forum'][$forum_rows[$j]['forum_id']] = array (
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
//'url' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=" . $forum_rows[$j]['forum_id']),
'url' => append_sid(format_url($forum_rows[$j]['forum_name']) . "-vf" . $forum_rows[$j]['forum_id'] . ".html") ,
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
$view_prev_topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=previous");
$view_next_topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=next");
//
// Mozilla navigation bar
//
$nav_links['prev'] = array(
'url' => $view_prev_topic_url,
'title' => $lang['View_previous_topic']
);
$nav_links['next'] = array(
'url' => $view_next_topic_url,
'title' => $lang['View_next_topic']
);
#
#-----[ REPLACE WITH ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
if ($userdata['session_logged_in']) {
$view_prev_topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=previous");
$view_next_topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=next");
//
// Mozilla navigation bar
//
$nav_links['prev'] = array(
'url' => $view_prev_topic_url,
'title' => $lang['View_previous_topic']
);
$nav_links['next'] = array(
'url' => $view_next_topic_url,
'title' => $lang['View_next_topic']
);
}
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM |
its a first time is see this codes
you sent me advance rewrite mod UTF-8 and it wasn't included in that PM
and there is a problem
when you haven't any english word in title of forums and topics the system will use word "empty" instead of words "topic" or "forum"
for example
| Code: | <link rel="chapter forum" href="empty-vf23.html" title="بازارچه" />
<link rel="chapter forum" href="empty-vf24.html" title="موسیقی" /> |
and second problem
subforums has problem and the keywords are wrong for them
for example
| Code: | <link rel="chapter forum" href="phpbb-vf25.html" title="معرفی Site و Weblog اعضا" />
<link rel="chapter forum" href="phpbb-vf28.html" title="معرفی اعضای جدید" /> |
these two forums are subforum. the keyword for first one must be "site-weblog" and for second one must be "topic" but as you can see they have problem |
_________________ طراحی وب ، آموزش سئو ، آموزش CSS ، phpbb فارسی ، phpbb3 فارسی ، دروپال فارسی
طراحی وب ، قالب وبلاگ ، استاندارد وب ، آموزش CSS و HTML ، آموزش php |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
Posted: Fri Nov 03, 2006 10:29 am Post subject: Re: mixed rewrite mod and persian UTF-8 encoding |
|
|
oups, true.
So first, simple sub forum updated which gives, for the UTF-8 version :
| Code: | #
#-----[ OPEN ]------------------------------------------
#
includes/functions.php
#
#-----[ FIND ]------------------------------------------
#
//
// Add an array to $nav_links for the Mozilla navigation bar.
// 'chapter' and 'forum' can create multiple items, therefore we are using a nested array.
//
$nav_links['chapter forum'][$forum_rows[$k]['forum_id']] = array (
'url' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=" . $forum_rows[$k]['forum_id']),
'title' => $forum_rows[$k]['forum_name']
);
#
#-----[ REPLACE WITH ]------------------------------------------
#
//
// Add an array to $nav_links for the Mozilla navigation bar.
// 'chapter' and 'forum' can create multiple items, therefore we are using a nested array.
//
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$seo_forum_name = format_url($forum_rows[$k]['forum_name']);
// www.phpBB-SEO.com SEO TOOLKIT END
$nav_links['chapter forum'][$forum_rows[$k]['forum_id']] = array (
'url' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=" . $forum_rows[$k]['forum_id']),
'title' => $forum_rows[$k]['forum_name']
); |
You could do the same with the regular nav links :
| Code: | // www.phpBB-SEO.com SEO TOOLKIT BEGIN
$seo_forum_name = format_url($forum_rows[$j]['forum_name']);
// www.phpBB-SEO.com SEO TOOLKIT END
$nav_links['chapter forum'][$forum_rows[$j]['forum_id']] = array (
'url' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=" . $forum_rows[$j]['forum_id']), |
Instead of :
| Code: | $nav_links['chapter forum'][$forum_rows[$j]['forum_id']] = array (
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
//'url' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=" . $forum_rows[$j]['forum_id']),
'url' => append_sid(format_url($forum_rows[$j]['forum_name']) . "-vf" . $forum_rows[$j]['forum_id'] . ".html") ,
// www.phpBB-SEO.com SEO TOOLKIT END |
I think we sorted out everything now
And don't worry, the zero dupe is with us
++ |
_________________ 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 |
|
 |
AmirAbbas phpBB SEO Team


Joined: 11 May 2006 Posts: 529 Location: IRAN
|
Posted: Fri Nov 03, 2006 1:08 pm Post subject: Re: mixed rewrite mod and persian UTF-8 encoding |
|
|
it doesn't work
this code
| Code: | #
#-----[ OPEN ]------------------------------------------
#
includes/functions.php
#
#-----[ FIND ]------------------------------------------
#
//
// Add an array to $nav_links for the Mozilla navigation bar.
// 'chapter' and 'forum' can create multiple items, therefore we are using a nested array.
//
$nav_links['chapter forum'][$forum_rows[$k]['forum_id']] = array (
'url' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=" . $forum_rows[$k]['forum_id']),
'title' => $forum_rows[$k]['forum_name']
);
#
#-----[ REPLACE WITH ]------------------------------------------
#
//
// Add an array to $nav_links for the Mozilla navigation bar.
// 'chapter' and 'forum' can create multiple items, therefore we are using a nested array.
//
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$seo_forum_name = format_url($forum_rows[$k]['forum_name']);
// www.phpBB-SEO.com SEO TOOLKIT END
$nav_links['chapter forum'][$forum_rows[$k]['forum_id']] = array (
'url' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=" . $forum_rows[$k]['forum_id']),
'title' => $forum_rows[$k]['forum_name']
); |
doesn't any affect
and after applying this part:
| Code: | // www.phpBB-SEO.com SEO TOOLKIT BEGIN
$seo_forum_name = format_url($forum_rows[$j]['forum_name']);
// www.phpBB-SEO.com SEO TOOLKIT END
$nav_links['chapter forum'][$forum_rows[$j]['forum_id']] = array (
'url' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=" . $forum_rows[$j]['forum_id']), |
all nav link will lose keywords again (keywords came back to wrong form shape) |
_________________ طراحی وب ، آموزش سئو ، آموزش CSS ، phpbb فارسی ، phpbb3 فارسی ، دروپال فارسی
طراحی وب ، قالب وبلاگ ، استاندارد وب ، آموزش CSS و HTML ، آموزش php |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
Posted: Sat Nov 04, 2006 8:42 am Post subject: Re: mixed rewrite mod and persian UTF-8 encoding |
|
|
Let's try the Global trick before I go for another method for utf-8 :
In the same file find :
| Code: |
function make_jumpbox_ref($action, $match_forum_id, &$forums_list)
{
// End Simple Subforums MOD
global $template, $userdata, $lang, $db, $nav_links, $phpEx, $SID; |
And replace with :
| Code: | function make_jumpbox_ref($action, $match_forum_id, &$forums_list)
{
// End Simple Subforums MOD
global $template, $userdata, $lang, $db, $nav_links, $phpEx, $SID, $seo_forum_name; |
++ |
_________________ 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 |
|
 |
AmirAbbas phpBB SEO Team


Joined: 11 May 2006 Posts: 529 Location: IRAN
|
Posted: Mon Nov 06, 2006 3:43 am Post subject: Re: mixed rewrite mod and persian UTF-8 encoding |
|
|
thanks
i applied this one
| Code: | #
#-----[ OPEN ]------------------------------------------
#
includes/function.php
#
#-----[ FIND ]------------------------------------------
#
$nav_links['chapter forum'][$forum_rows[$j]['forum_id']] = array (
'url' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=" . $forum_rows[$j]['forum_id']),
#
#-----[ BEFORE ADD ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$seo_forum_name = format_url($forum_rows[$j]['forum_name']);
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]------------------------------------------
#
//
// Add an array to $nav_links for the Mozilla navigation bar.
// 'chapter' and 'forum' can create multiple items, therefore we are using a nested array.
//
$nav_links['chapter forum'][$forum_rows[$k]['forum_id']] = array (
'url' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=" . $forum_rows[$k]['forum_id']),
'title' => $forum_rows[$k]['forum_name']
);
#
#-----[ REPLACE WITH ]------------------------------------------
#
//
// Add an array to $nav_links for the Mozilla navigation bar.
// 'chapter' and 'forum' can create multiple items, therefore we are using a nested array.
//
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$seo_forum_name = format_url($forum_rows[$k]['forum_name']);
// www.phpBB-SEO.com SEO TOOLKIT END
$nav_links['chapter forum'][$forum_rows[$k]['forum_id']] = array (
'url' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=" . $forum_rows[$k]['forum_id']),
'title' => $forum_rows[$k]['forum_name']
);
#
#-----[ FIND ]------------------------------------------
#
function make_jumpbox_ref($action, $match_forum_id, &$forums_list)
{
// End Simple Subforums MOD
global $template, $userdata, $lang, $db, $nav_links, $phpEx, $SID;
#
#-----[ REPLACE WITH ]------------------------------------------
#
function make_jumpbox_ref($action, $match_forum_id, &$forums_list)
{
// End Simple Subforums MOD
global $template, $userdata, $lang, $db, $nav_links, $phpEx, $SID, $seo_forum_name;
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
$view_prev_topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=previous");
$view_next_topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=next");
//
// Mozilla navigation bar
//
$nav_links['prev'] = array(
'url' => $view_prev_topic_url,
'title' => $lang['View_previous_topic']
);
$nav_links['next'] = array(
'url' => $view_next_topic_url,
'title' => $lang['View_next_topic']
);
#
#-----[ REPLACE WITH ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
if ($userdata['session_logged_in']) {
$view_prev_topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=previous");
$view_next_topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=next");
//
// Mozilla navigation bar
//
$nav_links['prev'] = array(
'url' => $view_prev_topic_url,
'title' => $lang['View_previous_topic']
);
$nav_links['next'] = array(
'url' => $view_next_topic_url,
'title' => $lang['View_next_topic']
);
}
// www.phpBB-SEO.com SEO TOOLKIT END |
it works  |
_________________ طراحی وب ، آموزش سئو ، آموزش CSS ، phpbb فارسی ، phpbb3 فارسی ، دروپال فارسی
طراحی وب ، قالب وبلاگ ، استاندارد وب ، آموزش CSS و HTML ، آموزش php |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
AmirAbbas phpBB SEO Team


Joined: 11 May 2006 Posts: 529 Location: IRAN
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
Posted: Mon Nov 27, 2006 10:09 pm Post subject: Re: mixed rewrite mod and persian UTF-8 encoding |
|
|
Well, as already said, the code is experimental so far and would be hard to support as is. I'll see about this after I'll end up updating all mods.
Anyway, I am thinking about implementing some kind of switch between static and dynamic mod rewrite in topic titles.
But we could just filter numbers in URLs, they are not really good keyword actually, and we do not really care about changing some URLs with the zero dupe
So it would just be :
Open :
| Code: | | includes/functions.php |
Find :
| Code: | | $url = ereg_replace("[^a-zA-Z0-9]", "-", $url); |
Replace with :
| Code: | | $url = ereg_replace("[^a-zA-Z]", "-", $url); |
++ |
_________________ 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 |
|
 |
AmirAbbas phpBB SEO Team


Joined: 11 May 2006 Posts: 529 Location: IRAN
|
|
| Back to top |
|
 |
AmirAbbas phpBB SEO Team


Joined: 11 May 2006 Posts: 529 Location: IRAN
|
Posted: Tue Nov 28, 2006 6:38 pm Post subject: Re: mixed rewrite mod and persian UTF-8 encoding |
|
|
i forgot to say something
drupal CMS is this ability
http://drupal.org
in default form the shape of URL in something like this (after activing rewrite rules)
-http://www.phpbb-SEO.com/node/1
and next URL is like this
-http://www.phpbb-SEO.com/node/2 (and /node/3 and .... )
the admin can rename nodes. for example you can change the first URL to something like this
-http://www.phpbb-SEO.com/phpbb-mod-rewrites.html
there is a field under title field that let you to rename nodes.
if you choose a used name, the system will tell you that the name that you choosed are used before
because the URL in drupal doesn't have something like phpbb-seo mod rewrite (vt-XX , vf-XX )
i don't know programing but i think checking Drupal code can help you a bit. |
_________________ طراحی وب ، آموزش سئو ، آموزش CSS ، phpbb فارسی ، phpbb3 فارسی ، دروپال فارسی
طراحی وب ، قالب وبلاگ ، استاندارد وب ، آموزش CSS و HTML ، آموزش php |
|
| Back to top |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|