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: 436
  • 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]

If you're interested in helping other members with support requests, consider joining the Community Support Helpers group.

Author Topic: Shoutbox refresh and page reload discrepancy  (Read 103399 times)

0 Members and 1 Guest are viewing this topic.

Offline w1ck3d

  • Newbie
  • Posts: 4
  • SMF Version: 2.0.7
  • SP Version: 2.3.5
Re: Shoutbox refresh and page reload discrepancy
« Reply #40 on: April 18, 2014, 05:13:00 AM »
Yes, the problem is, but you do the same on simpleportal.net chat works fine, can PHP version?

Offline w1ck3d

  • Newbie
  • Posts: 4
  • SMF Version: 2.0.7
  • SP Version: 2.3.5
Re: Shoutbox refresh and page reload discrepancy
« Reply #41 on: April 18, 2014, 05:14:17 AM »
Да, проблема есть, но у вас же работает на simpleportal.net нормально, может сменить версию php?

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Shoutbox refresh and page reload discrepancy
« Reply #42 on: April 19, 2014, 08:03:17 AM »
wick3d,

Please do not post the same twice.  Use "modify" link to edit/add to original post.

If you have a shoutbox problem, please start new topic in a support board.
Please make a description of your own shoutbox problem.

I apologize.  I do not speak Russian, and I do not know of anyone on staff who speaks russian.
We are having difficulty understanding your post.  Google Translate is not very helpful.

We will try.  Please forgive us if we ask the same question many times in order to understand you.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline andy

  • On Leave
  • *
  • Posts: 861
  • Gender: Male
    • Outdoor Club Japan (OCJ) アウトドア・クラブ・ジャパン
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
  • Elkarte Version: None
Re: Shoutbox refresh and page reload discrepancy
« Reply #43 on: April 21, 2014, 09:34:38 AM »
Let me know what to do, I can test again. Will be away now and then as its kind of Easter holidays here from the weekend (Golden Week). But post me directions and a link to files ans when time I will look at my site.

Im on a new host so interesting to see if the same problem is there.
Everyone is a volunteer here so please try and make a small donation to keep the Simple Portal website running


Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: Shoutbox refresh and page reload discrepancy
« Reply #44 on: May 10, 2014, 11:06:57 PM »
andy,

  We won't be able to tell if the edit works unless you still have the issue on your newer host environment.  Even with the edit I had in mind the same issue was occurring after some more testing although that was on a setup that included a mod I made that edited the shoutbox function.  If you still have the issue we can try it or I can look at the shoutbox coding and attempt to alter the javascript for it. 

Offline rentner

  • Semi Newbie
  • *
  • Posts: 14
  • SMF Version: 2.0.14
  • SP Version: 2.3.6
Re: Shoutbox refresh and page reload discrepancy
« Reply #45 on: May 14, 2014, 11:15:03 AM »
Hello everybody,

My shoutbox has working very well until I update the PHP version from the webserver so version 5.5.10

Now I got the same problem.
After posting in the shoutbox the refresh icon is working continuous and just after refresh the page I see the posting.

May that is a new point of view!
Which PHP version is in use on the forum who have the refresh probems?
PHP 5.6

Offline rentner

  • Semi Newbie
  • *
  • Posts: 14
  • SMF Version: 2.0.14
  • SP Version: 2.3.6
Re: Shoutbox refresh and page reload discrepancy
« Reply #46 on: June 01, 2014, 08:12:54 AM »
Push

I realise that is related to the PHP version from the Web Host.

Is there plant a fix for it?


EDIT:

I have tested it with PHP version 5.3.28 - No problems
If I go up to version 5.4.26 or 5.5.10 I get the problem again.

I is definitely a problem with the PHP version.


Please advice.
« Last Edit: June 01, 2014, 08:27:43 AM by rentner »
PHP 5.6

Offline andy

  • On Leave
  • *
  • Posts: 861
  • Gender: Male
    • Outdoor Club Japan (OCJ) アウトドア・クラブ・ジャパン
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
  • Elkarte Version: None
Re: Shoutbox refresh and page reload discrepancy
« Reply #47 on: June 02, 2014, 08:04:16 AM »
I'm still getting odd behavior on my new host (PHP version    5.4.28).

Some comments are not being loaded when it auto refreshes. It worked several times perfectly then the problem started.
When forum page is reloaded they appear and also after a shout is entered the delayed ones from other users appear.
I was using latest versions of Chrome, Firefox, Opera.
Everyone is a volunteer here so please try and make a small donation to keep the Simple Portal website running


Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: Shoutbox refresh and page reload discrepancy
« Reply #48 on: June 02, 2014, 04:29:17 PM »
Alright, let us try using some jQuery to refresh the container id. With this test I am not bothering to remove Sinan's refresh routine and just adding in some basic jQuery. If it works then we can take it further.

jQuery reference: http://api.jquery.com/load#loading-page-fragments

There are 2 necessary file edits...



File:
../Themes/default/PortalShoutbox.template.php

find:
Code: [Select]
function template_shoutbox_embed($shoutbox)
{
global $context, $scripturl, $settings, $txt;

Add after above code:
Code: [Select]
if (!empty($shoutbox['refresh']))
echo '
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js"></script>
<script type="text/javascript">
var auto_refresh = setInterval(
function ()
{
$(\'#result\').load(\'', currentPageShoutbox($shoutbox['id']) ,'\').fadeIn("slow");
}, ', ($shoutbox['refresh'] * 1000), ');
</script>';



file: ../Sources/Subs-Portal.php

find:
Code: [Select]
?>

Add before code shown above (prior to end PHP tag of file):
Code: [Select]
/* Current shoutbox url & container */
function currentPageShoutbox($shoutid, $pageURL = 'http://')
{
if (!empty($_SERVER["HTTPS"]))
$pageURL = "https://";

if ($_SERVER["SERVER_PORT"] != "80")
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
else
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];

return $pageURL . '#shoutbox_load_' . $shoutid;
}



Let me know if that corrects the issue. Btw - set the refresh seconds within the shoutbox settings to something other than 0 since that disables the refresh.

Regards.
« Last Edit: June 02, 2014, 08:30:38 PM by Underdog »

Offline andy

  • On Leave
  • *
  • Posts: 861
  • Gender: Male
    • Outdoor Club Japan (OCJ) アウトドア・クラブ・ジャパン
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
  • Elkarte Version: None
Re: Shoutbox refresh and page reload discrepancy
« Reply #49 on: June 04, 2014, 04:46:04 AM »
Tried those edits and cleaned out the cache but...

Often the first shout does not show during automatic refresh in another (user) browser. If a second shout is made then both are loaded at the next refresh.
If people make one comment and wait for a reply then its still not going to work well.

« Last Edit: June 04, 2014, 10:36:20 AM by andy »
Everyone is a volunteer here so please try and make a small donation to keep the Simple Portal website running


Offline rentner

  • Semi Newbie
  • *
  • Posts: 14
  • SMF Version: 2.0.14
  • SP Version: 2.3.6
Re: Shoutbox refresh and page reload discrepancy
« Reply #50 on: June 04, 2014, 08:12:19 AM »
I get a PN from a forum user here.


Quote
I fixed mine this morning. i went to the root directory, and found a file called .htacess

I edited this file to force the server to run the same version of php my old server ran which was 5.3

the code looks like this pick except mine was set to 5.3

http://i.imgur.com/mCk292r.png


Hope that is OK that I post it "open".
PHP 5.6

Offline andy

  • On Leave
  • *
  • Posts: 861
  • Gender: Male
    • Outdoor Club Japan (OCJ) アウトドア・クラブ・ジャパン
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
  • Elkarte Version: None
Re: Shoutbox refresh and page reload discrepancy
« Reply #51 on: June 04, 2014, 10:39:44 AM »
I can't see php 5.3 version fixing it - this is an old problem and back when I reported it I bet my server was on php 5.2 then.
Everyone is a volunteer here so please try and make a small donation to keep the Simple Portal website running


Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: Shoutbox refresh and page reload discrepancy
« Reply #52 on: June 04, 2014, 07:23:30 PM »
andy,

  I do not seem to witness that behavior as it appears to function properly for me.
Can you confirm the refresh has a int value such as ie. 10 ??

Perhaps I will try testing this on a live setup as it has only been tested locally.
I believe someone else has reported in another thread something about changing the cache behavior for their forum to fix this issue which I will investigate.


Offline andy

  • On Leave
  • *
  • Posts: 861
  • Gender: Male
    • Outdoor Club Japan (OCJ) アウトドア・クラブ・ジャパン
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
  • Elkarte Version: None
Re: Shoutbox refresh and page reload discrepancy
« Reply #53 on: June 05, 2014, 12:30:30 AM »
Yes it was set on 10 second refresh.

I can give you an account on my site ig you want to see it yourself there.

I will post a PM with password to log in.

Username: Underdog

Password:

http://outdoorclubjapan.com/

Shoutbox is visible on the forum page after login.

Andy
Everyone is a volunteer here so please try and make a small donation to keep the Simple Portal website running


Offline andy

  • On Leave
  • *
  • Posts: 861
  • Gender: Male
    • Outdoor Club Japan (OCJ) アウトドア・クラブ・ジャパン
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
  • Elkarte Version: None
Re: Shoutbox refresh and page reload discrepancy
« Reply #54 on: June 05, 2014, 09:14:58 PM »
I just tested again with Firefox and Opera and seemed ok on 10 seconds with over 10 shouts. Before I did set the refresh higher at times.

Anyway, I set refresh to 15, cleaned the cache and tried it - ok.
Set refresh to 20, cleaned the cache and tried it - then a shout missed.


Actually only 1 this time didnt show up (using the original code).
Everyone is a volunteer here so please try and make a small donation to keep the Simple Portal website running


Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: Shoutbox refresh and page reload discrepancy
« Reply #55 on: June 05, 2014, 11:09:40 PM »

Interesting.
Would you also be able to test in the default theme to rule out that possibility?
I will also suggest disabling blocks containing other js.

A good way to test this may be to set up a duplicate forum from a sub-directory using a copy of the same db and mods/files.
Then you can adjust its environment for testing without affecting your actual forum.
 

Offline andy

  • On Leave
  • *
  • Posts: 861
  • Gender: Male
    • Outdoor Club Japan (OCJ) アウトドア・クラブ・ジャパン
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
  • Elkarte Version: None
Re: Shoutbox refresh and page reload discrepancy
« Reply #56 on: June 06, 2014, 02:12:35 AM »
I can set up a copy on another domain I have. Its the same as the old one I used so should have trouble with it on that too.

Will test as advised.
Everyone is a volunteer here so please try and make a small donation to keep the Simple Portal website running


Offline Yazar8

  • Just Registered
  • Posts: 1
  • SMF Version: 2.0.8
  • SP Version: 2.3.5
Re: Shoutbox refresh and page reload discrepancy
« Reply #57 on: July 28, 2014, 08:13:15 AM »
I'm also facing this issue. The symptoms are completely same.
« Last Edit: July 28, 2014, 08:16:43 AM by Yazar8 »

Offline Ron-KK4HGY

  • Semi Newbie
  • *
  • Posts: 22
  • SMF Version: 2.0.8
  • SP Version: 2.3.5
shoutbox spins
« Reply #58 on: August 05, 2014, 09:39:03 AM »
I have used SMF and tiny portal for a couple of years but decided to try Simple Portal on my latest web site.  I like it pretty well but I have noticed that when I post a shout in the shout box sometimes I get a spinning icon that just never goes away.  How can I fix this?  Using SMF 2.08 and sp 2.35

Offline Kryzen

  • Localizer
  • Language
  • *
  • Posts: 826
  • Gender: Male
  • SMF Version: 2.0.11
  • SP Version: 2.3.6
Re: shoutbox spins
« Reply #59 on: August 08, 2014, 06:13:40 AM »
What browser and theme are you using? Have you installed any other mods?