View Full Version : vBulletin 5 Request - Allow Members to choose what sections they see in activity feed
jkotlowski
03-24-2016, 07:11 PM
http://t5forums.com/
On my site I have a JSON search that shows the latest topics with replies on the front page. What I would like is a drop down menu at the top of the page, perhaps on or close to the Navigation Bar that would allow individual members to modify the parameters of the search to include/exclude sections from the search.
http://www.t5forums.com/vs
The reason I'd like this feature is because my site has a part of it dedicated to fictional VS battles. Certain members are complaining about an abundance of certain types of threads and some are calling for the staff to completely limit or ban those particular topics. I figure that the best way around that would be to put those topics into their own sections then allow the members that don't want to see them click them off.
I may be willing to pay for this if someone can come up with the code. If you can do it but want payment then please PM me and we can discuss the request. But to be clear, I've been ripped off before by someone promising to do some work for my site. So I won't give any payment until I'm shown a working code on a third party demo site that you own.
Replicant
03-25-2016, 07:19 PM
There is a search filter that can be added to the search string
"channel":[19] which would specify only threads inside the forum with nodeid 19. Also, I believe it is an array, so you could actually use javascript to build the search string based on selections with check boxes or radio buttons, maybe even set a cookie to remember the selection. I don't have time to write the code anytime soon though.
This setting is also available in the sitebuilder widget editor in simple mode, if you are just wanting threads from http://www.t5forums.com/vs to show on that page, edit the search widget on that page.
jkotlowski
03-26-2016, 08:40 PM
There is a search filter that can be added to the search string
"channel":[19] which would specify only threads inside the forum with nodeid 19. Also, I believe it is an array, so you could actually use javascript to build the search string based on selections with check boxes or radio buttons, maybe even set a cookie to remember the selection. I don't have time to write the code anytime soon though.
This setting is also available in the sitebuilder widget editor in simple mode, if you are just wanting threads from http://www.t5forums.com/vs to show on that page, edit the search widget on that page.
I have it set up so that only threads from the VS appear on the pain page in VS, so I've got that figured out. It's the above that I'm not sure how to do. (I have absolutely no knowledge in any kind of coding)
Since you don't have time to actually write the code, do you maybe have a site reference that could point me somewhere I could (make a poor attempt) to learn how to do it on my own? Or maybe even just some pointers?
jkotlowski
03-28-2016, 05:55 PM
http://stackoverflow.com/questions/24829694/how-do-you-filter-json-based-on-which-checkbox-is-clicked
http://stackoverflow.com/questions/21058284/filter-array-using-checkboxes-with-angularjs
I've been looking at these and trying to make heads or tails out of it, but just can't. Been trying to play with various things on the JS Fiddle site they're linking to, but no luck there.
{"date":{"from":"10000"},"channel":["27","28","29","10560","31807","30","10561","10562"],"sort":{"lastcontent":"desc"},"view":"topic","exclude_type":["vBForum_PrivateMessage"]}
Is this CSS?
I'm definitely in way over my head here... lol.
The 2 links you posted are related to AngularJS, not quite what vBulletin uses.
The code you posted is JSON, which is simply said data that your browser or the server parses and then uses to to filter down settings.
Unfortunately I have no experience with vBulletin 5 so I can't help you out. As you can see vBulletin 5 development is pretty much dead so I don't expect anyone that can or will help you out with this besides Replicant/IB staff members. :(
jkotlowski
03-28-2016, 06:29 PM
The 2 links you posted are related to AngularJS, not quite what vBulletin uses.
The code you posted is JSON, which is simply said data that your browser or the server parses and then uses to to filter down settings.
Unfortunately I have no experience with vBulletin 5 so I can't help you out. As you can see vBulletin 5 development is pretty much dead so I don't expect anyone that can or will help you out with this besides Replicant/IB staff members. :(
I had a complete brain fart there. I should have known that I should have been looking at the page source for the search code. Even I'm not this dumb. Gonna blame it on the fact I've been awake for nearly 24 hours now. :p
That gets me in a better place than I was before, at least. Thanks. :)
Replicant
03-28-2016, 08:48 PM
[url]
{"date":{"from":"10000"},"channel":["27","28","29","10560","31807","30","10561","10562"],"sort":{"lastcontent":"desc"},"view":"topic","exclude_type":["vBForum_PrivateMessage"]}
This is the search string that gets entered in the search module advanced edit in Site Builder. As far as settings based on check boxes clicked, that will take more in depth work to accomplish.
jkotlowski
03-28-2016, 08:54 PM
This is the search string that gets entered in the search module advanced edit in Site Builder. As far as settings based on check boxes clicked, that will take more in depth work to accomplish.
Do you happen to know any references I could use to try to figure this out? Apparently the things I was looking at before won't even work with vBulletin. I'm honestly at a complete loss on where to even start.
Replicant
03-28-2016, 11:52 PM
To modify search strings on a per user basis based on their preferences that are stored preferably in a table, there will need to be
A form with the current categories or forums dynamically built to accommodate future categories/forums that will upload the users prefs to the server.
A frontend controller to receive the data and call the insert api to store it in the table.
There would need to be a modification of the template code to query that table based on current userid and set the search query to the users prefs.
There would need to be a product created with the api to do the data inserts and template queries.
This is what I can see would be the least I can think of to get this to work.
It actually seems like it would be a useful mod, I wish I had more time to look at it.
jkotlowski
03-29-2016, 12:21 AM
To modify search strings on a per user basis based on their preferences that are stored preferably in a table, there will need to be
A form with the current categories or forums dynamically built to accommodate future categories/forums that will upload the users prefs to the server.
A frontend controller to receive the data and call the insert api to store it in the table.
There would need to be a modification of the template code to query that table based on current userid and set the search query to the users prefs.
There would need to be a product created with the api to do the data inserts and template queries.
This is what I can see would be the least I can think of to get this to work.
That's a whole lot more than I was expecting. I seriously doubt I could design a product. I barely know my way around basic HTML and between work, college, and my kid I don't think I'll have any spare time to even try to learn that much. The number of people actively developing for vBulletin 5 seems abysmally low too. I kind of feel like it might even be cheaper to just purchase another forum software and use the conversion tools to set the site to VB4. =/
It actually seems like it would be a useful mod, I wish I had more time to look at it.
The people on my site came from another site where it was in use and it's one of the biggest requests they have. Allowing the users to filter out topics from sections that do not interest them is a pretty great thing to have.
Replicant
03-29-2016, 01:35 AM
I would stay with v5. v4 is still viable as well as v3 but they will eventually be obsolete since the core product isn't under any further development. I reverted my site to v4 just to see the reaction from my users and it was actually pretty funny. They wanted the "old forum" back. VB5 isn't perfect and is lacking in the advanced features dept, but overall is a solid "modern" foundation to build the community on.
Hopefully within the next month or two, my house remodel will be finished and I will have some quality coding time.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.