What Do You Need In The Xf2 Xengallery Version? Vote for your choices here: http://www.sonnb.com/threads/what-do-you-need-in-the-xf2-xengallery-version.1539/

Help Removing "total Videos" From Forum Stats Widget?

Discussion in 'XenGallery - Video Upload' started by zoldos, May 7, 2020.

  1. zoldos

    zoldos Authorized Member Authorized

    Hi @sonnb , I recently disabled video uploads on my XF 1.5 forum. However, I'm still seeing the "Total Videos: 1234" in my forum stats widget. How can I remove this? Thanks!
     
  2. sonnb

    sonnb Administrator Staff Member

    Hi,

    I afraid that you have to either disabled all stats or modify by yourself. Please look into the Template Modification which has 'extra_statistic_forum_list' key.
     
    zoldos likes this.
  3. zoldos

    zoldos Authorized Member Authorized

    Got it. Thanks very much! :)
     
  4. zoldos

    zoldos Authorized Member Authorized

    I'd like to reverse this change, but it looks like I deleted the extra code instead of commenting it out. Can you please show me how to re-add it? And there's no way to display total pics but NOT videos? Thanks!
     
  5. sonnb

    sonnb Administrator Staff Member

    How about compare with the base template (XML) in the source code ;)
     
    zoldos likes this.
  6. zoldos

    zoldos Authorized Member Authorized

    Got it. Thanks friend! :)
     
  7. sonnb

    sonnb Administrator Staff Member

    You are welcome.
     
  8. zoldos

    zoldos Authorized Member Authorized

    One more thing, what is the exact template and/or source file that generates "Total Videos:" and the actual number of videos? I've already applied some styling to remove the phrase "Total Videos:" from the widget (videos are disabled, but it still shows the number of the ones I haven't deleted), so I'd like to remove the number shown as well instead of manually deleting 2751 videos.

    Thanks!
     
  9. sonnb

    sonnb Administrator Staff Member

    This one. The number comes from DB in xf_user table.
     
    zoldos likes this.
  10. zoldos

    zoldos Authorized Member Authorized

    Okay, thanks! Is it safe to simply remove this row from the DB? I've already disabled and uninstalled the video plugin (it works, just running out of space on my server :eek: ).
     
  11. zoldos

    zoldos Authorized Member Authorized

    Okay I completely removed the video count column from my database. It's still showing the total number of videos in the forum stats. Any ideas? :)
     
  12. sonnb

    sonnb Administrator Staff Member

    You should disable the following template modification:
    Dont remove the column from db, it will make the addon stop working in some cases.
     
  13. zoldos

    zoldos Authorized Member Authorized

    Okay, I restored the DB. But I don't see any template, phrase, or template modification with that name. :(
     
  14. sonnb

    sonnb Administrator Staff Member

    This one

    upload_2020-7-18_17-46-0.png
     
    zoldos likes this.
  15. zoldos

    zoldos Authorized Member Authorized

Share This Page