Good art is a taste, good design is an opinion.


Come as guest, stay as family.
Board Index

Come as guest, stay as family.


You are not connected. Please login or register

Foto

[Javascript] Specific background to user profile



View previous topic View next topic Go down Message [Page 1 of 1]

1
Offline

  Guest

avatar
Guest


Tutorial: Specific background to user profile

Put image at someone's profile Smile


--> Tutorials, tips and tricks <--
Specific background to user profile



- Javascript
Code:
[panda=js]jQuery(document).ready(function(){
         if(window.location.pathname.indexOf("/u1")!==-1){
          jQuery('<style>body{background: url("YOUR IMAGE HERE") }</style>').appendTo(document.head);
         } else return;
        });
Change [ic]url("YOUR IMAGE HERE")[/ic] with your image.
[ic]("/u1")[/ic] number of user which will have a specific background.  


- Preview





© PunBB Design


If you have any questions related to this topic create a topic with the following title:
Specific background to user profile

Powered by PunBB
Currently 0 users have thanked Guest for this post:

2
Offline

  Deswimmer39

avatar
Punbb Rookie
Punbb Rookie
how can one add more users?

And it is not working on my forum

Powered by PunBB
Currently 0 users have thanked Deswimmer39 for this post:

3
Offline

  Vaccam

avatar
Punbb Rookie
Punbb Rookie
@Deswimmer39 wrote:[link="/t350-javascript-specific-background-to-user-profile#2102"]how can one add more users?

And it is not working on my forum

To add more users you must copy the code replace "u#" with the user you want it to work on, take you for an instance "u156".

Could you maybe provide us with your forum url ?

Powered by PunBB
Currently 0 users have thanked Vaccam for this post:

4
Offline

  J0k3R^

avatar
Pemanently Banned
Pemanently Banned
almost worked but i dont know why is it hidding. my main forum BG is blue so i put one green bg to my profile (u1) for testing, see the results. when i refresh, its going to be displayed but then its hidding:




plz help me, im waiting for ur answer guys. Smile

Powered by PunBB
Currently 0 users have thanked J0k3R^ for this post:

View previous topic View next topic Back to top Message [Page 1 of 1]


Topic URL's

URL
BBcode
HTML

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