Need to know how to center some code please

Go down

Solved Need to know how to center some code please

Post by FIB on December 6th 2015, 3:04 pm

I've just started to decorate my forum for Christmas and copied this code

Code:
        $(function() {
            $.getScript("http://perso.numericable.fr/antonywar/NOEL/testhaut.js");
        });

Code copied from here http://help.forumotion.com/t117773-christmas-time-on-forumotion-let-s-decorate-our-forums?highlight=christmas

But its not central on the forum see below




How can I centre it


Last edited by FIB on December 7th 2015, 9:17 am; edited 1 time in total

FIB
Forumember

Male Posts : 500
Reputation : 2
Language : English
Location : UK

http://ourbulgariaforum.freeforums.eu/

Back to top Go down

Solved Re: Need to know how to center some code please

Post by Ace on December 6th 2015, 4:43 pm

Hi,

Try this:

Code:
<p style="text-align:center;">$(function() {
            $.getScript("http://perso.numericable.fr/antonywar/NOEL/testhaut.js");
        });</p>

Regards.
avatar
Ace
Forumember

Posts : 250
Reputation : 49
Language : Portuguese & English

http://ajuda.forumeiros.com/u39577

Back to top Go down

Solved Re: Need to know how to center some code please

Post by FIB on December 6th 2015, 4:48 pm

Thanks @ACE but it doesn't show at all with that code

FIB
Forumember

Male Posts : 500
Reputation : 2
Language : English
Location : UK

http://ourbulgariaforum.freeforums.eu/

Back to top Go down

Solved Re: Need to know how to center some code please

Post by Ace on December 6th 2015, 5:27 pm

Hi,

lol, okay. Just grab the JS code from your first post and host it in a JS page. Grab that URL (from the JS page) and go to your Admin CP >> General >> Forum >> Configuration >> Forum Description.

Insert this code:

Code:
<p style="text-align:center;"><script src="path/to/your.js"></script></p>

Regards.
avatar
Ace
Forumember

Posts : 250
Reputation : 49
Language : Portuguese & English

http://ajuda.forumeiros.com/u39577

Back to top Go down

Solved Re: Need to know how to center some code please

Post by FIB on December 6th 2015, 6:44 pm

@Ace wrote:Hi,

lol, okay. Just grab the JS code from your first post and host it in a JS page. Grab that URL (from the JS page) and go to your Admin CP >> General >> Forum >> Configuration >> Forum Description.

Insert this code:

Code:
<p style="text-align:center;"><script src="path/to/your.js"></script></p>

Regards.

Thanks for your reply but I don't understand what your telling me sorry but I really am not sure what you mean? my fault not yours Embarassed

FIB
Forumember

Male Posts : 500
Reputation : 2
Language : English
Location : UK

http://ourbulgariaforum.freeforums.eu/

Back to top Go down

Solved Re: Need to know how to center some code please

Post by Ace on December 6th 2015, 7:09 pm

Hi,

Sure, no problem Smile

Delete this code:
Code:

<p style="text-align:center;">$(function() {
            $.getScript("http://perso.numericable.fr/antonywar/NOEL/testhaut.js");
        });</p>

Now, host this script in your JS pages:
Code:

        $(function() {
            $.getScript("http://perso.numericable.fr/antonywar/NOEL/testhaut.js");
        });

Now, look for that URL.

You'll see it in this page:


Look for the column URL.

Now go to Admin CP >> General >> Forum >> Configuration >> Forum Description.

Place this code in there:
Code:
<p style="text-align:center;"><script src="path/to/your.js"></script></p>

Path to your JS >> Replace it by the URL that you obtained from the last step.

Regards.
avatar
Ace
Forumember

Posts : 250
Reputation : 49
Language : Portuguese & English

http://ajuda.forumeiros.com/u39577

Back to top Go down

Solved Re: Need to know how to center some code please

Post by FIB on December 6th 2015, 10:04 pm

Still it didn't work sorry. here is my test forum to look at http://ourbulgariatestforum.betaboard.net/forum

FIB
Forumember

Male Posts : 500
Reputation : 2
Language : English
Location : UK

http://ourbulgariaforum.freeforums.eu/

Back to top Go down

Solved Re: Need to know how to center some code please

Post by APE on December 7th 2015, 1:58 am

 Give this a Go

ACP >> Display Tab >>    Pictures and Colors >> Colors >> CSS stylesheet

Add this code at the top of you page


Code:
embed#noel_deco_swf {
    margin-left: 200px;
}


SAVE.   

To move it left and right just change the 200px to as you wish

I hope that solves your Question for you.

APE



avatar
APE
Administrator
Administrator

Male Posts : 12099
Reputation : 1226
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: Need to know how to center some code please

Post by FIB on December 7th 2015, 9:16 am

Thank you @Ape worked perfectly

FIB
Forumember

Male Posts : 500
Reputation : 2
Language : English
Location : UK

http://ourbulgariaforum.freeforums.eu/

Back to top Go down

Solved Re: Need to know how to center some code please

Post by SLGray on December 7th 2015, 11:45 am

Topic solved and archived


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 43109
Reputation : 3053
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Back to top


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