Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - [MOD] Profile Fields
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[MOD] Profile Fields

 Post Reply Post Reply Page  <1 456
Author
EvoIX_mr2006 View Drop Down
Newbie
Newbie
Avatar

Joined: 19 January 2007
Location: United States
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote EvoIX_mr2006 Quote  Post ReplyReply Direct Link To This Post Posted: 28 January 2007 at 11:13pm
I installed this mod on WWF 8.05 and the only time it actually saves to the database is when the user edits their profile after they register.  If they register with the new profile field filled in, the only thing that occurs it that the input the user typed in is saved for the next user to read...any suggestions?
Back to Top
aks427 View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 06 December 2003
Location: United States
Status: Offline
Points: 276
Post Options Post Options   Thanks (0) Thanks(0)   Quote aks427 Quote  Post ReplyReply Direct Link To This Post Posted: 30 January 2007 at 6:31pm
Try using this code instead of the code in the ReadMe for register.asp Code Section #2.
 
  '******************************************
  '***   Create/Update Custom Fields ***
  '******************************************
   Dim rsCustomFields
   Dim rsPortal
   Set rsCustomFields = Server.CreateObject("ADODB.Recordset")
   Set rsPortal = Server.CreateObject("ADODB.Recordset")
   strSQL = "SELECT * FROM " & strDbTable & "ProfileFields"
   rsPortal.Open strSQL,adoCon
   
   if not rsPortal.EOF then
   do until rsPortal.EOF
    If strMode = "new" AND lngUserProfileID = 2 then
     strSQL = "SELECT" & strDBTop1 & " Author_ID FROM " & strDbTable & "Author ORDER BY Author_ID desc" & strDBLimit1
     rsCustomFields.Open strSQL,adoCon
     lngUserProfileID = rsCustomFields("Author_ID")
     rsCustomFields.Close
    End If
    If lngUserProfileID <> 2 then
     If Request.Form("Field" & rsPortal("Field_ID")) = "" then
      strSQL = "DELETE FROM " & strDbTable & "ProfileFieldData WHERE Field_ID = " & rsPortal("Field_ID") & " AND Author_ID = " & lngUserProfileID
      adoCon.Execute(strSQL)
     Else
      strSQL = "SELECT * FROM " & strDbTable & "ProfileFieldData WHERE Field_ID = " & rsPortal("Field_ID") & " AND Author_ID = " & lngUserProfileID
      rsCustomFields.Open strSQL,adoCon,3,3
 
      if rsCustomFields.EOF then
       rsCustomFields.AddNew
      end if

      rsCustomFields("Field_ID") = rsPortal("Field_ID")
      rsCustomFields("Author_ID") = lngUserProfileID
      If rsPortal("FieldType") = 3 then
       rsCustomFields("FieldData") = ", " & Request.Form("Field" & rsPortal("Field_ID")) & ","
      Else
       rsCustomFields("FieldData") = Request.Form("Field" & rsPortal("Field_ID"))
      End if
 
      rsCustomFields.Update
      rsCustomFields.Close
     End If
    End If
   rsPortal.MoveNext
   Loop
   end if
   rsPortal.Close
   
   
   If isObject(rsCustomFields) Then
    Set rsCustomFields = Nothing
   End If
   
   If isObject(rsPortal) Then
    Set rsPortal = Nothing
   End If
Back to Top
EvoIX_mr2006 View Drop Down
Newbie
Newbie
Avatar

Joined: 19 January 2007
Location: United States
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote EvoIX_mr2006 Quote  Post ReplyReply Direct Link To This Post Posted: 30 January 2007 at 10:07pm
that threw errors...
Back to Top
EvoIX_mr2006 View Drop Down
Newbie
Newbie
Avatar

Joined: 19 January 2007
Location: United States
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote EvoIX_mr2006 Quote  Post ReplyReply Direct Link To This Post Posted: 31 January 2007 at 12:26am
never mind, fixed, thanks!
Back to Top
chicken View Drop Down
Groupie
Groupie
Avatar

Joined: 22 October 2005
Location: United Kingdom
Status: Offline
Points: 78
Post Options Post Options   Thanks (0) Thanks(0)   Quote chicken Quote  Post ReplyReply Direct Link To This Post Posted: 01 February 2007 at 2:38pm
is there any way of having more then 7 fields
Back to Top
aks427 View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 06 December 2003
Location: United States
Status: Offline
Points: 276
Post Options Post Options   Thanks (0) Thanks(0)   Quote aks427 Quote  Post ReplyReply Direct Link To This Post Posted: 01 February 2007 at 3:24pm
Yes, edit the variable at the top of admin_profile_fields.asp
Back to Top
 Post Reply Post Reply Page  <1 456

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.