PDA

View Full Version : sitemap generator and Tree


bogus
11-18-2005, 05:38 PM
I would like to use the new sitemap generator with the Tree component. The sitemap generator also supports third party components. However, there is a plugin that needs to be created.
http://www.joomlaos.de/Downloads/Joomla_und_Mambo_Komponenten/Google_Sitemap_Generator.html

Can somebody assist me in creating the plugin?

samlewis
01-31-2006, 08:39 AM
bogus,

I created a mosTree plug-in for Google Sitemap Generator. I've attached the plug-in here. Can you give this a try and see if it works for you? I have tested on my setup and it seems to work just fine.

Let me know.

Sam Lewis
Moxie Media, LLC

147

freeman
02-12-2006, 05:46 PM
hi sam, i already asked this on your personal homepage:

will it support sef-urls as well?

i'd be happy if it would. i don't care with which sef tool. although sef advance is recommended by the mosets team.

if you would write it to be able to handle sefadvance or opensef, i'd be happy to donate for this!

norman

Kenneth Lund
02-15-2006, 08:28 PM
bogus,

I created a mosTree plug-in for Google Sitemap Generator. I've attached the plug-in here. Can you give this a try and see if it works for you? I have tested on my setup and it seems to work just fine.

Let me know.

Sam Lewis
Moxie Media, LLC

147

Sounds great, but ... what to do with the file??:o

Kenneth Lund
02-15-2006, 08:46 PM
Ah, ok:


Unzip the Plug-in on your computer (You'll upload just the php file and not the zip file)
Log into the backend of your site
Go to Components/Google Sitemap Generator/3rd Party Plugins
Upload the plug-in using the Choose File and Install buttons
Publish the Plug-in
Generate a Sitemap as usual

samlewis
02-16-2006, 12:04 AM
Kenneth,

Looks like you found the instructions. I should have posted them in this thread also.

Let me know if you find it useful or if you have any problems.

Thanks,

Kenneth Lund
02-16-2006, 03:59 PM
VERY much appreciated!!!!!

I installed it and it ran "out of the box" - now we'll just have to wait for Google to "eat it" :)

youngarmy
03-03-2006, 10:06 PM
Hi,
well I guess the major problem remains the SEF Advance URL's, i asked the author of the RD_sitemap sef extension about it and he told me that with this script it would not be possible to include a sef extension file.

So I guess one has to do it manually , and this would be the idea (file: moset tree plugin for the GSG)

/* Returns URLs of all Songs in mosTree */
$query = "SELECT cat_name, cat_id, cat_created"."\n FROM #__mt_cats"."\n WHERE ( cat_parent>'0' AND cat_published='1' AND cat_approved='1' )";
$query2 = "SELECT link_name, link_id, link_created"."\n FROM #__mt_cats"."\n WHERE ( cat_parent>'0' AND cat_published='1' AND cat_approved='1' )";
$query3 = "SELECT link_id, cat_id"."\n FROM #__mt_cl";

$database->setQuery($query);
$rows = $database->loadObjectList();

for ($i = 0, $n = count($rows); $i < $n; $i ++) {
$row = & $rows[$i];
$cat = "SELECT cat_name"."\n WHERE (cat_parent = 0)";
$subcat = "SELECT cat_name"."\n WHERE ( cat_parent = cat_id FROM kunstler )";
$listing =
$link = 'http://www.yoursite.com/mostree/'.$row->cat'/'.$row->subcat'/'.$row->listing'/details/';
//create a new object on the stack
$urlResource = new URLResource();

//assign all variables
$urlResource->title = $row->cat_name;
$urlResource->link = $link;
$urlResource->date = gsg :: showdate($row->cat_created, 0, 0);
$urlResource->changeFreq = $gsg_url_changefreq;
$urlResource->priority = $gsg_url_priority;

//add the pointer to the array
$results[] = $urlResource;



I know the part in bold doesn't look like php but that is the idea of generating the URL's I hope some of the php pro's in this forum could help us.

After generating the URL, one has to replace the special characters like ' $ , space , etc. so that they look like sef advance URL's I think that is the ereg replace function

I hope someone can help us here.
Thanks a lot

guilleva
03-11-2006, 01:09 AM
Maybe this plugin can help you. Try it and let me now what you think.

Also, remember deactivate gsgdefault plugin. This plugin doesn't work
with the menus. It read friendly urls directly from the OpenSEF table so it only show urls already created by OpenSEF.

Download, unzip and install gsgsef.class.php plugin.

More info:
http://forum.joomla.org/index.php/topic,45110.0.html

youngarmy
03-11-2006, 02:07 AM
Thanks for the help, but I have SEF Advance installed and that script doesn't save all the URL's in the database but generates the URL everytime you visit a site, so I can't use this plugin.

AND I would install Open Sef but Open Sef does not work with Mosets Tree component ... it's a desperate situation

Thankx anyway

guilleva
03-11-2006, 02:13 AM
Ok, I haven't try SEF Advance. Sorry.

Thanks for the help, but I have SEF Advance installed and that script doesn't save all the URL's in the database but generates the URL everytime you visit a site, so I can't use this plugin.

AND I would install Open Sef but Open Sef does not work with Mosets Tree component ... it's a desperate situation

Thankx anyway

youngarmy
03-12-2006, 01:35 AM
@guilleva

Even if I would use OpenSef this plugin shows all the URL's generated by Open Sef, but it doesn't make sense to give google all the URL's like i.e. vote, rate, recomment, comment, etc.

guilleva
03-13-2006, 11:21 PM
Yes, you are right. The only thing you have to do is exclude them from the list. That's a plugin, not a magician.