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.

Colored border and login with facebook

Go down

Solved Colored border and login with facebook

Post by Builderbox on November 24th 2015, 7:05 pm



If anyone can help with these code but for phpbb2 ^^^

And a code to every person to connect with facebook if its possible

Thanks in advice ! thumleft


Last edited by Builderbox on November 24th 2015, 9:56 pm; edited 1 time in total
avatar
Builderbox
Forumember

Male Posts : 150
Reputation : 1
Language : English

http://pwnyswtor.rpdforum.com/

Back to top Go down

Solved Re: Colored border and login with facebook

Post by SLGray on November 24th 2015, 7:53 pm



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

avatar
SLGray
Administrator
Administrator

Male Posts : 41884
Reputation : 2879
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Colored border and login with facebook

Post by Ace on November 24th 2015, 9:55 pm

Hi,

About the code: (add this to a JS page)

Code:
jQuery(document).ready(function(){
jQuery("td.row2:has('.adm')").css('background','url(URL_iMAGE) repeat-y top right')});

.adm = the class that must be present in the administrator rank.
URL_iMAGE = The image that is going to be the background. (example: http://i.imgur.com/XtFaN.png)
repeat-y top right -> If your profile is on the right keep it right. If it's on the left, change right to left. Repeat-y is forcing the code to repeat vertically.

Now, in the rank of the person that you expect the color to appear:

Code:
<span class="adm">Admin</span>

The span class adm MUST be the same as the rank's.




Basically, the jQuery above is a bit different from Ange Tuteur's. Instead of adding a CSS separately, it adds it from the jQuery. You can, of course, edit the CSS properties if you wish.

Regards.
avatar
Ace
Forumember

Posts : 250
Reputation : 49
Language : Portuguese & English

http://ajuda.forumeiros.com/u39577

Back to top Go down

Solved Re: Colored border and login with facebook

Post by Builderbox on November 24th 2015, 9:57 pm

Thanks !!
avatar
Builderbox
Forumember

Male Posts : 150
Reputation : 1
Language : English

http://pwnyswtor.rpdforum.com/

Back to top Go down

Solved Re: Colored border and login with facebook

Post by SLGray on November 25th 2015, 3:15 am

Topic solved and archived


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

avatar
SLGray
Administrator
Administrator

Male Posts : 41884
Reputation : 2879
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Back to top


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