 |    |  |
 | |  |
 | |  |
 | |  |
 | |  |
 |
|
|
| Quotes not showing, no way to edit Draft (United States) |
|
|
I am using Quotes 1.0.1 on DNN 4.51. Not having used this module before I am not sure when this problem crept in, but I notice the same thing on your Quotes demo page.
I can create the Quotes in Draft mode, but I can never get back to edit it. Also, when I create approved Quotes they never display in this modules list.
Any ideas?
Thanks
Rob |
|
|
|
 |  |
|
|
| Re: Quotes not showing, no way to edit Draft (N/A) |
|
|
Hi Rob,
I noticed this problem with DNN 4.5.1 and I have not yet had time to look at it. I am investigating now and will release a version that will work with DNN4.5.1 shortly.
Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players
 |
|
|
|
 |  |
|
|
| Re: Quotes not showing, no way to edit Draft (N/A) |
|
|
Ok, I have found the problem - it is the same problem that occured in Events with the introduction of the Portal column in the core Lists table.
I am working on a fix now... should be out in the next hour- just a stored proc. change. Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players
 |
|
|
|
 |  |
|
|
| Re: Quotes not showing, no way to edit Draft (N/A) |
|
|
Ok - version 1.0.2 has now been released for DNN 4.5.x+ |
|
|
|
 |  |
|
|
| Re: Quotes not showing, no way to edit Draft (United States) |
|
|
Wow, thanks for the quick fix! I'm not sure if this is intentional or not, but the module appears to be dependent on having UserProfiles installed. I didn't yet on the site I was working on and got the following error... Installing UserProfiles solve the problem
Thanks again for the VERY quick fix!
ModuleId: 842
ModuleDefId: 236
FriendlyName: Quote
ModuleControlSource: DesktopModules/Smart-Thinker - Quotes/Quote.ascx
AssemblyVersion: 04.05.01
PortalID: 1
PortalName:
UserID: 5
UserName:
ActiveTabID: 255
ActiveTabName: Rollout
RawURL: /Administration/Rollout/tabid/255/ctl/ViewSingle/mid/842/ID/1/Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://www.beartoothhog.com/Administration/Rollout/tabid/255/ctl/List/mid/842/Default.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; .NET CLR 1.1.4322)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: a07dd55a-01be-4398-8e36-ac71de3d890d
InnerException: Could not load file or assembly 'SmartThinker.DNN.Modules.UserProfile, Version=1.0.2.38381, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: SmartThinker.DNN.Modules.Quotes.Quote.GetNextQuote
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Could not load file or assembly 'SmartThinker.DNN.Modules.UserProfile, Version=1.0.2.38381, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. ---> System.IO.FileNotFoundException: Could not load file or assembly 'SmartThinker.DNN.Modules.UserProfile, Version=1.0.2.38381, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. File name: 'SmartThinker.DNN.Modules.UserProfile, Version=1.0.2.38381, Culture=neutral, PublicKeyToken=null' at SmartThinker.DNN.Modules.Quotes.Quote.GetNextQuote(Int32 quoteID) at SmartThinker.DNN.Modules.Quotes.Quote.Page_Load(Object sender, EventArgs e) WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. --- End of inner exception stack trace ---
|
|
|
|
 |  |
|
|
| Re: Quotes not showing, no way to edit Draft (N/A) |
|
|
Ah yes, I was worried about this - basically this module version is almost 2 years old - a lot has changed since then and I noticed it had the UP .dlls in the .zip file - this would overwrite the latest UP .dlls with the 2 year old ones (the DNN core installer is very stupid and does not realise that they are newer!) So Itook these out, and thought I had removed all the references, and must have tested it on a machine with the UP installed.
For a quick fix, email me on rod * smart-thinker.com and I will send you the 2 .dlls which you can put in your bin - this should temp. fix it until I decide on the best course of action (or just install the UP module (you dont have to use it)).
Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players
 |
|
|
|
 |  |
|
|
| Re: Quotes not showing, no way to edit Draft (United States) |
|
|
I was going to install UP anyway so all is good.
Thanks! |
|
|
|
 |  |
|
|
| Re: Quotes not showing, no way to edit Draft (N/A) |
|
|
Hi,
After thinking about this problem, I have decided that it will be easier and safer to not include the .dlls in the .zip file - ie. you will need to have the Smart-Thinker UserProfile module installed (even if you do not use it).
My reasoning was that if someone installed the Quotes module after a newer version of the UserProfile module it would cause the module to cease working, whereas in this scenario the worst case is that the Quotes module will not work immediately after install (and it's easy to fix). I'll pin this to help others know that the solution is to have the UserProfile module installed too.
In the next major version I will fix this so it's not a prob...
Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players
 |
|
|
|
 |  |
|
|
| Re: Quotes not showing, no way to edit Draft (Poland) |
|
|
I am also having some similar problems getting Quotes to run as expected.
I am using Quotes 1.0.2 on DNN 4.52 and the module shows with any error messages, allows me to add quotes (testimonials), however, it is showing as 'no quotes' when I have them set as testimonials (or quotes) and the display set also to this category. They are set as active & approved... but now I have 3 of them (the same) sitting in there and unable to edit or delete these... or have the module display them unless I choose to show all items.
Is there a way to clear this, and have them displaying?
|
|
|
|
 |  |
|
|
| Re: Quotes not showing, no way to edit Draft (N/A) |
|
|
Hello David,
- Are you using the Smart-Thinker UserProfile module on this portal?
- Are there any error messages in your Event Viewer when you view a quote?
- Are you using Censorship or have you turned this off?
- What retrieval method areyou using? (Random, etc.)
Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players
 |
|
|
|
 |  |
|
|
| Re: Quotes not showing, no way to edit Draft (Poland) |
|
|
Hi Rod
I am using the UserProfile (& User Groups) on the Portal.
I have not seen any error message in the Event Viewer. I take it the viewer is simply the module complainer where it is saying "No Quotes - Nobody (Submitted By)"? When I go to view all items, it is showing me the 3 quotes, all the same that I had entered in my attempts to get it working for me.
I do have censorship turned off.
I have it set as randomly, was for Testimonials as this is what I would like, however, I have tried it with quotes and all showing (1 of the 3 I entered was set to Quote category).
I hope that helps a little.
Thanks
David |
|
|
|
 |  |
|
|
| Re: Quotes not showing, no way to edit Draft (N/A) |
|
|
Hi,
By Event Viewer I meant the Event Log under Site Settings - It is possible the module is throwing an error and hiding the details from the UI. Sorry, I did not understand - did it work when you set it to Quotes, or has it never shown anything? Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players
 |
|
|
|
 |  |
|
|
| Re: Quotes not showing, no way to edit Draft (Poland) |
|
|
Hi Rod
Thanks for bearing with me... Only been using DNN for 3 weeks now, new to me but been let down twice by 'web developers' this year so just doing it myself (straight in the deep end but keeping my head above water for the time being).
I can't seen any related errors in the Event Viewer and the module has never displayed anything. If I get a chance I may look at setting it up on a separate page so you can see what's happening, or not happening.
Thanks
David |
|
|
|
 |  |
|
|
| Re: Quotes not showing, no way to edit Draft (N/A) |
|
|
Hi David,
Sorry for the late reply - I have been on holiday - can you go to the Settings of the Quotes module and change it from Random to a selected quote? I want to try and get it working with a normal quote and then we can change it to do what you want.
Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players
 |
|
|
|
 |  |
|
|
| Re: Quotes not showing, no way to edit Draft (Poland) |
|
|
Hi Rod
Not sure why, but not getting notifications from here. I knew you were away but just checked back now.
I have just tried changing this to a selected quote, gave me those 3 that are in there & I updated it for one of those... but still it is displaying 'no quotes'. It is quite odd, so I have setup a test page so you can see what is happening. I just ask others not to screw around with it, only a test page but rather sort this problem, for myself and to get a solution so others don't experience it.
http://www.accountantscircle.co.uk/QuoteTestPage/tabid/452/Default.aspx
Please let me know if you need anything else, or any other information. Just wondering too... have you heard of this happening for anyone else?
Thanks
David |
|
|
|
 |  |
|
|
| Re: Quotes not showing, no way to edit Draft (N/A) |
|
|
Hi David,
No, I have not had this happen before really - I saw something similar but there was an error in the error log which narrowed it down quickly.
Is there any way you can give me admin rights for a few minutes on your portal? If not, no worries, but if so, please send details to rod at smart-thinker.com. I can see the problem but I need to try a few different configurations to try and work out what is going wrong.
Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players
 |
|
|
|
 |  |
|
|
| Re: Quotes not showing, no way to edit Draft (Poland) |
|
|
Hi Rod
That won't be a problem. I will see about sorting out a new admin account for you and email you those details.
Thanks
David |
|
|
|
 |  |
|
|
| Re: Quotes not showing, no way to edit Draft (N/A) |
|
|
Hi All,
David and I have narrowed down the problem to a missing ObjectQualifier in the GetNextQuote stored proc.
Here is the fix if you encounter this problem - you will need to run the SQL below (replace {databaseOwner}{objectQualifier}). I will release this in a minor update at some point.
if exists (select * from dbo.sysobjects where id = object_id(N'{databaseOwner}{objectQualifier}SmartThinker_QuoteGetQuote_C') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure {databaseOwner}{objectQualifier}SmartThinker_QuoteGetQuote_C
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE PROCEDURE {databaseOwner}{objectQualifier}SmartThinker_QuoteGetQuote_C
@QuoteID INT,
@CensorRatingID INT,
@RetrievalType INT,
@CategoryID INT
/*
Author: Rodney Joyce
Date created: 21/09/04
Purpose: Get a specific quote, or a random one if QuoteID = -1 (always within the Censorship though) from any of the users for all portals
Notes: Will check User table for ID and if it doesn't exist will use the Source. Also checks CensorRating is <= the passed in one (Pass in 99999 for all). Also checks ApprovalStatus to get Approved quotes only
Updates: RetrievalType is either 0 (Random) or 1 (Least Asked)
Copyright: Smart-Thinker 2005
*/
AS
IF @QuoteID = -1
BEGIN
IF @RetrievalType = -1
BEGIN
-- Get a Random Quote (must be active)
DECLARE @num_recs INT
DECLARE @rand_num INT
-- Create a temporary table with the primary key of the table to return and identity column to use for the random lookup
DECLARE @tabTempRandom TABLE(
RowNum INT IDENTITY(1, 1) PRIMARY KEY CLUSTERED,
TempQuoteID INT)
-- Fill temp table with primary key
INSERT INTO @tabTempRandom
SELECT Q.QuoteID
FROM {objectQualifier}SmartThinker_Quote Q
-- must be active and below the censorship level
WHERE QuoteStatusID = 1
AND ApprovalStatusID = 1
AND CensorRatingID <= @CensorRatingID
AND (Q.CategoryID = @CategoryID OR @CategoryID = -1)
-- Get the number of records in our temp table
SET @num_recs = @@ROWCOUNT
-- Select a random number between 1 and the number of records in our table
SET @rand_num = ROUND(((@num_recs - 1) * RAND() + 1), 0)
-- Select the record from the table, joined with the temp table
SELECT @QuoteID = [QuoteID]
FROM {objectQualifier}SmartThinker_Quote Q
INNER JOIN @tabTempRandom TR ON TR.TempQuoteID = Q.QuoteID
WHERE Q.QuoteID = TR.TempQuoteID AND TR.RowNum = @Rand_Num
END
ELSE
BEGIN
--Least Asked
SELECT TOP 1 @QuoteID = [QuoteID]
FROM {objectQualifier}SmartThinker_Quote Q
WHERE QuoteStatusID = 1
AND ApprovalStatusID = 1
AND Q.CensorRatingID <= @CensorRatingID
AND (Q.CategoryID = @CategoryID OR @CategoryID = -1)
ORDER BY ViewCounter
END
END
SELECT
[QuoteID],
Q.[PortalID],
[QuoteText],
[Context],
[SaidByUserID],
ISNULL(U.FirstName + ' ' + U.Lastname, Source) AS Source,
[InventedDate],
[LastShownDate],
[ViewCounter],
[ApprovalStatusID],
[QuoteStatusID],
Q.[CensorRatingID],
[CreatedDate],
[ChangedDate],
[CreatedByUserID],
[ChangedByUserID],
--custom
L1.Text AS CensorRatingName,
[CategoryID]
FROM {objectQualifier}SmartThinker_Quote Q
LEFT JOIN {objectQualifier}Users U ON U.UserID = SaidByUserID
LEFT JOIN {objectQualifier}Lists L1 ON L1.Value = Q.CensorRatingID AND L1.ListName = 'SmartThinker_Censorship'
WHERE Q.QuoteID = @QuoteID
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO
Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players
 |
|
|
|
 |  |
|
|
| Re: Quotes not showing, no way to edit Draft (Poland) |
|
|
LOL - "David and I..."
Well, maybe if you need someone to find a way break it I am your man! Otherwise, best putting it in Rod's hands.
Thanks heaps on that Rod. Wish the other things I currently have broken (think there are 3 left still to be fixed) could have been fixed as quickly and easily as you did with the ST Quotes Module! |
|
|
|
|  |
 | | | |