PostNewThreadButton.ForumNode.22 .nodeList .categoryStrip {
background: green;
}
PostNewThreadButton.ForumNode.22 a.callToAction span {
background: green;
}
<div class="nodeControls">
<a href="{xen:link 'forums/create-thread', $forum}" class="callToAction"><span>{xen:phrase post_new_thread}</span></a>
.node_15 .callToAction > span
{
background-color: #ff0000;
}
@media (min-width:1000px)
{
.nodeList .nodeList .node { position: relative; }
.forum_list .node .callToAction { position: absolute; right: 0; top: 15px; }
.nodeList .node .nodeLastPost { right: 117px; }
html .node .nodeControls { right: 365px; }
}
@media (max-width:1000px)
{
.forum_list .node .callToAction { margin-bottom: 12px; margin-left: 30px; }
}
I mean you don't really need an add-on for it, easy template editing.
I think it would be great to show the "Post New Thread"-button also to "Guests" (Visitors who are not logged-in).
But when a "Guest" is clicking the "Post New Thread"-button, the "login header" will pop-up.
Having the same effect as when you click the link "(You must log in or sign up to post here)":
View attachment 94550
I guess this is the reason I wanted to have this being an Add-on.
<xen:if is="{$visitor.user_id}">
<a href="{xen:link 'forums/create-thread', $forum}" class="callToAction"><span>{xen:phrase post_new_thread}</span></a>
<xen:else />
<label for="LoginControl"><a href="{xen:link login}" class="callToAction"><span>{xen:phrase post_new_thread}</span></a></label>
</xen:if>
I think it would be great to show the "Post New Thread"-button also to "Guests" (Visitors who are not logged-in).
But when a "Guest" is clicking the "Post New Thread"-button, the "login header" will pop-up.
Having the same effect as when you click the link "(You must log in or sign up to post here)":
View attachment 94550
I guess this is the reason I wanted to have this being an Add-on.
Yes this is exactly what I need. Can you help me to fix this?
<xen:if is="{$visitor.user_id}">
<a href="{xen:link 'forums/create-thread', $forum}" class="callToAction"><span>{xen:phrase post_new_thread}</span></a>
<xen:else />
<label for="LoginControl"><a href="{xen:link login}" class="callToAction"><span>{xen:phrase post_new_thread}</span></a></label>
</xen:if>
Hello @Russ
do you have an idea of how to do this one ?
https://xenforo.com/community/threads/button-post-new-thread-at-homepage.90557/#post-880141
Many thanks!
Suppose to be an image? not loading for me.
are you saying you can not see the attachment here in xenforo ?
https://xenforo.com/community/attachments/alternative_location3-jpg.94531/
I'm sure there's a cleaner way of doing it just have negative time currently
We use essential cookies to make this site work, and optional cookies to enhance your experience.