Go Back   Pligg CMS Forum > Pligg Development > Pligg Modules > Module Support

Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 01-18-2008, 08:46 PM
New Pligger
Pligg Version: 9.9 beta
Pligg Template: default (but modified)
 
Join Date: Jan 2008
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
I got it working in 9.9.0 beta:

http://beta.excellentonline.com/sitemapindex.xml
http://beta.excellentonline.com/sitemap-1.xml

and it validates... The things I had to change:

comment out the call to "clear_cache();" in xml_sitemaps_install.php

then in "xml_sitemaps_main.php" there are two places where it uses "XmlSitemaps_Links_per_sitemap". Apparently it's trying to use a config var for how many stories to map. The problem is that the variable isn't defined. Maybe it used to be for earlier versions of Pligg.

A workaround I did was to just hardcode the number of stories:

# create_sitemap($_GET['i'],XmlSitemaps_Links_per_sitemap);
create_sitemap($_GET['i'],500);

the first line is the original that I commented out and then I just replaced it with 500 (the second line). That fixed the problem. I just started using Pligg so I don't know much about module development. I'm going to read up on it and find out how to pull variables out of the admin system and reference them in the code.

But once you make those changes, and enable the module, you should be good to go.
Reply With Quote
  #12 (permalink)  
Old 01-19-2008, 02:19 AM
xiesi's Avatar
Constant Pligger
Pligg Version: 9.95
Pligg Template: yget + diy
 
Join Date: Jun 2007
Posts: 226
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via MSN to xiesi
please share.THX
__________________
www.qelele.com齐乐乐
Reply With Quote
  #13 (permalink)  
Old 01-19-2008, 06:00 AM
New Pligger
 
Join Date: Sep 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
thx for share mate
Reply With Quote
  #14 (permalink)  
Old 02-02-2008, 10:55 AM
Casual Pligger
Pligg Version: 9.5
Pligg Template: yget modified
 
Join Date: Apr 2007
Posts: 43
Thanks: 11
Thanked 1 Time in 1 Post
Anyone know this error?
Quote:
Warning: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'select link_modified from pligg_links where link_status!='disca in /homepages/28/d123456/htdocs/homepages/domain/libs/db.php on line 207
http://patchlog.com/web/xml-sitemaps-for-pligg/ is not available at the moment
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Google sitemaps iraszl General Help 12 09-14-2008 07:31 PM
Xml sitemaps new version mihai Pligg Modules 24 07-03-2008 03:09 AM
Questions about robots.txt and sitemaps juanmartinbravo General Help 5 01-10-2008 07:03 AM
I'm looking for : Auto Sitemaps for pligg l2aelba Modification Tutorials 4 12-05-2007 01:48 AM
Building effective Google Sitemaps for Pligg Sites aaronpais General Help 0 05-02-2007 05:41 PM


Search Engine Friendly URLs by vBSEO 3.2.0