YAFLogo

jnikaido
  • jnikaido
  • 54.8% (Neutral)
  • YAF Forumling Topic Starter
15 years ago
Hi:

I'm having some issues using master pages ih YAF. My current page with the forum in the placeholder is as follows:


<%@ Page Title="" Language="C#" MasterPageFile="./themes/EvilCorporate/site_noblogtags.master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" Runat="Server">

<script runat="server">
	public void Page_Error( object sender, System.EventArgs e )
	{
		Exception x = Server.GetLastError();
		YAF.Classes.Data.DB.eventlog_create(YafServices.InitializeDb.Initialized ? (int?)YafContext.Current.PageUserID : null , this, x );
		YAF.Classes.Core.CreateMail.CreateLogEmail( x );
	}		
</script>

    <form id="form1" runat="server" enctype="multipart/form-data">
        <YAF:Forum runat="server" ID="forum"></YAF:Forum>
    </form>
</asp:Content>

When I run this page in my browser, I get random symbols appearing in the browser which usually indicates an error for me. I'm running it on IIS 7 using ASP.Net 3.5. I also tried using the master file template provided on the forum, and the same problem occurs, or I get an assembly error saying it can't find the yaf assembly, even though it's in the root app's web.config.

If I run the forum as a regular page that doesn't use master pages/content holders, then it works fine, so I'm not sure what's going on here.

Thanks!

Any tips would be appreciated.

Sponsor
Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
15 years ago
Aloha!

It's hard to say based on the custom code being used in the site.

If you are running the regular page without master pages and its working good -- maybe it's not YAF? Did you try just a simplistic master page to see if to works?

jnikaido
  • jnikaido
  • 54.8% (Neutral)
  • YAF Forumling Topic Starter
15 years ago
OK, I feel really dumb now.

Sometimes it just takes someone to tell you, "maybe you should check to see if it's not this..."

Apparently, my master file had no tag in the <head> element, thus it ever rendered the page. >< Worked on my other pages since it injects the title when the page is created. I didn't do that for the YAF page, thus... it exploded when running.<p><p>Sorry about that ><</div> </div> <div class="dropdown-menu context-menu" aria-labelledby="context menu" data-search="Search Google for ..." data-copy="Copy Selected Text" False ? data-url="/Forums/PostMessage?t=9768&f=32" data-quote="Quote Selected Text" : > <a class=" dropdown-item" href="/Forums/Search?postedby=jnikaido" role="button" type="button"><i class="fa fa-th-list fa-fw me-1"></i><span class="ms-1">View All Posts by User</span></a> <div class="dropdown-divider"></div> </div> </div> </div> </div> </div> </div> </div> <input name="__RequestVerificationToken" type="hidden" value="CfDJ8G1JZ0SqYGVDsLzu1aqg1kSf9NZUGHvAzaCpPbNjqo-db06cElWKe_ddC9cHV1fOF1peGkIiKAqhJSLyy-Ri5eAGBfJjF5xSUkCHMbF26HgLGy2Xqv3qVl1_5FXWRiSO967v_44tvjeBwEZ2j1jCiuo" /></form> <form method="post"> <div id="MessageRow40064" class="collapse show"> <div class="row"> <div class="col-xl-12"> <div class="card mb-3"> <div class="card-header py-1 px-2"> <div class="d-flex"> <div class="me-2"> <img alt="Jaben" title="Jaben" src="/api/Avatar/GetTextAvatar?userId=1587" class="img-avatar-sm mt-2" /> </div> <div> <ul class="list-inline"> <li class="list-inline-item"> <a class="btn-sm" href="/Forums/UserProfile/1587/Jaben" rel="nofollow" style="color:#800;font-weight:bold" title="View profile"><span class="align-middle text-danger user-offline me-1" data-bs-title="User is Offline" data-bs-toggle="tooltip"><i class="fas fa-user-circle" style="font-size: 1.5em"></i></span>Jaben</a> </li> <li class="list-inline-item d-none d-md-inline-block" style="width: 150px"> <div class="progress"> <div class="progress-bar progress-bar-striped bg-success" role="progressbar" aria-label="Exalted" style="width:100%;" aria-valuenow="100" aria-valuemax="100"> 100% (Exalted) </div> </div> </li> <li class="list-inline-item d-block"> <span class="badge text-bg-secondary">YAF Developer</span> </li> </ul> </div> </div> </div> <div class="card-body pt-0"> <div class="d-flex justify-content-between border-bottom mb-3"> <div> <span class="fa-stack-badge me-1 text-secondary"><i class="fas fa-calendar-day fa-stack-badge-1x"></i><i class="fa fa-clock fa-badge text-secondary"></i></span> <abbr class="timeago" data-bs-html="true" data-bs-toggle="tooltip" title="Thursday, 21 January 2010 18:13:46">15 years ago</abbr> </div> <div> <a id="post40064" href="/Forums/Post/40064/YAF-and-Master-Pages" role="button" type="button"> #4 </a> </div> </div> <div class="message"> <div class="col"> <div id="40064" class="selectionQuoteable">No worries cuz ;)<p><p>glad you figured it out.</div> </div> <div class="dropdown-menu context-menu" aria-labelledby="context menu" data-search="Search Google for ..." data-copy="Copy Selected Text" False ? data-url="/Forums/PostMessage?t=9768&f=32" data-quote="Quote Selected Text" : > <a class=" dropdown-item" href="/Forums/Search?postedby=Jaben" role="button" type="button"><i class="fa fa-th-list fa-fw me-1"></i><span class="ms-1">View All Posts by User</span></a> <div class="dropdown-divider"></div> </div> </div> </div> </div> </div> </div> </div> <input name="__RequestVerificationToken" type="hidden" value="CfDJ8G1JZ0SqYGVDsLzu1aqg1kSf9NZUGHvAzaCpPbNjqo-db06cElWKe_ddC9cHV1fOF1peGkIiKAqhJSLyy-Ri5eAGBfJjF5xSUkCHMbF26HgLGy2Xqv3qVl1_5FXWRiSO967v_44tvjeBwEZ2j1jCiuo" /></form> <div class="row mb-3"> <div class="col"> <a class="btn btn-warning btn-sm" data-bs-html="true" data-bs-toggle="tooltip" href="/api/Feed/GetPostsFeed?t=9768" rel="alternate" role="button" title="Atom Feed &#183; YAF.NET Support Forum" type="application/atom+xml"><i class="fa fa-rss-square fa-fw"></i></a> </div> </div> <form method="post"> <div class="row mb-3 d-flex justify-content-between"> <div class="col-md-4"> <pager> </pager> </div> <div class="col-md-8 mt-1 mt-md-0"> <div class="d-flex justify-content-end flex-wrap"> </div> </div> </div> <input name="__RequestVerificationToken" type="hidden" value="CfDJ8G1JZ0SqYGVDsLzu1aqg1kSf9NZUGHvAzaCpPbNjqo-db06cElWKe_ddC9cHV1fOF1peGkIiKAqhJSLyy-Ri5eAGBfJjF5xSUkCHMbF26HgLGy2Xqv3qVl1_5FXWRiSO967v_44tvjeBwEZ2j1jCiuo" /></form> <div class="row mb-3"> <div class="col-md-6"> <div class="card mb-3"> <div class="card-header"> Similar Topics </div> <ul class="list-group list-group-flush"> <li class="list-group-item"> <a href="/Forums/Posts/7665/Forum-pages-and-Master-Page" role="button" type="button"> <strong>Forum pages and Master Page</strong> </a> (<a href="/Forums/Topics/6/YAF-General" role="button" type="button">YAF General</a>) by <a class="btn-sm" href="/Forums/UserProfile/8712/mddubs" rel="nofollow" style="color:#080;font-style:italic" title="View profile"><span class="align-middle text-danger user-offline me-1" data-bs-title="User is Offline" data-bs-toggle="tooltip"><i class="fas fa-user-circle" style="font-size: 1.5em"></i></span>mddubs</a> <span class="fa-stack-badge me-1 "><i class="fas fa-calendar-day fa-stack-badge-1x"></i><i class="fa fa-clock fa-badge"></i></span> <abbr class="timeago" data-bs-html="true" data-bs-toggle="tooltip" title="Friday, 6 March 2009 09:38:26">16 years ago</abbr> </li> <li class="list-group-item"> <a href="/Forums/Posts/8343/Using-Master-Pages-problem" role="button" type="button"> <strong>Using Master Pages problem</strong> </a> (<a href="/Forums/Topics/34/YAF-Integration" role="button" type="button">YAF Integration</a>) by <a class="btn-sm" href="/Forums/UserProfile/7761/warpkid" rel="nofollow" title="View profile"><span class="align-middle text-danger user-offline me-1" data-bs-title="User is Offline" data-bs-toggle="tooltip"><i class="fas fa-user-circle" style="font-size: 1.5em"></i></span>warpkid</a> <span class="fa-stack-badge me-1 "><i class="fas fa-calendar-day fa-stack-badge-1x"></i><i class="fa fa-clock fa-badge"></i></span> <abbr class="timeago" data-bs-html="true" data-bs-toggle="tooltip" title="Friday, 17 July 2009 14:00:19">15 years ago</abbr> </li> <li class="list-group-item"> <a href="/Forums/Posts/17187/Keep-MVC-master-page-with-YAF-intergration" role="button" type="button"> <strong>Keep MVC master page with YAF intergration</strong> </a> (<a href="/Forums/Topics/39/YAF-Installation-Setup" role="button" type="button">YAF Installation/Setup</a>) by <a class="btn-sm" href="/Forums/UserProfile/29905/deggen40" rel="nofollow" title="View profile"><span class="align-middle text-danger user-offline me-1" data-bs-title="User is Offline" data-bs-toggle="tooltip"><i class="fas fa-user-circle" style="font-size: 1.5em"></i></span>deggen40</a> <span class="fa-stack-badge me-1 "><i class="fas fa-calendar-day fa-stack-badge-1x"></i><i class="fa fa-clock fa-badge"></i></span> <abbr class="timeago" data-bs-html="true" data-bs-toggle="tooltip" title="Monday, 7 July 2014 17:33:54">10 years ago</abbr> </li> <li class="list-group-item"> <a href="/Forums/Posts/14930/Is-it-possible-to-use-a-VB-master-page-to-emcompass-YAF" role="button" type="button"> <strong>Is it possible to use a VB master page to emcompass YAF?</strong> </a> (<a href="/Forums/Topics/6/YAF-General" role="button" type="button">YAF General</a>) by <a class="btn-sm" href="/Forums/UserProfile/20446/jpweber" rel="nofollow" title="View profile"><span class="align-middle text-danger user-offline me-1" data-bs-title="User is Offline" data-bs-toggle="tooltip"><i class="fas fa-user-circle" style="font-size: 1.5em"></i></span>jpweber</a> <span class="fa-stack-badge me-1 "><i class="fas fa-calendar-day fa-stack-badge-1x"></i><i class="fa fa-clock fa-badge"></i></span> <abbr class="timeago" data-bs-html="true" data-bs-toggle="tooltip" title="Monday, 31 December 2012 17:08:27">12 years ago</abbr> </li> <li class="list-group-item"> <a href="/Forums/Posts/22054/Adding-Custom-Pages-to-YAF-4-0" role="button" type="button"> <strong>Adding Custom Pages to YAF 4.0</strong> </a> (<a href="/Forums/Topics/37/YAF-Customizing" role="button" type="button">YAF Customizing</a>) by <a class="btn-sm" href="/Forums/UserProfile/12224/tha-watcha" rel="nofollow" style="color:#800;font-weight:bold" title="View profile"><span class="align-middle text-danger user-offline me-1" data-bs-title="User is Offline" data-bs-toggle="tooltip"><i class="fas fa-user-circle" style="font-size: 1.5em"></i></span>tha_watcha</a> <span class="fa-stack-badge me-1 "><i class="fas fa-calendar-day fa-stack-badge-1x"></i><i class="fa fa-clock fa-badge"></i></span> <abbr class="timeago" data-bs-html="true" data-bs-toggle="tooltip" title="Tuesday, 7 March 2023 04:00:11">2 years ago</abbr> </li> </ul> </div> </div> <div class="col"> <div class="card"> <div class="card-header"> Users browsing this topic </div> <div class="card-body"> <ul class="list-inline"><li class="list-inline-item"><a class="btn-sm" href="/Forums/UserProfile/2/guest" rel="nofollow" title="View profile"><span class="align-middle text-success user-online me-1" data-bs-title="User is Online" data-bs-toggle="tooltip"><i class="fas fa-user-circle" style="font-size: 1.5em"></i></span>guest</a></li></ul> </div> </div> </div> </div> <!-- Modal placeholder --> <div id="modal-placeholder"></div> <script> function addConsentCookie(name,value,days){var expires;if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));expires="; expires="+date.toGMTString();}else{expires="";} document.cookie=encodeURIComponent(name)+"="+encodeURIComponent(value)+expires+"; path=/";} </script> <div class="alert alert-dismissible text-center cookiealert" role="alert"> <h4 class="alert-heading"> Important Information: </h4> <form method="post"> <p> The YAF.NET Support Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies. <a href="/Forums/Cookies" role="button" class="btn btn-link" type="button"><span class="ms-1">More Details</span></a> <button type="submit" onclick="addConsentCookie('YAF-AcceptCookies', 'true', 365)" data-bs-dismiss="alert" aria-label="Close" class="btn btn-primary"><i class="fa fa-check-square fa-fw me-1"></i><span class="ms-1">Close</span></button> </p> <input name="__RequestVerificationToken" type="hidden" value="CfDJ8G1JZ0SqYGVDsLzu1aqg1kSf9NZUGHvAzaCpPbNjqo-db06cElWKe_ddC9cHV1fOF1peGkIiKAqhJSLyy-Ri5eAGBfJjF5xSUkCHMbF26HgLGy2Xqv3qVl1_5FXWRiSO967v_44tvjeBwEZ2j1jCiuo" /></form> </div> <button class=" btn btn-outline-secondary btn-sm btn-scroll" title="Scroll to top" type="button"><i class="fa fa-angle-double-up fa-fw "></i></button> <footer class="footer"> <div class="text-end"> <a href="/Forums/Privacy" title="Privacy Policy">Privacy Policy</a> | <a href="https://www.yetanotherforum.net" target="_blank" title="YetAnotherForum.NET">Powered by YAF.NET 4.0.0 </a> | <a href="https://www.yetanotherforum.net" target="_blank" title="YetAnotherForum.NET">YAF.NET © 2003-2025 Yet Another Forum.NET</a><p class="text-body-secondary small">This page was generated in 0.132 seconds.</p> </div> </footer> </div> </div> <footer class="pt-4 my-md-5 pt-md-5 border-top"> <div class="row"> <div class="col-12 col-md"> <img class="mb-2" src="/images/Logos/YAFLogo.svg" alt="YAF Logo" height="60"> <small class="d-block mb-3 text-muted"> Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved </small> </div> <div class="col-6 col-md"> <h5>About Us</h5> <p>The YAF.NET is an open source .NET forum project.</p> </div> <div class="col-6 col-md"> <h5>Useful Links</h5> <ul class="list-unstyled"> <li> <a class=" link-secondary" href="https://yetanotherforum.net/Forums" role="button" type="button"> Support Forum </a> </li> <li> <a class=" link-secondary" href="https://github.com/YAFNET/YAFNET" role="button" type="button"> GitHub Project Page </a> </li> </ul> </div> </div> </footer> </main> <script src="/js/forumExtensions.min.js?v=76"></script> <script> var popoverTriggerModsList=[].slice.call(document.querySelectorAll('.forum-mods-popover'));var popoverModsList=popoverTriggerModsList.map(function(popoverTriggerEl){return new bootstrap.Popover(popoverTriggerEl,{title:'<i class="fa fa-user-secret fa-fw text-secondary"></i> Moderators ...',html:true,trigger:'focus',template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body popover-body-scrollable"></div></div>'});}); document.addEventListener("DOMContentLoaded",function(){var popoverTriggerModsList=[].slice.call(document.querySelectorAll('.topic-starter-popover'));var popoverModsList=popoverTriggerModsList.map(function(popoverTriggerEl){return new bootstrap.Popover(popoverTriggerEl,{title:"Topic Starter ...",html:true,trigger:"hover",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'});});}); document.addEventListener("DOMContentLoaded",function(){var popoverTriggerModsList=[].slice.call(document.querySelectorAll('.topic-link-popover'));var popoverModsList=popoverTriggerModsList.map(function(popoverTriggerEl){return new bootstrap.Popover(popoverTriggerEl,{title:"Last Post by ...",html:true,trigger:"focus hover",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'});});}); var popoverTriggerIconList=[].slice.call(document.querySelectorAll('.topic-icon-legend-popvover'));var popoverIconList=popoverTriggerIconList.map(function(popoverTriggerEl){return new bootstrap.Popover(popoverTriggerEl,{html:true,content:"\r\n<div>\r\n \r\n</div>\r\n\r\n<div Class='row'>\r\n <div Class='col'>\r\n <span class='fa-stack fa-1x me-1'><i class='fa-comment fas fa-stack-2x text-success'></i><i class='fa fa-comment fa-stack-1x fa-inverse'></i></span>\r\n <span class='small'>\r\n New Posts\r\n </span>\r\n </div>\r\n <div Class='col'>\r\n <span class='fa-stack fa-1x me-1'><i class='fa-comment fas fa-stack-2x text-secondary'></i><i class='fa fa-comment fa-stack-1x fa-inverse'></i></span>\r\n <span class='small'>\r\n No New Posts\r\n </span>\r\n </div>\r\n</div>\r\n<div Class='row'>\r\n <div Class='col'>\r\n <span class='fa-stack fa-1x me-1'><i class='fa-comment fas fa-stack-2x text-success'></i><i class='fa fa-fire fa-stack-1x fa-inverse'></i></span>\r\n <span class='small'>\r\n Hot Topic (New Posts)\r\n </span>\r\n </div>\r\n <div Class='col'>\r\n <span class='fa-stack fa-1x me-1'><i class='fa-comment fas fa-stack-2x text-secondary'></i><i class='fa fa-fire fa-stack-1x fa-inverse'></i></span>\r\n <span class='small'>\r\n Hot Topic\r\n </span>\r\n </div>\r\n</div>\r\n<div Class='row'>\r\n <div Class='col'>\r\n <span class='fa-stack fa-1x me-1'><i class='fa-comment fas fa-stack-2x text-success'></i><i class='fa fa-lock fa-stack-1x fa-inverse'></i></span>\r\n <span class='small'>\r\n New Posts (Locked)\r\n </span>\r\n </div>\r\n <div Class='col'>\r\n <span class='fa-stack fa-1x me-1'><i class='fa-comment fas fa-stack-2x text-secondary'></i><i class='fa fa-lock fa-stack-1x fa-inverse'></i></span>\r\n <span class='small'>\r\n No New Posts (Locked)\r\n </span>\r\n </div>\r\n</div>\r\n<div Class='row'>\r\n <div Class='col'>\r\n <span class='fa-stack fa-1x me-1'><i class='fa-comment fas fa-stack-2x text-secondary'></i><i class='fa fa-arrows-alt fa-stack-1x fa-inverse'></i></span>\r\n <span class='small'>\r\n Moved\r\n </span>\r\n </div>\r\n</div>",trigger:"focus"});}); var popoverTriggerIconList=[].slice.call(document.querySelectorAll('.forum-icon-legend-popvover'));var popoverIconList=popoverTriggerIconList.map(function(popoverTriggerEl){return new bootstrap.Popover(popoverTriggerEl,{html:true,content:"\r\n\r\n\r\n<ul class='list-group list-group-flush'>\r\n <li class='list-group-item d-flex align-items-center'>\r\n <i class='fas fa-comments fa-fw text-success me-1 fa-2x'></i>\r\n New Posts\r\n </li>\r\n <li class='list-group-item d-flex align-items-center'>\r\n <i class='fas fa-comments fa-fw text-secondary me-1 fa-2x'></i>\r\n No New Posts\r\n </li>\r\n <li class='list-group-item d-flex align-items-center'>\r\n <span class='fa-stack fa-1x me-1'><i class='fa-comments fas fa-stack-2x text-secondary'></i><i class='fa fa-lock fa-stack-1x text-warning'></i></span>\r\n Forum Locked\r\n </li>\r\n</ul>",trigger:"focus"});}); function showModalNotify(type,body,formElement){var iconFA="";var type=type;if(type=="warning"){iconFA="fa fa-exclamation-triangle";} else if(type=="danger"){iconFA="fa fa-exclamation-triangle";} else if(type=="info"){iconFA="fa fa-info-circle";} else if(type=="success"){iconFA="fa fa-check";} new Notify({title:"YAF.NET Support Forum",message:body,icon:iconFA},{type:type,element:formElement,position:null,placement:{from:"top",align:"center"},delay:30*1000});}; function dialogFunctions(event){if(document.getElementById("ForumList")!=null){var forumsSelect=new Choices("#ForumList",{allowHTML:true,shouldSort:false,classNames:{containerOuter:['choices','w-100','choices-forum']},placeholderValue:"Select the forum you want to move the post to:",resetScrollPosition:false,callbackOnCreateTemplates:createForumSelectTemplates});var forumQuery={PageSize:0,Page:0,SearchTerm:""};forumsSelect.setChoices(function(){return loadForumChoiceOptions(forumQuery,"/api/Forum/GetForums",document.getElementById('ForumListSelected').value)});forumsSelect.passedElement.element.addEventListener("choice",function(event){document.getElementById("ForumListSelected").value=event.detail.value;});forumsSelect.passedElement.element.addEventListener("search",function(event){if(event.detail.value.length>2){var query={PageSize:15,Page:0,SearchTerm:event.detail.value};forumsSelect.setChoices(function(){return loadForumChoiceOptions(query,"/api/Forum/GetForums",document.getElementById('ForumListSelected').value)},"value","label",true);}});forumsSelect.passedElement.element.addEventListener("showDropdown",function(){var listBox=forumsSelect.choiceList.element;listBox.addEventListener("scroll",function(){const scrollableHeight=listBox.scrollHeight-listBox.clientHeight if(listBox.scrollTop>=scrollableHeight){const resultsPerPage=15*2,choices=forumsSelect._store.choices,lastItem=choices[choices.length-1],currentPage=lastItem.customProperties.page,total=lastItem.customProperties.page==0?forumsSelect._store.choices.length:resultsPerPage;if(total<lastItem.customProperties.total){var query={PageSize:15,Page:currentPage+1,SearchTerm:""};forumsSelect.setChoices(function(){return loadForumChoiceOptions(query,"/api/Forum/GetForums",document.getElementById('ForumListSelected').value)},"value","label",false);}}});});}} </script> <script> document.addEventListener('DOMContentLoaded',function(){document.querySelectorAll(".hc-user").forEach(pop=>{userCardContent(pop,2000);});}); </script> <scripts></scripts> <script> function addThanks(messageId){fetch("/api/ThankYou/AddThanks/"+messageId,{method:"POST",headers:{"Accept":"application/json","Content-Type":"application/json;charset=utf-8","RequestVerificationToken":document.querySelector('input[name="__RequestVerificationToken"]').value}}).then(res=>res.json()).then(response=>{document.getElementById('dvThanksInfo'+response.messageID).innerHTML=response.thanksInfo;document.getElementById('dvThankBox'+response.messageID).innerHTML='<a class="btn btn-link" href="javascript:removeThanks('+response.messageID+');" onclick="this.blur();" title='+response.title+'><i class="far fa-heart fa-fw"></i><span class="ms-1 d-none d-lg-inline-block">'+response.text+'</span></a>';document.querySelectorAll(".thanks-popover").forEach(pop=>{const popover=new bootstrap.Popover(pop,{template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body popover-body-scrollable"></div></div>'});});}).catch(function(error){errorLog(error);});} function removeThanks(messageId){fetch("/api/ThankYou/RemoveThanks/"+messageId,{method:"POST",headers:{"Accept":"application/json","Content-Type":"application/json;charset=utf-8","RequestVerificationToken":document.querySelector('input[name="__RequestVerificationToken"]').value}}).then(res=>res.json()).then(response=>{document.getElementById("dvThanksInfo"+response.messageID).innerHTML=response.thanksInfo;document.getElementById("dvThankBox"+response.messageID).innerHTML='<a class="btn btn-link" href="javascript:addThanks('+response.messageID+');" onclick="this.blur();" title='+response.title+'><i class="fas fa-heart text-danger fa-fw"></i><span class="ms-1 d-none d-lg-inline-block">'+response.text+'</span></a>';}).catch(function(error){errorLog(error);});}</script><script> function addThanks(messageId){fetch("/api/ThankYou/AddThanks/"+messageId,{method:"POST",headers:{"Accept":"application/json","Content-Type":"application/json;charset=utf-8","RequestVerificationToken":document.querySelector('input[name="__RequestVerificationToken"]').value}}).then(res=>res.json()).then(response=>{document.getElementById('dvThanksInfo'+response.messageID).innerHTML=response.thanksInfo;document.getElementById('dvThankBox'+response.messageID).innerHTML='<a class="btn btn-link" href="javascript:removeThanks('+response.messageID+');" onclick="this.blur();" title='+response.title+'><i class="far fa-heart fa-fw"></i><span class="ms-1 d-none d-lg-inline-block">'+response.text+'</span></a>';document.querySelectorAll(".thanks-popover").forEach(pop=>{const popover=new bootstrap.Popover(pop,{template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body popover-body-scrollable"></div></div>'});});}).catch(function(error){errorLog(error);});} function removeThanks(messageId){fetch("/api/ThankYou/RemoveThanks/"+messageId,{method:"POST",headers:{"Accept":"application/json","Content-Type":"application/json;charset=utf-8","RequestVerificationToken":document.querySelector('input[name="__RequestVerificationToken"]').value}}).then(res=>res.json()).then(response=>{document.getElementById("dvThanksInfo"+response.messageID).innerHTML=response.thanksInfo;document.getElementById("dvThankBox"+response.messageID).innerHTML='<a class="btn btn-link" href="javascript:addThanks('+response.messageID+');" onclick="this.blur();" title='+response.title+'><i class="fas fa-heart text-danger fa-fw"></i><span class="ms-1 d-none d-lg-inline-block">'+response.text+'</span></a>';}).catch(function(error){errorLog(error);});}</script><script> function addThanks(messageId){fetch("/api/ThankYou/AddThanks/"+messageId,{method:"POST",headers:{"Accept":"application/json","Content-Type":"application/json;charset=utf-8","RequestVerificationToken":document.querySelector('input[name="__RequestVerificationToken"]').value}}).then(res=>res.json()).then(response=>{document.getElementById('dvThanksInfo'+response.messageID).innerHTML=response.thanksInfo;document.getElementById('dvThankBox'+response.messageID).innerHTML='<a class="btn btn-link" href="javascript:removeThanks('+response.messageID+');" onclick="this.blur();" title='+response.title+'><i class="far fa-heart fa-fw"></i><span class="ms-1 d-none d-lg-inline-block">'+response.text+'</span></a>';document.querySelectorAll(".thanks-popover").forEach(pop=>{const popover=new bootstrap.Popover(pop,{template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body popover-body-scrollable"></div></div>'});});}).catch(function(error){errorLog(error);});} function removeThanks(messageId){fetch("/api/ThankYou/RemoveThanks/"+messageId,{method:"POST",headers:{"Accept":"application/json","Content-Type":"application/json;charset=utf-8","RequestVerificationToken":document.querySelector('input[name="__RequestVerificationToken"]').value}}).then(res=>res.json()).then(response=>{document.getElementById("dvThanksInfo"+response.messageID).innerHTML=response.thanksInfo;document.getElementById("dvThankBox"+response.messageID).innerHTML='<a class="btn btn-link" href="javascript:addThanks('+response.messageID+');" onclick="this.blur();" title='+response.title+'><i class="fas fa-heart text-danger fa-fw"></i><span class="ms-1 d-none d-lg-inline-block">'+response.text+'</span></a>';}).catch(function(error){errorLog(error);});}</script><script> function addThanks(messageId){fetch("/api/ThankYou/AddThanks/"+messageId,{method:"POST",headers:{"Accept":"application/json","Content-Type":"application/json;charset=utf-8","RequestVerificationToken":document.querySelector('input[name="__RequestVerificationToken"]').value}}).then(res=>res.json()).then(response=>{document.getElementById('dvThanksInfo'+response.messageID).innerHTML=response.thanksInfo;document.getElementById('dvThankBox'+response.messageID).innerHTML='<a class="btn btn-link" href="javascript:removeThanks('+response.messageID+');" onclick="this.blur();" title='+response.title+'><i class="far fa-heart fa-fw"></i><span class="ms-1 d-none d-lg-inline-block">'+response.text+'</span></a>';document.querySelectorAll(".thanks-popover").forEach(pop=>{const popover=new bootstrap.Popover(pop,{template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body popover-body-scrollable"></div></div>'});});}).catch(function(error){errorLog(error);});} function removeThanks(messageId){fetch("/api/ThankYou/RemoveThanks/"+messageId,{method:"POST",headers:{"Accept":"application/json","Content-Type":"application/json;charset=utf-8","RequestVerificationToken":document.querySelector('input[name="__RequestVerificationToken"]').value}}).then(res=>res.json()).then(response=>{document.getElementById("dvThanksInfo"+response.messageID).innerHTML=response.thanksInfo;document.getElementById("dvThankBox"+response.messageID).innerHTML='<a class="btn btn-link" href="javascript:addThanks('+response.messageID+');" onclick="this.blur();" title='+response.title+'><i class="fas fa-heart text-danger fa-fw"></i><span class="ms-1 d-none d-lg-inline-block">'+response.text+'</span></a>';}).catch(function(error){errorLog(error);});}</script></body> </html>