collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 769
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

Thanks for having an interest with our portal. If you have any requests for features, have a look at the Feature Requests board.

Author Topic: Shoutbox not send sohuts  (Read 3299 times)

0 Members and 1 Guest are viewing this topic.

Offline Sages

  • Semi Newbie
  • *
  • Posts: 21
  • Gender: Male
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Shoutbox not send sohuts
« on: June 18, 2010, 06:49:50 AM »
Hello!
I run SMF integrated with Joomla.

Joomla version is 1.5.18
SMF version is 1.1.11
Italian UTF-8 translation for SMF
SP versione is 2.3.2
Italiani translation for SP version 2.3.2

I have added the shoutbox in a section of the forum but i have problem when i try to send a shout: i type the message and I press "send", but the shoutbox never ends its work: the refresh/load icon in the top-right corner continues to round and the message is not sent.
I have to manually reload the page to stop this, but obviously the message is not published and is not in the archieve.

I also tried to set the auto-refresh but this only cause the "upload" of the message to stop when the auto-refresh occurs.

If you need a test account i' ll PM it to you!

Thank you for the help

Bye

Offline DeathSign

  • Semi Newbie
  • *
  • Posts: 6
  • Gender: Male
  • Vaurien
  • SMF Version: 1.1.11
  • SP Version: 2.3.2
Re: Shoutbox not send sohuts
« Reply #1 on: June 18, 2010, 06:58:20 AM »
Hello!

I'm new here but I'd like to see as I just fixed a similar error :)

DeathSign
I'll switch to SP :)

Offline Sages

  • Semi Newbie
  • *
  • Posts: 21
  • Gender: Male
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Shoutbox not send sohuts
« Reply #2 on: June 18, 2010, 07:04:50 AM »
What was your error?
How did you fix it?

Offline DeathSign

  • Semi Newbie
  • *
  • Posts: 6
  • Gender: Male
  • Vaurien
  • SMF Version: 1.1.11
  • SP Version: 2.3.2
Re: Shoutbox not send sohuts
« Reply #3 on: June 18, 2010, 07:07:16 AM »
Well it is not the same because you are using UTF-8 and my shout got posted :)

If you like to see http://simpleportal.net/index.php?topic=3371.msg34593#msg34593 (sorry it is in french ^^ but I explained the issue). Tell me if you get Javascript error.
I'll switch to SP :)

Offline Sages

  • Semi Newbie
  • *
  • Posts: 21
  • Gender: Male
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Shoutbox not send sohuts
« Reply #4 on: June 18, 2010, 08:00:06 AM »
Using Firebug Console i get 2 errors when i try to send a shout:

1)
Code: [Select]
contenuto illegale dopo l'elemento
[Break on this error] <div align="center" style="margin-top:...ipt:history.go(-1)">Indietro</a></div>
The first sentence means: "Illegal content after the element"


2)
Code: [Select]
XMLDoc.getElementsByTagName("smf")[0] is undefined
[Break on this error] var shouts = XMLDoc.getElementsByTagN...")[0].getElementsByTagName("shout");
The second error comes from the file "portal.js?23b1" -> In my template folder i have the file "portal.js", what is the "?23b1"??

Offline DeathSign

  • Semi Newbie
  • *
  • Posts: 6
  • Gender: Male
  • Vaurien
  • SMF Version: 1.1.11
  • SP Version: 2.3.2
Re: Shoutbox not send sohuts
« Reply #5 on: June 18, 2010, 08:35:45 AM »
Well I can't see how you can get a back button, maybe with the Joomla bridge. I don't know enough SP to reproduce the error so I wish someone else can help you.

But the second error is a consequence of the first.
I'll switch to SP :)

Offline Sages

  • Semi Newbie
  • *
  • Posts: 21
  • Gender: Male
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Shoutbox not send sohuts
« Reply #6 on: June 18, 2010, 09:06:00 AM »
Here is the url and the source code which i can see if i click on the error in Firebug's Console:

Code: [Select]
http://www.clanhsdl.netsons.org/index.php?option=com_jfusion&Itemid=2&jfile=index.php&action=portal;sa=shoutbox;xml
Code: [Select]
<div>
<table border="0" width="80%" cellspacing="0" align="center" cellpadding="4" class="tborder">
<tr class="titlebg">
<td>Si รจ verificato un errore!</td>
</tr>
<tr class="windowbg">
<td style="padding: 3ex;">
Ci spiace, ma lo Shoutbox esiste solo nella tua mente.
</td>

</tr>
</table>
</div>
<div align="center" style="margin-top: 2ex;"><a href="javascript:history.go(-1)">Indietro</a></div>

Offline Sages

  • Semi Newbie
  • *
  • Posts: 21
  • Gender: Male
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Shoutbox not send sohuts
« Reply #7 on: June 20, 2010, 01:39:28 PM »
Ehm.... Any help? Admins?

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Shoutbox not send sohuts
« Reply #8 on: June 20, 2010, 08:59:15 PM »
I don't have any experience with the Joomla/SMF integration process, or much experience with Joomla itself. Although I can make one observation.

The url that you posted in your last post, contains both ampersands "&" (the normal separator for GET variables) and semicolons ";" (the SMF separator for GET variables), that could be the issue. Can you compare that url to the other urls in your forum? I need to know if Joomla normally expects ampersands to be used instead of semicolons. (within the forum that is)

A link to your site would be useful (and a test user if possible). With such javascript issues, it makes debuging much easier.
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline Sages

  • Semi Newbie
  • *
  • Posts: 21
  • Gender: Male
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Shoutbox not send sohuts
« Reply #9 on: June 21, 2010, 09:58:19 AM »
Yes, i saw the strange url and i posted it because of it. Joomla normally use & and inside SMF it's the same. All url are with &, no semicolon used.
Maybe it could be necessary to change the http header used by the shoutbox's script?

Nathaniel, I have sent you a PM with data to log-in into my site.

Thank you

Bye

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Shoutbox not send sohuts
« Reply #10 on: June 22, 2010, 12:03:33 AM »
I think that it may be related to the url issue, perhaps in a subtle manner though.

Could you see if the following edit to your "Themes/default/portal.js" file helps at all?

Code: ("Find") [Select]
sendXMLDocument(smf_prepareScriptUrl(smf_scripturl) + 'action=portal;sa=shoutbox;xml', 'shoutbox_id=' + shoutbox_id + '&shout=' + shout_body + '&' + sSessionVar + '=' + sSessionId, onShoutReceived);
Code: ("Replace") [Select]
sendXMLDocument(smf_prepareScriptUrl(smf_scripturl) + 'action=portal&sa=shoutbox&xml', 'shoutbox_id=' + shoutbox_id + '&shout=' + shout_body + '&' + sSessionVar + '=' + sSessionId, onShoutReceived);
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline Sages

  • Semi Newbie
  • *
  • Posts: 21
  • Gender: Male
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Shoutbox not send sohuts
« Reply #11 on: June 22, 2010, 10:54:53 AM »
It seems no... I also tried to edit the other lines of code after that one, because there were semicolon in the url created by them(delete shout and refresh shout functions) but the behaviour is the same. The url is now correct, but it still gives me errors in the console.

I run again the firebug console with accurate warning analysis and i get this one:

Code: [Select]
reference to undefined property XMLDoc.getElementsByTagName("smf")[0]
[Break on this error] var shouts = XMLDoc.getElementsByTagN...")[0].getElementsByTagName("shout");

It' s a warning, not an error, but it belongs to the same code line(95 of portal.js) of the error:

Code: [Select]
XMLDoc.getElementsByTagName(
[Break on this error] var shouts = XMLDoc.getElementsByTagN...")[0].getElementsByTagName("shout");

Dunno....

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Shoutbox not send sohuts
« Reply #12 on: June 22, 2010, 10:27:59 PM »
Well, those javascript error messages are saying that the xml document returned by the ajax request is invalid, which it is. Its returning an error message not the normal xml document (which lists the shouts to be shown/updated). That particular error message is shown when the shoutbox id in the ajax request is invalid (hence why I was looking at the url with interest).

Can you please make this edit (for debugging purposes) then post the output which you can see with the Firebug Console when you try to post a shout?

Code: ("Find (Sources/PortalShoutbox.php)") [Select]
if (empty($context['SPortal']['shoutbox']))
Code: ("Replace") [Select]
echo $shoutbox_id, '\n';
echo $request_time, '\n';
var_dump($context['SPortal']['shoutbox']);
if (empty($context['SPortal']['shoutbox']))
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline Sages

  • Semi Newbie
  • *
  • Posts: 21
  • Gender: Male
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Shoutbox not send sohuts
« Reply #13 on: June 23, 2010, 04:33:40 AM »
Code: [Select]
non well-formed
[Break on this error] 0\n0\narray(0)

Is all empty...
« Last Edit: June 23, 2010, 01:21:06 PM by Sages »

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Shoutbox not send sohuts
« Reply #14 on: June 23, 2010, 09:57:11 PM »
Well, its clear that the issue is with SimplePortal getting that data.

Could you please repeat with the debug edit below?
Code: ("Find (Sources/PortalShoutbox.php)") [Select]
if (empty($context['SPortal']['shoutbox']))
Code: ("Replace") [Select]
var_dump($_GET);
var_dump($_POST);
var_dump($_REQUEST);
if (empty($context['SPortal']['shoutbox']))
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline Sages

  • Semi Newbie
  • *
  • Posts: 21
  • Gender: Male
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Shoutbox not send sohuts
« Reply #15 on: June 24, 2010, 06:48:33 AM »
Code: [Select]
array(6) {
  ["option"]=>
  string(11) "com_jfusion"
  ["Itemid"]=>
  string(1) "2"
  ["jfile"]=>
  string(9) "index.php"
  ["action"]=>
  string(6) "portal"
  ["sa"]=>
  string(8) "shoutbox"
  ["xml"]=>
  string(0) ""
}
array(0) {
}
array(7) {
  ["option"]=>
  string(11) "com_jfusion"
  ["Itemid"]=>
  string(1) "2"
  ["jfile"]=>
  string(9) "index.php"
  ["action"]=>
  string(6) "portal"
  ["sa"]=>
  string(8) "shoutbox"
  ["xml"]=>
  string(0) ""
  ["start"]=>
  int(0)
}

com_jfusion is the bridge component of Joomla.

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Shoutbox not send sohuts
« Reply #16 on: June 25, 2010, 11:20:02 PM »
Well, from firebugs output, the correct POST data is being send by the javascript for the shoutbox, however the php script isn't even picking it up. This implies that something has gone wrong on the PHP side of the script, before SimplePortal's code for the shoutbox even executes. Normally this doesn't happen for SMF, so I suspect that there is an issue with the Joomla integration. If you want to properly fix this bug, then I would suggest asking whoever made the integration.

In the interest of getting it to work, the following edit should be sufficient (you may need to undo the earlier edit first):
Code: ("Find (Themes/default/portal.js)") [Select]
sendXMLDocument(smf_prepareScriptUrl(smf_scripturl) + 'action=portal;sa=shoutbox;xml', 'shoutbox_id=' + shoutbox_id + '&shout=' + shout_body + '&' + sSessionVar + '=' + sSessionId, onShoutReceived);
Code: ("Find (Themes/default/portal.js)") [Select]
sendXMLDocument(smf_prepareScriptUrl(smf_scripturl) + 'action=portal&sa=shoutbox&xml' + 'shoutbox_id=' + shoutbox_id + '&shout=' + shout_body + '&' + sSessionVar + '=' + sSessionId, '', onShoutReceived);
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.