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 Sat May 10 2014, 22:16

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 Mon May 12 2014, 20:42

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 Mon May 12 2014, 23:04

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 : 37716
Reputation : 2533
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Specific Background to user problem

Post by J0k3R^ on Tue May 13 2014, 07:38

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 Tue May 13 2014, 11:46

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 Wed May 14 2014, 19:55

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 Fri May 16 2014, 19:43

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 Sat May 17 2014, 19:40

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 Mon May 19 2014, 19:15

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 Tue May 20 2014, 19:45

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 Wed May 21 2014, 19:18

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 Guest on Thu May 22 2014, 16:29

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

Guest
Guest


Back to top Go down

Solved Re: Specific Background to user problem

Post by J0k3R^ on Thu May 22 2014, 16:33

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 Thu May 22 2014, 16:35

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 : 8489
Reputation : 587
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