By Philippe on Wednesday, 03 March 2021
Posted in Technical Issues
Replies 3
Likes 0
Views 768
Votes 0
Hello,

It seems that the priority value is not taken into account in the EasySocial Ads Showcase module.

Because if for example I have two adverts.
One with high priority, the other with low priority.
And that in the module I have the parameters in attachment.

Surprisingly, it is always the same ad that appears in the module.
The most recent advert.


And there are no random ads.
The advertisement with the high priority should appear more often, than the advertisement with the low priority.

Thank you,
Philippe
Actually, it is the intended behavior as we do not have to provide any sorting right now, but we will see if we can improve this in the future.
·
Wednesday, 03 March 2021 19:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok thank you.

Yes so that the behavior is the same as in the Stream.
Can you add this in your issue tracker ?

Philippe
·
Wednesday, 03 March 2021 19:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes so that the behavior is the same as in the Stream.

Nope, we are using different methods to render the Ads in-stream on the user dashboard page.

For example, if you have 3 ads with the priority of low, medium, and high so the script will multiply the number of items by "x" into the pool of ads (where x is a number based on the priority).

It will then utilize the built-in PHP array_rand method that uses the Mersenne Twister algorithm, http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html to randomize and pick an item from the pool.

Ratio:

Highest = 4
High = 3
Medium = 2
Low = 1

But the Ads showcase module concept is different than if compare the ads in-stream, this showcase only shows a list of existing ads similar to displaying a list of group categories in the module.

We will consider adding this but I can't promise you that if we enough time to include this before we release the stable version of Easysocial 4 because we are working on the existing ticket reported by the tester for the beta version.
·
Thursday, 04 March 2021 11:30
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post