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.
3 posters
Topic Author
Mati- Active Poster
- Posts : 1932
Reputation : 333
Language : HTML, CSS & JavaScript
Location : Forum Services
- Post n°1
Topic Author
Mati- Active Poster
- Posts : 1932
Reputation : 333
Language : HTML, CSS & JavaScript
Location : Forum Services
- Post n°2
Re: Topic Author
Bump!
_Twisted_Mods_- Helper
- Posts : 2083
Reputation : 336
Language : English
Location : Ms
- Post n°3
Re: Topic Author
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- Active Poster
- Posts : 1932
Reputation : 333
Language : HTML, CSS & JavaScript
Location : Forum Services
- Post n°4
Re: Topic Author
Yes only for the topic starter... without "top topic starter" thing would be possible?
_Twisted_Mods_- Helper
- Posts : 2083
Reputation : 336
Language : English
Location : Ms
- Post n°5
Re: Topic Author
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
js
placement: in the topics
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- Active Poster
- Posts : 1932
Reputation : 333
Language : HTML, CSS & JavaScript
Location : Forum Services
- Post n°6
Re: Topic Author
On every post please that the topic starter has replayed and not only in the first post.
_Twisted_Mods_- Helper
- Posts : 2083
Reputation : 336
Language : English
Location : Ms
- Post n°7
Re: Topic Author
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- Forumaster
- Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania
- Post n°8
Re: Topic Author
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 :
Then use these rules to style the post :
Display > Colors > CSS stylesheet
.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.
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.
Mati- Active Poster
- Posts : 1932
Reputation : 333
Language : HTML, CSS & JavaScript
Location : Forum Services
- Post n°9
Re: Topic Author
Thank you @_Twisted_Mods_, @Ange Tuteur this is solved now.
Ange Tuteur- Forumaster
- Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania
- Post n°10
Re: Topic Author
You're welcome ^^
Topic archived
Topic archived