• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

[SSD] New Posts [Deleted]

#1
Stolen Sheep Design submitted a new resource:

[SSD] New Posts - This will add a 'New Posts' button to the bottom of the thread, above the Quick Reply box.

Ever got to the bottom of a thread and then have to scroll all the way back up to click 'New Posts' again, or clicking the jump to top icon then 'New Posts'?

This will add a 'New Posts' link to the bottom of the thread, above the Quick Reply box.

Customise the button with the Style Properties. Option to load Font Awesome CDN if you do not have it loaded by some other method, option is on by default.
Read more about this resource...
 

jauburn

Well-known member
#2
To me, a "new posts" button at the bottom of a thread suggests new posts within that thread, to be clicked if people have responded since you started typing.
 
#4
I really like this add-on, but it didn't work for me out of the box using Xenforo version 1.5.5. It wasn't going to the correct new posts page. I patched it like this and it worked great.

Code:
--- [SSD] New Posts 1.1/addon-ssd_newposts.xml  2015-11-03 10:27:56.000000000 -0600
+++ [SSD] New Posts 1.1.fixed/addon-ssd_newposts.xml    2016-01-19 21:00:06.000000000 -0600
@@ -78,7 +78,7 @@
       <replace><![CDATA[<div class="linkGroup"{xen:if '!{$ignoredNames}', ' style="display: none"'}><a href="javascript:" class="muted JsOnly DisplayIgnoredContent Tooltip" title="{xen:phrase show_hidden_content_by_x, "names={xen:helper implode, $ignoredNames, ', '}"}">{xen:phrase show_ignored_content}</a></div>
                                <div class="ssd_newPosts">
                                 <xen:require css="ssd_newposts.css" />
-                               <li><a href="/find-new/posts" rel="nofollow">{xen:phrase new_posts}</a></li>
+                               <li><a href="{xen:link 'find-new/posts'}" rel="nofollow">{xen:phrase new_posts}</a></li>
                                </div>
                        <xen:pagenav link="threads" linkdata="{$thread}"
 

adwade

Active member
#6
I like the add-on as well, but it won't work for me either. Our forum is not installed in the root of our website, but instead in a /forums/ sub-directory. The add-on appears to assume the forum is installed in the root, and thus generates an error whenever someone clicks on the [SSD] New Posts link. :confused:

EDIT:
I fixed it by finding…
Code:
                <li><a href="/find-new/posts" rel="nofollow">{xen:phrase new_posts}</a></li>
in the addon-ssd_newposts.xml file

And replacing it with…
Code:
                <li><a href="/forums/find-new/posts" rel="nofollow">{xen:phrase new_posts}</a></li>
Then re-importing the xml file into XenForo.
 
Last edited:
#8
I like the add-on as well, but it won't work for me either. Our forum is not installed in the root of our website, but instead in a /forums/ sub-directory. The add-on appears to assume the forum is installed in the root, and thus generates an error whenever someone clicks on the [SSD] New Posts link. :confused:

EDIT:
I fixed it by finding…
Code:
                <li><a href="/find-new/posts" rel="nofollow">{xen:phrase new_posts}</a></li>
in the addon-ssd_newposts.xml file

And replacing it with…
Code:
                <li><a href="/forums/find-new/posts" rel="nofollow">{xen:phrase new_posts}</a></li>
Then re-importing the xml file into XenForo.
I posted a patch (two posts up) that does the same thing but works regardless of the subdirctory name that Xenforo is installed in.
 
#10
Here's how I modded this addon to show Recent Posts instead of New Posts:

HTML:
<a href="/find-new/posts" rel="nofollow">{xen:phrase new_posts}</a></li>

Replace the code above with this:

<a href="{xen:link find-new/posts, '', 'recent=1'}" rel="nofollow">{xen:phrase recent_posts}</a>
I wanted the symbol to look like a refresh, so I changed the Font Awesome code too:

HTML:
Conversation bubble icon:

content: "\f075";
    font-family: FontAwesome;

Refresh icon:

content: "\f021";
    font-family: FontAwesome;
The file to be modded is the addon-ssd_newposts.xml installation file.

Big thanks to [SSD]! (y)(y)(y)(y)(y)