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.

Specific Background to user problem

View previous topic View next topic Go down

Solved Specific Background to user problem

Post by J0k3R^ on May 10th 2014, 9:16 pm

Hi, i tried to use this js code to display a diffirent background on my profile (u1)

Code:
jQuery(document).ready(function(){
  if(window.location.pathname.indexOf("/u1")!==-1){
  jQuery('<style>body{background: url("My Image Here") }</style>').appendTo(document.head);
  } else return;
  });

the code is working but the problem is that every user got this background now not only me (u1).
whats wrong? thanks Very Happy

J0k3R^
Forumember

Male Posts : 742
Reputation : 28
Language : Greek > English > Russian > Spanish
Location : C:\>r00t

http://fmplanet.forumgreek.com

Back to top Go down

Solved Re: Specific Background to user problem

Post by J0k3R^ on May 12th 2014, 7:42 pm

BUMP

J0k3R^
Forumember

Male Posts : 742
Reputation : 28
Language : Greek > English > Russian > Spanish
Location : C:\>r00t

http://fmplanet.forumgreek.com

Back to top Go down

Solved Re: Specific Background to user problem

Post by SLGray on May 12th 2014, 10:04 pm

Is this correct: indexof?


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


SLGray
Administrator
Administrator

Male Posts : 35661
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Specific Background to user problem

Post by J0k3R^ on May 13th 2014, 6:38 am

i dont know from js.
i got it like this but its working for all members not only for me (u1).

J0k3R^
Forumember

Male Posts : 742
Reputation : 28
Language : Greek > English > Russian > Spanish
Location : C:\>r00t

http://fmplanet.forumgreek.com

Back to top Go down

Solved Re: Specific Background to user problem

Post by Pizza Boi on May 13th 2014, 10:46 am

Hi Very Happy

Hmm... if it's not working for you, try creating a dummy account and get its /u# instead? See if that will make it work for you and have it not work for the dummy, lol.

Regards,
Pizza Boi

Pizza Boi
Hyperactive

Male Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!

http://redlustempire.forumtl.com/

Back to top Go down

Solved Re: Specific Background to user problem

Post by J0k3R^ on May 14th 2014, 6:55 pm

Bump

J0k3R^
Forumember

Male Posts : 742
Reputation : 28
Language : Greek > English > Russian > Spanish
Location : C:\>r00t

http://fmplanet.forumgreek.com

Back to top Go down

Solved Re: Specific Background to user problem

Post by J0k3R^ on May 16th 2014, 6:43 pm

Bump

J0k3R^
Forumember

Male Posts : 742
Reputation : 28
Language : Greek > English > Russian > Spanish
Location : C:\>r00t

http://fmplanet.forumgreek.com

Back to top Go down

Solved Re: Specific Background to user problem

Post by J0k3R^ on May 17th 2014, 6:40 pm

BUMP

J0k3R^
Forumember

Male Posts : 742
Reputation : 28
Language : Greek > English > Russian > Spanish
Location : C:\>r00t

http://fmplanet.forumgreek.com

Back to top Go down

Solved Re: Specific Background to user problem

Post by J0k3R^ on May 19th 2014, 6:15 pm

Bump

J0k3R^
Forumember

Male Posts : 742
Reputation : 28
Language : Greek > English > Russian > Spanish
Location : C:\>r00t

http://fmplanet.forumgreek.com

Back to top Go down

Solved Re: Specific Background to user problem

Post by J0k3R^ on May 20th 2014, 6:45 pm

bump

J0k3R^
Forumember

Male Posts : 742
Reputation : 28
Language : Greek > English > Russian > Spanish
Location : C:\>r00t

http://fmplanet.forumgreek.com

Back to top Go down

Solved Re: Specific Background to user problem

Post by J0k3R^ on May 21st 2014, 6:18 pm

BUMPP

J0k3R^
Forumember

Male Posts : 742
Reputation : 28
Language : Greek > English > Russian > Spanish
Location : C:\>r00t

http://fmplanet.forumgreek.com

Back to top Go down

Solved Re: Specific Background to user problem

Post by @Mark on May 22nd 2014, 3:29 pm

Can you apply it again? Seems to work fine? Very Happy

@Mark
Forumember

Male Posts : 187
Reputation : 37
Language : HTML | CSS | Javascript | C | Java
Location : Republic of the Philippines

http://help.forumotion.com/

Back to top Go down

Solved Re: Specific Background to user problem

Post by J0k3R^ on May 22nd 2014, 3:33 pm

loool. maybe a js that i deleted was affecting it or something similar and i didnt check it again xD

Solved

J0k3R^
Forumember

Male Posts : 742
Reputation : 28
Language : Greek > English > Russian > Spanish
Location : C:\>r00t

http://fmplanet.forumgreek.com

Back to top Go down

Solved Re: Specific Background to user problem

Post by Derri on May 22nd 2014, 3:35 pm

Topic Solved and Locked


Forum Rules: :Forumotion Staff: :Appeal A Warning: :FAQ: :Tips & Tricks: :Forgotten Password/Login Issues
You need one post to send a PM
When your topic has been solved, ensure you mark the topic solved
Never post your email in public


Derri
Administrator
Administrator

Male Posts : 8355
Reputation : 571
Language : English & Basic French
Location : Scotland, United Kingdom

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