View Issue Details

IDProjectCategoryView StatusLast Update
40Composrecommercepublic2017-01-15 17:39
ReporterChris Graham Assigned ToChris Graham  
PrioritynormalSeverityfeature 
Status resolvedResolutionfixed 
Summary40: Topic pinning per-day instead of absolute cost
DescriptionChange the topic pinning point-store item to be a per-day cost (like flagrant text is), rather than a one-off cost.

A CRON hook will need writing to make this work.
TagsRisk: Changes core website behaviour
Attach Tags
Time estimation (hours)2
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

Activities

Chris Graham

2013-10-04 11:10

administrator   ~1810

This is now deployed for you :).

I added the max days config option as requested.

You'll probably want to tune the per-day cost down, as it will currently be set at the old flat point rate.

Lhasadreams

2013-10-04 14:02

developer   ~1812

Many thanks for that Chris.
I changed the default to 7 days and kept the same cost.
I then as me went to buy a pinning and it reported that it was going to cost 180 and that I would only have 2 points left - I have many more points than that. It that a display or calcula
tion error ?

I only have my phone at the moment, so I thought that I would switch to a different user, I can enter another username at the bottom of the page but hitting return does nothing - I wonder it it is a iOS 7 and new safari issue. I went to try Chrome but that is not compatible with the Facebook login !!!

Cheers
Ade

Lhasadreams

2013-10-05 11:44

developer   ~1813

Hi Chris,

I am getting a user reporting a bail out - can you take a look please.

http://vwgolfmk1.org.uk/forum/index.php?page=topicview&id=chat%2Fgeneral-chat_3%2Fpinning-topics-for#post_1348556

Cheers
Ade

Chris Graham

2013-10-06 00:44

administrator   ~1814

Regarding that error, I think he put in a post ID instead of a topic ID.

I have not read your earlier post fully yet, but you mentioned a "default". There isn't a default days, there's a maximum days - as requested. Perhaps something is mislabelled, I will check.

Lhasadreams

2013-10-06 10:02

developer   ~1815

Ok, but should it really bail out ?

I have changed the text string to better reflect what is on offer - so that is fine now.

I have raised a separate defect for the iOS 7 one.

Cheers
Ade

Chris Graham

2013-10-06 11:52

administrator   ~1817

"Ok, but should it really bail out ?"

No, I agree. That was just a very quick reply at 2am after a day of restructuring around 150 code files ;).

Chris Graham

2013-10-06 12:08

administrator   ~1818

It will now give a missing resource error, if it can't find the topic.

Regarding the "default", I can see what you mean now when I look at the code again. The code picks a default which is the minimum between 7 and the "Maximum topic pinning days" option. So for example, if "Maximum topic pinning days" is 20, it would default to 7. If "Maximum topic pinning days" was 5, it would default to 5.
In other words, the default has an internal bias towards 7 (a week), but will lower itself down if "Maximum topic pinning days" is not that high.

Regarding you having many more points, perhaps it is a confusion between the two different ways we have of measuring points. We have a calculation for the most ever earned, which is where rank comes from. We also have a calculation of what is unspent, which is what the point-store would run from.

Issue History

Date Modified Username Field Change
2016-06-08 00:15 Chris Graham Tag Renamed Changes core website behaviour => Risk: Changes core website behaviour
2017-01-15 17:39 Chris Graham Category pointstore => ecommerce