Jump to content

New Posts Link?


tekguru

Recommended Posts

Is it possible to add a 'New Posts' link to all pages as the site of 'View New Content'?

That is a link similar to new content, but one that always goes to the new posts/forums tab in new content instead of new content default which is referential to the area one is in?

Link to comment
Share on other sites

I had a similar question and created a ticket about it awhile back:




                        <li><a href='{parse url="app=core&amp;module=search&amp;do=<if test="ncmember:|:$this->memberData['member_id']">new_posts<else />active</if>&amp;search_filter_app[<if test="viewnewcontentapp:|:$this->registry->getCurrentApplication() != 'core' AND IPSSearchIndex::appIsSearchable( $this->registry->getCurrentApplication() )">{$this->registry->getCurrentApplication()}<else />forums</if>]=1" base="public"}' accesskey='2'>{$this->lang->words['view_new_posts']}</a></li>

to

                        <li><a href='{parse url="app=core&amp;module=search&amp;do=<if test="ncmember:|:$this->memberData['member_id']">new_posts<else />active</if>&amp;search_filter_app[forums]=1" base="public"}' accesskey='2'>{$this->lang->words['view_new_posts']}</a></li>




And that will do what you want.

Jason
IPS Support




It's not a "New Posts" link, but it does link to the new posts regardless of what section you're in.
Link to comment
Share on other sites


I had a similar question and created a ticket about it awhile back:







It's not a "New Posts" link, but it does link to the new posts regardless of what section you're in.




Can I see that on a forum somewhere as a guest? Or a screen shot? I'm incredibly interested.
Link to comment
Share on other sites


I had a similar question and created a ticket about it awhile back:



It's not a "New Posts" link, but it does link to the new posts regardless of what section you're in.




Grin, thanks for that :) I worked out the self same thing myself yesterday afternoon, still not as good as in vB but it works!
Link to comment
Share on other sites

  • 2 months later...

I had a similar question and created a ticket about it awhile back:







It's not a "New Posts" link, but it does link to the new posts regardless of what section you're in.




Any ideas as to how to change this on 3.1?
Link to comment
Share on other sites

<li><a href='{parse url="app=core&module=search&do=<if test="ncmember:|:$this->memberData['member_id']">new_posts<else />active</if>&search_filter_app[forums]=1" base="public"}' accesskey='2'>{$this->lang->words['view_new_posts']}</a></li>

Will still work.

1. Find

<li><a href='{parse url="app=core&amp;module=search&amp;do=<if test="ncmember:|:$this->memberData['member_id']">new_posts



2. Follow it through the end until you see </li>

3. Replace it with what I quoted above.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...