SimplePortal

Support => English Support => Topic started by: FrelonVert on November 30, 2009, 08:03:52 AM

Title: Smileys and Shoutbox
Post by: FrelonVert on November 30, 2009, 08:03:52 AM
Hello,

I have a problem with the smileys in the Shout with version 2.3.1. The "More" link does not work ...

Any idea?

Thanks
Title: Re: Smileys and Shoutbox
Post by: Normally on December 03, 2009, 02:10:13 PM
I have the same issue.

Stef.
Title: Re: Smileys and Shoutbox
Post by: Deadairdave on December 09, 2009, 11:08:20 PM
I have the same issue.  It only started after I installed SMF 2.0 RC2 and then SMP 2.3.1.

One thing I have noticed, under the 'current version' section on the cPanel, there's bucket loads of '?' question marks for all sections associated to Simple Portal 2.3.1.  There are no question marks for SMF 2.0 RC2, or any of the mods I have installed.

All I get on clicking the 'more' text link is a pop-up box, with a white background containing the text 'Pick a smiley'.

It only affects the shoutbox!!  The 'more' link works on topics/posts.

Any suggestions?  Do I need to clear/refresh anything in PHPmyAdmin to correct this problem, or is it something entirely different?

Dave.
Title: Re: Smileys and Shoutbox
Post by: Nathaniel on December 10, 2009, 04:43:34 AM
Looks like a bug that found its way into the SMF2 version of SimplePortal 2.3.1. Reported to the bugtracker:
http://simpleportal.net/index.php?issue=329.0
Title: Re: Smileys and Shoutbox
Post by: handoyo on December 10, 2009, 05:56:34 AM
I have the smae issue too..Thanks..
Title: Re: Smileys and Shoutbox
Post by: Cutter on December 10, 2009, 07:14:48 AM
Hello,

I have a problem with the smileys in the Shout with version 2.3.1. The "More" link does not work ...

Any idea?

Thanks

I have the same issue to. Im have SMF 2.0 RC1.2 and SimplePortal 2.3.1 installed.

Cutter
Title: Re: Smileys and Shoutbox
Post by: Deadairdave on December 10, 2009, 09:42:13 AM
Looks like a bug that found its way into the SMF2 version of SimplePortal 2.3.1. Reported to the bugtracker:
http://simpleportal.net/index.php?issue=329.0

Thanks for the update.

...Should also mention, I tried to uninstall 2.3.1 (for the purpose to try and reinstall it, thinking it hadn't installed properly 1st time around, before visiting and posting in this topic) only to be told the following:

Quote
Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Quote
*     1.     Execute Modification     ./index.php     Test failed
      1.    Replace    ./index.php    Test successful
      2.    Replace    ./index.php    Test failed
      3.    Replace    ./index.php    Test successful
      4.    Replace    ./index.php    Test successful
      5.    Replace    ./index.php    Test successful
      6.    Replace    ./index.php    Test successful
      7.    Replace    ./index.php    Test successful
*    2.    Execute Modification    ./SSI.php    Test successful
      1.    Replace    ./SSI.php    Test successful
      2.    Replace    ./SSI.php    Test successful
*    3.    Execute Modification    ./Sources/Admin.php    Test failed
      1.    Replace    ./Sources/Admin.php    Test failed
      2.    Replace    ./Sources/Admin.php    Test successful
      3.    Replace    ./Sources/Admin.php    Test successful
*    4.    Execute Modification    ./Sources/Display.php    Test successful
      1.    Replace    ./Sources/Display.php    Test successful
*    5.    Execute Modification    ./Sources/Help.php    Test successful
      1.    Replace    ./Sources/Help.php    Test successful
*    6.    Execute Modification    ./Sources/Load.php    Test successful
      1.    Replace    ./Sources/Load.php    Test successful
      2.    Replace    ./Sources/Load.php    Test successful
*    7.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
      1.    Replace    ./Sources/ManagePermissions.php    Test successful
      2.    Replace    ./Sources/ManagePermissions.php    Test successful
      3.    Replace    ./Sources/ManagePermissions.php    Test successful
*    8.    Execute Modification    ./Sources/ManageServer.php    Test successful
      1.    Replace    ./Sources/ManageServer.php    Test successful
*    9.    Execute Modification    ./Sources/QueryString.php    Test successful
      1.    Replace    ./Sources/QueryString.php    Test successful
*    10.    Execute Modification    ./Sources/Recent.php    Test successful
      1.    Replace    ./Sources/Recent.php    Test successful
      2.    Replace    ./Sources/Recent.php    Test successful
      3.    Replace    ./Sources/Recent.php    Test successful
*    11.    Execute Modification    ./Sources/Subs.php    Test successful
      1.    Replace    ./Sources/Subs.php    Test successful
      2.    Replace    ./Sources/Subs.php    Test successful
      3.    Replace    ./Sources/Subs.php    Test successful
      4.    Replace    ./Sources/Subs.php    Test successful
      5.    Replace    ./Sources/Subs.php    Test successful
      6.    Replace    ./Sources/Subs.php    Test failed (Ignore Errors)
      7.    Replace    ./Sources/Subs.php    Test successful
      8.    Replace    ./Sources/Subs.php    Test successful
      9.    Replace    ./Sources/Subs.php    Test successful
      10.    Replace    ./Sources/Subs.php    Test successful
*    12.    Execute Modification    ./Sources/Subs-BoardIndex.php    Test successful
      1.    Replace    ./Sources/Subs-BoardIndex.php    Test successful
*    13.    Execute Modification    ./Sources/Subs-Boards.php    Test successful
      1.    Replace    ./Sources/Subs-Boards.php    Test successful
*    14.    Execute Modification    ./Sources/Who.php    Test failed
      1.    Replace    ./Sources/Who.php    Test successful
      2.    Replace    ./Sources/Who.php    Test successful
      3.    Replace    ./Sources/Who.php    Test successful
      4.    Replace    ./Sources/Who.php    Test failed
*    15.    Execute Modification    ./Themes/default/Display.template.php    Test successful
      1.    Replace    ./Themes/default/Display.template.php    Test successful
   16.    Delete File    ./PortalStandalone.php    
   17.    Delete File    ./Sources/PortalArticles.php    
   18.    Delete File    ./Sources/PortalBlocks.php    
   19.    Delete File    ./Sources/PortalMain.php    
   20.    Delete File    ./Sources/PortalPages.php    
   21.    Delete File    ./Sources/PortalShoutbox.php    
   22.    Delete File    ./Sources/PortalAdminArticles.php    
   23.    Delete File    ./Sources/PortalAdminBlocks.php    
   24.    Delete File    ./Sources/PortalAdminMain.php    
   25.    Delete File    ./Sources/PortalAdminPages.php    
   26.    Delete File    ./Sources/PortalAdminShoutbox.php    
   27.    Delete File    ./Sources/Subs-Portal.php    
   28.    Delete File    ./Sources/Subs-PortalAdmin.php    
   29.    Delete File    ./Themes/default/Portal.template.php    
   30.    Delete File    ./Themes/default/PortalArticles.template.php    
   31.    Delete File    ./Themes/default/PortalPages.template.php    
   32.    Delete File    ./Themes/default/PortalShoutbox.template.php    
   33.    Delete File    ./Themes/default/PortalAdmin.template.php    
   34.    Delete File    ./Themes/default/PortalAdminArticles.template.php    
   35.    Delete File    ./Themes/default/PortalAdminBlocks.template.php    
   36.    Delete File    ./Themes/default/PortalAdminPages.template.php    
   37.    Delete File    ./Themes/default/PortalAdminShoutbox.template.php    
   38.    Delete File    ./Themes/default/PortalGeneric.template.php    
   39.    Delete File    ./Themes/default/languages/SPortal.english.php    
   40.    Delete File    ./Themes/default/languages/SPortal.english-utf8.php    
   41.    Delete File    ./Themes/default/languages/SPortalAdmin.english.php    
   42.    Delete File    ./Themes/default/languages/SPortalAdmin.english-utf8.php    
   43.    Delete File    ./Themes/default/languages/SPortalHelp.english.php    
   44.    Delete File    ./Themes/default/languages/SPortalHelp.english-utf8.php    
   45.    Delete Tree    ./Themes/default/images/sp    
   46.    Delete File    ./Themes/default/images/admin/configuration.png    
   47.    Delete File    ./Themes/default/images/admin/blocks.png    
   48.    Delete File    ./Themes/default/images/admin/articles.png    
   49.    Delete File    ./Themes/default/images/admin/pages.png    
   50.    Delete File    ./Themes/default/images/admin/shoutbox.png    
   51.    Delete File    ./Themes/default/css/portal.css    
   52.    Delete File    ./Themes/default/css/portal_rtl.css    
   53.    Delete File    ./Themes/default/scripts/portal.js

...Safe to say, I abandoned any attempts to remove Simple Portal.  I'll sit and await for any further updates/news, as I've posted a link to the Topics 'more' link if members are desperate to use smileys.  ;)

D.
Title: Re: Smileys and Shoutbox
Post by: Nathaniel on December 10, 2009, 07:00:30 PM
@Deadairdave,
If you are trying to uninstall SimplePortal then make a separate topic in the Install/Upgrade board.
Title: Re: Smileys and Shoutbox
Post by: handoyo on December 11, 2009, 01:34:13 AM
How to fix this Nathaniel?Thanks...
Title: Re: Smileys and Shoutbox
Post by: Deadairdave on December 11, 2009, 03:11:21 AM
@Deadairdave,
If you are trying to uninstall SimplePortal then make a separate topic in the Install/Upgrade board.

Nah, that's not what I was saying.  I thought my problem of the shoutbox smileys not working and the '?' question marks was down to a bad install of 2.3.1, but from what I have seen now in this topic, I'm not alone.

I'm quite happy to sit and wait for any solution.  ;)
Title: Re: Smileys and Shoutbox
Post by: Nathaniel on December 18, 2009, 09:25:30 PM
Here is the fix for this problem. It will be solved in the next release of SimplePortal (its already solved in the dev svn versions).

This is an SMF 2 RC2 problem only!

Code: ("Find (Themes/default/PortalShoutbox.template.php)") [Select]
// Setup the data for the popup smileys.
if (!empty($shoutbox['smileys']['popup']))
{
echo '
if (sp_smileys == undefined)
var sp_smileys = [';
foreach ($shoutbox['smileys']['popup'] as $smiley)
{
echo '
["', $smiley['code'], '","', $smiley['filename'], '","', $smiley['js_description'], '"]';
if (empty($smiley['last']))
echo ',';
}
echo ']';
}

Code: ("Replace") [Select]
// Setup the data for the popup smileys.
if (!empty($shoutbox['smileys']['popup']))
{
echo '
if (sp_smileys == undefined)
var sp_smileys = [';
foreach ($shoutbox['smileys']['popup'] as $smiley)
{
echo '
["', $smiley['code'], '","', $smiley['filename'], '","', $smiley['js_description'], '"]';
if (empty($smiley['last']))
echo ',';
}
echo ']
if (sp_moreSmileysTemplate == undefined)
{
var sp_moreSmileysTemplate =  ', JavaScriptEscape('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>' . $txt['more_smileys_title'] . '</title>
<link rel="stylesheet" type="text/css" href="' . $settings['theme_url'] . '/css/index' . $context['theme_variant'] . '.css?rc2" />
</head>
<body id="help_popup">
<div class="padding windowbg">
<h3 class="catbg"><span class="left"></span>
' . $txt['more_smileys_pick'] . '
</h3>
<div class="padding">
%smileyRows%
</div>
<div class="smalltext centertext">
<a href="javascript:window.close();">' . $txt['more_smileys_close_window'] . '</a>
</div>
</div>
</body>
</html>'), '
}';
}

Code: ("Find (Themes/default/scripts/portal.js)") [Select]
function sp_showMoreSmileys(postbox, sTitleText, sPickText, sCloseText, smf_theme_url, smf_smileys_url)
{
if (this.oSmileyPopupWindow)
this.oSmileyPopupWindow.close();

this.oSmileyPopupWindow = window.open('', 'add_smileys', 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=480,height=220,resizable=yes');
this.oSmileyPopupWindow.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html>');
this.oSmileyPopupWindow.document.write('\n\t<head>\n\t\t<title>' + sTitleText + '</title>\n\t\t<link rel="stylesheet" type="text/css" href="' + smf_theme_url + '/style.css" />\n\t</head>');
this.oSmileyPopupWindow.document.write('\n\t<body style="margin: 1ex;">\n\t\t<table width="100%" cellpadding="5" cellspacing="0" border="0" class="tborder">\n\t\t\t<tr class="titlebg"><td align="left">' + sPickText + '</td></tr>\n\t\t\t<tr class="windowbg"><td align="left">');

for (i = 0; i < sp_smileys.length; i++)
{
sp_smileys[i][2] = sp_smileys[i][2].replace(/"/g, '&quot;');
sp_smileys[i][0] = sp_smileys[i][0].replace(/"/g, '&quot;');
this.oSmileyPopupWindow.document.write('<a href="javascript:void(0);" onclick="window.opener.replaceText(\' ' + (portal_smf_version == 1.1 ? sp_smileys[i][0] : smf_addslashes(sp_smileys[i][0])) + '\', window.opener.document.getElementById(\'new_shout_' + postbox + '\')); window.focus(); return false;"><img src="' + smf_smileys_url + '/' + sp_smileys[i][1] + '" id="sml_' + sp_smileys[i][1] + '" alt="' + sp_smileys[i][2] + '" title="' + sp_smileys[i][2] + '" style="padding: 4px;" border="0" /></a> ');
}

this.oSmileyPopupWindow.document.write('</td></tr>\n\t\t\t<tr><td align="center" class="windowbg"><a href="javascript:window.close();">' + sCloseText + '</a></td></tr>\n\t\t</table>');
this.oSmileyPopupWindow.document.write('\n\t</body>\n</html>');
this.oSmileyPopupWindow.document.close();
}

Code: ("Replace") [Select]
// This function is for SMF 2 RC2 and above.
function sp_showMoreSmileys(postbox, sTitleText, sPickText, sCloseText, smf_theme_url, smf_smileys_url)
{
if (this.oSmileyPopupWindow != null && 'closed' in this.oSmileyPopupWindow && !this.oSmileyPopupWindow.closed)
{
this.oSmileyPopupWindow.focus();
return;
}

if (sp_smileyRowsContent == undefined)
{
var sp_smileyRowsContent = '';
for (i = 0; i < sp_smileys.length; i++)
{
sp_smileys[i][2] = sp_smileys[i][2].replace(/"/g, '&quot;');
sp_smileys[i][0] = sp_smileys[i][0].replace(/"/g, '&quot;');
sp_smileyRowsContent += '<a href="javascript:void(0);" onclick="window.opener.replaceText(\' ' + sp_smileys[i][0].php_addslashes() + '\', window.opener.document.getElementById(\'new_shout_' + postbox + '\')); window.focus(); return false;"><img src="' + smf_smileys_url + '/' + sp_smileys[i][1] + '" id="sml_' + sp_smileys[i][1] + '" alt="' + sp_smileys[i][2] + '" title="' + sp_smileys[i][2] + '" style="padding: 4px;" border="0" /></a> ';
}

}

this.oSmileyPopupWindow = window.open('', 'add_smileys', 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=480,height=220,resizable=yes');

// Paste the template in the popup.
this.oSmileyPopupWindow.document.open('text/html', 'replace');
this.oSmileyPopupWindow.document.write(sp_moreSmileysTemplate.easyReplace({
smileyRows: sp_smileyRowsContent,
}));

this.oSmileyPopupWindow.document.close();
}
Title: Re: Smileys and Shoutbox
Post by: Normally on December 19, 2009, 09:02:23 AM
Thanks,

This solved the problem.

Stef.
Title: Re: Smileys and Shoutbox
Post by: Normally on December 19, 2009, 09:50:47 AM
After i made the change, some people can`t post when use the enter.
Is there any solution?

Stef.

Only in compatibel in IE 8.
Title: Re: Smileys and Shoutbox
Post by: Nathaniel on December 19, 2009, 05:32:53 PM
Which versions of IE/other browser/s can't you get this to work in?
Title: Re: Smileys and Shoutbox
Post by: Normally on December 20, 2009, 02:33:38 PM
In internetexplorer 8.
Title: Re: Smileys and Shoutbox
Post by: Deadairdave on January 07, 2010, 03:10:07 PM
It didn't work for me.  I got a mass of code where the smiley images appear above the 'posted' text in the shoutbox.  It looked like the replaced code.

I couldn't even upload the back-up I'd carried out, prior to altering the code with the examples above, within phpmyadmin!!

I had to resort to reinstalling the individual files from the 2.3.1. folder over the amended files which only then, rolled the shoutbox back to the previous state of displaying 'Pick a smiley' on clicking the 'more' link.

I guess I'll wait for the 'Official' update.

...I'm using FireFox 3.5.7 and IE8.

Edit: I guess I'm not the only one with this problem.  This is a screen shot I have just taken of what happens when I click the 'SP' shoutbox on this site:

(http://img237.imageshack.us/img237/9260/spshoutbox.th.png) (http://img237.imageshack.us/i/spshoutbox.png/)

Looks like you have the same problem as me; and others!!
Title: Re: Smileys and Shoutbox
Post by: Lizsan on January 07, 2010, 03:42:05 PM
This might be a little off topic, but where can I obtain those smiley?
Title: Re: Smileys and Shoutbox
Post by: amlucent on January 07, 2010, 11:00:51 PM
This might be a little off topic, but where can I obtain those smiley?

Search the forum, your question has been asked and answered a few times already.
Title: Re: Smileys and Shoutbox
Post by: Lizsan on January 08, 2010, 02:28:27 AM
This might be a little off topic, but where can I obtain those smiley?

I haven't been able to find it when searching..

Search the forum, your question has been asked and answered a few times already.
Title: Re: Smileys and Shoutbox
Post by: [SiNaN] on January 20, 2010, 02:24:17 PM
smileys (http://simpleportal.net/index.php?action=search2;search=smileys) (Second topic that appears in the results)

FrelonVert, is this issue solved?

Others, I really suggest that you start a new topic even if you are having the same issue. It's harder for people providing support to take care of more than one member in the same topic.
SimplePortal 2.3.8 © 2008-2024, SimplePortal