Ver Mensaje Individual
  #3 (permalink)  
Antiguo 18/09/2008, 08:05
djfritzz
 
Fecha de Ingreso: abril-2006
Mensajes: 12
Antigüedad: 18 años
Puntos: 0
Respuesta: Couldn't create new file - Check your paths and filename!

Hola,

la forma de instalcion es la siguiente:

la carpeta sitemap.xml ya tiene los permisos 777

gracias
djfritzz
-------------------------------------------------------------------------



1. Run the Following SQL query on your SQL DB:


CREATE TABLE `probid_sitemap_setts` (
`id` int(11) NOT NULL auto_increment,
`filename` varchar(100) NOT NULL default '',
`path` varchar(255) NOT NULL default '',
KEY `id` (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 ;

INSERT INTO `probid_sitemap_setts` VALUES (1, 'sitemap.xml', '/path/to/public_html/');



2. Upload the enclosed files to the following directories:

makesitemap.php Place it in your cron_jobs Directory.

3. Make the following file Edits as specified below:


============================================
IN FILE: admin/templates/index.tpl.php FIND:
============================================

<table width="100%" border="0" cellpadding="2" cellspacing="2">
<tr>
<td class="c1"><img src="images/a.gif" align="absmiddle"> <a href="http://www.phpprobid.com/client/support/pdesk.cgi" class="menulink" target="_blank">
<?=AMSG_SUPPORT_DESK;?>
</a></td>
</tr>
<tr>
<td class="c2"><img src="images/a.gif" align="absmiddle"> <a href="http://www.phpprobid.com/client/manuals/manual.pdf" class="menulink"target="_blank">
<?=AMSG_PPB_MANUAL;?>
</a></td>
</tr>
<tr>
<td class="c3"></td>
</tr>
</table>


======================
DIRECTLY UNDER IT ADD:
======================

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td rowspan="2"><img src="images/i_setup.gif" border="0" /></td>
<td width="100%"><img src="images/pixel.gif" height="24" width="1" /></td>
<td>&nbsp;</td>
</tr>
<tr>
<td width="100%" align="right" background="images/bg_part.gif"><b>Google SiteMap Modification</b></td>
<td><img src="images/end_part.gif" /></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="2" cellspacing="2">
<tr>
<td class="c1"><img src="images/a.gif" align="absmiddle" /> <a href="general_settings.php?page=site_map" class="menulink">Google SiteMap Modification Setup</a></td>
</tr>
<tr>
<td class="c3"></td>
</tr>
</table>


================================================== =====
IN FILE: admin/templates/general_settings.tpl.php FIND:
================================================== =====


<? } else if ($page == 'auction_images') { ?>
<!-- Images Settings BEGIN HERE -->
<tr class="c1">
<td width="150" align="right"><?=AMSG_NB_IMAGES;?></td>
<td><input name="max_images" type="text" id="max_images" value="<?=$setts_tmp['max_images'];?>" size="8" maxlength="2"></td>
</tr>


======================
DIRECTLY UNDER IT ADD:
======================


<? } else if ($page == 'site_map') { ?>
<tr class="c1">
<td width="50%" align="right">SiteMap Filename</td>
<td><input name="filename" type="text" id="filename" value="<?=$sitemap_tmp['filename'];?>" size="50" maxlength="50"></td>
</tr>
<tr class="c1">
<td width="50%" align="right">Path to SiteMap</td>
<td><input name="path" type="text" id="path" value="<?=$sitemap_tmp['path'];?>" size="50" maxlength="255"></td>
</tr>


=========================================
IN FILE: admin/general_settings.php FIND:
=========================================

case 'auction_images':
$sql_update_query = $db->query("UPDATE " . DB_PREFIX . "gen_setts SET
max_images='" . $post_details['max_images'] . "',
images_max_size='" . $post_details['images_max_size'] . "'");
break;

======================
DIRECTLY ABOVE IT ADD:
======================

case 'site_map':
$sql_update_query = $db->query("UPDATE probid_sitemap_setts SET
filename='" . $post_details['filename'] . "',
path='" . $post_details['path'] . "' WHERE id='1'");
break;

=====
FIND:
=====


$layout_tmp = $db->get_sql_row("SELECT * FROM " . DB_PREFIX . "layout_setts");


======================
DIRECTLY BELOW IT ADD:
======================

$sitemap_tmp = $db->get_sql_row("SELECT * FROM probid_sitemap_setts WHERE id='1'");

=====
FIND:
=====

$template->set('layout_tmp', $layout_tmp);

======================
DIRECTLY BELOW IT ADD:
======================

$template->set('sitemap_tmp', $sitemap_tmp);

=====
FIND:
=====

else if ($_REQUEST['page'] == 'auction_images')
{
$header_section = AMSG_GENERAL_SETTINGS;
$subpage_title = AMSG_AUCTION_IMAGES_SETTS;
}

======================
DIRECTLY BELOW IT ADD:
======================

else if ($_REQUEST['page'] == 'sitemap_mod')
{
$header_section = "General Settings";
$subpage_title = "SiteMap Modification Settings";
}



Save and upload your newly edited files. Mod installation is complete.
Make sure you upload them to their respective directories.

Your public_html DIR must have write access so it can create the sitemap.xml file!
(You can chmod it to 777 if you need to).



================================================== ==
STEP 4: CREATE YOUR ACCOUNT WITH GOOGLE SITEMAPS AT:
================================================== ==

https://www.google.com/accounts/ServiceLogin?service=sitemaps

You will need to configure setup your account with them following their process.
Once asked for the .XML file address, that would be: http://www.yoursite.com/sitemap.xml
Once its working correctly, google will come for your feed automatically each day.

==================================================
STEP 5: CREATE YOUR ACCOUNT WITH YAHOO SITEMAPS AT:
==================================================

http://siteexplorer.search.yahoo.com/mysites

You will need to configure setup your account with them following their process.
Once asked for the .XML file address, that would be: http://www.yoursite.com/sitemap.xml
Once its working correctly, you will have to manually request they come for your feed.
Yahoo does not offer an automatic daily service at this time.

STEP 6: Set a cron in your control panel to access this file 1 x per day:

http://www.yoursite.com/cron_jobs/makesitemap.php

Done!