public void SaveTrackbackTop() { SiteData site = SiteData.GetSiteFromCache(this.SiteID); if (this.IsLatestVersion && site.SendTrackbacks) { TrackBackEntry t = TrackBackEntry.GetTrackBackQueue(this.Root_ContentID).FirstOrDefault(); if (t != null && t.CreateDate > site.Now.AddMinutes(-10)) { try { TrackBacker tb = new TrackBacker(); t.TrackBackResponse = tb.SendTrackback(t.Root_ContentID, site.SiteID, t.TrackBackURL); t.TrackedBack = true; t.Save(); } catch (Exception ex) { } } } }
public void SendTrackbackQueue() { if (this.SendTrackbacks) { List <TrackBackEntry> lstTBQ = TrackBackEntry.GetTrackBackSiteQueue(this.SiteID); foreach (TrackBackEntry t in lstTBQ) { if (t.CreateDate > this.Now.AddMinutes(-30)) { try { TrackBacker tb = new TrackBacker(); t.TrackBackResponse = tb.SendTrackback(t.Root_ContentID, this.SiteID, t.TrackBackURL); t.TrackedBack = true; t.Save(); } catch (Exception ex) { } } } } }
public void SaveTrackbacks() { SiteData site = SiteData.GetSiteFromCache(this.SiteID); if (!String.IsNullOrEmpty(this.NewTrackBackURLs)) { this.NewTrackBackURLs = this.NewTrackBackURLs.Replace("\r\n", "\n").Replace("\r", "\n").Replace("\n\n", "\n"); string[] TBURLs = this.NewTrackBackURLs.Split('\n'); foreach (string sURL in TBURLs) { List <TrackBackEntry> lstTB = TrackBackEntry.FindTrackbackByURL(this.Root_ContentID, sURL); if (lstTB.Count < 1) { TrackBackEntry tbe = new TrackBackEntry { Root_ContentID = this.Root_ContentID, TrackBackURL = sURL, TrackedBack = false }; tbe.Save(); } } } if (this.IsLatestVersion && site.SendTrackbacks) { List <TrackBackEntry> lstTBQ = TrackBackEntry.GetTrackBackQueue(this.Root_ContentID); foreach (TrackBackEntry t in lstTBQ) { if (t.CreateDate > site.Now.AddMinutes(-10)) { try { TrackBacker tb = new TrackBacker(); t.TrackBackResponse = tb.SendTrackback(t.Root_ContentID, site.SiteID, t.TrackBackURL); t.TrackedBack = true; t.Save(); } catch (Exception ex) { } } } } }
public void SendTrackbackQueue() { if (this.SendTrackbacks) { List<TrackBackEntry> lstTBQ = TrackBackEntry.GetTrackBackSiteQueue(this.SiteID); foreach (TrackBackEntry t in lstTBQ) { if (t.CreateDate > this.Now.AddMinutes(-30)) { try { TrackBacker tb = new TrackBacker(); t.TrackBackResponse = tb.SendTrackback(t.Root_ContentID, this.SiteID, t.TrackBackURL); t.TrackedBack = true; t.Save(); } catch (Exception ex) { } } } } }
public void SaveTrackbacks() { SiteData site = SiteData.GetSiteFromCache(this.SiteID); if (!string.IsNullOrEmpty(this.NewTrackBackURLs)) { this.NewTrackBackURLs = this.NewTrackBackURLs.Replace("\r\n", "\n").Replace("\r", "\n").Replace("\n\n", "\n"); string[] TBURLs = this.NewTrackBackURLs.Split('\n'); foreach (string sURL in TBURLs) { List<TrackBackEntry> lstTB = TrackBackEntry.FindTrackbackByURL(this.Root_ContentID, sURL); if (lstTB.Count < 1) { TrackBackEntry tbe = new TrackBackEntry { Root_ContentID = this.Root_ContentID, TrackBackURL = sURL, TrackedBack = false }; tbe.Save(); } } } if (this.IsLatestVersion && site.SendTrackbacks) { List<TrackBackEntry> lstTBQ = TrackBackEntry.GetTrackBackQueue(this.Root_ContentID); foreach (TrackBackEntry t in lstTBQ) { if (t.CreateDate > site.Now.AddMinutes(-10)) { try { TrackBacker tb = new TrackBacker(); t.TrackBackResponse = tb.SendTrackback(t.Root_ContentID, site.SiteID, t.TrackBackURL); t.TrackedBack = true; t.Save(); } catch (Exception ex) { } } } } }