Recent Tutorials
Who is online?
In total there are 8 users online :: 0 Registered, 0 Hidden and 8 Guests

None

[ View the whole list ]


Most users ever online was 172 on Fri 19 Feb 2016, 05:17

Issue about online indicator and topic starter thanks?

View previous topic View next topic Go down

avatar
MAX

Title :
Gender : Unspecified
Posts : 83
Points : 446
Reputation : 5
Language : English
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile

PostMAX on Wed 01 Feb 2017, 16:06

Hi @Ange Tuteur

Is it possible to change the color and style of my online/offline bar on post profile here http://avacs.forumotion.org? Where should I edit it?


Last edited by Mr.Alam on Sun 05 Feb 2017, 14:40; edited 1 time in total
avatar
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4593
Points : 9462
Reputation : 2305
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Sat 04 Feb 2017, 11:14

avatar
MAX

Title :
Gender : Unspecified
Posts : 83
Points : 446
Reputation : 5
Language : English
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile

PostMAX on Sun 05 Feb 2017, 14:30

Ok thanks but can you share me me the exact code for "Topic started thanks " @Ange Tuteur??

I used 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> {USERNAME} has been thanked by the topic starter !</div>'
      .replace('{USERNAME}', $(thanked).find('.username').text())
    );
 
    $('head').append('<style type="text/css">'+
      '.thanked-post .thanked-message { color:#FFF; font-size:13px; background:#8B5; margin:10px -1px -1px -1px; padding:0px 15px; height:45px; line-height:45px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }'+
      '.thanked-message .fa-thumbs-up { font-size:20px; 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>');
  }
});

But it is showing something different in my regular forum.

It is showing like this one

I think username is missing.... what is problem? Salute Crazy


avatar
MAX

Title :
Gender : Unspecified
Posts : 83
Points : 446
Reputation : 5
Language : English
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile

PostMAX on Fri 10 Feb 2017, 11:29

But @Ange Tuteur this topic was about Forumactive Edge so I can hope a solution of topic starter thanks code from you kindly?
avatar
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4593
Points : 9462
Reputation : 2305
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Fri 10 Feb 2017, 11:44

You're asking for help for a non-forumactif edge forum. I know for a fact that the thanks system on FAE works without any issues. So please stop trying to deceive me, I don't like liars.
avatar
MAX

Title :
Gender : Unspecified
Posts : 83
Points : 446
Reputation : 5
Language : English
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile

PostMAX on Fri 10 Feb 2017, 12:01

Honesty I wanted thanks code to test my another so if you just share mee codes for thanks starter then it will useful for learning something doing this.
avatar
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4593
Points : 9462
Reputation : 2305
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Mon 13 Feb 2017, 10:07

You can find any codes related to Forumactif Edge in the repository on Github. You'd do well to search around it if you're curious about its coding.

The JS is in javascripts > in the topics > topics.js
https://github.com/SethClydesdale/forumactif-edge/blob/master/javascripts/in-the-topics/topics.js#L87

I cannot guarantee it'll work on other forum versions besides Forumactif Edge.
avatar
MAX

Title :
Gender : Unspecified
Posts : 83
Points : 446
Reputation : 5
Language : English
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile

PostMAX on Mon 13 Feb 2017, 11:12

@MAX wrote:Ok thanks but can you share me me the exact code for "Topic started thanks " @Ange Tuteur??

I used 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> {USERNAME} has been thanked by the topic starter !</div>'
      .replace('{USERNAME}', $(thanked).find('.username').text())
    );
 
    $('head').append('<style type="text/css">'+
      '.thanked-post .thanked-message { color:#FFF; font-size:13px; background:#8B5; margin:10px -1px -1px -1px; padding:0px 15px; height:45px; line-height:45px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }'+
      '.thanked-message .fa-thumbs-up { font-size:20px; 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>');
  }
});

But it is showing something different in my regular forum.

It is showing like this one

I think username is missing.... what is problem? Salute Crazy


I used above code but username is not showing. I don't know what's wrong going on....@Ange Tuteur
avatar
SLGray
Valued Member
Title :
Owner of 2 Forums
Gender : Male
Age : 44
Posts : 2326
Points : 4475
Reputation : 275
Location : United States
Language : English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : ModernBB
Awards :
View all awards
View user profile http://www.fmthemes.forumotion.com https://www.facebook.com/FM-Themes-655055824604957 https://twitter.com/FMThemes https://pinterest.com/FMThemes

PostSLGray on Mon 13 Feb 2017, 15:09

@Ange Tuteur wrote:I cannot guarantee it'll work on other forum versions besides Forumactif Edge.
avatar
MAX

Title :
Gender : Unspecified
Posts : 83
Points : 446
Reputation : 5
Language : English
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile

PostMAX on Thu 16 Feb 2017, 14:52

Anyway, I fixed it with my own try. I think @SLGray got an answer of his previous questions. I can do some works now with ownn efforts

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