You are not connected. Please login or register

Topic thanked message problem

Page 2 of 2 Go to page : Previous  1, 2

Anonymous

Guest

Guest

PostGuest Wed Feb 23, 2022 2:55 pm

First topic message reminder :

I added this java code
Code:
$(function() {
  var thanked = $('#main-content > .post[style*="background-color"]')[0];

  if (thanked) {
    thanked.className += ' thanked-post';
    thanked.style.backgroundColor = '';

    thanked.insertAdjacentHTML(
      'beforeend',
      '<div class="thanked-message"><i class="fa fa-thumbs-up"></i> The topic starter has thanked {USERNAME} !</div>'
      .replace('{USERNAME}', $(thanked).find('p.author a').text())
    );

    $('head').append('<style type="text/css">'+
                     '.thanked-post .thanked-message { color:#FFF; font-size:12px; background:#88cc55; border-radius:2px; border-bottom:1px solid #77BB44; padding:0px 10px; margin-bottom: -6px; margin-left: -5px; margin-right: -5px; height: 30px; line-height: 31px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }'+
      '.thanked-message .fa-thumbs-up { font-size:16px; margin-right:5px; vertical-align:-2px; }'+

      '@media (min-width:0px) and (max-width:768px) {'+
        '.thanked-post { padding-bottom:116px; }'+
        '.thanked-post .thanked-message { position:absolute; bottom:0; left:0; right:0; }'+
        '.thanked-post .postbody .profile-icons { bottom:44px; }'+
      '}'+
    '</style>');
  }
});
It is working fine in phpbb3 but not working in this forum. Could you edit it @Admin?


Last edited by The sea on Sun Feb 27, 2022 3:31 pm; edited 1 time in total

Administrator
Administrator
Administrator
Posts : 126
Points : 143
Reputation : 14
Join date : 2022-02-13
View user profile https://movie.goodforum.net

PostAdministrator Wed Mar 02, 2022 8:55 am

Ok
Administrator
Administrator
Administrator
Posts : 126
Points : 143
Reputation : 14
Join date : 2022-02-13
View user profile https://movie.goodforum.net

PostAdministrator Wed Mar 02, 2022 11:10 am

Ok
Administrator
Administrator
Administrator
Posts : 126
Points : 143
Reputation : 14
Join date : 2022-02-13
View user profile https://movie.goodforum.net

PostAdministrator Wed Mar 02, 2022 11:10 am

Tested
Administrator
Administrator
Administrator
Posts : 126
Points : 143
Reputation : 14
Join date : 2022-02-13
View user profile https://movie.goodforum.net

PostAdministrator Thu Mar 03, 2022 2:41 am

Anonymous

Guest

Guest

PostGuest Thu Mar 03, 2022 4:13 am

Test
Anonymous

Guest

Guest

PostGuest Sat Mar 05, 2022 4:55 pm

@Admin
bot
Manager
Manager
Posts : 19
Points : 24
Reputation : 3
Join date : 2022-03-09
Age : 29
Location : Newyork
Language : English
View user profile

Postbot Wed Mar 09, 2022 11:52 am

Test
bot
Manager
Manager
Posts : 19
Points : 24
Reputation : 3
Join date : 2022-03-09
Age : 29
Location : Newyork
Language : English
View user profile

Postbot Mon Mar 21, 2022 7:08 pm

Thanks
Administrator
Administrator
Administrator
Posts : 126
Points : 143
Reputation : 14
Join date : 2022-02-13
View user profile https://movie.goodforum.net

PostAdministrator Tue Mar 22, 2022 8:47 pm

Ok
Administrator
Administrator
Administrator
Posts : 126
Points : 143
Reputation : 14
Join date : 2022-02-13
View user profile https://movie.goodforum.net

PostAdministrator Wed Mar 23, 2022 7:10 am

Administrator
Administrator
Administrator
Posts : 126
Points : 143
Reputation : 14
Join date : 2022-02-13
View user profile https://movie.goodforum.net

PostAdministrator Thu May 26, 2022 4:41 pm

Sponsored content

PostSponsored content

Go to page : Previous  1, 2

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

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