Support > English Support

minor Shoutbox bug that converts quotes into """

<< < (2/2)

aegersz:
Hi, thanks - i am working on it as i am running 2.3.6 and have a couple of conflicts to deal with ... standby

aegersz:
BACKUP first ...


--- Code: ---cd /var/www/html
cp Themes/default/PortalShoutbox.template.php Themes/default/PortalShoutbox.template.php-Extra_Shoutbox_Options_v1.71_to_v1.72_upgrade
--- End code ---

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:

--- Code: ---function template_shoutbox_xml()
{
        global $context, $txt;
--- End code ---

to:

--- Code: ---function template_shoutbox_xml()
{
        global $context, $txt, $smcFunc;
--- End code ---

in the same function:


--- Code: ---// 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>
--- End code ---


--- Code: ---// 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>
--- End code ---

You have resolved my problem (it just needed a single page reload to translate the special chars).

THANK YOU !

aegersz:
*bump*

i have modified the previous post to add the $smcFunc global definition

Chen Zhen:
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~

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.

aegersz:
right now i am happy with it but thanks anyway  :)

Navigation

[0] Message Index

[*] Previous page

Go to full version