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

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

Joined: 12/8/2008
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 10:54:08 PM


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
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 11:02:04 PM
Rank: Member

Joined: 12/8/2008
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 11:11:57 PM


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
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.