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.

How can I change the background of Stickies, Announcements , Global Announcements ?

View previous topic View next topic Go down

Solved How can I change the background of Stickies, Announcements , Global Announcements ?

Post by [Mr][DmG] on May 30th 2014, 4:06 pm

How can i do this for phpbb2?


Last edited by [Mr][DmG] on June 3rd 2014, 5:18 pm; edited 1 time in total

[Mr][DmG]
New Member

Male Posts : 15
Reputation : 1
Language : English

http://help4games.2morpg.com/

Back to top Go down

Solved Re: How can I change the background of Stickies, Announcements , Global Announcements ?

Post by J0k3R^ on May 30th 2014, 4:09 pm

Try this one.
javascript - in all pages:
Code:
$(document).ready(function() {
$('strong:contains("Sticky")').each(function(){
$(this).addClass('sticky');
});
});
$(document).ready(function() {
$('strong:contains("Announcement")').each(function(){
$(this).addClass('an');
});
});
$(document).ready(function() {
$('strong:contains("Global announcement")').each(function(){
$(this).addClass('g-a');
});
});

css:
Code:
.sticky, .an, .g-a {
    background-color: #7BA60D;
    background-image: url("http://i55.servimg.com/u/f55/14/73/12/96/highli10.png");
    background-position: 0 -1px;
    background-repeat: repeat-x;
    border-radius: 3px;
    color: #FFFFFF;
    display: inline-block;
    font-family: Verdana,Geneva,sans-serif !important;
    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;
}

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: How can I change the background of Stickies, Announcements , Global Announcements ?

Post by [Mr][DmG] on May 30th 2014, 4:21 pm

and for title ?

[Mr][DmG]
New Member

Male Posts : 15
Reputation : 1
Language : English

http://help4games.2morpg.com/

Back to top Go down

Solved Re: How can I change the background of Stickies, Announcements , Global Announcements ?

Post by Van-Helsing on May 31st 2014, 12:20 am

@[Mr][DmG] wrote:and for title ?

These are not stickies, announcements or global announcements. These are topic prefixes.

Van-Helsing
Hyperactive

Male Posts : 2198
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Solved Re: How can I change the background of Stickies, Announcements , Global Announcements ?

Post by [Mr][DmG] on May 31st 2014, 4:01 pm

i know , but i need scripts for that

[Mr][DmG]
New Member

Male Posts : 15
Reputation : 1
Language : English

http://help4games.2morpg.com/

Back to top Go down

Solved Re: How can I change the background of Stickies, Announcements , Global Announcements ?

Post by Knyfe on May 31st 2014, 7:55 pm


Knyfe
Forumember

Female Posts : 107
Reputation : 1
Language : English
Location : The driveway of justice

http://www.acloserlook.forumotion.com

Back to top Go down

Solved Re: How can I change the background of Stickies, Announcements , Global Announcements ?

Post by [Mr][DmG] on June 1st 2014, 9:00 am

is not what i want

[Mr][DmG]
New Member

Male Posts : 15
Reputation : 1
Language : English

http://help4games.2morpg.com/

Back to top Go down

Solved Re: How can I change the background of Stickies, Announcements , Global Announcements ?

Post by Illest on June 1st 2014, 9:04 am


Illest
Forumember

Male Posts : 135
Reputation : 9
Language : English
Location : USA

http://mixedmedia.userboard.net

Back to top Go down

Solved Re: How can I change the background of Stickies, Announcements , Global Announcements ?

Post by [Mr][DmG] on June 1st 2014, 9:15 am

@J0k3R^ wrote:Try this one.
javascript - in all pages:
Code:
$(document).ready(function() {
$('strong:contains("Sticky")').each(function(){
$(this).addClass('sticky');
});
});
$(document).ready(function() {
$('strong:contains("Announcement")').each(function(){
$(this).addClass('an');
});
});
$(document).ready(function() {
$('strong:contains("Global announcement")').each(function(){
$(this).addClass('g-a');
});
});

css:
Code:
.sticky, .an, .g-a {
  background-color: #7BA60D;
  background-image: url("http://i55.servimg.com/u/f55/14/73/12/96/highli10.png");
  background-position: 0 -1px;
  background-repeat: repeat-x;
  border-radius: 3px;
  color: #FFFFFF;
  display: inline-block;
  font-family: Verdana,Geneva,sans-serif !important;
  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;
}

i make this but i need and for topic prefix

[Mr][DmG]
New Member

Male Posts : 15
Reputation : 1
Language : English

http://help4games.2morpg.com/

Back to top Go down

Solved Re: How can I change the background of Stickies, Announcements , Global Announcements ?

Post by Neptune- on June 1st 2014, 11:33 pm

Hello ^^

Please provide a link where those prefixes are visible to guests.

Neptune-
Forumember

Male Posts : 187
Reputation : 21
Language : French (10), English (8), CSS (5), HTML (4), Javascript (1)
Location : France

http://www.planet-series.com/

Back to top Go down

Solved Re: How can I change the background of Stickies, Announcements , Global Announcements ?

Post by [Mr][DmG] on June 2nd 2014, 9:20 pm

http://socialacademy.forums.fm/forumlook at Recent Topics System Activity

[Mr][DmG]
New Member

Male Posts : 15
Reputation : 1
Language : English

http://help4games.2morpg.com/

Back to top Go down

Solved Re: How can I change the background of Stickies, Announcements , Global Announcements ?

Post by SLGray on June 3rd 2014, 3:36 am

Have you looked around that forum for the codes?


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


SLGray
Administrator
Administrator

Male Posts : 35646
Reputation : 2374
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: How can I change the background of Stickies, Announcements , Global Announcements ?

Post by Neptune- on June 3rd 2014, 11:13 am

@Neptune- wrote:Hello ^^

Please provide a link where those prefixes are visible to guests.

@[Mr][DmG] wrote:http://socialacademy.forums.fm/forumlook at Recent Topics System Activity

I don't care about Social Academy. I was expecting a link to your board with prefixes enabled.

Neptune-
Forumember

Male Posts : 187
Reputation : 21
Language : French (10), English (8), CSS (5), HTML (4), Javascript (1)
Location : France

http://www.planet-series.com/

Back to top Go down

Solved Re: How can I change the background of Stickies, Announcements , Global Announcements ?

Post by SocialAcademy on June 3rd 2014, 12:18 pm

Hello Guest follow this


add this to your

Jscript Management

Name: What you want
placement: In All pages


Code:
jQuery(document).ready(function(){jQuery(".forumline").each(function(){jQuery(this).html(jQuery(this).html().replace(/✔/g,'<span id=\'perfix\'>EXAMPLE</span>'))})});




after that paste this CSS


Code:
#perfix {
  background: none repeat scroll 0px 0px rgb(123, 166, 13);
  border-radius: 4px 4px 4px 4px;
  color: rgb(255, 255, 255);
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  height: 15px;
  line-height: 15px;
  padding: 0px 5px;
  text-transform: uppercase;
  vertical-align: middle;
  }



Images :


When posting Topic





after posting





your forum is Phpbb2 Right ?

SocialAcademy
Forumember

Male Posts : 141
Reputation : 10
Language : JavaScript, CSS, Html, JQuery, C#, C++, Php, Python
Location : Forumotion

http://www.socialacademy.biz

Back to top Go down

Solved Re: How can I change the background of Stickies, Announcements , Global Announcements ?

Post by [Mr][DmG] on June 3rd 2014, 5:16 pm

yes is phpbb2 and thanks is very good

[Mr][DmG]
New Member

Male Posts : 15
Reputation : 1
Language : English

http://help4games.2morpg.com/

Back to top Go down

Solved Re: How can I change the background of Stickies, Announcements , Global Announcements ?

Post by Derri on June 3rd 2014, 5:31 pm

@[Mr][DmG] wrote:yes is phpbb2 and thanks is very good

Hi,

I just wanted to check before archiving. Is this topic actually solved?


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

Solved Re: How can I change the background of Stickies, Announcements , Global Announcements ?

Post by [Mr][DmG] on June 3rd 2014, 5:49 pm

yes SOLVED

[Mr][DmG]
New Member

Male Posts : 15
Reputation : 1
Language : English

http://help4games.2morpg.com/

Back to top Go down

Solved Re: How can I change the background of Stickies, Announcements , Global Announcements ?

Post by Derri on June 3rd 2014, 6:47 pm

Topic Solved & 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