Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / MVC version(v1.XX)
 Search Question
 New Topic  Reply to Topic
 Printer Friendly
Author  Topic Next Topic  

Etymon
Advanced Member

United States
2357 Posts

Posted - 13 September 2020 :  23:27:45  Show Profile  Reply with Quote
Hey Huw,

Do you have anything with the .NET version where a person can be directed straight to the search page with the Forum's name preselected?

The Classic version has it, but I don't know how to link to the .NET like that ... like this ... https://forum.snitz.com/classicforum/search.asp?FORUM_ID=25

Snitz'in from 2002 - 2020 & I'm STILL lov'in it! -> My Snitz MODs || PM Search | Search Terms | Update Category Counts

HuwR
Forum Admin

United Kingdom
20550 Posts

Posted - 15 September 2020 :  12:20:36  Show Profile  Visit HuwR's Homepage  Reply with Quote
no, but you can search a forums posts from the forum page itself you don't need to go to the search page, the search box in the right hand column of the forum page searches that specific forum.
I could add that ability, but might forget unless you post it in my todo forum

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

Etymon
Advanced Member

United States
2357 Posts

Posted - 15 September 2020 :  14:14:02  Show Profile  Reply with Quote
OK. Thanks Huw! I am trying to write a MOD for the users to search for help in the MVC forum from a specific forum. The MOD is for Classic ASP, but depending on which technology a person is more comfortable using, as in, the Snitz forum (forum.snitz.com/?/ in Classic or MVC, I want to give an option for both.

My MOD looks something like this for now:




Search for info at Snitz.com:

MODs W/Code Forum: Classic / .NET
MODs WO/Code Forum: Classic / .NET
MOD Help Forum: Classic / .NET




Go to Top of Page

Etymon
Advanced Member

United States
2357 Posts

Posted - 15 September 2020 :  14:24:54  Show Profile  Reply with Quote
I want these (but for the MVC):

https://forum.snitz.com/classicforum/search.asp?FORUM_ID=25

https://forum.snitz.com/classicforum/search.asp?FORUM_ID=25&Search=Avatar Mod for 3.4
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20550 Posts

Posted - 16 September 2020 :  07:48:45  Show Profile  Visit HuwR's Homepage  Reply with Quote
Not sure I follow, the two forums are the same database so searching doesn't know what classic or .net means it's just a search

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20550 Posts

Posted - 16 September 2020 :  14:48:23  Show Profile  Visit HuwR's Homepage  Reply with Quote
For what reason would you need/want to do that?

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20550 Posts

Posted - 16 September 2020 :  14:51:25  Show Profile  Visit HuwR's Homepage  Reply with Quote
You couldn't do what your example does any, that is not how .net routing works, it would still look very similar to the classic asp URL. Just not sure why you would need to do it? It would also require the search method changing from a POST to a GET

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

Etymon
Advanced Member

United States
2357 Posts

Posted - 16 September 2020 :  15:43:46  Show Profile  Reply with Quote
I'm thinking MVC could maybe do something like this:

https://forum.snitz.com/forum/search/25/Avatar Mod for 3.4


in comparison to Classic's:

https://forum.snitz.com/classicforum/search.asp?FORUM_ID=25&Search=Avatar Mod for 3.4

Snitz'in from 2002 - 2020 & I'm STILL lov'in it! -> My Snitz MODs || PM Search | Search Terms | Update Category Counts

Edited by - Etymon on 16 September 2020 15:44:47
Go to Top of Page

Etymon
Advanced Member

United States
2357 Posts

Posted - 16 September 2020 :  17:45:16  Show Profile  Reply with Quote
I'm making a "MODS Installed" mod where I am using the forum id and an installed mod's title to refer a person to the forum ids of 25 and 26 along with the title of the mod so that it prefills the Search input and pre-selects the appropriate forum.

Snitz'in from 2002 - 2020 & I'm STILL lov'in it! -> My Snitz MODs || PM Search | Search Terms | Update Category Counts
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20550 Posts

Posted - 18 September 2020 :  14:53:22  Show Profile  Visit HuwR's Homepage  Reply with Quote
It could be done, however the URL would look something like

Forum.snitz.com/forum/forum/search/26?terms=mod title&searchfor=phrase or something like that would have to work out what is required for the search form to work

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20550 Posts

Posted - 19 September 2020 :  12:29:12  Show Profile  Visit HuwR's Homepage  Reply with Quote
In the process of adding this for version 2, url will basically look like

https://forum.snitz.com/forum/Forum/Search/1?phrase=Avatar Mod for 3.4

I may be able to remove the second Forum, but that would require adding a Search controller to the mvc code which it currently does not have, the search functions are part of the Forum controller. I will see how much work it would be to change.

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20550 Posts

Posted - 19 September 2020 :  13:21:02  Show Profile  Visit HuwR's Homepage  Reply with Quote
Ok, managed to create a dummy controller that just redirects to the search page. So you will be able to use

https://forum.snitz.com/forum/Search/1/?phrase=Avatar Mod for 3.4


This will only work in version 2

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

Etymon
Advanced Member

United States
2357 Posts

Posted - 22 September 2020 :  08:51:45  Show Profile  Reply with Quote
Thanks, Huw!

Snitz'in from 2002 - 2020 & I'm STILL lov'in it! -> My Snitz MODs || PM Search | Search Terms | Update Category Counts
Go to Top of Page
   Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2019 Snitz™ Communications Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000 Version 3.4.07