Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Mandatory field and RSS UTF8
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Mandatory field and RSS UTF8

 Post Reply Post Reply
Author
raiciks View Drop Down
Newbie
Newbie
Avatar

Joined: 19 April 2006
Location: Latvia
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote raiciks Quote  Post ReplyReply Direct Link To This Post Topic: Mandatory field and RSS UTF8
    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

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
raiciks View Drop Down
Newbie
Newbie
Avatar

Joined: 19 April 2006
Location: Latvia
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote raiciks Quote  Post ReplyReply Direct Link To This Post Posted: 31 December 2008 at 1:39pm
Many, many thank's!
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.