YAFLogo

RichP714
  • RichP714
  • 100% (Exalted)
  • YAF All-the-Time Topic Starter
14 years ago
Is this supposed to work in RC1? If so, how?; I've pressed the 'thank' button and then look at the member's profile; it says was thanked 0 times
Enjoy!

Running YAF 1.9.5.5 final at: http://thecarversite.com 

Sponsor
RichP714
  • RichP714
  • 100% (Exalted)
  • YAF All-the-Time Topic Starter
14 years ago
Tag as Favorite also doesn't work for me; I notice these two share /App_Code/YAF/Utilities/JavaScriptBlocks.cs

is there something I need to do to enable them?


Enjoy!

Running YAF 1.9.5.5 final at: http://thecarversite.com 

RichP714
  • RichP714
  • 100% (Exalted)
  • YAF All-the-Time Topic Starter
14 years ago
I've searched for thanks mod info. As far as I can tell, the procedures exist in the database, the /App_Code/YAF/Utilities/JavaScriptBlocks.cs file has entries for thanks and tag favorite. The ascx files have buttons for thanks and tag as favorite,

Yet they still have no action when pressed.

Could I be missing a line in web.config?

running 1.9.4 RC1 (was an update from 1.9.3 final, which was and update from 1.9.1.8)

Running in a subfolder (/yetanotherforum) (on Godaddy)

web,config file:

<?xml version="1.0" encoding="utf-8"?>
<configuration>

	<configSections>
		<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
			<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
				<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
				<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
					<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" />
					<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
					<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
					<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
				</sectionGroup>
			</sectionGroup>
		</sectionGroup>
		<section name="rewriter" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter" requirePermission="false"/>
	</configSections> 	

	<connectionStrings configSource="db.config"/>
	<appSettings configSource="app.config"/>
	<rewriter configSource="URLRewriter.config" />

	<system.net>
		<mailSettings>
			<smtp configSource="mail.config"/>
		</mailSettings>
	</system.net>
	<system.web>
	    <httpRuntime maxRequestLength="2000000"/>
		<trace enabled="false" />
		<xhtmlConformance mode="Transitional" />
		<customErrors defaultRedirect="error.aspx" mode="Off"/>

		<globalization requestEncoding="utf-8" responseEncoding="utf-8"/>

		<authentication mode="Forms">
			<forms name=".YAFNET_Authenthication" loginUrl="~/pages/login.ascx" protection="All" timeout="525600" cookieless="UseCookies" path="/" />
		</authentication>

		<!-- Set debug to "true" to test out the system in development -->
		<compilation defaultLanguage="c#" debug="false">
			<assemblies>
        <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
        <add assembly="System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
        <add assembly="System.ServiceModel.Web, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
			</assemblies>
		</compilation>

		<httpHandlers>
			<remove verb="*" path="*.asmx"/>
			<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
			<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
			<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
 		    <add verb="POST,GET,HEAD" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory, AjaxPro.2"/>
		</httpHandlers>

		<httpModules>
			<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
			<add name="YafTaskModule" type="YAF.Classes.Core.YafTaskModule, YAF.Classes.Core"/>
			<add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule,Intelligencia.UrlRewriter" />
			<add name="CuteEditor.UploadModule" type="CuteEditor.UploadModule,CuteEditor"/>
		</httpModules>

		<pages validateRequest="false" smartNavigation="false">
			<controls>
				<add tagPrefix="DotNetAge" namespace="DNA.UI.JQuery" assembly="DNA.UI.JQuery"/>
				<add tagPrefix="DotNetAge" namespace="DNA.UI" assembly="DNA"/>
				<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
				<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

				<!-- Default: use non-dynamic (compiled classes) in YAF -->
				<add tagPrefix="YAF" namespace="YAF.Classes.UI" assembly="YAF.Classes.UI" />
				<add tagPrefix="YAF" namespace="YAF.Classes.Utils" assembly="YAF.Classes.Utils" />
				<add tagPrefix="YAF" namespace="YAF.Classes.Core" assembly="YAF.Classes.Core" />
				<add tagPrefix="YAF" namespace="YAF.Classes.Data" assembly="YAF.Classes.Data" />
				<add tagPrefix="YAF" namespace="YAF.Controls" assembly="YAF.Controls" />
				<add tagPrefix="YAF" namespace="YAF.Controls.Statistics" assembly="YAF.Controls" />

				<!-- Optional: use dynamic classes in YAF by moving all the YAF.x directories (YAF.Classes.*, YAF.Providers)
						into the App_Code\YAF directory. Delete the associated .dll files from the \bin directory. Comment out the above 
						"non-dynamic" namespaces above and enable these: 
				-->

				<!--add tagPrefix="YAF" namespace="YAF.Classes.UI" />
				<add tagPrefix="YAF" namespace="YAF.Classes.Utils" />
				<add tagPrefix="YAF" namespace="YAF.Classes.Data" />
				<add tagPrefix="YAF" namespace="YAF.Controls" />
				<add tagPrefix="YAF" namespace="YAF.Classes.Core" />
				<add tagPrefix="YAF" namespace="YAF.Controls.Statistics" /-->

				<add tagPrefix="YAF" namespace="YAF.Classes" />
				<add tagPrefix="YAF" namespace="YAF"/>

			</controls>
			<namespaces>
				<add namespace="YAF" />
				<add namespace="YAF.Classes.UI" />
				<add namespace="YAF.Classes.Utils" />
				<add namespace="YAF.Classes.Core" />
				<add namespace="YAF.Controls" />
				<add namespace="YAF.Classes.Data" />
			</namespaces>
		</pages>

		<roleManager enabled="true" defaultProvider="YafRoleProvider">
			<providers>
				<clear/>
					<add connectionStringName="yafnet" applicationName="YetAnotherForum" name="YafRoleProvider" type="YAF.Providers.Roles.YafRoleProvider"/>
			</providers>
		</roleManager>

		<membership defaultProvider="YafMembershipProvider" hashAlgorithmType="MD5">
			<providers>
				<clear/>
				<add connectionStringName="yafnet" applicationName="YetAnotherForum" name="YafMembershipProvider" requiresUniqueEmail="false" type="YAF.Providers.Membership.YafMembershipProvider" hashHex="true" hashCase="upper" minRequiredPasswordLength="3" minRequiredNonAlphanumericCharacters="0" />
			</providers>
		</membership>
		<profile enabled="true" defaultProvider="YafProfileProvider" inherits="YAF.Classes.Utils.YafUserProfile">
			<providers>
				<clear/>
        		<add connectionStringName="yafnet" applicationName="YetAnotherForum" name="YafProfileProvider" type="YAF.Providers.Profile.YafProfileProvider"/>
			</providers>
		</profile>
		<machineKey 
validationKey="25339E9418CA41287B7E4A852EF82AFA2ED0BE6D7D681AAB431273F97987AA37EFEF7EC0F0E2A6A42F2917B50DFD30E6B0B85A4AF5AB902C6EF3D3A26C1D6DC0"
decryptionKey="756F485FD2940D93B56EF0A9BCEE666E1674C09FC7AEA90C0DA5ED66B655CE5D"
validation="SHA1" decryption="AES"
/>
	</system.web>
	<system.web.extensions>
		<scripting>
			<!-- 
      <scriptResourceHandler enableCompression="true" enableCaching="true" />
      -->
		</scripting>
	</system.web.extensions>

	<system.webServer>
		<validation validateIntegratedModeConfiguration="false"/>
		<modules>
			<remove name="ScriptModule" />
			<remove name="YafInitModule" />
			<remove name="UrlRewriter" />
			<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
			<add name="YafInitModule" type="YAF.Classes.Base.YafInitModule, YAF.Classes.Base"/>
			<add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule,Intelligencia.UrlRewriter" preCondition="managedHandler"/>      
			<add name="YafTaskModule" type="YAF.Classes.Core.YafTaskModule, YAF.Classes.Core" preCondition="managedHandler"/>
		</modules>
		<handlers>
			<remove name="WebServiceHandlerFactory-Integrated"/>
			<remove name="ScriptHandlerFactory"/>
			<remove name="ScriptHandlerFactoryAppServices"/>
			<remove name="ScriptResource"/>
			<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
			<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
			<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
			<add name="AjaxPro" verb="POST,GET,HEAD" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory, AjaxPro.2"/>
		</handlers>
	</system.webServer>

	<system.codedom>
		<compilers>
			<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
				<providerOption name="CompilerVersion" value="v3.5"/>
				<providerOption name="WarnAsError" value="false"/>
			</compiler>
			<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
				<providerOption name="CompilerVersion" value="v3.5"/>
				<providerOption name="OptionInfer" value="true"/>
				<providerOption name="WarnAsError" value="false"/>
			</compiler>
		</compilers>
	</system.codedom>

</configuration>

Enjoy!

Running YAF 1.9.5.5 final at: http://thecarversite.com 

RichP714
  • RichP714
  • 100% (Exalted)
  • YAF All-the-Time Topic Starter
14 years ago
Here's app.config.......YAF is installed in root/yetanotherforum

<appSettings>
	<add key="YAF.ConfigPassword" value="My password" />
	<add key="YAF.BoardID" value="1" />
	<add key="YAF.EnableURLRewriting" value="false" />
	<add key="YAF.UseSMTPSSL" value="false" />  
	<add key="YAF.DatabaseObjectQualifier" value="yaf_" />
	<add key="YAF.DatabaseOwner" value="dbo" />
	<add key="YAF.ConnectionStringName" value="yafnet" />  
	<add key="YAF.ProviderExceptionXML" value="ProviderExceptions.xml" />
	<add key="YAF.UploadDir" value="~/upload/" />
	<add key="YAF.ProviderKeyType" value="System.Guid" /> 
	<add key="YAF.Root" value="/yetanotherforum/" />
	<add key="YAF.AppRoot" value="/yetanotherforum/" /> 
	<add key="YAF.FileRoot" value="/yetanotherforum/" />  
	<add key="YAF.BaseUrl" value="~/" />
	<add key="YAF.BaseUrlOverrideDomain" value="false" />
	<!-- RadEditor configuration settings-->
	<add key="YAF.RadEditorSkin" value="Black"/>
	<add key="YAF.UseRadEditorToolsFile" value="true"/>
	<add key="YAF.RadEditorToolsFile" value="editors/radEditor/toolsFile.xml" />
	<!-- RadEditor configuration settings-->
</appSettings>

Enjoy!

Running YAF 1.9.5.5 final at: http://thecarversite.com 

logan
  • logan
  • 100% (Exalted)
  • YAF Leader
14 years ago
Check in IE tools - internet options - security - custom level scroll down to scripting section and see if

Active scripting is checked


test
RichP714
  • RichP714
  • 100% (Exalted)
  • YAF All-the-Time Topic Starter
14 years ago
Yes, active scripting is enabled; when I click on the thanks button or tag as favorite button they immediately pop back up (don't seem to be doing anything) and I check my favorites or the members 'was thanked' count and it remains empty or at zero....

Pulling my hair out over this one.....


Enjoy!

Running YAF 1.9.5.5 final at: http://thecarversite.com 

logan
  • logan
  • 100% (Exalted)
  • YAF Leader
14 years ago
When i click on the favoites button there is an error YAF is undefined

have you tried disabling the other javascript code as maybe there is some kind of

interference. got me stumped too.


test
bbobb
  • bbobb
  • 100% (Exalted)
  • YAF Developer
14 years ago
You can encounter the problem if you modify your source code.

It should disappear.

RichP714
  • RichP714
  • 100% (Exalted)
  • YAF All-the-Time Topic Starter
14 years ago

You can encounter the problem if you modify your source code.

It should disappear.

bbobb wrote:

This is an install from the BIN files; what modification to source should I make?


Enjoy!

Running YAF 1.9.5.5 final at: http://thecarversite.com 

bbobb
  • bbobb
  • 100% (Exalted)
  • YAF Developer
14 years ago

This is an install from the BIN files;

RichP714 wrote:

It should work in the case. A lot of people uses the files and no one has a problem like this except these reports.

I had this problem, when used 2 solutions for 2 databases with a modified code.

Try and clean browser temp. files, cookies in turn, then relaunch IIS(if availabe).

These are AjaxPro JS tricks, I can't repeat (I use the latest svn)

RichP714
  • RichP714
  • 100% (Exalted)
  • YAF All-the-Time Topic Starter
14 years ago

This is an install from the BIN files;

bbobb wrote:

It should work in the case. A lot of people uses the files and no one has a problem like this except these reports.

I had this problem, when used 2 solutions for 2 databases with a modified code.

Try and clean browser temp. files, cookies in turn, then relaunch IIS(if availabe).

These are AjaxPro JS tricks, I can't repeat (I use the latest svn)

RichP714 wrote:

I cleaned the cache and invoked 'recycle app pool' on Godaddy's IIS panel (IIS7 in classic pipeline mode) and the behavior is still as before; no 'thanks' or 'tag as favorite' function, but 'lightbox' works.

This (1.9.4 RC1) is installed on two domains. (one I use as a 'dev' for the other, live forum (it also has other things on it so it's not a complete waste).

anyway.......

BOTH YAF installs are upgrades from 1.9.1.8 to 1.9.3 to 1.9.4 RC1.

BOTH YAF installs databases were restored from a backup that had a different name (the restore seemed to have been successful, as the forum operated under 1.9.3 and a schema with the new name was injected.

Database: the1010401540544
Source File: the1010401540544.bak
Date: 04/14/10 02:43:59
Status Code: 0

Restore Progress: 
- Performing restore.
- Data restore completed.
- Checking log file names.  Files will be renamed to match current database name (the1010401540544).
- Changing Logical name of Log File from the0901909311020_log to the1010401540544_log
- Checking data file names.  Files will be renamed to match current database name (the1010401540544).
- Changing Logical name of Data File from the0901909311020 to the1010401540544
- Assigning hosting administrative account as database owner.
- Adding the1010401540544 to database.
- Setting roles for the1010401540544
- Setting permissions for the1010401540544
- Unexpected user (the0901909311020) found in database.
- Reassigning ownership of schema: the0901909311020. Old Owner: the0901909311020 New Owner: the1010401540544
- Dropping user: the0901909311020
- Restore completed successfully.

I'm deleting the 'dev' install now, and will reinstall with a blank db to see if anything changes; in the meantime, any suggestions are appreciated.


Enjoy!

Running YAF 1.9.5.5 final at: http://thecarversite.com 

RichP714
  • RichP714
  • 100% (Exalted)
  • YAF All-the-Time Topic Starter
14 years ago
No joy with a fresh install;

I used the 1.9.4.RC1 bin file with recommended web.config

clean install (wiped folders on server before installing)

Still no thanks buttton or 'tag as favorite' activity.

I DID notice that when these buttons are pushed, IE returns an icon in the bottom left of the frame.

when I hover over the thanks button it reads javascript:addThanks(2);

when I click the thanks button it reads error on page

when I click the error icon it shows the following:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 3.0.30618; .NET CLR 3.5.30729)
Timestamp: Mon, 19 Apr 2010 21:04:05 UTC


Message: 'YAF' is undefined
Line: 732
Char: 2165
Code: 0
URI: http://carvermk2.com/yetanotherforum/yaf_postst2_admin-test.aspx?find=unread

here's a screenshot


Enjoy!

Running YAF 1.9.5.5 final at: http://thecarversite.com 

RichP714
  • RichP714
  • 100% (Exalted)
  • YAF All-the-Time Topic Starter
14 years ago
here is line 732 (I included from 730)

<script type="text/javascript"> 
//<![CDATA[
Sys.Application.add_load(function() { jQuery('#forum_ctl01_Pager_GotoPageForm_GotoTextBox').bind('keydown', function(e) { if(e.keyCode == 13) { jQuery('#forum_ctl01_Pager_GotoPageForm_GotoButton').click(); return false; } }); });Sys.Application.add_load(function() { jQuery('#forum_ctl01_PagerBottom_GotoPageForm_GotoTextBox').bind('keydown', function(e) { if(e.keyCode == 13) { jQuery('#forum_ctl01_PagerBottom_GotoPageForm_GotoButton').click(); return false; } }); });function addFavoriteTopic(topicID){YAF.Classes.Core.YafFavoriteTopic.AddFavoriteTopic(topicID, addFavoriteTopicSuccess, CallFailed);};function addFavoriteTopicSuccess(res){var dvFavorite1=document.getElementById('dvFavorite1'); dvFavorite1.innerHTML='<a class="yafcssbigbutton rightItem" href="javascript:removeFavoriteTopic(' + res.value + ');" onclick="this.blur();" title="Remove this topic from your Favorites List."><span>Untag as favorite</span></a>';var dvFavorite2=document.getElementById('dvFavorite2'); dvFavorite2.innerHTML='<a class="yafcssbigbutton rightItem" href="javascript:removeFavoriteTopic(' + res.value + ');" onclick="this.blur();" title="Remove this topic from your Favorites List."><span>Untag as favorite</span></a>';}function removeFavoriteTopic(topicID){YAF.Classes.Core.YafFavoriteTopic.RemoveFavoriteTopic(topicID, removeFavoriteTopicSuccess, CallFailed);};function removeFavoriteTopicSuccess(res){var dvFavorite1=document.getElementById('dvFavorite1'); dvFavorite1.innerHTML='<a class="yafcssbigbutton rightItem" href="javascript:addFavoriteTopic(' + res.value + ');" onclick="this.blur();" title="Tag this topic as a favorite."><span>Tag as favorite</span></a>';var dvFavorite2=document.getElementById('dvFavorite2'); dvFavorite2.innerHTML='<a class="yafcssbigbutton rightItem" href="javascript:addFavoriteTopic(' + res.value + ');" onclick="this.blur();" title="Tag this topic as a favorite."><span>Tag as favorite</span></a>';}function CallFailed(res){{alert('Error Occurred');}}Sys.Application.add_load(function() { jQuery('#forum_ctl01_Pager_PageLabel').click(function() { openGotoPageForm('forum_ctl01_Pager_PageLabel'); }); });function addThanks(messageID){YAF.Controls.ThankYou.AddThanks(messageID, addThanksSuccess, CallFailed);}function addThanksSuccess(res){if (res.value != null) {var dvThanks=document.getElementById('dvThanks' + res.value.MessageID); dvThanks.innerHTML=res.value.Thanks;dvThanksInfo=document.getElementById('dvThanksInfo' + res.value.MessageID); dvThanksInfo.innerHTML=res.value.ThanksInfo;dvThankbox=document.getElementById('dvThankBox' + res.value.MessageID); dvThankbox.innerHTML='<a class="yaflittlebutton" href="javascript:removeThanks(' + res.value.MessageID + ');" onclick="this.blur();" title=' + res.value.Title + '><span>' + res.value.Text + '</span></a>';}}function removeThanks(messageID){YAF.Controls.ThankYou.RemoveThanks(messageID, removeThanksSuccess, CallFailed);}function removeThanksSuccess(res){if (res.value != null) {var dvThanks=document.getElementById('dvThanks' + res.value.MessageID); dvThanks.innerHTML=res.value.Thanks;dvThanksInfo=document.getElementById('dvThanksInfo' + res.value.MessageID); dvThanksInfo.innerHTML=res.value.ThanksInfo;dvThankbox=document.getElementById('dvThankBox' + res.value.MessageID); dvThankbox.innerHTML='<a class="yaflittlebutton" href="javascript:addThanks(' + res.value.MessageID + ');" onclick="this.blur();" title=' + res.value.Title + '><span>' + res.value.Text + '</span></a>';}}Sys.Application.add_load(function() { jQuery('#forum_ctl01_PagerBottom_PageLabel').click(function() { openGotoPageForm('forum_ctl01_PagerBottom_PageLabel'); }); });Sys.Application.add_load(forum_YafForumPageErrorPopup1_LoadScript);function forum_YafForumPageErrorPopup1_LoadScript(){$("#forum_YafForumPageErrorPopup1").dialog({autoOpen:false,dialogClass:'',title:'Notification',modal:true,resizable:false,stack:true,width:'400px',buttons:{'OK':function(){jQuery(this).dialog('close');}}});Sys.Application.remove_load(forum_YafForumPageErrorPopup1_LoadScript);}Sys.Application.initialize();
//]]>
</script>

Enjoy!

Running YAF 1.9.5.5 final at: http://thecarversite.com 

RichP714
  • RichP714
  • 100% (Exalted)
  • YAF All-the-Time Topic Starter
14 years ago
here's the characters from line 732 that apply to the addthanks button (returns added so it won't be a long string on one line)

looks like this is not getting called or not getting found? just returns 'YAF' is undefined in the javascript error dialog

{ jQuery('#forum_ctl01_Pager_PageLabel').click(function() { openGotoPageForm('forum_ctl01_Pager_PageLabel'); }); });

function addThanks(messageID){YAF.Controls.ThankYou.AddThanks(messageID, addThanksSuccess, CallFailed);}

function addThanksSuccess(res){if (res.value != null) {var dvThanks=document.getElementById('dvThanks' + res.value.MessageID);

dvThanks.innerHTML=res.value.Thanks;dvThanksInfo=document.getElementById('dvThanksInfo' + res.value.MessageID);

dvThanksInfo.innerHTML=res.value.ThanksInfo;dvThankbox=document.getElementById('dvThankBox' + res.value.MessageID); dvThankbox.innerHTML='' + res.value.Text + '';}}function removeThanks(messageID){YAF.Controls.ThankYou.RemoveThanks(messageID, removeThanksSuccess, CallFailed);}function removeThanksSuccess(res){if (res.value != null) {var dvThanks=document.getElementById('dvThanks' + res.value.MessageID); dvThanks.innerHTML=res.value.Thanks;dvThanksInfo=document.getElementById('dvThanksInfo' + res.value.MessageID); dvThanksInfo.innerHTML=res.value.ThanksInfo;dvThankbox=document.getElementById('dvThankBox' + res.value.MessageID); dvThankbox.innerHTML='' + res.value.Text + '';}}Sys.Application.add_load(function() { jQuery('#forum_ctl01_PagerBottom_PageLabel').click(function() { openGotoPageForm('forum_ctl01_PagerBottom_PageLabel'); }); });Sys.Application.add_load(forum_YafForumPageErrorPopup1_LoadScript);function forum_YafForumPageErrorPopup1_LoadScript(){$("#forum_YafForumPageErrorPopup1").dialog({autoOpen:false,dialogClass:'',title:'Notification',modal:true,resizable:false,stack:true,width:'400px',buttons:{'OK':function(){jQuery(this).dialog('close');}}});Sys.Application.remove_load(forum_YafForumPageErrorPopup1_LoadScript);}Sys.Application.initialize();

//]]>


Enjoy!

Running YAF 1.9.5.5 final at: http://thecarversite.com 

RichP714
  • RichP714
  • 100% (Exalted)
  • YAF All-the-Time Topic Starter
14 years ago
I moved everything to root in case it was a subforum issue; whjat puzzles me is that everything else works except the thanks button and tag as favorite.

I also notice that when I get an error, the bottom of the error page says it's .net 2.....I though 1.9.4 was .NET 3.5?


Enjoy!

Running YAF 1.9.5.5 final at: http://thecarversite.com