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

Welcome to SimplePortal.net! You can download SimplePortal from the Downloads Area!

Author Topic: Shoutbox not working 4 me ):  (Read 4057 times)

0 Members and 1 Guest are viewing this topic.

Offline xlukzx

  • Semi Newbie
  • *
  • Posts: 10
  • SMF Version: 2.0.2
  • SP Version: 2.3.4
Shoutbox not working 4 me ):
« on: June 01, 2012, 03:29:11 PM »
Hi there. I'm using a paid hosting.
Shoutbox were working perfectly but now i don't know why its not working properly.

First, it doesn' refresh automatically
2nd when i send a comment page refresh
3smileys and style boxes are not showing
4 when i try to erase a message it moves me to the historial
5 in the historial i can see another chatbox that is used on another section of my site (weird).

I repaired and optimized tables but it still working wrong.
i'm thinking it is a problem caused by the need of script or something to see with java.
Any idea?

caching is activated
time is 5 seconds

try site: http://animefall.com.ar/forum/index.php?page=cineaf

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: Shoutbox not working 4 me ):
« Reply #1 on: June 01, 2012, 08:05:42 PM »
xlukzx,

I hope you don't mind that I moved your thread to the appropriate board. The shoutbox behavior you claim to be experiencing for SP v2.3.4 appears to be an issue caused by other circumstances.

As a guest no one can see your shoutbox. From what I can see of the page you linked there are several html errors which may be causing the page to be rendered incorrectly.

ie. link tags that load up other css & also style tags for your page that are supposed to be prior to the body tag.

Due to the above some browsers may not render the page correctly.

Another possibility (after first attempting to fix the above to see if it addresses the issue imo) is a conflict from other js/css. Like the social network button mod (ie. which seems to have added a style tag in the wrong place on the page) or maybe the one that alters your link titles. You can opt to temporarily uninstall one of those mods & then empty the browser cache + reload the page in question to see if a conflicting mod can be pinpointed.

 

« Last Edit: June 01, 2012, 08:10:21 PM by Underdog »

Offline xlukzx

  • Semi Newbie
  • *
  • Posts: 10
  • SMF Version: 2.0.2
  • SP Version: 2.3.4
Re: Shoutbox not working 4 me ):
« Reply #2 on: June 01, 2012, 09:54:15 PM »
Hi there!, thanks for replying. Sorry for posting in the wrong section :') my bad.

 I've moved all Css link tags to the head, i think there's only one i can't find the way to move because it doesn't seems to be in the index template.

Shoutbox were working OK since a crash i had trying to embedding it on a external page.
What i did (And sorry for my noob's nonsense) was pasting the whole code of shoutbox found in portalblocks.php in my php site. Then, searching i find out i just need to put:

   $parameters['shoutbox']= 1;
   sp_shoutbox($parameters, $id, $return_parameters = false);

Hope this help to understand how to fix my issue.

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: Shoutbox not working 4 me ):
« Reply #3 on: June 02, 2012, 09:51:42 AM »
Quote from: xlukzx
Shoutbox were working OK since a crash i had trying to embedding it on a external page.

xlukzx,

If I understand you correctly there may be a better way to do it.

Are you are attempting to display a block (in this case a shoutbox) specifically on the link you provided & are having trouble doing so?

Edit your (shoutbox) block & do the following:
  • Scroll down to Display Options
  • Click the check box for Advanced Options
  • Add the following to Custom Display Options: ~page|cineaf

Let us know if that works for you.


Offline xlukzx

  • Semi Newbie
  • *
  • Posts: 10
  • SMF Version: 2.0.2
  • SP Version: 2.3.4
Re: Shoutbox not working 4 me ):
« Reply #4 on: June 02, 2012, 12:26:18 PM »
Hi there, no what i want is to avoid some Javascript charge, wich loads by default in all pages by index_template.
 So i made an standalone page with php. The link is www.animefall.com.ar/cineaf.php
I do know i can use blocks in portal pages but this one is not a portal generated page.
But it isn't the main trouble at all.

If i unistall portal and install the last version will i loose all blocks and pages? and.. will that fix my problem with shoutbox?

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: Shoutbox not working 4 me ):
« Reply #5 on: June 02, 2012, 01:03:20 PM »
xlukzx,

I advise updating your portal to v2.3.5. Simple Portal gives you the option to delete all SP database info but by default the checkbox is unchecked which means it will not unless you enable it to do so.

The url you provided would put the file in a parent directory prior to your forum altogether.
Just to clarify before I give you a solution, the file you are trying to create that you also want your shoutbox to appear on is located at: /cineaf.php or is it actually /forum/cineaf.php ?
« Last Edit: June 02, 2012, 01:16:40 PM by Underdog »

Offline xlukzx

  • Semi Newbie
  • *
  • Posts: 10
  • SMF Version: 2.0.2
  • SP Version: 2.3.4
Re: Shoutbox not working 4 me ):
« Reply #6 on: June 02, 2012, 06:39:26 PM »

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: Shoutbox not working 4 me ):
« Reply #7 on: June 03, 2012, 07:54:56 PM »
xlukzx,

Make sure a shoutbox block exists in your block list but disable it if this php file is the only place you are using it.

Note the block id# when editing the above noted shoutbox (look in the url at the block_id #).
Note the shoutbox id# from the shoutbox list that your are using for this example, let us say it is id #1

In this example block id#10  shoutbox id#1
Code: [Select]
global $sourcedir;

@require_once($sourcedir . '/PortalBlocks.php');
$parameters['shoutbox'] = 1;
$id = 10;
$return_parameters = false;
sp_shoutbox($parameters, $id, $return_parameters);

I have not tested this.

Offline xlukzx

  • Semi Newbie
  • *
  • Posts: 10
  • SMF Version: 2.0.2
  • SP Version: 2.3.4
Re: Shoutbox not working 4 me ):
« Reply #8 on: June 04, 2012, 02:03:53 PM »
The code works Ok. But  the embedding wasn't the main trouble.
It's shoutbox.

For example, when i click smiley's button something like "#smiles" adds to the end of my actual url. But nothing happens.
Same as when i hit Font button i can see something like "#style" adds to the end of the link.

This happen with all shoutboxes i try to use in every section of my forum, wich means it's a general trouble.

Then, when i send a message page reloads to show the sent message . And when i hit the less button for erasing a message i tooks me to the history page and cleans the message.

For me this is kinda Javascript missing error. Do shoutbox need some JS library or something like that?

Offline xlukzx

  • Semi Newbie
  • *
  • Posts: 10
  • SMF Version: 2.0.2
  • SP Version: 2.3.4
Re: Shoutbox not working 4 me ):
« Reply #9 on: June 04, 2012, 02:11:43 PM »
With my last reply i figured out the problem!.
I was minifying some JavaScript codes to make forum loads faster.  In this case the file portal.js
But something went wrong in the minification and file was crashing.
I did replace the portal.js by the original one and shoutboxes worked ok again.
Thanks for all! :)

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: Shoutbox not working 4 me ):
« Reply #10 on: June 04, 2012, 08:12:28 PM »
xlukzx,

I am pleased to hear you got it working.

If you're using a custom template you should have it loading both the SimplePortal js & css files.
You can do it after the <head> tag of your template (prior to the body).
Imo don't adjust the js file & note that some of the css is to make it function properly & not just for aesthetics.


« Last Edit: June 04, 2012, 08:17:40 PM by Underdog »