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.
The forum of the forums
3 posters

    Topic Author

    Mati
    Mati
    Active Poster


    Posts : 1932
    Reputation : 333
    Language : HTML, CSS & JavaScript
    Location : Forum Services

    Solved Topic Author

    Post by Mati December 28th 2014, 23:15

    I would like to know how to do this. I wanna put a text for the "Topic Author" on members post to show only for topic starter on the right side.
    Mati
    Mati
    Active Poster


    Posts : 1932
    Reputation : 333
    Language : HTML, CSS & JavaScript
    Location : Forum Services

    Solved Re: Topic Author

    Post by Mati December 30th 2014, 13:20

    Bump!
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


    Male Posts : 2083
    Reputation : 336
    Language : English
    Location : Ms

    Solved Re: Topic Author

    Post by _Twisted_Mods_ December 30th 2014, 19:42

    so this is for only the top topic starter not for the top poster  ... do you have a widget or somthing that shows the top topic starter it would make it easier to grab the info
    Mati
    Mati
    Active Poster


    Posts : 1932
    Reputation : 333
    Language : HTML, CSS & JavaScript
    Location : Forum Services

    Solved Re: Topic Author

    Post by Mati December 30th 2014, 20:32

    Yes only for the topic starter... without "top topic starter" thing would be possible?
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


    Male Posts : 2083
    Reputation : 336
    Language : English
    Location : Ms

    Solved Re: Topic Author

    Post by _Twisted_Mods_ December 31st 2014, 06:54

    sorry i would have had this sooner but i miss read and thought u wanted to display something next to the top list of topic starters not just to ever topic starter in each post

    u can style it with

    Code:
    #tauthor{}

    js
    placement: in the topics
    Code:
    $(function(){
      ttextuwant = "Topic Starter";
      if($('.pagination:last strong:first').text()==="1"){
        $('.post').eq(0).find('.inner').prepend(' <span id="tauthor">'+ ttextuwant +'<span> ');
      };
     
    });
    Mati
    Mati
    Active Poster


    Posts : 1932
    Reputation : 333
    Language : HTML, CSS & JavaScript
    Location : Forum Services

    Solved Re: Topic Author

    Post by Mati December 31st 2014, 16:57

    On every post please that the topic starter has replayed and not only in the first post.
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


    Male Posts : 2083
    Reputation : 336
    Language : English
    Location : Ms

    Solved Re: Topic Author

    Post by _Twisted_Mods_ December 31st 2014, 21:28

    think im have use cookies for that to save the the author name untill it goes out of that topic.. idk ill try to think of something for you
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Topic Author

    Post by Ange Tuteur December 31st 2014, 21:46

    Hi,

    If I understand you correctly, you want to put a title on the post of topic starters ?

    See if this works :

    First make sure the first post is on multiple pages.
    Administration Panel > General > Messages and e-mails > Configuration

    Always show the first post in the topics : Yes


    Next go to Modules > JavaScript codes management > Create a new script

    Title : Your choice
    Placement : In the topics
    Paste the code below and submit :
    Code:
    $(function() {
      $('.post').each(function() { if ($(this).find('.postprofile dt').text() == $('.post:first .postprofile dt').text()) $(this).addClass('authorPost').append('<div class="authorTag">Topic Starter</div>') });
    });

    Then use these rules to style the post :
    Display > Colors > CSS stylesheet
    Code:
    .post.authorPost { position:relative }
    .post.authorPost .authorTag {
      color:#666;
      font-size:12px;
      background:#EEE;
      border:1px solid #CCC;
      border-bottom:none;
      border-radius:3px 3px 0 0;
      padding:3px;
      position:absolute;
      top:50%;
      right:-33px;
      transform:rotate(270deg);
    }

    .authorPost is applied to the whole post, so you could put a background if you want.
    .authorTag is only for the tag that says "Topic starter"

    It should give the following result for the topic starter.
    Topic Author Captur14
    Mati
    Mati
    Active Poster


    Posts : 1932
    Reputation : 333
    Language : HTML, CSS & JavaScript
    Location : Forum Services

    Solved Re: Topic Author

    Post by Mati January 1st 2015, 02:25

    Thank you @_Twisted_Mods_, @Ange Tuteur this is solved now.
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Topic Author

    Post by Ange Tuteur January 1st 2015, 02:36

    You're welcome ^^

    Topic archived

      Current date/time is November 13th 2024, 18:19