No announcement yet.

No information on "Latest activity" tab until it refreshes

  • Filter
  • Time
  • Show
Clear All
new posts

  • No information on "Latest activity" tab until it refreshes

    Hello everyone. I'm sorry for my bad English, but I will try to retell you my problem clearly.
    I created some custom design for "Latest activity" tab, but I ran into a problem, that "Latest_activity" block is not correctly shows me this. The first click on "Latest activity" tab just shows me the message, that "There is no activities in that channel". But if I refresh my page, while I am on the "Latest activity" tab, than the block with latest activity will display.

    Can somebody say me, what did I do wrong? I think, that my problem in initialization by javascript, but I can't find function that responsible for that.

    My code in "widget_channeldisplay" that responsible for "latest activity tab":

    {vb:set token, '0'}
    <vb:if condition="$widgetConfig['default_tab'] == '#activity-stream-tab'">
    <vb:each from="nodes.results" value="node">
    <vb:if condition="$node['content']['nodeid'] != $node['content']['starter']">
    {vb:set conversation, {vb:raw node.content}}
    {vb:set riznicya, {vb:math {vb:raw token} - {vb:raw conversation.created}}}
    <vb:if condition="$riznicya > 86400 AND $token != 0"></ul></vb:if>
    <vb:if condition="$riznicya > 86400 OR $token == 0"><ul class="table conversation-list list-container stream-view activity-view h-clearfix ajax-order-newest-first"><li class="tr activity_header"><div class="td time"></div><div class="td lastpost"><span>{vb:date {vb:raw conversation.created}}</span></div><div class="td posts-count"><img src="images/css/chat.png"></div><div class="td votes-count"><img src="images/css/hand.png"></div></li></vb:if>
    {vb:set token, {vb:raw conversation.created}}
    {vb:template 'display_contenttype_conversationreply_Text_activity', conversation={vb:raw node.content}, reportActivity=1}
    I'm an Ukrainian developer, so I'm sorry for my bad English

  • #2
    Hello, everyone again)
    About my problem with "Latest activity" tab on the main page: I use your template for showing last activity, but I need to do some changes to it. When I change your template "widget_activitystream", I haven't seen any changes on the "Last activity" tab and when I try to get value from $nodes['results'], I just get NULL. So, can you say me how is your "latest activity" tab generate and works?

    Thank you in advance.
    I'm an Ukrainian developer, so I'm sorry for my bad English


    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.