Post New Topic From Forum Home

Unmaintained Post New Topic From Forum Home 2.0

No permission to download
This Resource is Unsupported - 7/15/2012

I created this template modification so that my site members can post a new thread from the forum home. This is different from the original thread I posted because you now have to be logged in to see the button. All I did was re-use the RSS button code, nothing special. You will have to play around with the code to align it how you want. I've included blue, gray, pink, orange and yellow buttons in the zip. Original archived thread. The Addon version is here (different button used).

Search for nodeControls. It will be in template node_forum_level_2

Code:
<div class="nodeControls">
<xen:if is="{$visitor.user_id}">
<a href="{xen:link forums/create-thread, $forum}" class="postnTopic"></xen:if>
            <a href="{xen:link forums/index.rss, $forum}" class="tinyIcon feedIcon" title="{xen:phrase rss}">{xen:phrase rss}</a>
        </div>

Add the second line underneath nodeControls.

EXTRA.css
Code:
/* Add Post Topic icon to Node list */
.postnTopic {
background: transparent url('http://www.yoursite.com/images/topic.png');
padding: 2px;
opacity: 0.5;
float: left;
width: 50px;
height: 16px;
margin-right: 9px;
}
.postnTopic:hover {
opacity: 1;
}

Screenshot:

posttopic.webp
Author
DRE
Downloads
60
Views
1,172
First release
Last update

Ratings

5.00 star(s) 1 ratings

More resources from DRE

Latest reviews

very useful for sites with many nodes..thanks!
Top Bottom