Add the following code to your functions. Make sure your count settings in Settings > Post Views Counter include the Products post type.Ĥ. Edit this field group to be used only on the Products post type.ģ. (see attached field.png in the post below)Ģ. Make this field required, with Number validation, and make the default value 0. Add a custom number field called "Product View Count". Create a new custom field group for products. Then this custom field can be utilized by Views for sorting using the standard View editor.ġ. Therefore it is necessary to add some custom code that updates a separate custom field whenever the post view count is updated by the counter plugin. Unfortunately the view count generated by this plugin is not stored in the postmeta table in a way that Views can access directly. I would like to use this for the Product post type created by WooCommerce. There have been some changes to the forum software, and the default theme is maintained with each version change.Īs it is, I do not see anything that fits your description of the problem.Problem: I would like to use the post view count generated from a 3rd party plugin (dfactory's Post Views Counter) to sort a View by post popularity. This forum serves the community of FEBio and FEBio Studio users and developers. Especially if you're using a theme that has not been updated in a while. PostView Forums Users Forum Welcome to the FEBio Forum. That will usually give a clue as to the nature of the fault. One of the first questions an admin should ask himself is "does this problem occur using the MyBB default theme?" If it doesn't, then you can try to compare templates to see the difference between the two. And there are some elements in your pages that do not load. This is consistent across all of your site. The only odd thing that I do notice, and haven't searched for an answer to yet, is it takes 2 clicks to go back one page. When there was a thread with zero reply count, I looked and so no replies in the thread. I picked Destinyboy and looked at his profile and got post and thread results in the search window. Memberlist shows post count and thread counts that seem normal. I went and looked and see forums with thread counts and views that seem normal. Show a screen shot of where "virtually all of the posts are reading zero." It's not that I don't want to support mybb, it wasn't thought of it that way. It's unfair to ask for support if you don't want to support the free software. You have been told before to put back the mybb copyright ©️ link back on your website: I have seen the code to edit but don't know exactly where to locate it. (, 10:55 AM)sarisisop Wrote: (, 08:48 AM)obeyafriday Wrote: Virtually all the posts in my forum are reading zero, how can I fix it please? I have done that but it still not counting. Resets for Forum, Thread, User Posts, and User Threads. (, 10:41 AM)HLFadmin Wrote: AdminCP / Tools and Maintenance / Recount and Rebuild. I have rebuild and recount it all from tools and maintenance page, but it still not working. i need just one file called like advanced-forum-post-view.tpl - container for main post and comments. I have actually done the the steps, but it still remains zero. (, 10:05 AM)Laird Wrote: (, 08:48 AM)obeyafriday Wrote: Virtually all the posts in my forum are reading zero, how can I fix it please? If that checkbox is checked for all of your forums and your members' post counts are still showing as zero, then please let us know so we can help you further.ĭon't worry, I will do that now. Featured Post View All Episodes Art for the Heart will focus on my. The setting which you can access via the ACP for each forum rather than having to run that database query is located here:įorums & Posts » Forum Management » » Edit Forum Settings » Miscellaneous Options » Yes, posts in this forum should count towards user post counts Deloitte Consulting A forum for serious, playful, and radical thinking about art in. UPDATE `mybb_forums` SET `usepostcounts` = '1' Take through how to locate the code and Chang it to the proper value please. Post View is Virginia Military Institutes internal system used to process admissions applications, manage cadet billing, register for classes, and employee benefits information. (, 08:48 AM)obeyafriday Wrote: I have seen the code to edit but don't know exactly where to locate it. I'm not 100% sure what you mean by this, but in the context of the rest of your post, it seems that you are saying that the post counts of members of your forum are all showing as zero even when they've made at least one post. (, 08:48 AM)obeyafriday Wrote: Virtually all the posts in my forum are reading zero, how can I fix it please?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |