Page Index Toggle Pages: [1] 2  Send TopicPrint
Hot Topic (More than 10 Replies) Return To mod beta 1.2 YaBB2 (Read 16010 times)
astropilot
God Member
*****
Offline



Posts: 828
Location: Louisville
Joined: Jun 18th, 2003
Gender: Male
Return To mod beta 1.2 YaBB2
Oct 11th, 2005 at 9:55pm
Print Post  
Return To mod Beta 1.2 YaBB2
--------------------------------------------------------

This mod allows a user to decide where to return to after posting to a thread.  A drop-down selection box is placed underneath the "Disable Smilies" check box on the post page.  The user may select to return to the current thread (defualt YaBB style, Display.pl), to the current Board (MessageIndex.pl), or the forum start (BoardIndex.pl).

New in this addition, the user may select a default "return to" place in their profile options, that when posting will automatically be selected, but also could be changed.


Comments
---------------
- Two mod files are included, 1) Just the normal one and 2) one that includes a patch for the Reverse Post Order mod
- If you plan to use this and Reverse Post Order mod, install Reverse Post Order first then install this one with the patch
- I saw something like this on another kind of message board


Installation & Update
---------------------
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 - Added the ability for a user to select which 'return to' area would be selected in the drop down menu as default in their profile options.  Also, removed workaround for 'new' marker with actual fix and extended this to new threads also.
v1.2 - Fixed issue with threads that will notify other users when posted to.


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


Hope this is useful.

astro-pilot
« Last Edit: Dec 26th, 2005 at 10:55pm by astropilot »  

Return_To_mod.zip ( 4 KB | Downloads )

"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
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: Return To mod beta 1.0 YaBB2
Reply #1 - Oct 12th, 2005 at 6:38am
Print Post  
Hi
here my german translation

Code
Select All
#-----------------------------------------------------------------#
# Return_To.lng (Search_IP text definitions)			    #
# for YaBB 2							  #
# by Shawn Flynn						  #
#-----------------------------------------------------------------#
# Copyright: 2005 'Shawn Flynn' - All Rights Reserved		    #
# Released: October 11, 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.		  #
#-----------------------------------------------------------------#

%return_to_txt = (
'1' => "Dieses Thema",
'2' => "Dieses Forum",
'3' => "Forum Startseite",
'99' => "Zurück zu",
'98' => "Wählen Sie, wohin Sie zurückkehren möchten, nachdem dieses Thema gepostet wurde.",
);

1;
 

« Last Edit: Dec 28th, 2005 at 9:42pm by Jeff »  

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


I love YaBB  2 :D

Posts: 220
Location: over_there
Joined: Aug 21st, 2004
Gender: Male
Re: Return To mod beta 1.0 YaBB2
Reply #2 - Oct 12th, 2005 at 7:15am
Print Post  
and my german correction
Code
Select All
"Wählen Sie, wohin Sie zurückkehren möchten, nachdem dieses Thema gepostet wurde.",
 


Heißt wohin, nicht wo  Wink


The mod sounds cool, but im sure it would just confuse my members  Lips Sealed Anyway Thanks  Cheesy
  

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: Return To mod beta 1.0 YaBB2
Reply #3 - Oct 12th, 2005 at 7:16am
Print Post  
hi T3rrabug,
thnx for correction  Grin
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
astropilot
God Member
*****
Offline



Posts: 828
Location: Louisville
Joined: Jun 18th, 2003
Gender: Male
Re: Return To mod beta 1.0 YaBB2
Reply #4 - Oct 12th, 2005 at 11:46am
Print Post  
Well, I will personally use it all the time.  I can't tell you how many times I post something, but do not want to go back to the thread but to all the threads.  This is a click saver  8).

ap

Thanks for the translations guys.  The next version will include it, yes there will be a next version from me.
  

"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
 
zero
Ex Member


Re: Return To mod beta 1.0 YaBB2
Reply #5 - Oct 13th, 2005 at 12:44am
Print Post  
i agree... so many times i post and want to go back thew the main board after. this will says me a few clicks
  
Back to top
 
IP Logged
 
astropilot
God Member
*****
Offline



Posts: 828
Location: Louisville
Joined: Jun 18th, 2003
Gender: Male
Re: Return To mod beta 1.0 YaBB2
Reply #6 - Oct 13th, 2005 at 1:48am
Print Post  
Yeah, I'm going to update this this weekend with a new feature.  There is a minor thing that is just not good.

But for now do this to get rid of this hasty placed code.
  • Remove the mod
  • Go into the mod editor
  • Goto the mod action tab
  • Highlight <edit file> Sources/MessageIndex.pl and hit Delete action
  • Goto the section that edits Profile.pl
  • Goto the 3rd step, its a search and replace
  • In the lower right hand box, the one with the text that will replace that found in the right upper box place the following on a new line right above ### Return To mod end ### (just place your cursor behind the }}, hit enter once, then tab)
    Code
    Select All
    &dumplog($mnum,$date); 
    
    
  • Hit save
  • close and add the mod

THis only needs to be done on the 3rd action only.  It should now look like this
Code
Select All
	### Return To mod ###
	if ($rts == 3) {$yySetLocation = qq~$scripturl~;}
	elsif ($rts == 2) {$yySetLocation = qq~$scripturl?board=$currentboard~;}
	else{if (${$uid.$username}{'reverse_posts'} eq "on" && $threadclass ne 'announcement') {
			if($currentboard eq $annboard) {
				$yySetLocation = qq~$scripturl?virboard=$currentboard;num=$thread~;
			}
			else {
				$yySetLocation = qq~$scripturl?num=$thread~;
			}
		}}
	&dumplog($mnum,$date);
	### Return To mod end### 



Just in case you were wondering, in the original code, after you would post and went somewhere else, YaBB did not record that the user was there and made the last post.  So after the jump, you would get a new icon by the thread name.  I got around this, in an inproper way, by bypassing the new icon in MessageIndex.pl (bad move).

Anyway, as I said, having the original mod won't hurt if you just want to wait around for the new version.

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
 
zero
Ex Member


Re: Return To mod beta 1.0 YaBB2
Reply #7 - Oct 13th, 2005 at 2:29am
Print Post  
ok thanks for the info.. i removed the mod and will just wait for the update.. thanks again
  
Back to top
 
IP Logged
 
astropilot
God Member
*****
Offline



Posts: 828
Location: Louisville
Joined: Jun 18th, 2003
Gender: Male
Re: Return To mod beta 1.1 YaBB2
Reply #8 - Oct 13th, 2005 at 5:10pm
Print Post  
updated...see initial post

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
 
zero
Ex Member


Re: Return To mod beta 1.1 YaBB2
Reply #9 - Oct 15th, 2005 at 4:46pm
Print Post  
I am getting a black screen now after i post. I tried a different browser and it gives the the Minimum time between two postings from the same IP error... I uninstalled the mods and everything works fine. This only happened sence the newest update.
  
Back to top
 
IP Logged
 
astropilot
God Member
*****
Offline



Posts: 828
Location: Louisville
Joined: Jun 18th, 2003
Gender: Male
Re: Return To mod beta 1.1 YaBB2
Reply #10 - Oct 15th, 2005 at 4:58pm
Print Post  
Black screen.....that's not good.  This is really weird since I haven't coded for a black screen....and the Minimum time thing, I'll check that out too.

Keep checking this thread, I may need some more feedback from you.

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: Return To mod beta 1.1 YaBB2
Reply #11 - Oct 15th, 2005 at 5:01pm
Print Post  
BTW, what other mods do you have?
  

"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: Return To mod beta 1.1 YaBB2
Reply #12 - Oct 15th, 2005 at 5:11pm
Print Post  
What is your Minimum time between two postings from the same IP (in seconds) setting at? 

This mod shouldn't trigger this because it is a simple redirect.  After, the post has been written to the file, you are marked as to haven visited the thread (a YaBBB default sub) and then redirected to your next destination.
  

"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
 
zero
Ex Member


Re: Return To mod beta 1.1 YaBB2
Reply #13 - Oct 15th, 2005 at 5:52pm
Print Post  
i have it set at the default 5 seconds.. and i ment to say blank screen... just a blank white page.. The post goes though just doesnt take you to any page.

The mods i have installed all are in my profile listed..
  
Back to top
 
IP Logged
 
zero
Ex Member


Re: Return To mod beta 1.1 YaBB2
Reply #14 - Oct 15th, 2005 at 5:57pm
Print Post  
I looked in to it more and it only seems to do this when you have the Return To set at Current Thread.

The Current Board and the Form Start drop down work ok.. Its just the one that keeps you on the current topic.


I tested this with and with out using the quick reply. Same thing happens using it and not using it.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint