OWA Most Popular – version 1.2

OWA Most Popular has been updated.

OpenSource

Seperate function
It is possible to call the function directly in your php code (hint: templates), by using the following function:

owa_api_popular($max_owa_popular=10,$date_range_owa_popular="last_seven_days",$post_only_owa_popular=TRUE)

New algorithm
The widget will use weighted algorithm, if you would set the variable $style_owa_popular to “weighted”. The formula is pretty simple, being:

(Sort) Factor = number of visits / (date difference (in days) + 1)

Important note : This weighted algorithm is pretty (system) resource intensive, I would advise you to use some form of caching mechanism in combination with this option.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s