Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
New/Recent Posts page View
Avatar
Boardaddict
Member
Free Members
sp_UserOfflineSmall Offline
Sep 28, 2012 - 10:32 am

Sorry if I am putting this in the wrong area...

 

What I am trying to do is creatve a view/page for users to see a list of the new/recently updated topics, say 25-50 of them, but on its own page, not at the bottom of the forum. I want them to be able to click a button or link and see all new posts. I think I can do this with template tags but I lost my formatting so its just a text list, I want it to look like the search results page so it keeps my formatting.

 

Can you point me in the right direction?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 28, 2012 - 11:08 am

there is a couple ways you can do this... 

the list at the bottom, is in the group view template file...  you can just remove it if you want...  or duplicate it in any of the sp template files...

in the header, you will notice on the right hand side, you will see some text with number of unread posts and two buttons.. one clears the unread list... the other will, by default, open the unread list in a popup window...  that template tag is located in the sp head template file...  if you want that to open in a separate page, just add the query arg popup=0 to the current query args... now it will open in a new page... users can use that button to go there.. or you can out the link wherever you want...

Avatar
Boardaddict
Member
Free Members
sp_UserOfflineSmall Offline
Sep 28, 2012 - 11:31 am

Thank for the quick reply!

I removed the list from the group view template, so that worked. But I'm not very good with code so I'm not 100% sure where to add the popup=0

Do you mind showing me? I believe I found the correct code in the spHead.

sp_UnreadPostsInfo('tagClass=spRight spUnreadPostsInfo&spanClass=spLeft&iconClass=spLeft spIcon', __sp('%COUNT% topics with<br />unread posts'), __sp('Most recent topics with unread posts'), __sp('Mark all topics as read'));
 sp_SectionEnd('', 'pageTopStatus');

 

Thanks again!

Avatar
Boardaddict
Member
Free Members
sp_UserOfflineSmall Offline
Sep 28, 2012 - 11:45 am

Also, what is file for?

 

spNewPostsView.php

 

How would one call it up in its own page?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Sep 28, 2012 - 11:54 am

Add the popup=0 like this:

sp_UnreadPostsInfo('tagClass=spRight spUnreadPostsInfo&spanClass=spLeft&iconClass=spLeft spIcon&popup=0', __sp('%COUNT% topics with<br />unread posts'), __sp('Most recent topics with unread posts'), __sp('Mark all topics as read'));

This will use that template you just found instead of the popup.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 28, 2012 - 11:58 am

change it to

sp_UnreadPostsInfo('tagClass=spRight spUnreadPostsInfo&spanClass=spLeft&iconClass=spLeft spIcon&popup=0', __sp('%COUNT% topics withunread posts'), __sp('Most recent topics with unread posts'), __sp('Mark all topics as read'));

Avatar
Boardaddict
Member
Free Members
sp_UserOfflineSmall Offline
Sep 28, 2012 - 12:19 pm

Awesome! Got it working now. Thank you so much to you both!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Sep 28, 2012 - 12:29 pm

You're welcome.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625