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.

Topic Author

3 posters

Go down

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
Hyperactive

Posts : 2020
Reputation : 330
Language : HTML, CSS & JavaScript
Location : Forum Services

https://forumservice.forumotion.com/

Back to top Go down

Solved Re: Topic Author

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

Bump!
Mati
Mati
Hyperactive

Posts : 2020
Reputation : 330
Language : HTML, CSS & JavaScript
Location : Forum Services

https://forumservice.forumotion.com/

Back to top Go down

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
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

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

http://liquidcode.forumotion.com

Back to top Go down

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?
Mati
Mati
Hyperactive

Posts : 2020
Reputation : 330
Language : HTML, CSS & JavaScript
Location : Forum Services

https://forumservice.forumotion.com/

Back to top Go down

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> ');
  };
 
});
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

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

http://liquidcode.forumotion.com

Back to top Go down

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.
Mati
Mati
Hyperactive

Posts : 2020
Reputation : 330
Language : HTML, CSS & JavaScript
Location : Forum Services

https://forumservice.forumotion.com/

Back to top Go down

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
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

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

http://liquidcode.forumotion.com

Back to top Go down

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
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Topic Author

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

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

Posts : 2020
Reputation : 330
Language : HTML, CSS & JavaScript
Location : Forum Services

https://forumservice.forumotion.com/

Back to top Go down

Solved Re: Topic Author

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

You're welcome ^^

Topic archived
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum