SimplePortal
Support => English Support => Topic started by: aegersz on June 19, 2018, 07:33:09 PM
-
as it says, some characters undergo this odd translation to &xyx eg.:
"hi" -> "hi"
-
Are you using utf8? I cannot reproduce it on our shoutbox.
-
i moved to UTF-8 years ago and this is a relatively new problem.
it's not a worry but i was wondering why, that's all.
don't worry about it, it's just puzzling ... thanks for trying to recreate it anyway.
btw, it happens for the "<" and ">" symbols also.
-
Do you have any plug-ins for the Simple Portal shoutbox installed?
If so, can you temporarily uninstall it & test again to see if it is a shoutbox plug-in causing the problem?
-
Uninstall the extra shoutbox options plug-in version 1.71 & delete it.
Afterward you can install version 1.72:
https://web-develop.ca/index.php?action=downloads;area=stable_simple_portal_plugins;file=25
-
Hi, thanks - i am working on it as i am running 2.3.6 and have a couple of conflicts to deal with ... standby
-
BACKUP first ...
cd /var/www/html
cp Themes/default/PortalShoutbox.template.php Themes/default/PortalShoutbox.template.php-Extra_Shoutbox_Options_v1.71_to_v1.72_upgrade
THEN ... in ./Themes/default/PortalShoutbox.template.php:
conflicts addressed; the lines that i needed to change plus comments to v.71 prior to the install are shown below:
change:
function template_shoutbox_xml()
{
global $context, $txt;
to:
function template_shoutbox_xml()
{
global $context, $txt, $smcFunc;
in the same function:
// the following line was not found in Simple Portal Extra Shoutbox Options v1.71 to v1.72 upgrade, it was removed and replaced by the line after it:
// <timeclean>', htmlspecialchars(strip_tags($shout['time'])), '</timeclean>
<timeclean>', $smcFunc['htmlspecialchars'](strip_tags($shout['time'])), '</timeclean>
// the following line was not found in Simple Portal Extra Shoutbox Options v1.71 to v1.72 upgrade, it was removed and replaced by the line after it:
// <content>', htmlspecialchars($shout['text']), '</content>
<content>', $smcFunc['htmlspecialchars']('<span style="word-wrap: break-word;overflow-y: auto;overflow-x: hidden;">'), $smcFunc['htmlspecialchars']($shout['text'], ENT_QUOTES), $smcFunc['htmlspecialchars']('</span>'), '</content>
You have resolved my problem (it just needed a single page reload to translate the special chars).
THANK YOU !
-
*bump*
i have modified the previous post to add the $smcFunc global definition
-
Imo you're doing a bunch of manual changes to files, possibly missing some edits or doing incorrect ones so I can't be sure what is happening.
I can give you some simple advise...
Uninstall all Simple Portal plug-ins & then uninstall Simple Portal.
Afterward install Simple Portal 2.3.7 anew and then install the most recent versions of your Simple Portal plug-ins.
This should get you back to square one without having to manually edit anything because the initial new install of SP 2.3.7 will not have any of your manual edits.
BTW - I updated the shoutbox options plug-in to v1.73 located ~here~ (https://web-develop.ca/index.php?action=downloads;area=stable_simple_portal_plugins;file=25)
Just to confirm all works well without any need for manual parsing if you are doing things correctly:
- No Simple Portal & Simple Portal plug-ins installed
- Fresh install of Simple Portal 2.3.7
- Installed SP - Advanced Unread Posts v1.4
- Installed SP-Shoutbox Audio v2.1
- Installed SP-Truncate Board News v1.24
- Installed SP-Shoutbox Options v1.73
- Installed SP_Post-Topic Age v1.0
No conflicts & no manual edits required for all of the above. All functioning perfectly including shoutbox audio.
I do not know if you use all the above plug-ins but I do know you are using some of them.
Simply use the ones you want & I can tell you with certainty that there are no conflicts with what is listed above.
If you use SP-Shoutbox Options v1.73 and alter its regex input incorrectly then this can result in improper shoutbox behavior.
This of course will be of your own doing if you do not know how to enter proper regex.
There is an option to reset regex settings to the defaults if you mess it up.
-
right now i am happy with it but thanks anyway :)