| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| [ C ] Latest Posts page; Make a "view new posts" style page | |
|---|---|
| Tweet Topic Started: May 14 2013, 03:29 PM (595 Views) | |
| ymwoods | May 14 2013, 03:29 PM Post #1 |
|
Member
![]() ![]() ![]()
|
Board Address: fordcollective.co.uk Board Software: ZetaBoards Description: Hi guys, basically im after something a little like what Cory has done Here but to have it show up on a page made using the Website maker of the board, then styled, to make it look a little more like the Active Topics page shown when you go to www.Board.com/search/?c=5 At the moment I am using a link saying "Show New topics" at the top of the board that then links to the "show active topics" search page but this only shows topics that have been posted in within the last 24 hours. No use if you come along every other day and no one else has posted in it. I know that we don't have a proper show new posts button like with IF so I was thinking that this would be the next best thing? Unless anyone has any easier/better suggestions? I have tried to get Cory's code to work on a website page but with no luck, also no luck in styling it either! Thank you all so much! |
![]() |
|
| Cory | May 14 2013, 06:02 PM Post #2 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
This will only load results from the first Active Topics page:
|
![]() |
|
| ymwoods | May 15 2013, 05:04 PM Post #3 |
|
Member
![]() ![]() ![]()
|
That's brilliant, thank you so much! However Is there a way to do exactly the same thing but for it to display the latest posts like the sidebar one that you did, so that it always displays at least something, even if there was no activity for a day?
|
![]() |
|
| Cory | May 15 2013, 05:11 PM Post #4 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Do you want it to display on all pages or the webpage only? |
![]() |
|
| ymwoods | May 15 2013, 05:13 PM Post #5 |
|
Member
![]() ![]() ![]()
|
Just the webpage please. |
![]() |
|
| Cory | May 15 2013, 05:34 PM Post #6 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Try this instead:
|
![]() |
|
| ymwoods | May 15 2013, 05:49 PM Post #7 |
|
Member
![]() ![]() ![]()
|
![]() That code creates the above which is brilliant as its now working on the webpage but still only pulls topics posted within that day and which is already available by searching for Active topics. In our portal however we have a box that shows the last topics that were posted in, regardless of age. ![]() I know from reading other codes that this is limited to 20 (?) however, is it possible to have the same information that this box would display shown in the table you created for the webpage above. So in effect it would always display the last 20 topics that were posted in, regardless of how long ago those posts were. Thanks again! Edited by ymwoods, May 15 2013, 05:51 PM.
|
![]() |
|
| Cory | May 15 2013, 06:10 PM Post #8 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
If you test that on a test board and view the board index you will only see the text 'null', this is because AJAX requests were restricted on specific ZetaBoards pages a long while ago and the portal page was one of them. Grabbing that data with JavaScript is really only practical with a $.get() request from the portal page. |
![]() |
|
| ymwoods | May 15 2013, 06:29 PM Post #9 |
|
Member
![]() ![]() ![]()
|
Fair enough, so what your saying is that the only practical way to call the data from that list would be to have the portal page open anyway, which would defeat the point of what we were doing? Would this be possible by going the whole hog then? IE, when a user clicks "View new topics" would it be possible to check for the last time that user was logged in and then pull all the topics that were posted in since that date and then displaying them in the same style, or is this too much/not possible? Or if pulling the last time the user logged in is not possible, then would being able to pull it by selecting a drop down box that would list the number of days worth of new topics you wanted? Edited by ymwoods, May 15 2013, 06:30 PM.
|
![]() |
|
| Cory | May 15 2013, 06:48 PM Post #10 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Essentially, pulling topics not from the current day is not possible with JavaScript because the pages that make this possible have AJAX restrictions. |
![]() |
|
| ymwoods | May 16 2013, 05:16 PM Post #11 |
|
Member
![]() ![]() ![]()
|
Ah ok, well thank you very much for what you have done so far! I'm also watching with interest the code your currently doing for a garage system on another thread. |
![]() |
|
| Helena | May 18 2013, 07:20 PM Post #12 |
![]()
M is for Mod
![]()
|
Completed! Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM. |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Closed Requests · Next Topic » |
| Track Topic · E-mail Topic |
8:57 PM Jul 10
|


![]](http://b1.ifrm.com/0/1/0/p601690/pipright.png)


Is there a way to do exactly the same thing but for it to display the latest posts like the sidebar one that you did, so that it always displays at least something, even if there was no activity for a day?




8:57 PM Jul 10