Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 6.9
Author Message
TheosEleos
Life Cycles Becoming CPU Cycles



Joined: Sep 18, 2003
Posts: 960
Location: Missouri

PostPosted: Sun Oct 19, 2003 9:52 am Reply with quote

I had someone forward me a copy of their confirmation email and the site name has some weird symbols in it.

Quote:
Welcome to pHenyl's House!


It is supposed to be called "pHenyl's House".

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website AIM Address ICQ Number
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sun Oct 19, 2003 10:22 am Reply with quote

I don't see any difference ???
 
View user's profile Send private message
TheosEleos







PostPosted: Sun Oct 19, 2003 10:28 am Reply with quote

Oy!

Welcome to pHenyl's House!
 
TheosEleos







PostPosted: Sun Oct 19, 2003 10:29 am Reply with quote

WOW!

I paste it one way and your board shows it different. Can I email this to you?
 
Raven







PostPosted: Sun Oct 19, 2003 10:31 am Reply with quote

Sure, but are you saying this is a confirmation email from your site to a new registrant? If so, you will need to also send me your zipped language file that has the confirmation email text in it, because that will probably be the problem.
 
TheosEleos







PostPosted: Sun Oct 19, 2003 10:39 am Reply with quote

What email you want me to send it to?
 
Raven







PostPosted: Sun Oct 19, 2003 10:42 am Reply with quote

Just click on my email button in my posts Smile
 
TheosEleos







PostPosted: Sun Oct 19, 2003 10:46 am Reply with quote

I guess I am blind. I don't see it! Laughing
 
Raven







PostPosted: Sun Oct 19, 2003 10:48 am Reply with quote

Now do you? I reset the indicator.
 
TheosEleos







PostPosted: Sun Oct 19, 2003 10:51 am Reply with quote

Yup.

It's on its way!
 
Raven







PostPosted: Sun Oct 19, 2003 10:58 am Reply with quote

&#039 is the html entity code for a single quote mark. I was not aware that nuke was filtering that message or the site url. That will take some digging. Are you using any mods to the Your_Account module?
 
TheosEleos







PostPosted: Sun Oct 19, 2003 11:01 am Reply with quote

I don't think so.

The only thing I remember doing is a few changes to try and get the avatar issue fixed.
 
Raven







PostPosted: Mon Oct 20, 2003 6:04 am Reply with quote

It looks like that's the default behavior (or misbehavior). If you look in admin/modules/settings.php you will find this line:
$xsitename = htmlentities($xsitename, ENT_QUOTES);

That's where the sitename contents get converted to special entities if there is a single or a double quote in it. You could try commenting that line out or you could modify the message in Your_Account/index.php to translate all &#039 to a single tick mark. Keep in mind that if you modify the $xsitename variable, I don't know how that may be tied to some other code. It's probably not to dangerous to comment it out, but just test it well.
 
TheosEleos







PostPosted: Mon Oct 20, 2003 9:02 am Reply with quote

Quote:
you could modify the message in Your_Account/index.php to translate all &#039 to a single tick mark


How do I do this one?
 
devilchi
New Member
New Member



Joined: Aug 21, 2006
Posts: 6

PostPosted: Sun Jan 18, 2009 8:30 pm Reply with quote

I don't know if this will help out anyone else but my quick fix for this was to make this change in
File: admin/modules/settings.php
Change Line: $xsitename = htmlentities($xsitename, ENT_QUOTES);
To This: $xsitename = htmlentities($xsitename, ENT_COMPAT);

This will make it so double quotes will be striped but single quotes will be left alone.
Even if you wrap the site name in single quotes it displays no problem.

Now I have taken the whole line out and tested and if for some reason people were to put double quotes around the whole site name. It would not show up in the preference page but would still work in the title and emails etc.

Hope this helps out a few people as this sites helped me out so many times.
 
View user's profile Send private message
Raven







PostPosted: Sun Jan 18, 2009 10:11 pm Reply with quote

devilchi,

Welcome to the forums and thank you for adding your experience with this. However, this thread is over 5 years old and the cause/fix probably no longer applies. We do try not to open threads more than a year or so old. Smile

I have locked the thread because of the age Wink
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 6.9

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©