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.

Portal Background

View previous topic View next topic Go down

Solved Portal Background

Post by TheShaka on March 20th 2014, 12:35 pm

Hi i want ask if is possible to use another background in portal?
phpbb3 - http://seiya.forumotion.com/


Last edited by TheShaka on March 20th 2014, 8:24 pm; edited 1 time in total

TheShaka
Forumember

Male Posts : 413
Reputation : 6
Language : polish

http://seiya.forumotion.com

Back to top Go down

Solved Re: Portal Background

Post by Ange Tuteur on March 20th 2014, 6:16 pm

Hello TheShaka,

Yes, it is possible. Add the following to your javascripts :

Administration panel > modules > javascript codes management > create a new script

Title : What you wish
Placement : In the portal
Paste the code below and save :
Code:
$(function() {
  document.getElementsByTagName('body')[0].setAttribute('style','background:url(BACKGROUND_IMG);')
});

To change the background image replace 'BACKGROUND_IMG' with the URL of your image.

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2684
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Portal Background

Post by TheShaka on March 20th 2014, 7:35 pm

Work thanks.
how to make it center no reply etc... And why background scroll with page?

TheShaka
Forumember

Male Posts : 413
Reputation : 6
Language : polish

http://seiya.forumotion.com

Back to top Go down

Solved Re: Portal Background

Post by Ange Tuteur on March 20th 2014, 8:04 pm

You must add to the background property.

ex :
Code:
$(function() {
    document.getElementsByTagName('body')[0].setAttribute('style','background:url(BACKGROUND_IMG) center no-repeat fixed;')
});

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2684
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Portal Background

Post by TheShaka on March 20th 2014, 8:25 pm

Ok thanks ^^

TheShaka
Forumember

Male Posts : 413
Reputation : 6
Language : polish

http://seiya.forumotion.com

Back to top Go down

Solved Re: Portal Background

Post by Ange Tuteur on March 20th 2014, 8:26 pm

You're welcome :rose:

Topic solved and archived

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2684
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.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