The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Slashes in names
Can someone please tell me how I make this line:
PHP Code:
[disable]Sessions identifys them as Boofo\'s Babe[/disable] |
#2
|
||||
|
||||
huh?
i think it looks perfect as it is here... |
#3
|
||||
|
||||
I don't see the problem either.
|
#4
|
||||
|
||||
For some reason it parsed it out. Here's how it looks with a space in it (Hopefully it won't parse it with a space). Take the space out between the o and the \ and that's how it looks.
Sessions identifys them as Boofo \'s Babe |
#5
|
||||
|
||||
ahh, ofcourse it does, because you use addslashes function which add's slashes before ' and "
change it into that would help you: PHP Code:
|
#6
|
||||
|
||||
Thank you, Stefan. I was just using the original code. Why would someone use addslashes instead of specialcharacters then? Or do you have to use addslashes for the db? I have found a few things that don't work well with ' in names on my board. Is there a global fix for that? Just curious more than anything.
|
#7
|
||||
|
||||
there are differences
specialcharacters changes the string and converts " ' < > and other into html code < and something like that. they show up on the screen equal, but are different strings addslashes just adds / before ' and " so they could be used inside a string for inserting into db for example hope it clarifies it it's hard to explain even in my nature language, and harder in english for me hope it clarifiys |
#8
|
||||
|
||||
So would that be why I get errors when run Counter Updates with Boofo's Babe as the last poster sometimes? I see what you are saying though. Thank you for it explaining it a little better to me.
|
#9
|
||||
|
||||
hmm, normally it should work, when updating counters....
i've looked into the code, and can't see something wrong.. |
#10
|
||||
|
||||
When I had Scott's last title on forumhome installed, it always snagged on that name and gave me a db error. I don't have the hack installed now. I haven't tried the counters since the new install so I may have spoken ahead of myself. Sorry about that.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|