Support Forum
That does work but there is no CSS styling for the output. If you wanted to match the look that you see in the forum pages you would need to load your SP theme's CSS style on the page the you use this on.
thanks for this code, its working fine.
can you also tell me where is the spListView.php file exist.
means in which folder i will find it.
i want to customize it to show the post updated date instead of text "3-days ago"
here you can see the screenshot what i am doing.
and just want to replace the post date with the text " days ago"
It is a template in whatever SP theme you are using. This in turn makes the call to the display function sp_ListLastPost() and you can change the arguments to that for the 'nicedate', 'date' and, time'. Using 'nicedate=0&date=1&time=1' will change it to display the full date and time of the post.
YELLOW
SWORDFISH
|
ie, as said in post #13, you add that arguments to that function, sp_ListLastPost()
Visit Cruise Talk Central and Mr Papa's World
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
);
Visit Cruise Talk Central and Mr Papa's World
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...
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)