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:

Username:   Password:
Locked Topic
[ C ] Making "See First Post Of First Page" Default For All Members; Making "Go To The First Post Of The First Page Of A Topic" The Boardwide Default
Topic Started: Dec 12 2013, 06:12 PM (592 Views)
Mod Mime
Member
[ * ]
Board Address: http://w11.zetaboards.com/the_endless_war
Board Software: Zetaboards
Description: Whenever any member opens a topic, we'd like it to open to the first post of the first page (or simply making "Got to the first post of the first page of a topic" setting in Board Preferences the default for all members, rather than asking every member to change it at registration.)

A second option would be to simply remove the ability to use the "Newest unread post" setting.

Thanks!
Offline Profile Goto Top
 
Ferby
Member Avatar
Developer
[ *  *  *  *  * ]
It's possible to remove the settings but automatically setting it as soon as they register with be an issue. I'm assuming that Ajax would be needed only a few coders on this forum know. There is a way to do it without Ajax but it would require the member to be redirected to the page where the setting is and have them (or the script) submit the update of the setting being changed which I probably couldn't do. So the bottom line is that it is possible but only a few people would be able to do here. Sorry I can't be of more help.
Offline Profile Goto Top
 
Ferby
Member Avatar
Developer
[ *  *  *  *  * ]
I sat down and thought about it and it is actually pretty easy to do. It currently works by redirecting you to the newest post using `#new`. Well if I add a code which, if `#new` attempts to work, redirects you to the first post. I think someone would have to double check if this would work but I think it would. If you're still wanting this, I'm willing to give it a go :)
Offline Profile Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

Ferby
Feb 20 2014, 02:23 PM
I sat down and thought about it and it is actually pretty easy to do. It currently works by redirecting you to the newest post using `#new`. Well if I add a code which, if `#new` attempts to work, redirects you to the first post. I think someone would have to double check if this would work but I think it would. If you're still wanting this, I'm willing to give it a go :)
It should, but that may very well cost a board owner by using up another page load. That wouldn't be too great if the board had ad removal.
Offline Profile Goto Top
 
Ferby
Member Avatar
Developer
[ *  *  *  *  * ]
DaPizzaMan
Mar 5 2014, 06:28 PM
Ferby
Feb 20 2014, 02:23 PM
I sat down and thought about it and it is actually pretty easy to do. It currently works by redirecting you to the newest post using `#new`. Well if I add a code which, if `#new` attempts to work, redirects you to the first post. I think someone would have to double check if this would work but I think it would. If you're still wanting this, I'm willing to give it a go :)
It should, but that may very well cost a board owner by using up another page load. That wouldn't be too great if the board had ad removal.
Ah, good point. I just tried this using Google Dev and it seems to work nicely and doesn't require an extra page load. Paste this below the board and it should work fine.
Code: HTML
 
<script type="text/javascript">
$("a[href*=topic/]").each(function() {
var i = $(this).attr("href");
$(this).attr("href",i+"1/");
});
</script>
Offline Profile Goto Top
 
Moonface
Member Avatar


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.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic