Resource icon

[RainDigitalDesign] User Activity (Users Viewed, Viewing Thread) 1.1.5

No permission to download
There's a bug, after migrating from vBulletin to XenForo 1.5, all of the threads that were posted in vBulletin are not working with your addon. It will always say zero members has viewed this topic.
The topic posted after XenForo migration will work fine
If you can't fix it, then a quick workaround could be to not display anything at all when zero member has viewed the topic, but i don't know how.

I used XenForo importer. Tried rebuilding thread cache too. Even after importing, when a member views a thread that was posted before the migration, his member name won't be added to the "member who viewed the thread" and the counter always stay stuck at zero
That's not a bug, that's normal I think. This add-on does not import the views from vb, as far as I know.
 
Last edited:
That's not a but, that's normal I think. This add-on does not import the views from vb, as far as I know.
Ok, but even the new views aren't counted in the old topics... That's not normal
 
What version did you upgrade from ? I was on 3.6.4 i think i was using a mod to display thread viewers, it wasnt built-in vBulletin.

Example, this thread was converted from VB and it always show 0 thread viewers even if logged in members did read the thread - https://www.libertaire.net/discussion/contre-laeroport-de-notre-dame-des-landes-44.9336/

This one was posted after XenForo conversion and is correctly displaying the list of members who has read the thread
https://www.libertaire.net/discussion/resistance-devient-libertaire-net-pourquoi.15083/

If the bug can't be fixed then i need a way to prevent displaying the "who read thread" box when the counter is stuck at zero...
 
I still have this problem :(
Jake from Xenforo checked my database and said
I just did some thorough checking of the view data and it looks fine as well. The XF views are all greater or equal to the vB views.
I don't understand why it's not being displayed on the website ?
 
I still have this problem :(
Jake from Xenforo checked my database and said

I don't understand why it's not being displayed on the website ?

Without looking myself the fact is this works like its predecessors off just the read marking data in Xenforo. The view count isn't connected to its operation. The thread read table however is. Xenforo does the marking this just displays that data. If its not there, then its not displayed. I remember when we switched to Xenforo to get the older threads marking I had to post then delete that post (if desired). The read marking data was never meant to be used for this but for recent threads it does the job.

The end game is one of these weekends I need to write a data writer for thread views and update the addon to use it. It will be more resource intensive. I mean technically I could extend the thread marking code in Xenforo and then eliminate the cleanup routine. But in the end when I extend this to other plugins like the RM and MG that will only be a partial savings.

Also for the guy with the UI.X issue. If i can have a peak one day I can fix that. Sooner or later I will pick up a Xenbase and UI.X theme so I can stay on top of it for my other projects.
 
if i give you admin access and access to the database, can you check what's wrong ?

If i post in an old thread that is stuck at "zero members viewed", it partially fix the issue and then it display "1 member viewed this thread". So it starts recording new views but still can't display the old views.
 
Most, if not all, threads posted before the add-on still wouldn't show anybody on the "users who have read".

The add on does not in anyway shape or form create this data. Reading Xenforo thread read marking data. Which is controlled by a couple of things. One of them is a date setting in the control panel. I have yet to make an active version of this. It's purely passive.
 
Most, if not all, threads posted before the add-on still wouldn't show anybody on the "users who have read".
Then maybe @rainmotorsports should consider adding a line of code to hide the "who viewed this thread" box when there are zero users who read the thread, due to the "bug"

It would avoid tens of thousands of threads with pages of replies to display "zero users read this thread" everywhere on my forums, like this: https://www.libertaire.net/discussion/le-probleme-de-la-surpopulation-humaine.9581/
2ecd539fb8f9705797dec06c05e6fd4a.png
 
UPDATE: It was actually somewhat designed to hide itself when there were no data of users who have read the thread. There was a "if hascontent" check in the template. But, it was kinda badly written, so the check would end up returning true regardless of whether there were any users who have read the thread or not. If you want a simple fix that would hide the Users Who Have Read block when it couldn't get any data, then edit RainDD_UA_ThreadReadContainer template, and replace the whole content with these:
HTML:
<xen:if is="{$RainDD_UA_ThreadReaderPermission}">
    <xen:if hascontent="true">
        <xen:require css="RainDD_UA_Thread.css" />
        <div id="uaThreadReadContainer" class="section secondaryContent">
            <h3>{xen:phrase RainDD_UA_ThreadReaderTitle, 'total={xen:number $RainDD_UA_ThreadReaderCount}'}</h3>

        <xen:if is="{$xenOptions.RainDD_UA_ThreadReadType} == 0">
            <ol class="listInline commaImplode">
        <xen:elseif is="{$xenOptions.RainDD_UA_ThreadReadType} == 1" />
            <ol class="listInline">
        </xen:if>

                <div class="uaCollapseThreadRead">
                    <div class="uaExpandThreadRead">
                        <xen:contentcheck>
                            <xen:if is="{$xenOptions.RainDD_UA_ThreadReadType} == 0">
                                <xen:foreach loop="$RainDD_UA_ThreadUsersReading" value="$user">
                                    <li><xen:username user="$user" rich="true" /></li>
                                </xen:foreach>
                            <xen:elseif is="{$xenOptions.RainDD_UA_ThreadReadType} == 1" />
                                <xen:foreach loop="$RainDD_UA_ThreadUsersReading" value="$user">
                                    <li><xen:avatar user="$user" size="s" img="true" title="{$user.username}"/></li>
                                </xen:foreach>
                            </xen:if>
                        </xen:contentcheck>
                    </div>
                </div>
           
            </ol>
        </div>
    </xen:if>
</xen:if>
 
Works pretty good. Admin/Staff can see members and guests count but users and guests why can't see guest count?

E.g. total: 200 (Member: 50, Guest: 0)

Admin/Staff can see guest count 150 but users see zero...
 
UPDATE: It was actually somewhat designed to hide itself when there were no data of users who have read the thread. There was a "if hascontent" check in the template. But, it was kinda badly written, so the check would end up returning true regardless of whether there were any users who have read the thread or not. If you want a simple fix that would hide the Users Who Have Read block when it couldn't get any data, then edit RainDD_UA_ThreadReadContainer template, and replace the whole content with these:
HTML:
<xen:if is="{$RainDD_UA_ThreadReaderPermission}">
    <xen:if hascontent="true">
        <xen:require css="RainDD_UA_Thread.css" />
        <div id="uaThreadReadContainer" class="section secondaryContent">
            <h3>{xen:phrase RainDD_UA_ThreadReaderTitle, 'total={xen:number $RainDD_UA_ThreadReaderCount}'}</h3>

        <xen:if is="{$xenOptions.RainDD_UA_ThreadReadType} == 0">
            <ol class="listInline commaImplode">
        <xen:elseif is="{$xenOptions.RainDD_UA_ThreadReadType} == 1" />
            <ol class="listInline">
        </xen:if>

                <div class="uaCollapseThreadRead">
                    <div class="uaExpandThreadRead">
                        <xen:contentcheck>
                            <xen:if is="{$xenOptions.RainDD_UA_ThreadReadType} == 0">
                                <xen:foreach loop="$RainDD_UA_ThreadUsersReading" value="$user">
                                    <li><xen:username user="$user" rich="true" /></li>
                                </xen:foreach>
                            <xen:elseif is="{$xenOptions.RainDD_UA_ThreadReadType} == 1" />
                                <xen:foreach loop="$RainDD_UA_ThreadUsersReading" value="$user">
                                    <li><xen:avatar user="$user" size="s" img="true" title="{$user.username}"/></li>
                                </xen:foreach>
                            </xen:if>
                        </xen:contentcheck>
                    </div>
                </div>
          
            </ol>
        </div>
    </xen:if>
</xen:if>

Awesome, seems to be working ! Thanks a lot !!
 
@Blast Strange. Did you do anything to your board before you notice that it's no longer working? Things are still working as expected on my board.
 
Check your Template Modifications. See whether all template modifications for [RainDD] User Activity add-on are being applied correctly (look at the green, grey and red numbers).
 

Similar threads

Back
Top Bottom