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

[Solved] how to put Global Mod behide topic text



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

1
Offline

  deaneo8

avatar
V.I.P. Member
V.I.P. Member

  • Description:

like this bro




  • Information:

Forum:gamingnews.forumotion.co.ukVersion:PUNBB
Type:Errors in codeTags:Global,behide,topic

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

2
Offline

  Virus

avatar
★Moderator★
★Moderator★
You want the Global Announcement box?

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

3
Offline

  deaneo8

avatar
V.I.P. Member
V.I.P. Member
i want it to look like this


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

4
Offline

  Virus

avatar
★Moderator★
★Moderator★
Could you please send the Javascript you are using for this style?

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

5
Offline

  deaneo8

avatar
V.I.P. Member
V.I.P. Member
Code:
$(document).ready(function(){$('.tcl strong:contains("Global announcement")').each(function(){$(this).css({'color':'#fff','background':'url("http://i57.servimg.com/u/f57/17/68/86/50/stk1010.png") repeat-x 0 -1px #FF4000','border-radius':'3px 3px 3px 3px','display':'inline-block','font-size':'9px','font-weight':'bold','height':'16px','line-height':'16px','padding':'0 5px','text-shadow':'0 -1px 0 rgba(0, 0, 0, 0.2)','text-transform':'uppercase','vertical-align':'middle',})})});
     
 $(document).ready(function(){$('.tcl strong:contains("Pinned")').each(function(){$(this).css({'color':'#fff','background':'url("http://i57.servimg.com/u/f57/17/68/86/50/stk1010.png") repeat-x 0 -1px #7BA60D','border-radius':'3px 3px 3px 3px','display':'inline-block','font-size':'9px','font-weight':'bold','height':'16px','line-height':'16px','padding':'0 5px','text-shadow':'0 -1px 0 rgba(0, 0, 0, 0.2)','text-transform':'uppercase','vertical-align':'middle',})})});
       
$(document).ready(function(){$('.tcl strong:contains("Announcement")').each(function(){$(this).css({'color':'#fff','background':'url("http://i57.servimg.com/u/f57/17/68/86/50/stk1010.png") repeat-x 0 -1px #7BA60D','border-radius':'3px 3px 3px 3px','display':'inline-block','font-size':'9px','font-weight':'bold','height':'16px','line-height':'16px','padding':'0 5px','text-shadow':'0 -1px 0 rgba(0, 0, 0, 0.2)','text-transform':'uppercase','vertical-align':'middle',})})});

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

6
Offline

  Virus

avatar
★Moderator★
★Moderator★
Replace your Javascript with this:
Code:
$(document).ready(function(){$('.tcl strong:contains("Global announcement")').each(function(){$(this).css({'color':'#fff','background':'url("http://i57.servimg.com/u/f57/17/68/86/50/stk1010.png") repeat-x 0 -1px #FF4000','border-radius':'3px 3px 3px 3px','display':'inline-block','font-size':'9px','font-weight':'bold','height':'16px','line-height':'16px','float: left;','padding':'0 5px','text-shadow':'0 -1px 0 rgba(0, 0, 0, 0.2)','text-transform':'uppercase','vertical-align':'middle',})})});
     
 $(document).ready(function(){$('.tcl strong:contains("Pinned")').each(function(){$(this).css({'color':'#fff','background':'url("http://i57.servimg.com/u/f57/17/68/86/50/stk1010.png") repeat-x 0 -1px #7BA60D','border-radius':'3px 3px 3px 3px','display':'inline-block','font-size':'9px','font-weight':'bold','height':'16px','line-height':'16px','float: left;','padding':'0 5px','text-shadow':'0 -1px 0 rgba(0, 0, 0, 0.2)','text-transform':'uppercase','vertical-align':'middle',})})});
       
$(document).ready(function(){$('.tcl strong:contains("Announcement")').each(function(){$(this).css({'color':'#fff','background':'url("http://i57.servimg.com/u/f57/17/68/86/50/stk1010.png") repeat-x 0 -1px #7BA60D','border-radius':'3px 3px 3px 3px','display':'inline-block','font-size':'9px','font-weight':'bold','height':'16px','line-height':'16px','padding':'0 5px','text-shadow':'0 -1px 0 rgba(0, 0, 0, 0.2)','text-transform':'uppercase','float: left;','vertical-align':'middle',})})});

And add to the CSS this:
Code:
.pun tbody.statused span.status {
position: absolute;
left: 15.2%;
}
.pun .posthead img, .pun table .tdtopics img {
float: left;
margin-right: 5px;
vertical-align: middle;
}

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

7
Offline

  deaneo8

avatar
V.I.P. Member
V.I.P. Member
didnt work just remove my global message insted

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

8
Offline

  Virus

avatar
★Moderator★
★Moderator★
Oops, it seems i made a mistake to the Javascript!

Code:
$(document).ready(function(){$('.tcl strong:contains("Global announcement")').each(function(){$(this).css({'color':'#fff','background':'url("http://i57.servimg.com/u/f57/17/68/86/50/stk1010.png") repeat-x 0 -1px #FF4000','border-radius':'3px 3px 3px 3px','display':'inline-block','font-size':'9px','font-weight':'bold','height':'16px','line-height':'16px','float':'left;','padding':'0 5px','text-shadow':'0 -1px 0 rgba(0, 0, 0, 0.2)','text-transform':'uppercase','vertical-align':'middle',})})});
     
 $(document).ready(function(){$('.tcl strong:contains("Pinned")').each(function(){$(this).css({'color':'#fff','background':'url("http://i57.servimg.com/u/f57/17/68/86/50/stk1010.png") repeat-x 0 -1px #7BA60D','border-radius':'3px 3px 3px 3px','display':'inline-block','font-size':'9px','font-weight':'bold','height':'16px','line-height':'16px','float':'left;','padding':'0 5px','text-shadow':'0 -1px 0 rgba(0, 0, 0, 0.2)','text-transform':'uppercase','vertical-align':'middle',})})});
       
$(document).ready(function(){$('.tcl strong:contains("Announcement")').each(function(){$(this).css({'color':'#fff','background':'url("http://i57.servimg.com/u/f57/17/68/86/50/stk1010.png") repeat-x 0 -1px #7BA60D','border-radius':'3px 3px 3px 3px','display':'inline-block','font-size':'9px','font-weight':'bold','height':'16px','line-height':'16px','padding':'0 5px','text-shadow':'0 -1px 0 rgba(0, 0, 0, 0.2)','text-transform':'uppercase','float':'left;','vertical-align':'middle',})})});
^_^

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

9
Offline

  deaneo8

avatar
V.I.P. Member
V.I.P. Member
np bro we all make mistake bro

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

10
Offline

  Virus

avatar
★Moderator★
★Moderator★
Haha i posted the wrong code again! Replace it with this one! Haha this one will work! Smile
Code:
$(document).ready(function(){$('.tcl strong:contains("Global announcement")').each(function(){$(this).css({'color':'#fff','background':'url("http://i57.servimg.com/u/f57/17/68/86/50/stk1010.png") repeat-x 0 -1px #FF4000','border-radius':'3px 3px 3px 3px','display':'inline-block','font-size':'9px','font-weight':'bold','height':'16px','line-height':'16px','float':'left','padding':'0 5px','text-shadow':'0 -1px 0 rgba(0, 0, 0, 0.2)','text-transform':'uppercase','vertical-align':'middle',})})});
     
 $(document).ready(function(){$('.tcl strong:contains("Pinned")').each(function(){$(this).css({'color':'#fff','background':'url("http://i57.servimg.com/u/f57/17/68/86/50/stk1010.png") repeat-x 0 -1px #7BA60D','border-radius':'3px 3px 3px 3px','display':'inline-block','font-size':'9px','font-weight':'bold','height':'16px','line-height':'16px','float':'left','padding':'0 5px','text-shadow':'0 -1px 0 rgba(0, 0, 0, 0.2)','text-transform':'uppercase','vertical-align':'middle',})})});
       
$(document).ready(function(){$('.tcl strong:contains("Announcement")').each(function(){$(this).css({'color':'#fff','background':'url("http://i57.servimg.com/u/f57/17/68/86/50/stk1010.png") repeat-x 0 -1px #7BA60D','border-radius':'3px 3px 3px 3px','display':'inline-block','font-size':'9px','font-weight':'bold','height':'16px','line-height':'16px','padding':'0 5px','text-shadow':'0 -1px 0 rgba(0, 0, 0, 0.2)','text-transform':'uppercase','float':'left','vertical-align':'middle',})})});

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

11
Offline

  deaneo8

avatar
V.I.P. Member
V.I.P. Member
plz closed all done

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

12
Offline

  Virus

avatar
★Moderator★
★Moderator★
[sucesso="Marked as Solved"]The question(s) in this topic have been answered and the owner has been able to solve the problem. Because of this, the topic has been marked as Solved.

If you have further questions, please open a new topic.[/sucesso]

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

13
Offline

  Sponsored content



Powered by PunBB
Currently 0 users have thanked Sponsored content 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