Topic Author Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

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.
3 posters

    Topic Author

    Mati
    Mati
    Active Poster


    Posts : 1928
    Reputation : 331
    Language : HTML, CSS & JavaScript
    Location : Forum Services

    Solved Topic Author

    Post by Mati December 28th 2014, 10:15 pm

    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 : 1928
    Reputation : 331
    Language : HTML, CSS & JavaScript
    Location : Forum Services

    Solved Re: Topic Author

    Post by Mati December 30th 2014, 12:20 pm

    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, 6:42 pm

    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 : 1928
    Reputation : 331
    Language : HTML, CSS & JavaScript
    Location : Forum Services

    Solved Re: Topic Author

    Post by Mati December 30th 2014, 7:32 pm

    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, 5:54 am

    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 : 1928
    Reputation : 331
    Language : HTML, CSS & JavaScript
    Location : Forum Services

    Solved Re: Topic Author

    Post by Mati December 31st 2014, 3:57 pm

    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, 8:28 pm

    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, 8:46 pm

    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 : 1928
    Reputation : 331
    Language : HTML, CSS & JavaScript
    Location : Forum Services

    Solved Re: Topic Author

    Post by Mati January 1st 2015, 1:25 am

    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, 1:36 am

    You're welcome ^^

    Topic archived