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

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
avatar
[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;
}
avatar
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 ?
avatar
[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.
avatar
Van-Helsing
Hyperactive

Male Posts : 2411
Reputation : 112
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
avatar
[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

avatar
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
avatar
[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

avatar
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
avatar
[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.
avatar
Neptune-
Forumember

Male Posts : 229
Reputation : 38
Language : French (10), English (8), CSS (5), HTML (4), Javascript (4)
Location : France

https://www.galaxie-series.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 2nd 2014, 9:20 pm

http://socialacademy.forums.fm/forum look at Recent Topics System Activity
avatar
[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.

avatar
SLGray
Administrator
Administrator

Male Posts : 43155
Reputation : 3060
Language : English
Location : United States

https://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/forum look at Recent Topics System Activity

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

Male Posts : 229
Reputation : 38
Language : French (10), English (8), CSS (5), HTML (4), Javascript (4)
Location : France

https://www.galaxie-series.net/

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 ?
avatar
SocialAcademy
Forumember

Male Posts : 142
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
avatar
[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?
avatar
Derri
Helper
Helper

Male Posts : 8712
Reputation : 628
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
avatar
[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
avatar
Derri
Helper
Helper

Male Posts : 8712
Reputation : 628
Language : English & Basic French
Location : Scotland, United Kingdom

Back to top Go down

Back to top


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