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

Joined: 28 Apr 2006 Posts: 14279
|
Posted: Tue Aug 08, 2006 10:09 pm Post subject: Re: google sitemap |
|
|
All right,
I do not use EZportal, but this should work, and can be tested with no risk as long as you backup the files involved first.
So I assume you installed the recent topic block :
| Code: |
#
#-----[ OPEN ]-------------------------------------------------------
#
portal.php
#
#-----[ FIND ]---------------------------------------------
#
//
// End session management
//
#
#-----[ AFTER ADD ]---------------------------------------
#This for filtering topic titles with the phpBB censoring system, as
# anywhere else in the forum.
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
// Define censored word matches
$orig_word = array();
$replacement_word = array();
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]---------------------------------------------
#
for ($i = 0; $i < $number_recent_topics; $i++)
{
#
#-----[ AFTER ADD ]---------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$seo_topic_name = ( count($orig_word) ) ? preg_replace($orig_word, $replacement_word, $recent_topic_row[$i]['topic_title']) : $recent_topic_row[$i]['topic_title'];
#
#-----[ FIND ]---------------------------------------------
#
'U_TITLE' => append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $recent_topic_row[$i]['post_id']) . '#' .$recent_topic_row[$i]['post_id'],
'L_TITLE' => $recent_topic_row[$i]['topic_title'],
#
#-----[ REPLACE WITH ]---------------------------------------------
#
/*'U_TITLE' => append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $recent_topic_row[$i]['post_id']) . '#' .$recent_topic_row[$i]['post_id'],
'L_TITLE' => $recent_topic_row[$i]['topic_title'],*/
'U_TITLE' => append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . '=' . $recent_topic_row[$i]['topic_id']),
'L_TITLE' => $seo_topic_name,
// www.phpBB-SEO.com SEO TOOLKIT BEGIN |
Then, it won't link to the last page of the topic, but to the topic itself. User will just have to follow the last page link and bots will fell on really interesting URLs
++ |
_________________ 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
Last edited by dcz on Mon Aug 14, 2006 7:33 am; edited 1 time in total |
|
| Back to top |
|
 |
|
 |
asiaexpat PR1

Joined: 04 Aug 2006 Posts: 121
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
|
| Back to top |
|
 |
asiaexpat PR1

Joined: 04 Aug 2006 Posts: 121
|
Posted: Wed Aug 09, 2006 11:06 am Post subject: Re: google sitemap |
|
|
now I am confused
my .htacess is not correct??
I have removed the sitemap from google.
next step?? |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
Posted: Wed Aug 09, 2006 11:47 am Post subject: Re: google sitemap |
|
|
Please ask for support on specific mod on their release thread, the Rewriterules to implement to be able to turn mod rewrite on for Google sitemaps links are located in the contrib/ folder's .htaccess of the release.
For now, first install the mod rewrite, you can turn of the mod rewrite for Google sitemaps for now so that you'll be able to test the outputted links and see how it works
++ |
_________________ 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 |
|
 |
asiaexpat PR1

Joined: 04 Aug 2006 Posts: 121
|
Posted: Wed Aug 09, 2006 12:29 pm Post subject: Re: google sitemap |
|
|
the mod rewrite was installed
i will try your portal.php code change now |
|
|
| Back to top |
|
 |
asiaexpat PR1

Joined: 04 Aug 2006 Posts: 121
|
Posted: Wed Aug 09, 2006 12:53 pm Post subject: Re: google sitemap |
|
|
are you sure this is correct
| Code: | /*'U_TITLE' => append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $recent_topic_row[$i]['post_id']) . '#' .$recent_topic_row[$i]['post_id'],
'L_TITLE' => $recent_topic_row[$i]['topic_title'],*/
'U_TITLE' => append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . '=' . $recent_topic_row[$i]['topic_id']),
'L_TITLE' => $seo_topic_name,. |
i get parse errors |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
Posted: Wed Aug 09, 2006 1:12 pm Post subject: Re: google sitemap |
|
|
oups.
It's because I cannot test, I don't use this one, but it must be an obvious one.
I think there is an extra dot "." here, we should get rid of
| Quote: | /*'U_TITLE' => append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $recent_topic_row[$i]['post_id']) . '#' .$recent_topic_row[$i]['post_id'],
'L_TITLE' => $recent_topic_row[$i]['topic_title'],*/
'U_TITLE' => append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . '=' . $recent_topic_row[$i]['topic_id']),
'L_TITLE' => $seo_topic_name,. |
Tell me if this is it, erf, the most obvious it is the harder to find
++ |
_________________ 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 |
|
 |
asiaexpat PR1

Joined: 04 Aug 2006 Posts: 121
|
Posted: Wed Aug 09, 2006 1:16 pm Post subject: Re: google sitemap |
|
|
Great call--ok can open portal now
So can I now go ahead and resubmit my sitemaps.xml to google??--and then just ignore the errors from google? |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

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