Theme conflict with Javascript

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Theme conflict with Javascript
Donovan
CZ Active Member
 Codezwiz Site Donator
usa.gif ohio.gif
Occupation: Web Developer
Gender: Male
Fav. Sports Team: St Louis Cardinals
Status: Offline
Joined: Dec 03, 2003
0.02 posts per day
Posts: 160
Points: 9,216
   
The concensus at the vWar site says that a custom theme could conflict with javascript on the site and cause it to not run. The issue is a vWar countdown block that should show the time left before a match or scrimm. Currently my coundown block is not showing anything as well as the game icon that should be showing up next to the time.

You can see this on the left side of my site.

A post said to edit my style.css to get java scripting activated.

Huh?

As far as I can tell my style.css has no javascript in it at all.



Back to top Reply with quote
#2   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
Move this into the theme.php into the body line and see if that makes any differance.

<body onLoad="getVWarTime()">




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   re: Theme conflict with Javascript
Donovan
CZ Active Member
 Codezwiz Site Donator
usa.gif ohio.gif
Occupation: Web Developer
Gender: Male
Fav. Sports Team: St Louis Cardinals
Status: Offline
Joined: Dec 03, 2003
0.02 posts per day
Posts: 160
Points: 9,216
   
As the site goes "BOOOM"

No it didn't help.



Back to top Reply with quote
#4   re: Theme conflict with Javascript
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.48 posts per day
Posts: 3765
Points: 351,412
   
Try this:

Create a folder called scripts. Take each script on your page and paste it into a new file and save it to the scripts folder with a .js extension. Example: vwar.js. Then in your index page and your blocks call them like this:
<S CRIPT LANGUAGE="javas cript" SRC="scripts/vwar.js"></S CRIPT>


That might solve the problem with the scripts conflicting with each other.


Back to top Reply with quote
#5   re: Theme conflict with Javascript
Donovan
CZ Active Member
 Codezwiz Site Donator
usa.gif ohio.gif
Occupation: Web Developer
Gender: Male
Fav. Sports Team: St Louis Cardinals
Status: Offline
Joined: Dec 03, 2003
0.02 posts per day
Posts: 160
Points: 9,216
   
Long time for me to reply but.

I did what you said

echo '<SCR IPT LANGUAGE="java script" SRC="scripts/countdown.js"></SCR IPT>';

But still not showing up. The theme is a codewiz theme by Telli at [ Register or login to view links on this board. ]



Back to top Reply with quote
#6   re: Theme conflict with Javascript
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.48 posts per day
Posts: 3765
Points: 351,412
   
Hi Steve,

That should be "by Kelly and Telli".
This might be a dumb question, but then again, it might not be. Did you remove the spaces from the word script in the code above?



Back to top Reply with quote
#7   re: Theme conflict with Javascript
Donovan
CZ Active Member
 Codezwiz Site Donator
usa.gif ohio.gif
Occupation: Web Developer
Gender: Male
Fav. Sports Team: St Louis Cardinals
Status: Offline
Joined: Dec 03, 2003
0.02 posts per day
Posts: 160
Points: 9,216
   
Yuck..yuck

Yes I did remove those spaces. I figured Telli had Sentinal or Protector and I might be banned if I had script tags in a thread.

Anyway..this has never worked and I am just now revisting it. Another block stopped working on me as well and I think it was a hit block to show how many hits my site recieved. I think that pulls data from the Statistics module.


Edit/...The hits block contains no javascript.



Back to top Reply with quote
#8   re: Theme conflict with Javascript
xGSTQ
CZ Super Newbie
 Codezwiz Site Donator
xGSTQ has been a member for over 19 year's 19 Year Member
uk.gif
Gender: Male
Website:
Status: Offline
Joined: Sep 07, 2005
0.01 posts per day
Posts: 56
Points: 4,428
   
Hi ..

Im using PNC 2.1 (nuke 7.6 i think)

I have had more or less the same problems [ Register or login to view links on this board. ]
It seems that i can only run one javascript on my index.php any more and they wont work.

I tried VWar info block / CZNews and Shoutbox but only 1 would ever work at any one time and it was normaly the vWar infoblock.. if i turned the vwar block off it would be CZnews and if i turned off that then my shout box would come back to life !!

I would love to get all 3 javascripts working at the same time but i dont have a clue where to start...

Hope some one reads this and says I DO !!

Thanks in advance Ped



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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 cannot attach files in this forum
You cannot download files in this forum