Print Page | Close Window

Mandatory field and RSS UTF8

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Modifications
Forum Description: Mod's and Add-on's for Web Wiz Forums.
URL: https://forums.webwiz.net/forum_posts.asp?TID=26758
Printed Date: 29 March 2026 at 7:40pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Mandatory field and RSS UTF8
Posted By: raiciks
Subject: Mandatory field and RSS UTF8
Date Posted: 30 December 2008 at 1:19pm
Hello!
I have questions:
1. How can I create MANDATORY FIELD status on existing field in registration?
2. RSS feeds doesn't support UTF8... Why?
3. In this script when user click on link the page opens in new window, but I need in the same window, what can i do?
 

<p style="text-align : face="Tahoma" : left; style="font-size: 9pt;color:#959595;">

<br />

<meta http-equiv="Content-Type" content="text/html; charset= utf-8">

<%

Dim strLastestPostsModForumPath

Dim intLastestPostsTotal

Dim intCharacters

Dim strLastestPostsModCon

Dim adoCon

Dim rsAll

Dim strSQL

Dim intLoopCounter

Dim strTID

Dim strSubject

Dim strPID

 

'The absolute path to the forum

strLastestPostsModForumPath = ""

 

'How many new topics to show

intLastestPostsTotal = 10

 

'How many characters to show from the Topic title?

intCharacters = 255

 

'Database connection

'Default connection - adjust to suit

strLastestPostsModCon = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & "F:\Database\mydatabase.mdb"

 

 

Set adoCon = Server.CreateObject("ADODB.Connection")

 

adoCon.Open strLastestPostsModCon

 

Set rsAll = Server.CreateObject("ADODB.Recordset")

 

strSQL = "SELECT TOP " & intLastestPostsTotal & " "

 

strSQL = strSQL & " Topic_ID, Subject, Last_thread_ID "

strSQL = strSQL & " FROM tblTopic "

strSQL = strSQL & "ORDER BY Last_Thread_ID DESC;"

 

'open the connection

rsAll.Open strSQL, adoCon

 

'if there are records put into an array then close the connection

If NOT rsAll.EOF Then strArrayAll = rsAll.getRows()

rsAll.Close

Set rsAll = Nothing

adoCon.Close

Set adoCon = Nothing

 

'Loop through the array of forum posts

For intLoopCounter = 0 TO UBound(strArrayAll, 2)

  'strArrayAll array lookup table

  '0 = Topic_ID

  '1 = Subject

  '2 = Last_thread_ID

  strTID = strArrayAll(0, intLoopCounter)

  strSubject = strArrayAll(1, intLoopCounter)

  strPID = strArrayAll(2, intLoopCounter)

 

 'if someone uses a single quote in the title like: Where's

 'the quote is stored as &#039; which is normally Ok unless the line gets truncated.

 'I had a l




Replies:
Posted By: WebWiz-Bruce
Date Posted: 30 December 2008 at 1:57pm
1. You need to edit the JavaScript to make fields mandatory in the register.asp file
2. RSS Feeds by default are UTF-8 unless you changed them in the includes/setup_option_inc.asp file
3. Remove the part target=_blank


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: raiciks
Date Posted: 31 December 2008 at 1:39pm
Many, many thank's!



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net