inherit
211492
0
Feb 24, 2021 8:52:31 GMT -8
Heildgar
124
July 2014
domanda
|
Post by Heildgar on Nov 24, 2015 4:25:25 GMT -8
So I wanted to put this code into my global header
But every time I click "save changes" it does nothing.
|
|
inherit
Peabrained Codebreaker
107114
0
Mar 11, 2020 7:47:27 GMT -8
Boy_Wonder
6,249
July 2007
natzy24
|
Post by Boy_Wonder on Nov 24, 2015 5:40:27 GMT -8
It will have already saved, if you look on the page on the forum you should see the images and links
|
|
inherit
211492
0
Feb 24, 2021 8:52:31 GMT -8
Heildgar
124
July 2014
domanda
|
Post by Heildgar on Nov 24, 2015 7:14:32 GMT -8
I've been trying for over an hour but it doesn't save, or change.
I've also tried putting different things in the box, but whatever I put it won't save. I've also clicked the button and waited for a long time but nothing has changed.
|
|
inherit
211492
0
Feb 24, 2021 8:52:31 GMT -8
Heildgar
124
July 2014
domanda
|
Post by Heildgar on Nov 24, 2015 7:16:37 GMT -8
I've also tried with specific board headers, which do save when i put other things, but won't save when I use the code.
|
|
inherit
Peabrained Codebreaker
107114
0
Mar 11, 2020 7:47:27 GMT -8
Boy_Wonder
6,249
July 2007
natzy24
|
Post by Boy_Wonder on Nov 24, 2015 7:28:27 GMT -8
Try this version of the code
<script language="JavaScript"> <!--
function random_imglink(){ var myimages=new Array() //specify random images below. You can have as many as you wish myimages[1]="http://i.imgur.com/t4yBTRt.png" myimages[2]="http://i.imgur.com/VF9sCt2.png" myimages[3]="http://i.imgur.com/KfFvWEC.png" myimages[4]="" myimages[5]="" myimages[6]=""
//specify corresponding links below var imagelinks=new Array() imagelinks[1]="http://movie-tv-books.freeforums.net/page/mtvb-book-club" imagelinks[2]="http://movie-tv-books.freeforums.net/page/mtvb-book-club" imagelinks[3]="http://movie-tv-books.freeforums.net/page/mtvb-book-club" imagelinks[4]="" imagelinks[5]="" imagelinks[6]=""
var ry=Math.floor(Math.random()*myimages.length) if (ry==0) ry=1 document.write('<a href='+'"'+imagelinks[ry]+'"'+'><img src="'+myimages[ry]+'" border=0></a>') } random_imglink() --> </script>
If not it'll have to be eyes more noticing then mine
|
|
inherit
211492
0
Feb 24, 2021 8:52:31 GMT -8
Heildgar
124
July 2014
domanda
|
Post by Heildgar on Nov 24, 2015 7:40:47 GMT -8
Nope, it's so weird, because, when i write anything else, it saves, but with this, it doesn't.
|
|
inherit
211492
0
Feb 24, 2021 8:52:31 GMT -8
Heildgar
124
July 2014
domanda
|
Post by Heildgar on Nov 24, 2015 7:41:08 GMT -8
Thanks for the help though, really appreciate it.
|
|
inherit
211492
0
Feb 24, 2021 8:52:31 GMT -8
Heildgar
124
July 2014
domanda
|
Post by Heildgar on Nov 24, 2015 7:44:15 GMT -8
Okay so I just tried this.
If I remove this section:
It will save
But then the code become completely useless.
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on Nov 24, 2015 12:44:12 GMT -8
Heildgar , I just tried the code you posted in my global headers and it saved for me even with that missing <!-- that Boy_Wonder added in the code he posted and it works fine. (It needs the <!-- though) Typically you can throw anything in your global headers and it should save. The headers and footers aren't like the style sheet where it won't let you save if you have an error. It could be just a fluke or something Proboards is doing on their end or a cloud problem so maybe try again in a hour. I can't think of any plugins or anything you may have on your site that would prevent it from saving. That said, you could still maybe try disabling any plugins you have and see if something there is screwing things up but I kind of doubt it. Edit: I do know yesterday about the time you posted this, there were problems people were having that was messing with the sidebars and other things, can't remember what all so maybe it has to do with that and maybe it will work now? I even experience an error on my dashboard with my first page of sites not showing up but it's working now.
|
|
inherit
211492
0
Feb 24, 2021 8:52:31 GMT -8
Heildgar
124
July 2014
domanda
|
Post by Heildgar on Nov 24, 2015 13:08:45 GMT -8
Alright thanks, I will try again.
|
|
inherit
211492
0
Feb 24, 2021 8:52:31 GMT -8
Heildgar
124
July 2014
domanda
|
Post by Heildgar on Nov 24, 2015 13:22:51 GMT -8
So I tried again, and I think I've localized the problem
If I place the script with this part exactly like this, it wont save
But if I save it with this part
Broke or cut off Like
or without the arrow
It will save
I don't know if this helped, I'm thinking of finding a different code.
|
|
inherit
211492
0
Feb 24, 2021 8:52:31 GMT -8
Heildgar
124
July 2014
domanda
|
Post by Heildgar on Nov 24, 2015 13:30:11 GMT -8
Okay this is getting ridiculous, I just tried with another code
<script type="text/javascript"> var total_images = 3; var random_number = Math.floor((Math.random()*total_images)); var random_img = new Array(); random_img[0] = '<a href="http://movie-tv-books.freeforums.net/page/mtvb-book-club"><img src="http://i.imgur.com/KfFvWEC.png"></a>'; random_img[1] = '<a href="http://movie-tv-books.freeforums.net/page/mtvb-book-club"><http://i.imgur.com/VF9sCt2.png"></a>'; random_img[2] = '<a href="http://movie-tv-books.freeforums.net/page/mtvb-book-club"><img src="http://i.imgur.com/t4yBTRt.png"></a>'; document.write(random_img[random_number]); </script> And it still wont save...
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on Nov 24, 2015 13:51:57 GMT -8
Just to be absolutely clear and forgive me for asking such a question but you are going to Admin > Structure> Headers & Footers> as opposed to say, the sidebar redux where there is a option to add something to the headers and footers (it should actually work fine there too, though).
Did you try disabling any of your plugins? Or maybe just switching to a different theme in case something in that theme is preventing you from saving. We may have to get a admin involved if disabling plugins make no difference or switching themes. (I know the headers and footers are for all themes but just on the off chance something in the theme is stopping you from saving.)
|
|
inherit
211492
0
Feb 24, 2021 8:52:31 GMT -8
Heildgar
124
July 2014
domanda
|
Post by Heildgar on Nov 24, 2015 13:56:41 GMT -8
Yeap, I'm going to Admin > Sturcutre >Headers & Footers > Global Headers
I tried disabling all of my plugins, and it still didn't save.
I haven't tried disabling the theme, I'll try that now.
|
|
inherit
211492
0
Feb 24, 2021 8:52:31 GMT -8
Heildgar
124
July 2014
domanda
|
Post by Heildgar on Nov 24, 2015 13:58:22 GMT -8
Still nothing :/
|
|