YAFLogo

cyberyan
  • cyberyan
  • 51.8% (Neutral)
  • YAF Forumling Topic Starter
16 years ago
Quick question.....

I am working on putting up a forum and slowly changing it up a bit to fit my style needs. I want to put a link in front

of all of the info in the navigation bar...pic here of what I'm talking about

UserPostedImage

Long story short...in what page is the code to pull this navigation menu up? I've been looking for a good hour and figured I would run it by the pros.

the forum is located at www.1ksfragfest.com/community

thanks guys!

Sponsor
logan
  • logan
  • 100% (Exalted)
  • YAF Leader
16 years ago
ver 1.9.1.8

/controls/PageLinks.cs

protected override void Render(System.Web.UI.HtmlTextWriter writer) 
		{
			DataTable m_links = (DataTable)ViewState["data"];
			
			if (m_links == null || m_links.Rows.Count == 0) return;
 
			writer.WriteLine("<p class=\"navlinks\">");
//Add link to front of pagelinks - - - - - - - - - - - - -//
            writer.WriteLine("<a href=http://www.yetanotherforum.net>YAF</a>");
            writer.WriteLine("&nbsp>&nbsp>&nbsp>&nbsp");
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - //
            bool bFirst = true;
			foreach(DataRow row in m_links.Rows)
			{
				if(!bFirst) 
					writer.WriteLine("&#187;"); 
				else 
					bFirst = false;

				if (row["URL"].ToString().Equals(""))
					writer.WriteLine("<span id=\"current\">" + row["Title"].ToString() + "</span>");
				else
					writer.WriteLine(String.Format("<a href=\"{0}\">{1}</a>",row["URL"],row["Title"]));
			}
			
			writer.WriteLine("</p>");
		}
	}
}

test
cyberyan
  • cyberyan
  • 51.8% (Neutral)
  • YAF Forumling Topic Starter
16 years ago
Much thanks!
cyberyan
  • cyberyan
  • 51.8% (Neutral)
  • YAF Forumling Topic Starter
16 years ago

ver 1.9.1.8

/controls/PageLinks.cs

protected override void Render(System.Web.UI.HtmlTextWriter writer) 
		{
			DataTable m_links = (DataTable)ViewState["data"];
			
			if (m_links == null || m_links.Rows.Count == 0) return;
 
			writer.WriteLine("<p class=\"navlinks\">");
//Add link to front of pagelinks - - - - - - - - - - - - -//
            writer.WriteLine("<a href=http://www.yetanotherforum.net>YAF</a>");
            writer.WriteLine("&nbsp>&nbsp>&nbsp>&nbsp");
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - //
            bool bFirst = true;
			foreach(DataRow row in m_links.Rows)
			{
				if(!bFirst) 
					writer.WriteLine("&#187;"); 
				else 
					bFirst = false;

				if (row["URL"].ToString().Equals(""))
					writer.WriteLine("<span id=\"current\">" + row["Title"].ToString() + "</span>");
				else
					writer.WriteLine(String.Format("<a href=\"{0}\">{1}</a>",row["URL"],row["Title"]));
			}
			
			writer.WriteLine("</p>");
		}
	}
}

logan wrote:

Actually friend now that I get in there and look at it im not seeing a pagelinks.cs under the controls folder.

logan
  • logan
  • 100% (Exalted)
  • YAF Leader
16 years ago
you need the source download bin doesnt have

will also need to recompile


test