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

XF 1.4 How to convert New Posts into Recent Posts

#1
Hi folks,

Was just wondering if someone could point me in the right direction, I'm trying to recode the New Posts link (in the Navbar) to show the Recent Posts (on the right, just above the forums head) results. Once this is done I'd like to comment out the Recent Posts link so it won't be there.

Can someone just point me in the right direction as to where the code would be for these two forums features?

Thank you,
Bart
 
#2
just found this line in the Navigation template

<li><a href="{xen:link 'find-new/posts'}" rel="nofollow">{xen:if $visitor.user_id, {xen:phrase new_posts}, {xen:phrase recent_posts}}</a></li>

was thinking I'll just have the conditional return recent_posts whether the visitor has a user id or doesn't. that should work, no? any reason from the system's perspective as to why this would be a bad idea?

thank you!
 
#4
Brogan, One thing stat still confuses me is where text would be modified. Where does the actual code/text reside that makes "New Posts" display as such? It's HTML right? I can make CSS changes and sometimes I'm successful modifying templates but the HTML seems like it should be the easiest to find and change but I'm not usually successful.

Thanks,
Bart
 
#6
reading into your reply a little, because i hope you'll give me the benefit of the doubt that i already searched and re-searched the navigation template :) , i found this little gem which does have an effect on the actual displayed text

xen:phrase recent_posts

but when i change it, whatever trickery was making recent_posts display as 'Recent Posts' no longer has the same effect even if I match the recent_posts format.
 
#10
in the original template it has {xen:phrase recent_posts} and the actual link in the navbar displays as Recent Posts

when I put in {xen:phrase active_threads} it displays Active_Threads...it doesn't auto format as it did with the original text