Page Index Toggle Pages: [1] 2 3 ... 5 Send TopicPrint
Very Hot Topic (More than 25 Replies) Reverse Post Order beta 1.4 YaBB2 (Read 26041 times)
astropilot
God Member
*****
Offline



Posts: 828
Location: Louisville
Joined: Jun 18th, 2003
Gender: Male
Reverse Post Order beta 1.4 YaBB2
Aug 26th, 2005 at 9:28pm
Print Post  
Reverse Post Order beta 1.4 YaBB2
--------------------------------------------------------


This mod allows a user to select if posts are displayed from oldest to newest (default) or newest to oldest in their profile preferences (Global Announcements are excluded from this).  No thread files are manipulated, just how a single individual views it. 


Comments
---------------
- This is a spin off of a mod for 1.3 by Zoo (didn't use any of his code - didn't even look at - FYI).
- This changes how YaBB reads in a thread file.  Because there is not a way to read a file backwards in perl, the whole file has to be read in, which on large threads could slow things down (>500 posts), but not by much.

Thanks for the idea "gizmobay".


Installation
---------------------
1.  Unistall previous version
2.  Mod the files
3.  Upload the modded files and the language file to the correct directories


Compatability
--------------
YaBB 2 only


History
---------------
v1.0 - initial release
v1.1 - Fixed a numbering issue that sent you to the wrong post if you try to quote or modify etc...
v1.2 - Big errors fixed that
v1.3 - Fixed the most recent post issue and basically reworked the numebr of posts
v1.3a - Updated for Y2 Final Release
v 1.4 - Added code so that a user will be redirected to a correctly reversed thread after posting if the thread is being watched and notifies other users of the posting.

Test It
----------
http://www.valleynazarene.org/cgi-bin/yabb2/YaBB.pl


Hope this is useful.

astro-pilot
« Last Edit: Feb 20th, 2007 at 2:37pm by Administrator »  

"For I am not ashamed of the gospel of Christ..."
Romans 1:16
---
http://www.ssflynn.com
www.flynnfarmsofkentucky.com
Back to top
 
IP Logged
 
astropilot
God Member
*****
Offline



Posts: 828
Location: Louisville
Joined: Jun 18th, 2003
Gender: Male
Re: Reverse Post Order beta 1.0 YaBB2 build 2005-0
Reply #1 - Aug 26th, 2005 at 9:39pm
Print Post  
Okay, just in case someone asks, I did toss around the idea to 1) create a button that would change the order on the fly, and 2) to allow the admin to make the reverse order the default or not.

Concerning #1, I didn't think it was necessary.

And #2, the whole idea about this mod is allow end users the option to see a thread like they want to, not the admin.

ap
  

"For I am not ashamed of the gospel of Christ..."
Romans 1:16
---
http://www.ssflynn.com
www.flynnfarmsofkentucky.com
Back to top
 
IP Logged
 
astropilot
God Member
*****
Offline



Posts: 828
Location: Louisville
Joined: Jun 18th, 2003
Gender: Male
Re: Reverse Post Order beta 1.0 YaBB2 build 2005-0
Reply #2 - Aug 26th, 2005 at 11:11pm
Print Post  
Found a big error.  Working on version 1.1
  

"For I am not ashamed of the gospel of Christ..."
Romans 1:16
---
http://www.ssflynn.com
www.flynnfarmsofkentucky.com
Back to top
 
IP Logged
 
astropilot
God Member
*****
Offline



Posts: 828
Location: Louisville
Joined: Jun 18th, 2003
Gender: Male
Re: Reverse Post Order beta 1.1 YaBB2 build 2005-0
Reply #3 - Aug 26th, 2005 at 11:41pm
Print Post  
Fixed issue.  New download on original post.

Test the quote and modify functions especially if you have changed the number of posts per page.  Thanks

ap
  

"For I am not ashamed of the gospel of Christ..."
Romans 1:16
---
http://www.ssflynn.com
www.flynnfarmsofkentucky.com
Back to top
 
IP Logged
 
gizmobay
Guest


Re: Reverse Post Order beta 1.1 YaBB2 build 2005-0
Reply #4 - Aug 27th, 2005 at 4:14am
Print Post  
Thank you so much! I'll install it when I get home on Sunday and let you know how it goes. Even better then the previous version since the user can change reverse or not themselves.

Thanks again astro  Grin
  
Back to top
 
IP Logged
 
astropilot
God Member
*****
Offline



Posts: 828
Location: Louisville
Joined: Jun 18th, 2003
Gender: Male
Re: Reverse Post Order beta 1.1 YaBB2 build 2005-0
Reply #5 - Aug 27th, 2005 at 5:06pm
Print Post  
2nd problem found

- when viewing in the reverse mode, the delete button of a post does not work.

I am currently trying to figure out a solution for this issue and will upload a new version once corrected.  Because this has to do with javascript and because my skills are not that great in js, it may take a little longer.

ap
  

"For I am not ashamed of the gospel of Christ..."
Romans 1:16
---
http://www.ssflynn.com
www.flynnfarmsofkentucky.com
Back to top
 
IP Logged
 
astropilot
God Member
*****
Offline



Posts: 828
Location: Louisville
Joined: Jun 18th, 2003
Gender: Male
Re: Reverse Post Order beta 1.1 YaBB2 build 2005-0
Reply #6 - Aug 27th, 2005 at 5:31pm
Print Post  
I have found two more large issues, so  I am pulling this from beta testing until I fix things.  This doesn't create security risks or anything, but the errors I just didn't anticipate in my hasty release.

Sorry for the confusion and waste of your time.

ap
  

"For I am not ashamed of the gospel of Christ..."
Romans 1:16
---
http://www.ssflynn.com
www.flynnfarmsofkentucky.com
Back to top
 
IP Logged
 
gizmobay
Guest


Re: Reverse Post Order - Do not use until errors f
Reply #7 - Aug 27th, 2005 at 11:38pm
Print Post  
astropilot, thanks for the update. I'll hold off on installing until it's updated. Hopefully, the fix will be easy.
  
Back to top
 
IP Logged
 
astropilot
God Member
*****
Offline



Posts: 828
Location: Louisville
Joined: Jun 18th, 2003
Gender: Male
Re: Reverse Post Order - Do not use until errors f
Reply #8 - Aug 30th, 2005 at 1:12am
Print Post  
Just a quick update, I have fixed my two big problems and am back to my small javascript issue.  The time frame for the next release could be sometime this weekend, hopefully.

ap
  

"For I am not ashamed of the gospel of Christ..."
Romans 1:16
---
http://www.ssflynn.com
www.flynnfarmsofkentucky.com
Back to top
 
IP Logged
 
gizmobay
Guest


Re: Reverse Post Order - Do not use until errors f
Reply #9 - Sep 3rd, 2005 at 2:27am
Print Post  
astro, thanks for the update. Hopefully you'll be able to fix the js issue. I'm looking forward to getting this mod.  Grin
  
Back to top
 
IP Logged
 
astropilot
God Member
*****
Offline



Posts: 828
Location: Louisville
Joined: Jun 18th, 2003
Gender: Male
Re: Reverse Post Order beta 1.2 YaBB2 build 2005-0
Reply #10 - Sep 3rd, 2005 at 4:41pm
Print Post  
updated....it works like I thought it should now....in the initial write up, I didn't think about threads with more than one page.

Things to test
1) Deleting posts
2) Redirection after a post/modification/deletion

ap
  

"For I am not ashamed of the gospel of Christ..."
Romans 1:16
---
http://www.ssflynn.com
www.flynnfarmsofkentucky.com
Back to top
 
IP Logged
 
gizmobay
Guest


Re: Reverse Post Order beta 1.2 YaBB2 (fixed it)
Reply #11 - Sep 6th, 2005 at 1:03am
Print Post  
Thanks astro, I've had no problems with the mod  Grin
  
Back to top
 
IP Logged
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: Reverse Post Order beta 1.2 YaBB2 (fixed it)
Reply #12 - Sep 6th, 2005 at 8:54am
Print Post  
Hi Astropilot
great mod.  Grin

Here my german translation.  Wink

Code
Select All
#-----------------------------------------------------------------#
# Reverse_Post_Order.lng (RPO text definitions)			  #
# for YaBB 2							  #
# by Shawn Flynn						  #
#-----------------------------------------------------------------#
# Copyright: 2005 'Shawn Flynn' - All Rights Reserved		    #
# Released: August 26, 2005					  #
# e-mail:	shawnflynn@louisville.edu			  #
#-----------------------------------------------------------------#
# Any redistribution of this script without the expressed written #
# consent of 'cd-profil as' is strictly prohibited. Copying any	  #
# of the code contained within this script and claiming it as	  #
# your own is also prohibited.					  #
#-----------------------------------------------------------------#
# By using this script you agree to indemnify 'Shawn Flynn'	    #
# from any liability that might arise from its use.		  #
#-----------------------------------------------------------------#
# You may not remove any of these header notices.		  #
#-----------------------------------------------------------------#

%rpo_txt = (
'1' => "Entgegengesetzte Postings",
'2' => "Möchten Sie Postings (Beiträge) in jedem Thread von den Neuesten zu den Ältesten anzeigen?"
);

1;
 

  

greetings
Jeff
Back to top
WWW  
IP Logged
 
Mongo
Full Member
***
Offline


Mongo only pawn in game
of life.

Posts: 197
Location: Hampstead
Joined: Jun 23rd, 2005
Gender: Male
Re: Reverse Post Order beta 1.2 YaBB2 (fixed it)
Reply #13 - Sep 6th, 2005 at 1:27pm
Print Post  
Thanks for recoding this mod for YaBB2, Astropilot.  A few of my users were asking if reversing the order was possible.  Works great, too.
  

--I no longer have time to work on my mods.  If anyone wants to continue what I've started, be my guest.  Please read my notes in my profile for more information.

--Mongo
Back to top
 
IP Logged
 
astropilot
God Member
*****
Offline



Posts: 828
Location: Louisville
Joined: Jun 18th, 2003
Gender: Male
Re: Reverse Post Order beta 1.2 YaBB2 (fixed it)
Reply #14 - Sep 6th, 2005 at 7:34pm
Print Post  
Wasn't just a recoding, but new coding.   But thanks.

ap
  

"For I am not ashamed of the gospel of Christ..."
Romans 1:16
---
http://www.ssflynn.com
www.flynnfarmsofkentucky.com
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 3 ... 5
Send TopicPrint