Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.3 RN Issues
Author Message
hot_box
New Member
New Member



Joined: May 18, 2009
Posts: 16

PostPosted: Fri Jun 12, 2009 10:49 am Reply with quote

Hi,

done a search but cant seem to find what i need if the answer is here sorry for posting again but i cant seem to find it anyways i have ourscripts shout box, but for some reason it doesnt show any shouts in the block, they are being added to the database and can see them on the admin pages but not in the block.

any ideas?
 
View user's profile Send private message
Palbin
Site Admin



Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Fri Jun 12, 2009 11:27 am Reply with quote

I assume you have installed the shout box included with RN 2.3 in the AddOnFiles folder?

It is probably a javascript conflict. If you are not using one of the default themes try switching to one of them. If it still doesn't work try turning off all the other blocks. If it is a theme or block issue let me know and we can work from there.

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. 
View user's profile Send private message
sexycoder
Spammer and overall low life



Joined: Feb 02, 2009
Posts: 82

PostPosted: Fri Jun 12, 2009 4:46 pm Reply with quote

I know I talked about this before but it happened again. The name of the block is javaclock.php. After I actived the block shoutbox didnt work and so on.

It is a known fact that, if two or more javascript apps use

window.onload=, that one or more will fail.

I have provided an area within the shoutbox.js file at the top to resolve this.

Open all your other blocks and modules that use window.onload= in KATE or wordpad and write down all the onload events. Watch CAPS!

NOTE: window.onload=WorldClock will become WorldClock();
Place a // in front of all those window.onload events, save, and reupload.

This stops them from running.

Example: // window.onload=WorldClock
Open shoutbox.js
At the top youll see:

function allonloads() {
populate();




}
Place all your events in it like this:

function allonloads() {
populate();
WorldClock();
Something();
SomethingElse();


}

This starts all your blocks with javascript running again without conflict.
Save and upload shoutbox.js

Note: The shout box will have to be on the left side of your site in order for the others to work (unless all your blocks using javascript are on the right side).

This is just an example so u can undertand shoutbox is not the block which is in conflict. it is another block u have installed there. That is why I need to see what kind of blocks u have there. Wink
 
View user's profile Send private message
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Fri Jun 12, 2009 5:01 pm Reply with quote

There are quite a few posts here related to this is you search for "onload" like this one from slackvera which is almost identical to the one sexycoder posted.
http://www.ravenphpscripts.com/postt16152.html
 
View user's profile Send private message Send e-mail
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.3 RN Issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©