Welcome Guest Search | Active Topics | Members | Log In | Register

How to edit yaf forum pages manually?
reyou Offline
#1 Posted : Friday, July 03, 2009 5:28:14 PM(UTC)
Rank: Member

Joined: 12/8/2008(UTC)
Posts: 15

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Hi, I want to change the codebehind in the forum, but what ever i do i does not changing.
Simply, to test it forum/default.aspx page i am doing

<script runat="server">
public void Page_Error(object sender,System.EventArgs e)
{
Response.Write("111" ) ;
Exception x = Server.GetLastError();
string exceptionInfo = "";
while ( x != null )
{
exceptionInfo += DateTime.Now.ToString( "g" );
exceptionInfo += " in " + x.Source + "\r\n";
exceptionInfo += x.Message + "\r\n" + x.StackTrace + "\r\n-----------------------------\r\n";
x = x.InnerException;
}
yaf.DB.eventlog_create( forum.PageUserID, this, exceptionInfo );
yaf.Utils.LogToMail(x);
}
</script>

and hitting f6 to compile and i am going to page but nothing happens.

any idea?
mddubs Offline
#2 Posted : Friday, July 03, 2009 5:54:08 PM(UTC)


Rank: YAF Developer

Medals: Medal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.

Joined: 8/7/2008(UTC)
Posts: 577
Location: Chicagoland

Thanks: 0 times
Was thanked: 2 time(s) in 1 post(s)
You added that line to a Page_Error method. I wouldn't expect it to be called unless a page error occurs.


www.bunkerhollow.com | www.careercomputing.com

When I post fp:mddubs in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Mek Smile, who stole this off Ederon Smile )
reyou Offline
#3 Posted : Friday, July 03, 2009 6:02:04 PM(UTC)
Rank: Member

Joined: 12/8/2008(UTC)
Posts: 15

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
oh my god, i am so careless, I see it as page_load Smile

thx, so i can go through and modify whatever i want right?
mddubs Offline
#4 Posted : Friday, July 03, 2009 6:11:57 PM(UTC)


Rank: YAF Developer

Medals: Medal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.

Joined: 8/7/2008(UTC)
Posts: 577
Location: Chicagoland

Thanks: 0 times
Was thanked: 2 time(s) in 1 post(s)
Yes, you can download the source code, make changes and recompile anything you want.

EDIT: As long as you adhere to the standard GNU open-source license.


www.bunkerhollow.com | www.careercomputing.com

When I post fp:mddubs in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Mek Smile, who stole this off Ederon Smile )
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 RC4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.127 seconds.