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: MOD Implementation
 Enhanced Search Mod - additional link req
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 28 February 2008 :  18:49:43  Show Profile
'Work Mule' came up with an excellent mod a while ago, to include an enhanced search form as a replacement for the original search form supplied with the basic snitz forum.
The Enhanced Search Mod link has a single file to download.
I was wondering if we could amend the inc_header.asp file to include an 'Advanced Search' link next to the original 'Search' link next to the FAQ.
Obviously it should be possible, if that is the case, could someone provide the necessary code for the change.
It would be greatly appreciated.
Thank you Andy

phy1729
Average Member

USA
589 Posts

Posted - 28 February 2008 :  19:01:20  Show Profile
line in inc_header.asp line 523
	if Request.QueryString("FORUM_ID") <> "" then Response.Write("?FORUM_ID=" & cLng(Request.QueryString("FORUM_ID")))
	Response.Write	"""" & dWStatus("Perform a search by keyword, date, and/or name...") & " tabindex=""-1""><acronym title=""Perform a search by keyword, date, and/or name..."">Search</acronym></a>" & vbNewline & _
			"          |" & vbNewline & _

add the red
	if Request.QueryString("FORUM_ID") <> "" then Response.Write("?FORUM_ID=" & cLng(Request.QueryString("FORUM_ID")))
	Response.Write	"""" & dWStatus("Perform a search by keyword, date, and/or name...") & " tabindex=""-1""><acronym title=""Perform a search by keyword, date, and/or name..."">Search</acronym></a>" & vbNewline & _
			"          |" & vbNewline & _
			"          <a href=""search_mod.asp"
	if Request.QueryString("FORUM_ID") <> "" then Response.Write("?FORUM_ID=" & cLng(Request.QueryString("FORUM_ID")))
	Response.Write	"""" & dWStatus("Perform an advanced search by keyword, date, and/or name...") & " tabindex=""-1""><acronym title=""Perform an advanced search by keyword, date, and/or name..."">Advanced Search</acronym></a>" & vbNewline & _
			"          |" & vbNewline & _

Edited by - phy1729 on 28 February 2008 20:21:20
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 28 February 2008 :  19:22:53  Show Profile  Visit AnonJr's Homepage
Just FYI, HuwR added a nifty hidden feature for the forums here - [scrollcode] tags. If you put your code in these tags it won't push the table out like that.

Its not a prominent feature because we don't want to give the impression that its a part of the base code.
Go to Top of Page

phy1729
Average Member

USA
589 Posts

Posted - 28 February 2008 :  20:22:20  Show Profile
Sorry Anon I usually do if the code is long in length but width is usually not a problem so I didn't notice it.
Go to Top of Page

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 28 February 2008 :  20:31:22  Show Profile
So quick, so precise and much appreciated
Thank you phy1729

rgds andy
Go to Top of Page

phy1729
Average Member

USA
589 Posts

Posted - 28 February 2008 :  20:42:05  Show Profile
You're Welcome.
Go to Top of Page

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 29 February 2008 :  11:09:01  Show Profile
As an additional query, when adding these extra links at the top of inc_header.asp, if there is some more links the list word wraps onto an extra line. Home | Profile | Register | Active Topics | Members | Search | FAQ
Is there a way of ensuring the 'Home |...' link can be moved across to the left, so the following links do not word-wrap (Just to tidy it up)
kindest regards
andy
Go to Top of Page

muzishun
Senior Member

United States
1079 Posts

Posted - 29 February 2008 :  11:23:31  Show Profile  Visit muzishun's Homepage
The problem with trying to force it on to one line is that when people are viewing your site at different screen resolutions, it could cause side scrollbars. Allowing the text to wrap as necessary keeps everything nice and tidy. That said, if you want to ensure there won't be any word wrapping, change all spaces in the menu text to &nbsp;. You may also look into expanding the size of the table cell(s) the menu resides in.

Bill Parrott
Senior Web Programmer, University of Kansas
Co-Owner and Code Monkey, Eternal Second Designs (www.eternalsecond.com)
Personal Website (www.chimericdream.com)
Go to Top of Page

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 29 February 2008 :  11:26:46  Show Profile
Thank you, I'll give it a try..
Go to Top of Page

PPSSWeb
Junior Member

312 Posts

Posted - 29 February 2008 :  12:58:33  Show Profile
You could also minimize the amount of links in that area, which might help.

What I did to keep both search pages available is include a link to the advanced search page at the bottom of the basic search page. I left the links in the header alone.

If you want to check this out.

Add the following to search.asp just before the WriteFooter on line #737:
Response.Write "<center><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><a href=""./search_advanced.asp"">Advanced Search</a></font></center><br>" & vbNewLine



Edited by - PPSSWeb on 29 February 2008 12:58:52
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.32 seconds. Powered By: Snitz Forums 2000 Version 3.4.07