Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Custom Feeds - Based on hits and time
Avatar
Kenn
Somerset, UK
Member
Free Members
sp_UserOfflineSmall Offline
Jul 8, 2014 - 9:43 am

Hi all,

I have been asked if I can create a feature to promote the customers most 'popular' topics.

If I can create an RSS feed I can then display this however they want.

Is there a way I can create a feed that sorts by hits within the last 30days?

eg.

Topic 1 - 12,000 hits - 3 days ago

Topic 2 - 10,000 hits - today

Topic 3 - 9,000 hits - 1 week ago

I obviously don't want to include the hits or dates, just an example of the order I want to achieve.

Thanks as usual for any help.

Kenn

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jul 8, 2014 - 12:22 pm

Creating an RSS feed is possible of course but does require php coding and MySQL queries... We do have a 'Hot Topics' template tag that might come close to what you are looking for - al least worth a look at before doing that I would have thought:

http://codex.simple-press.com/.....ot-topics/

andy-signature.png
YELLOW
SWORDFISH
Avatar
Kenn
Somerset, UK
Member
Free Members
sp_UserOfflineSmall Offline
Jul 8, 2014 - 12:33 pm

Hi thanks for the reply, I will take a look. I'm having issues again gaining access to the codex. You fixed it for me last time by resetting something?

"We’re sorry, but our records show that your subscription has expired or has been cancelled.
To re-gain access to the site you’ll need to re-subscribe."

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jul 8, 2014 - 12:38 pm

Please try now.

We are actually right in the middle of a project to solve this problem once and for all!

andy-signature.png
YELLOW
SWORDFISH
Avatar
Kenn
Somerset, UK
Member
Free Members
sp_UserOfflineSmall Offline
Jul 8, 2014 - 12:45 pm

Thank you, yes back in.

Avatar
Kenn
Somerset, UK
Member
Free Members
sp_UserOfflineSmall Offline
Jul 8, 2014 - 3:24 pm

Looking through the codex, this looks like exactly what I need. Thanks

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jul 8, 2014 - 3:43 pm

Excellent. Hope it is...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Kenn
Somerset, UK
Member
Free Members
sp_UserOfflineSmall Offline
Jul 8, 2014 - 3:51 pm

I would like to add this to the page if possible as opposed to the template, is there any way to add filters with the shortcode?

eg. code/ ([)sp_hot_topics('showCount=0&showForum=0&textHotness=Rating&limit=2')(]) /code

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jul 8, 2014 - 4:50 pm

Well - I believe all of the attributes that are available for the template tag are also available for the shortcode (sp_hot_topics).

I am not that familiar with shortcodes myself but is that how you usually pass the attributes?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Kenn
Somerset, UK
Member
Free Members
sp_UserOfflineSmall Offline
Jul 10, 2014 - 12:18 pm

Hello again,

I'm afraid attributes don't seem to work like that with shortcodes. As I can't put php code into widgets can you offer any advice how I would achieve hot topics with defined attributes in a widget?

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625