The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Topic Author

View previous topic View next topic Go down

Solved Topic Author

Post by Mati on 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
Active Poster

Posts : 1873
Reputation : 281
Language : || HTML || CSS || jQuery ||
Location : At the Gym

http://elite-gaming.forumotion.net/

Back to top Go down

Solved Re: Topic Author

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

Bump!

Mati
Active Poster

Posts : 1873
Reputation : 281
Language : || HTML || CSS || jQuery ||
Location : At the Gym

http://elite-gaming.forumotion.net/

Back to top Go down

Solved Re: Topic Author

Post by _Twisted_Mods_ on 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_
Helper
Helper

Male Posts : 2020
Reputation : 299
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Topic Author

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

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

Mati
Active Poster

Posts : 1873
Reputation : 281
Language : || HTML || CSS || jQuery ||
Location : At the Gym

http://elite-gaming.forumotion.net/

Back to top Go down

Solved Re: Topic Author

Post by _Twisted_Mods_ on 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_
Helper
Helper

Male Posts : 2020
Reputation : 299
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Topic Author

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

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

Mati
Active Poster

Posts : 1873
Reputation : 281
Language : || HTML || CSS || jQuery ||
Location : At the Gym

http://elite-gaming.forumotion.net/

Back to top Go down

Solved Re: Topic Author

Post by _Twisted_Mods_ on 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_
Helper
Helper

Male Posts : 2020
Reputation : 299
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Topic Author

Post by Ange Tuteur on 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.

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2681
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Topic Author

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

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

Mati
Active Poster

Posts : 1873
Reputation : 281
Language : || HTML || CSS || jQuery ||
Location : At the Gym

http://elite-gaming.forumotion.net/

Back to top Go down

Solved Re: Topic Author

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

You're welcome ^^

Topic archived

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2681
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


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