Support Forum

how to show post content with sp_RecentPostsTag()

21 Answers

New Answer

MP Mr Papa
Mr Papa
Member

ie, as said in post #13, you add that arguments to that function, sp_ListLastPost()

VT vikash tiwary
vikash tiwary
Member

ohhh ,yes it is working.

thanks,

can you tell me how can i list the most popular topics .

means the 5 most viewable topic.

MP Mr Papa
Mr Papa
Member

you have the template tags plugin, right?  the available tags are in there…  hot topics, based on our formula, is by sp_HotTopicsTag();

available options:

    $defs = array(‘tagId’        => ‘spHotTopicsTag’,
                  ‘tagClass’     => ‘spHotTopicsTag’,
                  ‘listClass’    => ‘spListItemTag’,
                  ‘textClass’    => ‘spHotTopicTextTag’,
                  ‘listTags’    => 1,
                  ‘forumIds’    => 0,
                  ‘limit’        => 5,
                  ‘days’        => 30,
                  ‘showForum’    => 1,
                  ‘textForum’    => __(‘posted in’, ‘sp-ttags’),
                  ‘showCount’    => 1,
                  ‘textCount’    => __(‘recent posts’, ‘sp-ttags’),
                  ‘showHotness’    => 1,
                  ‘textHotness’    => __(‘hotness’, ‘sp-ttags’),
                  ‘echo’        => 1
                  );

VT vikash tiwary
vikash tiwary
Member

yes, i have tamplate tags plugin installed.

and i also using this sp_HotTopicsTag() to show the hottest topic.

but now i want to show the list of topics according to their views count.

is the most viewed topics are the same as hot topics?

MP Mr Papa
Mr Papa
Member

no, we dont have any facility or tag for that kind of display… you will have to generate the database query yourself and display if you want it…

hot topics is more about what topics are current, trending or hot now vs all time…  its more keyed towards topics that are getting lots of posts now vs over all of history…

VT vikash tiwary
vikash tiwary
Member

ok, thanks. i will try to fetch these from database.