Ejemplo n.º 1
0
 public void GetPostAds(PostpramsInfo postpramsInfo, int count)
 {
     this.inpostad      = Advertisement.GetInPostAd("", this.forumid, this.templatepath, (count > postpramsInfo.Pagesize) ? postpramsInfo.Pagesize : count);
     this.quickeditorad = Advertisement.GetQuickEditorAD("", this.forumid);
     this.quickbgad     = Advertisement.GetQuickEditorBgAd("", this.forumid);
     if (this.quickbgad.Length <= 1)
     {
         this.quickbgad = new string[]
         {
             "",
             ""
         };
     }
 }
Ejemplo n.º 2
0
 public void GetPostAds(int forumid)
 {
     this.headerad      = Advertisement.GetOneHeaderAd("", forumid);
     this.footerad      = Advertisement.GetOneFooterAd("", forumid);
     this.pagewordad    = Advertisement.GetPageWordAd("", forumid);
     this.pagead        = Advertisement.GetPageAd("", forumid);
     this.doublead      = Advertisement.GetDoubleAd("", forumid);
     this.floatad       = Advertisement.GetFloatAd("", forumid);
     this.mediaad       = Advertisement.GetMediaAd(this.templatepath, "", forumid);
     this.quickeditorad = Advertisement.GetQuickEditorAD("", forumid);
     this.quickbgad     = Advertisement.GetQuickEditorBgAd("", forumid);
     if (this.quickbgad.Length <= 1)
     {
         this.quickbgad = new string[]
         {
             "",
             ""
         };
     }
 }