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.

Need to know how to center some code please

View previous topic View next topic 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 : 490
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.

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 : 490
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.

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 : 490
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.

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 : 490
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





APE
Manager
Manager

Male Posts : 8648
Reputation : 762
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

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 : 490
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.


SLGray
Administrator
Administrator

Male Posts : 36748
Reputation : 2449
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


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