Latest topics
» IconSkouliki Graphics
by skouliki Yesterday at 05:08

» "Edit this page" feature
by skouliki Yesterday at 01:37

» Dark Mode + Another Question
by Haggis Thu 19 Oct 2017, 10:36

» [GAME] Count to 1000 using even numbers Van-Helsing Edition
by Van-Helsing Tue 17 Oct 2017, 15:07

» [GAME] What are you thinking right now?
by Ace 1 Tue 17 Oct 2017, 08:09

» [GAME] Count to One Million!
by Ace 1 Tue 17 Oct 2017, 08:07

» [GAME] Last Letter Game
by Ace 1 Tue 17 Oct 2017, 08:06

» [GAME] World Snake
by Ace 1 Tue 17 Oct 2017, 08:06

» [GAME] Never have I ever..
by Ace 1 Tue 17 Oct 2017, 08:06

» [GAME] Animal Game
by universecat Mon 16 Oct 2017, 21:43

» [GAME] Post a random picture
by SLGray Mon 16 Oct 2017, 16:28

» Hi everyone!
by skouliki Mon 16 Oct 2017, 02:01

» Hai Guys~
by skouliki Mon 16 Oct 2017, 01:59

» Add a login popup for the toolbar
by Ape Sun 15 Oct 2017, 13:51

» Mobile Usability Test
by Ange Tuteur Sat 14 Oct 2017, 11:20

Recent Tutorials
Who is online?
In total there are 7 users online :: 1 Registered, 0 Hidden and 6 Guests :: 2 Bots

Adam

[ 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 : 562
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 : 4698
Points : 9539
Reputation : 2337
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 : 562
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 : 562
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 : 4698
Points : 9539
Reputation : 2337
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 : 562
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 : 4698
Points : 9539
Reputation : 2337
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 : 562
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 : 2447
Points : 4734
Reputation : 287
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 : 562
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