We're more than just a website...
Reptile Forums - HC Network
   ... we're a community.


Everything Above Disappears When You log In Or Register!

Reptile Forums - Registration Is Free
Registration is free - Sign Up Now

Caresheets    Articles    Reviews    Books Reptile Books - Literature  

Chat Notification

This is what our member has to say: Originally Posted by vegas&becca I just tried to get into chat because of all the talk about it, and was informed that my ...


»   Reptile Forums - The HC Network > Herp Center Info > Site Suggestions > General Suggestions
  »

Chat Notification



 
LinkBack Thread Tools
  #21  
Help move the meter 03-20-2008, 08:19 AM
Rich's Avatar
Rich
Technical Administrator
Offline
 
Join Date: Mar 2004
Location: Massachusetts
Posts: 5,488
Blog Entries: 10
Thanks: 16
Thanked 78 Times in 73 Posts
Images: 91
Re: Chat Notification

Quote:
Originally Posted by vegas&becca View Post
I just tried to get into chat because of all the talk about it, and was informed that my pw or username was invalid. So, I go ahead and put in a request for a new pw, everything goes through, I sign into HC itself and then try the chat again, and I still get the invalid user/pw pop-up...
The problem you are experiencing Becca has to do with the ampersand in your username. (The & symbol.)

The & symbol is an identifier in code. In PHP, it tells the code that a variable must exist to keep going. Also in PHP, depending on where it is being used, it needs to be escaped before it is processed. When passing the variable to the url (which we do a lot on this site), it needs to be written differently so it is interpreted correctly.

The chat script isn't handling the escape the way it should, so it is flagging you as trying to inject something via the login. (A safe guard to prevent malicious code from being executed on the site.)

I will make an attempt to locate where the login is being executed, but there are no guarantees with it. If I can find it, I can rewrite it to work properly. (I bought this script and just integrated it with our site.) If its being processed by one of the encrypted files, which there are 3, I won't be able to correct it.
__________________


The Following User Says Thank You to Rich For This Useful Post:
vegasandbecca (03-20-2008)
  #22  
 I helped move the meter!   03-20-2008, 08:41 AM
schlegelbagel's Avatar
schlegelbagel
Moderator & Frog Lover
Offline
 
Join Date: Mar 2007
Location: Abingdon, Maryland
Posts: 4,735
Blog Entries: 56
Thanks: 11
Thanked 179 Times in 179 Posts
Images: 13
Re: Chat Notification

Worse comes to worse, your username could be changed to not include the &.
__________________
My name is Liz
Do what's best for the animal, not what's best for you.

  #23  
Help move the meter 03-20-2008, 08:45 AM
Rich's Avatar
Rich
Technical Administrator
Offline
 
Join Date: Mar 2004
Location: Massachusetts
Posts: 5,488
Blog Entries: 10
Thanks: 16
Thanked 78 Times in 73 Posts
Images: 91
Quote:
Originally Posted by schlegelbagel View Post
Worse comes to worse, your username could be changed to not include the &.
We already did that. lol I am actually going to be preventing the use of identifiers in usernames so this won't be an issue in the future. Up to now, I have been able to access the source code for everything and simply use an ereg replace function for characters. So it hasn't been an issue. Live and learn.

  #24  
03-20-2008, 08:46 AM
vegasandbecca's Avatar
vegasandbecca
Elite Member
Offline
 
Join Date: Nov 2007
Location: Texas
Posts: 183
Blog Entries: 6
Thanks: 8
Thanked 4 Times in 4 Posts
Images: 14
Re: Chat Notification

Thanks Rich! I was able to sign into chat successfully.
__________________

"I wanna put on my my my my my boogie shoes.......just to boogie with you."


  #25  
Help move the meter 03-20-2008, 09:29 AM
Rich's Avatar
Rich
Technical Administrator
Offline
 
Join Date: Mar 2004
Location: Massachusetts
Posts: 5,488
Blog Entries: 10
Thanks: 16
Thanked 78 Times in 73 Posts
Images: 91
Re: Chat Notification

You are very welcome. I told you it would be painless. lol It took all of 15 seconds to fix.

I have already disabled the use of special characters in usernames upon registering. I have also added a note to the registration form for users to know that ONLY numbers and letters will be accepted. If a user tries to use a special character, the registration page will redirect them back and show them an error reminding them for the second time that ONLY letters and numbers are allowed. (In bold print in the error box. lol)
__________________


  #26  
Help move the meter 03-20-2008, 10:47 AM
Rich's Avatar
Rich
Technical Administrator
Offline
 
Join Date: Mar 2004
Location: Massachusetts
Posts: 5,488
Blog Entries: 10
Thanks: 16
Thanked 78 Times in 73 Posts
Images: 91
Re: Chat Notification

The chat indicator has been removed temporarily. There is a conflict in the code that needs to be worked out.
__________________


  #27  
 I helped move the meter!   03-20-2008, 10:53 AM
MoogleBass's Avatar
MoogleBass
Space Cowboy
Online
 
Join Date: Oct 2005
Location: Muncie, IN
Posts: 1,714
Blog Entries: 3
Thanks: 6
Thanked 27 Times in 26 Posts
Images: 11
Re: Chat Notification

Liz broke it didnt she....
__________________
Old Woman: He called you a cowboy. What did he mean? What are you?

Spike: Just a humble bounty hunter, ma'am.



Wanna Help Herp Center? Buy Me a Coffee!

  #28  
03-20-2008, 10:57 AM
Merlin's Avatar
Merlin
Administrator
Offline
 
Join Date: Mar 2004
Location: Oklahoma City, Ok.
Posts: 11,560
Thanks: 9
Thanked 187 Times in 184 Posts
Re: Chat Notification

Yep!
Got cupcake crumbs in it!
__________________
Merlin,
What's Life Without A Little Magic!

  #29  
 I helped move the meter!   03-20-2008, 02:36 PM
MoogleBass's Avatar
MoogleBass
Space Cowboy
Online
 
Join Date: Oct 2005
Location: Muncie, IN
Posts: 1,714
Blog Entries: 3
Thanks: 6
Thanked 27 Times in 26 Posts
Images: 11
Re: Chat Notification

Yep! She didnt share either
__________________
Old Woman: He called you a cowboy. What did he mean? What are you?

Spike: Just a humble bounty hunter, ma'am.



Wanna Help Herp Center? Buy Me a Coffee!

  #30  
Help move the meter 03-23-2008, 09:16 AM
Rich's Avatar
Rich
Technical Administrator
Offline
 
Join Date: Mar 2004
Location: Massachusetts
Posts: 5,488
Blog Entries: 10
Thanks: 16
Thanked 78 Times in 73 Posts
Images: 91
Re: Chat Notification

The problem we were experiencing was the chat stats were housed outside the forums directory. The way the stats were called were being trapped in an iframe. The iframe, depending on some other variables, was displaying incorrectly at times and then fine other times.

I went in yesterday and wrote my own code to call the statistics for who is chatting, so the indicator is back. The word "chat" is also a link directly into the chat.

Liz is happy again. lol
__________________




Similar Threads
Thread Thread Starter Forum Replies Last Post
Herp Center Chat Room Rich General Discussion 33 02-18-2008 04:11 PM
Date Change for Bearded Dragon Chat room Colleen HCD General Discussion 7 01-13-2006 08:28 AM
Where is chat gone!! steel rip General Discussion 2 03-12-2005 08:49 AM
C'Mon People come chat!!! steel rip General Discussion 7 02-02-2005 06:39 PM

Thread Tools


Herp Center Topsites
All times are GMT -4. The time now is 06:36 PM.


Direct Navigation
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263

Reptile Forums - The HC Network - CH - Staff - Archive - Top