The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
vBulletin 5 Request - Allow Members to choose what sections they see in activity feed
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. |
#2
|
||||
|
||||
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. |
#3
|
|||
|
|||
Quote:
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? |
#4
|
|||
|
|||
http://stackoverflow.com/questions/2...box-is-clicked
http://stackoverflow.com/questions/2...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. Code:
{"date":{"from":"10000"},"channel":["27","28","29","10560","31807","30","10561","10562"],"sort":{"lastcontent":"desc"},"view":"topic","exclude_type":["vBForum_PrivateMessage"]} I'm definitely in way over my head here... lol. |
#5
|
|||
|
|||
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. |
2 благодарности(ей) от: | ||
jkotlowski, MarkFL |
#6
|
|||
|
|||
Quote:
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. That gets me in a better place than I was before, at least. Thanks. |
#7
|
||||
|
||||
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.
|
#8
|
|||
|
|||
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.
|
#9
|
||||
|
||||
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. |
#10
|
|||
|
|||
Quote:
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|