Main Menu
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 log in.

Who's Online

  • Dot Guests: 1135
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

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!

Shoutbox not working 4 me ):

Started by xlukzx, June 01, 2012, 03:29:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

xlukzx

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

Chen Zhen

#1
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.




xlukzx

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.

Chen Zhen

Quote from: xlukzxShoutbox 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.


xlukzx

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?

Chen Zhen

#5
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 ?


Chen Zhen

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

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.

xlukzx

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?

xlukzx

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! :)

Chen Zhen

#10
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.