The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

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

+5
Illest
Knyfe
Van-Helsing
J0k3R^
[Mr][DmG]
9 posters

Go down

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

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

How can i do this for phpbb2?
How can I change the background of Stickies, Announcements , Global Announcements ? 2nr3vk4


Last edited by [Mr][DmG] on June 3rd 2014, 5:18 pm; edited 1 time in total
[Mr][DmG]
[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^ 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^
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] May 30th 2014, 4:21 pm

and for title ?
How can I change the background of Stickies, Announcements , Global Announcements ? 30m4jmc
[Mr][DmG]
[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 May 31st 2014, 12:20 am

[Mr][DmG] wrote:and for title ?
How can I change the background of Stickies, Announcements , Global Announcements ? 30m4jmc

These are not stickies, announcements or global announcements. These are topic prefixes.
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

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

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

i know , but i need scripts for that
[Mr][DmG]
[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 May 31st 2014, 7:55 pm

Knyfe
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] June 1st 2014, 9:00 am

is not what i want
[Mr][DmG]
[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 June 1st 2014, 9:04 am

Illest
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] 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
How can I change the background of Stickies, Announcements , Global Announcements ? 30m4jmc
[Mr][DmG]
[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- June 1st 2014, 11:33 pm

Hello ^^

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

Female Posts : 496
Reputation : 104
Language : French (10), English (8), CSS (5), HTML (4), Javascript (4)
Location : Scotland, UK

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] June 2nd 2014, 9:20 pm

http://socialacademy.forums.fm/forum look at Recent Topics System Activity
[Mr][DmG]
[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 June 3rd 2014, 3:36 am

Have you looked around that forum for the codes?


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

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

Male Posts : 51489
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

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

Post by Neptune- 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.
Neptune-
Neptune-
Forumember

Female Posts : 496
Reputation : 104
Language : French (10), English (8), CSS (5), HTML (4), Javascript (4)
Location : Scotland, UK

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 June 3rd 2014, 12:18 pm

Hello 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

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



after posting


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


your forum is Phpbb2 Right ?
SocialAcademy
SocialAcademy
Forumember

Male Posts : 145
Reputation : 11
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] June 3rd 2014, 5:16 pm

yes is phpbb2 and thanks is very good
[Mr][DmG]
[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 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?
Derri
Derri
Helper
Helper

Male Posts : 8755
Reputation : 638
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] June 3rd 2014, 5:49 pm

yes SOLVED
[Mr][DmG]
[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 June 3rd 2014, 6:47 pm

Topic Solved & Locked
Derri
Derri
Helper
Helper

Male Posts : 8755
Reputation : 638
Language : English & Basic French
Location : Scotland, United Kingdom

Back to top Go down

Back to top

- Similar topics

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