The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Loading page is not working.

Page 3 of 3 Previous  1, 2, 3

View previous topic View next topic Go down

Solved Loading page is not working.

Post by SpyroDragon on December 12th 2015, 11:02 am

First topic message reminder :

Yea I tried making a new html loading page, I followed the instructions , but when I save this.

Code:
  <br />
<BODY BGCOLOR=black>
<div style="text-align: center;">
         <span style="color: red;"></span><br />  <img src="http://i68.servimg.com/u/f68/16/87/57/90/spyro_20.png" /><br /><img src="http://i68.servimg.com/u/f68/16/87/57/90/loadin12.png" /> <br /><img src="http://i68.servimg.com/u/f68/16/87/57/90/spyro_12.gif" /><span class="gensmall"> ‭‍</span>phpbb<a target="_blank" href="http://www.forumotion.com/phpbb"></a> <br />
</div><meta content="4; URL=http://tlos.openu2.com/forum" http-equiv="REFRESH" /> <br />


The
Code:
<BODY BGCOLOR=black>

Doesn't get saved, it keeps automatically removing it..
Anyone kno why its doing this?


Last edited by SpyroDragon on January 20th 2016, 5:54 am; edited 1 time in total

SpyroDragon
Forumember

Posts : 319
Reputation : 2
Language : English

http://SpyroDragon.com/

Back to top Go down


Solved Re: Loading page is not working.

Post by 10spetter10 on January 10th 2016, 10:08 am

Did you use the
Code:
<div id="FM_widget_share"></div>
container while try that script that I posted? Because it will search for that div and add the facebook box to it's content.

10spetter10
Forumember

Posts : 195
Reputation : 81
Language : Dutch

Back to top Go down

Solved Re: Loading page is not working.

Post by SpyroDragon on January 15th 2016, 1:27 pm

Can you give me exactly the way you want me to try it so I can just copy n paste it in there?

SpyroDragon
Forumember

Posts : 319
Reputation : 2
Language : English

http://SpyroDragon.com/

Back to top Go down

Solved Re: Loading page is not working.

Post by 10spetter10 on January 15th 2016, 5:18 pm

I used this as html:

Code:
<head>
   <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
   <script>
     //<![CDATA[
     function FM_widget_share() {
       var urlpage = document.location.href;
       if (document.location.href.match(/^(http:\/\/[^\/]*\/t[1-9][0-9]*)(p[1-9][0-9]*)?-.*$/)) {
         urlpage = document.location.href.replace(/^(http:\/\/[^\/]*\/t[1-9][0-9]*)(p[1-9][0-9]*)?-.*$/, "$1-")
       } else if (document.location.href.match(/^(http:\/\/[^\/]*\/f[1-9][0-9]*)(p[1-9][0-9]*)?-.*$/)) {
         urlpage = document.location.href.replace(/^(http:\/\/[^\/]*\/f[1-9][0-9]*)(p[1-9][0-9]*)?-.*$/, "$1-")
       }
       fblang = 'locale=en_GB&';
       gpluslang = "{lang: 'en-GB'}"
       var content = '';
         
       content += '<iframe src="http://www.facebook.com/plugins/like.php?' + fblang + 'href=' + encodeURIComponent(urlpage) + '&send=false&layout=box_count&width=60&show_faces=false&action=like&colorscheme=light&font&height=60" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:61px; height:61px;" allowTransparency="true"></iframe>';
       $("#FM_widget_share").append(content)
     }
     $(function() {
       if (document.getElementById("FM_widget_share") != null) {
         FM_widget_share()
       }
     });
     //]]>
   </script>
</head>
<BODY BGCOLOR=black>
        <div style="text-align: center;">
          <span style="color: red;"></span><br />  <img src="http://i68.servimg.com/u/f68/16/87/57/90/spyro_20.png" /><br /><img src="http://i68.servimg.com/u/f68/16/87/57/90/loadin12.png" /> <br /><img src="http://i68.servimg.com/u/f68/16/87/57/90/spyro_12.gif" /><br /><span class="gensmall"> ‭‍</span>phpbb<a target="_blank" href="http://www.forumotion.com/phpbb"></a> <br />
        </div><meta content="4; URL=/forum" http-equiv="REFRESH" />
<center><div id="FM_widget_share" align="center">
</div><a href="http://www.forumotion.com" target="_blank">forumotion.com</a>
</center> <br />

You can leave the 'Do you wish to use your forum header and footer' setting on 'no'.

10spetter10
Forumember

Posts : 195
Reputation : 81
Language : Dutch

Back to top Go down

Solved Re: Loading page is not working.

Post by SpyroDragon on January 19th 2016, 7:47 am

WOW, now we are getting somewhere, is there anyway to get the Google Recoommend and twitter on it as well?
Although I do like only being the facebook part.


Also how do u change the link it forwards to, I failed to find that part.

SpyroDragon
Forumember

Posts : 319
Reputation : 2
Language : English

http://SpyroDragon.com/

Back to top Go down

Solved Re: Loading page is not working.

Post by 10spetter10 on January 19th 2016, 11:43 am

This is the whole script that is used to insert the socialmedia buttons:

Code:
<head>
   <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
   <script>
     //<![CDATA[
     $(function FM_widget_share() {
    var urlpage = document.location.href;
    if (document.location.href.match(/^(http:\/\/[^\/]*\/t[1-9][0-9]*)(p[1-9][0-9]*)?-.*$/)) {
        urlpage = document.location.href.replace(/^(http:\/\/[^\/]*\/t[1-9][0-9]*)(p[1-9][0-9]*)?-.*$/, "$1-")
    } else if (document.location.href.match(/^(http:\/\/[^\/]*\/f[1-9][0-9]*)(p[1-9][0-9]*)?-.*$/)) {
        urlpage = document.location.href.replace(/^(http:\/\/[^\/]*\/f[1-9][0-9]*)(p[1-9][0-9]*)?-.*$/, "$1-")
    }
    if (navigator.language) {
        var languageinfo = navigator.language.toLowerCase()
    } else if (navigator.userLanguage) {
        var languageinfo = navigator.userLanguage.toLowerCase()
    } else if (navigator.browserLanguage) {
        var languageinfo = navigator.browserLanguage.toLowerCase()
    }
    var fblang = 'locale=en_GB&';
    var gpluslang = '';
    if (languageinfo.substr(0, 2) == "ar") {
        gpluslang = "{lang: 'ar'}"
    } else if (languageinfo.substr(0, 2) == "en") {
        if (languageinfo.substr(3, 2) == "gb") {
            fblang = 'locale=en_GB&';
            gpluslang = "{lang: 'en-GB'}"
        }
    } else if (languageinfo.substr(0, 2) == "es") {
        gpluslang = "{lang: 'es'}"
    } else if (languageinfo.substr(0, 2) == "fr") {
        fblang = 'locale=fr_FR&';
        gpluslang = "{lang: 'fr'}"
    } else if (languageinfo.substr(0, 2) == "pt") {
        if (languageinfo.substr(3, 2) == "br") {
            fblang = 'locale=pt_BR&';
            gpluslang = "{lang: 'pt-BR'}"
        } else {
            fblang = 'locale=pt_PT&';
            gpluslang = "{lang: 'pt-PT'}"
        }
    } else if (languageinfo.substr(0, 2) == "ru") {
        gpluslang = "{lang: 'ru'}"
    }
    var content = '';
    var gscript = document.createElement('script');
    gscript.type = 'text/javascript';
    gscript.src = 'https://apis.google.com/js/plusone.js';
    if (gpluslang != '') {
        if (gscript.canHaveChildren == null || gscript.canHaveChildren) {
            var gpt = document.createTextNode(gpluslang);
            gscript.appendChild(gpt)
        } else {
            gscript.text = gpluslang
        }
    }
    document.getElementById('FM_widget_share').appendChild(gscript);
    content += '<div class="g-plusone" data-size="tall" data-count="true" href="' + urlpage + '"></div>';
    content += '<iframe src="http://www.facebook.com/plugins/like.php?' + fblang + 'href=' + encodeURIComponent(urlpage) + '&send=false&layout=box_count&width=60&show_faces=false&action=like&colorscheme=light&font&height=60" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:61px; height:61px;" allowTransparency="true"></iframe>';
    content += '<a href="http://twitter.com/share" class="twitter-share-button" data-count="vertical" data-via="Forumotion">Tweet</a><scr' + 'ipt type="text/javascript" src="http://platform.twitter.com/widgets.js"></scr' + 'ipt>';
    $("#FM_widget_share").append(content)
});
     //]]>
   </script>
</head>
<body BGCOLOR=black>
        <div style="text-align: center;">
          <span style="color: red;"></span><br />  <img src="http://i68.servimg.com/u/f68/16/87/57/90/spyro_20.png" /><br /><img src="http://i68.servimg.com/u/f68/16/87/57/90/loadin12.png" /> <br /><img src="http://i68.servimg.com/u/f68/16/87/57/90/spyro_12.gif" /><br /><span class="gensmall"> ‭‍</span>phpbb<a target="_blank" href="http://www.forumotion.com/phpbb"></a> <br />
        </div><meta content="4; URL=/forum" http-equiv="REFRESH" />
<center><div id="FM_widget_share" align="center">
</div><a href="http://www.forumotion.com" target="_blank">forumotion.com</a>
</center> </body>

To change the link is the same as before, search for the meta tag and edit the value after url, I placed '/forum' there.

10spetter10
Forumember

Posts : 195
Reputation : 81
Language : Dutch

Back to top Go down

Solved Re: Loading page is not working.

Post by SpyroDragon on January 20th 2016, 5:54 am

You Sir, Are in need of a promotion.
@SLGrey , Consider this guy.

[Solved]

SpyroDragon
Forumember

Posts : 319
Reputation : 2
Language : English

http://SpyroDragon.com/

Back to top Go down

Solved Re: Loading page is not working.

Post by brandon_g on January 20th 2016, 6:04 am

We are always looking out for future helpers, so don't worry on that. Thanks for the help 10spetter10. Very Happy

Topic solved and archived ~ brandon_g



Remember to mark your topic when a solution is found.

brandon_g
Support Moderator
Support Moderator

Male Posts : 5345
Reputation : 488
Language : English
Location : USA

http://broadcastingduo.forumotion.com/

Back to top Go down

Page 3 of 3 Previous  1, 2, 3

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum