Yii Framework Forum: Sitemap Generator in Yii - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Sitemap Generator in Yii Rate Topic: -----

#1 User is offline   Deepak Pradhan 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 209
  • Joined: 01-May 09
  • Location:Charlotte, NC

Posted 17 November 2009 - 01:15 PM

I have created a simple and basic XML sitemap generator.
Check it out at http://gemisoft.com/tools/index.html

I would like to make changes as per your feedback

Thanks :)
0

#2 User is offline   DarkNSF 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 287
  • Joined: 12-November 08
  • Location:Palm Bay, Florida

Posted 17 November 2009 - 01:19 PM

View Postfoe#1, on 17 November 2009 - 01:15 PM, said:

I have created a simple and basic XML sitemap generator.
Check it out at http://gemisoft.com/tools/index.html

I would like to make changes as per your feedback

Thanks :)


Nice work, I submitted a test request.
0

#3 User is offline   DarkNSF 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 287
  • Joined: 12-November 08
  • Location:Palm Bay, Florida

Posted 17 November 2009 - 01:24 PM

View PostDarkNSF, on 17 November 2009 - 01:19 PM, said:

Nice work, I submitted a test request.



a few suggestions:
- add a direct link to back to your website in the email. like http://gemisoft.com/...te/asd3t2-389ht
- instead of having a 'key' where you can learn the usage of the icons, just fill in the alt tag to the images for a nice rollover.


other than that, looks pretty solid.
0

#4 User is offline   Deepak Pradhan 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 209
  • Joined: 01-May 09
  • Location:Charlotte, NC

Posted 17 November 2009 - 01:55 PM

View PostDarkNSF, on 17 November 2009 - 01:24 PM, said:

a few suggestions:
- add a direct link to back to your website in the email. like http://gemisoft.com/...te/asd3t2-389ht
- instead of having a 'key' where you can learn the usage of the icons, just fill in the alt tag to the images for a nice rollover.


other than that, looks pretty solid.


Both of your suggestions will be incorporated. Thank you.
0

#5 User is offline   Deepak Pradhan 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 209
  • Joined: 01-May 09
  • Location:Charlotte, NC

Posted 18 November 2009 - 09:05 PM

I have about 100,000 URLs from one website.

My problem is, it takes couple of minutes to get the data. I think it is taking longer at pagination. All indexes added. However, the first page loads fast. Any idea how I can make this efficient. I am using InnoDB
	public function actionSitemapLinks()
	{   
		$condition = 'off=0';
		$this->getHulkLinks($condition, $redir='SitemapLinks');
	}

	private function getHulkLinks($condition, $redir)
	{
		$HR = $this->getValidHR();
		$name = $HR->name;
		
		$criteria=new CDbCriteria;
	    $criteria->condition = $condition.' AND rid='.$HR->id;;
		$criteria->order     = 'h_level, url, h_order, pid';

		$pages=new CPagination(hulk_links::model()->count($criteria));
		$pages->pageSize=self::PAGE_SIZE;
		if ($_GET['cp']) $pages->currentPage=$_GET['cp'];
		$pages->applyLimit($criteria);
		
		$sort=new CSort('hulk_links');
		$sort->applyOrder($criteria);
		
		$models=hulk_links::model()->findAll($criteria);
        
		if ($redir==ErrorLinks)
			$this->render('validated_errors',array('models'=>$models,'pages'=>$pages,'sort'=>$sort,'name'=>$name,'redir'=>$redir));
		else
			$this->render('validated',array('models'=>$models,'pages'=>$pages,'sort'=>$sort,'name'=>$name,'redir'=>$redir));
	}


0

#6 User is offline   Deepak Pradhan 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 209
  • Joined: 01-May 09
  • Location:Charlotte, NC

Posted 21 November 2009 - 03:36 PM

Thanks for testing this tools. I had tested with small site only. The two huge request submits gave me opportunity to sort out some bugs. The pagination is now faster after dropping the order clause.

Quote

I am still getting timeout when writing massive XML for huge sites. I see that I will have to totally rewrite the script. In the mean time please refrain submitting request for huge sites. I will be able to sort that out as soon as I get some time.
- Fixed with a quick patch
0

#7 User is offline   logity 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 07-May 09

Posted 01 April 2011 - 04:00 PM

View PostPradhan, on 21 November 2009 - 03:36 PM, said:

Thanks for testing this tools. I had tested with small site only. The two huge request submits gave me opportunity to sort out some bugs. The pagination is now faster after dropping the order clause.

- Fixed with a quick patch



Got this error
Alias "application.components.email_template.Email_template" is invalid. Make sure it points to an existing PHP file.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users