IMPORTANT

FM Design is in read-only mode, please click here for more information.

Latest topics
» Forumactif Edge - Releases
by Ange Tuteur Tue 03 Apr 2018, 11:43

» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28

» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15

» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11

» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24

» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58

» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50

» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22

» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12

» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10

» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51

» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11

» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19

» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34

» Numbering of messages in the topic
by SLGray Mon 04 Dec 2017, 22:40

Recent Tutorials
Top posting users this month
Who is online?
In total there are 7 users online :: 0 Registered, 0 Hidden and 7 Guests :: 1 Bot

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

Gender : Unspecified
Posts : 83
Points : 748
Reputation : 5
Language : English
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
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
Gender : Male
Age : 22
Posts : 4726
Points : 9780
Reputation : 2362
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Sat 04 Feb 2017, 11:14


--------

Ange Tuteur
Tips and TricksContact Me

avatar
MAX

Gender : Unspecified
Posts : 83
Points : 748
Reputation : 5
Language : English
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
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

Gender : Unspecified
Posts : 83
Points : 748
Reputation : 5
Language : English
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
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
Gender : Male
Age : 22
Posts : 4726
Points : 9780
Reputation : 2362
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
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.

--------

Ange Tuteur
Tips and TricksContact Me

avatar
MAX

Gender : Unspecified
Posts : 83
Points : 748
Reputation : 5
Language : English
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
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
Gender : Male
Age : 22
Posts : 4726
Points : 9780
Reputation : 2362
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
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.

--------

Ange Tuteur
Tips and TricksContact Me

avatar
MAX

Gender : Unspecified
Posts : 83
Points : 748
Reputation : 5
Language : English
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
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
Gender : Male
Age : 45
Posts : 2465
Points : 4943
Reputation : 290
Location : United States
Language : English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : ModernBB
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

Gender : Unspecified
Posts : 83
Points : 748
Reputation : 5
Language : English
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
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