All Astronauts Posted July 26, 2017 Posted July 26, 2017 Who Viewed the Topic Track and display members that have viewed topics! Pop-up modal and widget options! This is the long-delayed enhanced update to Topic Viewed by Users. New stuff includes... Configurable number-per-page in the pop-up modal. Somewhat limited for now as this is going to get some upgrades in the near-term. Option to not display the pop-up modal button if you are using widgets instead. New widget display! Widget can display avatars, names, or group-formatted names! IPS style widgets (as formatted by your theme) or a "Spartan" option which is just a simple gray box. Avatars configurable to display at three standard IPS sizes: tiny, mini, and small. Configurable limit to the number of members that will display in the widgets. Viewers over the limit get summed up and appended as a count i.e. "and 29 more..." This is a standard IPS widget - stick it on the top, bottom or sidebar. Notes: This is a re-write of the original plugin. The database tables are different so that data will not be read or written to. Consider this an entirely separate plugin and you are starting from scratch. You should probably uninstall the other plugin as well. This is a vanilla cached widget. That means it respects the cache time you have set in the ACP under System - Settings - Advanced Configuration and will only change the display of who viewed based on that. Default is 5 minutes. On installation there will be no data for the widget to read until you get people viewing the topics from that point forward. Also, the initial addition of a widget to a page probably kicks off the cache timer on the widget. Give it a few minutes before the widgets begin to display data. When you move a widget around on the page, the data in the widget gets "lost". Once you save the widget position, just refresh the page afterwards and you'll be good to go again. All Astronauts is Flitterkill. I'm just moving my IPS stuff away from my active community accounts. Renewals: $5 to buy, $5 a year but really you can skip the renews in general. Punch the renew ticket after a year if there are IPS changes that require this to be updated, or I add new features, or you feel like buying me a beer. Large modal: Tighter modal: Works with 4.2 onward. demy123 1
Azoun Posted August 14, 2017 Posted August 14, 2017 I have just bought this product and could you tell me how I fix the button layout so that it looks like a button please: I know I need to change ipsButton_link to ipsButton_important but do not know where the code is located? Thanks for your help
All Astronauts Posted August 14, 2017 Author Posted August 14, 2017 I'll just add it as an option. Give me a bit, just woke up after 17 hours of driving. Azoun 1
Azoun Posted August 15, 2017 Posted August 15, 2017 15 hours ago, All Astronauts said: I'll just add it as an option. Give me a bit, just woke up after 17 hours of driving. Excellent news and look forward to hearing that it has been done
All Astronauts Posted August 15, 2017 Author Posted August 15, 2017 @Azoun Version 4 released. Adds option to change the CSS button class. Azoun 1
Azoun Posted August 16, 2017 Posted August 16, 2017 12 hours ago, All Astronauts said: @Azoun Version 4 released. Adds option to change the CSS button class. Awesome, many thanks!
All Astronauts Posted August 23, 2017 Author Posted August 23, 2017 Version 5 released. Added option to place button on top of comments, below comments, or both locations. If you have moderator powers you'll have to live with the stacked appearance. The html structure that contains the moderator action button is only generated if you have moderator privs, so I can't just add the button there as it would never show to anyone without those privs. If you don't have mod privs it will look just fine.
ArMaTeC Posted August 23, 2017 Posted August 23, 2017 (edited) only ever shows one viewer then when you clear the cache it only shows the newest person to view the topic cleared the cache again and it seams to work now Edited August 23, 2017 by ArMaTeC
TheSkyLounge.tv Posted September 1, 2017 Posted September 1, 2017 (edited) Having an issue where avatars displayed by this plugin are taking over my RSS->Facebook posts. The OG Image seems to be replaced with the first avatar in the plugin vs the first image in the thread. Help! I absolutely love this but social interaction decreased from people seeing my face instead of engaging images. I've tested this theory in full using the FB Sharing Debug tool: https://developers.facebook.com/tools/debug/sharing/?q=http%3A%2F%2Fwww.theskylounge.tv%2Ftopic%2F7034-hahn-air-ultimate-cockpit-movie-3-3-multicam-full-atc-to-d%C3%BCsseldorf-airclips-full-flight-series%2F BEFORE: PLUGIN DISABLED: Perhaps an option to move it after the thread, between first post and second post? Edited September 1, 2017 by TheSkyLounge.tv
All Astronauts Posted September 1, 2017 Author Posted September 1, 2017 You can put the button on the bottom but...gotta say, I'm puzzled on first glance - most of this is going to be a problem with however IPS is doing the Facebook stuff. I doubt moving the button will change anything. Let me poke the RSS stuff and see if anything shows up.
All Astronauts Posted September 1, 2017 Author Posted September 1, 2017 Walk me through what you are doing. Is this just a standard IPS forum RSS feed link you've stuck into Facebook? Is this the IPS API?
TheSkyLounge.tv Posted September 1, 2017 Posted September 1, 2017 Standard RSS Feed link into ITTT or in my case specifically Zapier. That facebook tool however basically parses any link you give it and tells you what image FB will use. In this case, with plugin enabled its avatar from "who viewed" and when disabled, it's first image of the post body.
Expeditiary Posted September 1, 2017 Posted September 1, 2017 (edited) Which is just so damned strange. There isn't any reason for it to do that just because of this plugin. On the page itself, there is just that button - and, you *must* click it before it loads any of the who viewed data - just viewing the topic that data is not there. So that leaves the underlying code hooks. One just says hey, if someone is viewing this topic write to a database field they are viewed this, the other is only called when you click the button to get that list of viewers. So damned odd... Let me play with this on my end, I doubt I need to Facebook it up as I can just look at the RSS feed directly and see what's up. If the image is not included (or is correct) in the RSS then this going to be something out of my hands - though it may be with the Zapier thing you have crafted. Going out for Greek food in a bit but I'll give this a look over when I get back. If you can, could you PM me the specific Zapier app (or custom code you are using there), and I may later need ACP access to debug this correctly (if this is solvable on my end) (Sorry, this is AA, doing other account stuff today) Edited September 1, 2017 by Expeditiary
All Astronauts Posted September 1, 2017 Author Posted September 1, 2017 See - it's me. TheSkyLounge.tv 1
TheSkyLounge.tv Posted September 1, 2017 Posted September 1, 2017 2 minutes ago, Expeditiary said: Which is just so damned strange. There isn't any reason for it to do that just because of this plugin. On the page itself, there is just that button - and, you *must* click it before it loads any of the who viewed data - just viewing the topic that data is not there. So that leaves the underlying code hooks. One just says hey, if someone is viewing this topic write to a database field they are viewed this, the other is only called when you click the button to get that list of viewers. So damned odd... Let me play with this on my end, I doubt I need to Facebook it up as I can just look at the RSS feed directly and see what's up. If the image is not included (or is correct) in the RSS then this going to be something out of my hands - though it may be with the Zapier thing you have crafted. Going out for Greek food in a bit but I'll give this a look over when I get back. If you can, could you PM me the specific Zapier app (or custom code you are using there), and I may later need ACP access to debug this correctly (if this is solvable on my end) (Sorry, this is AA, doing other account stuff today) Incorrect, you don't have to click a button at all to view the avatars, not if you have the widget enabled, they are just, there.
All Astronauts Posted September 1, 2017 Author Posted September 1, 2017 True, but if it is getting it from the widget somehow that just makes things even weirder...
TheSkyLounge.tv Posted September 1, 2017 Posted September 1, 2017 oh it totally is, tested in multiple threads, the latest viewer, is the avatar used on facebook as the post image. And fyi, happy to give any access needed or back-end info for other tools.
All Astronauts Posted September 1, 2017 Author Posted September 1, 2017 Where do you have the widget at - side bar or top/bottom of page? Also, the widget is using avatars and not names?
TheSkyLounge.tv Posted September 1, 2017 Posted September 1, 2017 Here is a URL that exists in the current RSS feed: http://www.theskylounge.tv/topic/7037-ai-aircraft-combat/ Here is how facebook posted it: At the facebook sharing debugger link, it showed the same image as above, until i disabled the plugin, and hit the "SCRAPE AGAIN" option. At which time it changed to this: https://developers.facebook.com/tools/debug/sharing/?q=http%3A%2F%2Fwww.theskylounge.tv%2Ftopic%2F7037-ai-aircraft-combat%2F -e 5 minutes ago, All Astronauts said: Where do you have the widget at - side bar or top/bottom of page? Also, the widget is using avatars and not names? top of the page, avatars not names.
All Astronauts Posted September 1, 2017 Author Posted September 1, 2017 (edited) Move the widget to the sidebar or the bottom. Now that you posted the above, which included the word "scrape"..., I'm 99% positive the problem is the scrape, not me. I'm signed up at your site so I'll see when you've done it. (also, if you have any control in excluding certain page elements from being scraped, you might be able to keep the widget up top) Edited September 1, 2017 by All Astronauts
TheSkyLounge.tv Posted September 2, 2017 Posted September 2, 2017 widget on side, rss no longer feeding avatar image as OG IMAGE, now correct to first image in post: 8 minutes ago, All Astronauts said: Move the widget to the sidebar or the bottom. Now that you posted the above, which included the word "scrape"..., I'm 99% positive the problem is the scrape, not me. I'm signed up at your site so I'll see when you've done it. (also, if you have any control in excluding certain page elements from being scraped, you might be able to keep the widget up top) no control, its web protocol lol.
All Astronauts Posted September 2, 2017 Author Posted September 2, 2017 (edited) Any widget up there with an image in it (like a Gallery feed) would have triggered this problem. I'll experiment with the widget up top and the IPS RSS but I'm pretty sure it's the scrape not going for the first image in the first Article element on the page (which would be the first post). If this is a recent problem it may be related to IPS mucking about with the metatag json stuff breaking the scraper in some way. Edited September 2, 2017 by All Astronauts
Bill Edwards Posted October 1, 2017 Posted October 1, 2017 I have a slight problem with this. If I enable the bottom button I get an error: Quote [[Template core/global/plugins/whoReadTheTopic does not exist. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]] I've tried reinstalling, running the support tool and waiting the obligatory 15 minutes 'cos I'm CiC It's not a big problem, using the top button it works fine and I'm more than happy with that. Thanks for another excellent plugin!
All Astronauts Posted October 1, 2017 Author Posted October 1, 2017 Patched. DL from Marketplace and upgrade existing plugin.
Bill Edwards Posted October 1, 2017 Posted October 1, 2017 8 minutes ago, All Astronauts said: Patched. DL from Marketplace and upgrade existing plugin. That fixed it. Many thanks - excellent service as always!!
Recommended Posts