Etomite Community Forums: Authenticate_visitor - Etomite Community Forums

Jump to content

Read Me

This forum is posted in automatically when a snippet is added to the library, or updated. Please use the snippet topic to discuss that snippet.
  • (5 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Authenticate_visitor

#1 User is offline   Ralph 

  • Etomite Administrator
  • Group: Admin
  • Posts: 6,418
  • Joined: 01-July 04
  • Gender:Male
  • Location:Jamestown, NY USA
  • Interests:Computers, Camping, Hiking, Aviation

Posted 24 April 2006 - 04:42 PM

Snippet name: authenticate_visitor
Author: Ralph (rad14701)
Version: 1.1 (Final - Modified)
More info: View this snippet
Description:
Provides visitor/user login capabilities on a website front end, including optional CAPTCHA code security. This snippet will only work with Etomite Prelude Final or newer releases. Creates a login and optional logout prompt. The snippet also makes use of Tigra Javascript Forms Validation and the newly developed form_class.

Attached File(s)



#2 User is offline   PaulD 

  • Likes Etomite Forums!
  • PipPip
  • Group: Member
  • Posts: 333
  • Joined: 06-February 06
  • Gender:Male
  • Location:Lutterworth, Leicestershire

Posted 24 April 2006 - 06:10 PM

Thanks Ralph, I have been waiting eagerly for this to be released.

I also have a good reason to upgrade my own site to prelude final now.

Thanks again,

Paul

#3 User is offline   diazulu 

  • Etomite Forum Newbie
  • Group: Member
  • Posts: 4
  • Joined: 22-July 05

Posted 04 May 2006 - 04:40 AM

Hi,

I have one problem with the snipet

When I login all works ok, but when I not login, I have an error in the page:

Line:82
Char:65
Error: Expected identifier, string or number

and this line is:

'frm_username':{'l':'Username:', 'r':'1', 't':'username_lbl', },

Thank you if you can help me

#4 User is offline   Ralph 

  • Etomite Administrator
  • Group: Admin
  • Posts: 6,418
  • Joined: 01-July 04
  • Gender:Male
  • Location:Jamestown, NY USA
  • Interests:Computers, Camping, Hiking, Aviation

Posted 04 May 2006 - 02:41 PM

diazulu, on May 4 2006, 01:40 AM, said:

Hi,

I have one problem with the snipet

When I login all works ok, but when I not login, I have an error in the page:

Line:82
Char:65
Error: Expected identifier, string or number

and this line is:

  'frm_username':{'l':'Username:', 'r':'1', 't':'username_lbl', },

Thank you if you can help me

I think you have either modified the snippet or there is something missing as the line in question farther down in the actual snippet than you have suggested, down around line 135, and there is more to that line than you have indicated... The snippet will work as posted in Etomite Prelude Final only...

Upon further investigation it appears that this line of code is actually in the form_class.php file which leads me to believe that you have removed something that the call to the form class needs...

#5 User is offline   diazulu 

  • Etomite Forum Newbie
  • Group: Member
  • Posts: 4
  • Joined: 22-July 05

Posted 04 May 2006 - 06:04 PM

I not modify anything, and I use the Etomite Prelude Final version.

Only delete Visitor Member line.

Thank you

#6 User is offline   DeanC 

  • Etomite Administrator
  • Group: Admin
  • Posts: 4,722
  • Joined: 08-June 04
  • Gender:Male
  • Location:United Kingdom

Posted 04 May 2006 - 07:40 PM

ok, so put that back in and see if it works :lol:

#7 User is offline   diazulu 

  • Etomite Forum Newbie
  • Group: Member
  • Posts: 4
  • Joined: 22-July 05

Posted 10 May 2006 - 02:33 AM

Not working, still the same error

#8 User is offline   Ralph 

  • Etomite Administrator
  • Group: Admin
  • Posts: 6,418
  • Joined: 01-July 04
  • Gender:Male
  • Location:Jamestown, NY USA
  • Interests:Computers, Camping, Hiking, Aviation

Posted 10 May 2006 - 03:28 AM

diazulu, on May 9 2006, 11:33 PM, said:

Not working, still the same error

<generic_request>

Please supply us with additional information so we can better assist you in resolving this issue... The following information, complete with version/release will be of great help... If the issue is browser-specific also include browsers tested and the results of each...

Server Operating System
Server Software
PHP version
MySQL

</generic_request>

#9 User is offline   DeanC 

  • Etomite Administrator
  • Group: Admin
  • Posts: 4,722
  • Joined: 08-June 04
  • Gender:Male
  • Location:United Kingdom

Posted 10 May 2006 - 09:43 AM

Ok, delete the reference to the snippet in your pages, then clear the etomite site cache.

Then see if your error is gone, and then add the snippet call again, but place it between [! and !] instead of [[ and ]]

#10 User is offline   petrbok 

  • Etomite Forum Newbie
  • Group: Member
  • Posts: 2
  • Joined: 22-May 06

Posted 22 May 2006 - 01:21 PM

This problem appears by MSIE only. When I remove the red highlighted commas (see code bellowe) it works OK without error messages in MSIE. I am sorry but I am not able to correct form_class.php by my own.


<script type='text/javascript' src='./manager/media/script/validator.js'></script>
<script type="text/javascript">
<!--
var a_fields={
'frm_username':{'l':'Username:', 'r':'1', 't':'username_lbl', },
'frm_password':{'l':'Password:', 'r':'1', 't':'password_lbl', },
},
o_config = { 'to_disable' : ['Submit', 'Reset'], 'alert' : 1 }
var v = new validator('authenticate_visitor', a_fields, o_config);
//-->
</script>

#11 User is offline   Ralph 

  • Etomite Administrator
  • Group: Admin
  • Posts: 6,418
  • Joined: 01-July 04
  • Gender:Male
  • Location:Jamestown, NY USA
  • Interests:Computers, Camping, Hiking, Aviation

Posted 22 May 2006 - 01:25 PM

View Postpetrbok, on May 22 2006, 09:21 AM, said:

This problem appears by MSIE only. When I remove the red highlighted commas (see code bellowe) it works OK without error messages in MSIE. I am sorry but I am not able to correct form_class.php by my own.
<script type='text/javascript' src='./manager/media/script/validator.js'></script>
<script type="text/javascript">
<!--
var a_fields={
'frm_username':{'l':'Username:', 'r':'1', 't':'username_lbl', },
'frm_password':{'l':'Password:', 'r':'1', 't':'password_lbl', },
},
o_config = { 'to_disable' : ['Submit', 'Reset'], 'alert' : 1 }
var v = new validator('authenticate_visitor', a_fields, o_config);
//-->
</script>

I am aware of this problem and had started working on the fix for it the end of last week... I get the same nagging error in IE and will have a solution posted here soon... :eto:

#12 User is offline   Ralph 

  • Etomite Administrator
  • Group: Admin
  • Posts: 6,418
  • Joined: 01-July 04
  • Gender:Male
  • Location:Jamestown, NY USA
  • Interests:Computers, Camping, Hiking, Aviation

Posted 22 May 2006 - 03:28 PM

<<< FIX >>>
The attached modified copy of manager/includes/form_class.php should resolve the errors reported... It should also address an issue with XHTML validation... :eto:

Attached File(s)



#13 User is offline   espersen 

  • Etomite Forum Fan
  • Pip
  • Group: Member
  • Posts: 144
  • Joined: 28-September 04
  • Gender:Male
  • Location:Aarhus, Denmark

Posted 23 May 2006 - 07:42 AM

hhuhh - is it included in the recent Final-version to download ?

#14 User is offline   DeanC 

  • Etomite Administrator
  • Group: Admin
  • Posts: 4,722
  • Joined: 08-June 04
  • Gender:Male
  • Location:United Kingdom

Posted 23 May 2006 - 08:58 AM

No - the download files wont be updated, which is why there is a pinned announcement in the main forum....

#15 User is offline   vw53a 

  • Likes Etomite Forums!
  • PipPip
  • Group: Member
  • Posts: 396
  • Joined: 16-January 05
  • Gender:Male
  • Location:Coevorden, NL
  • Interests:Cars, Computers and everything else technical and/or well designed.

Posted 23 May 2006 - 10:27 AM

Hmm, I would have put the actual download in the announcement section or in the bug-section (or in an earlier created special section with fixes as used during theRC/RTM stage), and then posted here in this topic a link to that download. Now fixes will get scattered all over the place.

Share this topic:


  • (5 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users