Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Return To V1.0b for YaBB 2.4 (Read 4862 times)
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Return To V1.0b for YaBB 2.4
Aug 27th, 2009 at 12:26am
Print Post  
Return To V1.0b

Description:
This mod allows users to decide where to return to after posting. A drop-down selection box is placed underneath the 'Disable Smilies' check box on the post page. Users may select to return to the current thread, current board, or the forum index. Members can also select a default selection for this feature in their profile.

Credits:
This Mod was coded by astropilot for YaBB 2.1 - I've updated it with his permission. Link to 2.1 Version

Thanks to Mick (www.info4alien.de) for the German and German_Du translations.

Screenshots:

Post Page:


User CP - Profile - Options:


Installation:
Modify YaBB files using BoardMod or manually.
Upload modified files to your server in ASCII mode.  

Files to edit:
Admin/ModList.pl
Sources/ModifyMessage.pl
Sources/Post.pl
Sources/Profile.pl
Sources/System.pl

Zip package:
Return_To_V1_0b.mod
cgi-bin/yabb2/Languages/English/Return_To.lng
cgi-bin/yabb2/Languages/German/Return_To.lng
cgi-bin/yabb2/Languages/German_Du/Return_To.lng

History:
### YaBB 2.4 ###
v1.0 - Updated for YaBB 2.4 - 27th August 2009 - Derek Barnstorm
v1.0a - Fixed issue with new posts indicator flashing if returning to forum index - 1st September 2009
v1.0b - Removed Return To from Broadcast Message to Admin and Alert Moderator - 30th September 2009

### YaBB 2.1 ###
v1.0 - Initial Release - 11th October 2005 - astropilot
« Last Edit: Sep 30th, 2009 at 6:54pm by Derek Barnstorm »  

Return_To_V1_0b.zip ( 5 KB | Downloads )
Back to top
 
IP Logged
 
mick
Senior Member
****
Offline


I love YaBB

Posts: 345
Location: Dorsten
Joined: Nov 29th, 2005
Gender: Male
Re: Return To V1.0 for YaBB 2.4
Reply #1 - Aug 29th, 2009 at 8:04am
Print Post  
Hi Derek,

thanks for this Mod. Installation without Problem, runs well.

German and German_Du Files attached*. You can take them to your Zip.

Greetings
Mick

* Not attached any more. They are in the File in first Post now.
« Last Edit: Aug 29th, 2009 at 8:27pm by mick »  
Back to top
WWW  
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Return To V1.0 for YaBB 2.4
Reply #2 - Aug 29th, 2009 at 4:12pm
Print Post  
Thanks Mick! I've added them to the package.
  
Back to top
 
IP Logged
 
MasterKarman
Junior Member
**
Offline


YaBB 2.5.2

Posts: 90
Location: Karmanville
Joined: Feb 14th, 2009
Gender: Male
Re: Return To V1.0 for YaBB 2.4
Reply #3 - Sep 1st, 2009 at 4:36am
Print Post  
Nice little mod, Derek. Choices are always good Smiley
Installed fine and no problems.

* MasterKarman
  

Now using YaBB 2.5.2 with 40+mods
"The world is a dangerous place to live. Not because of the evil in it, but because of the people who don't do anything about it."


Back to top
IP Logged
 
smith21
Full Member
***
Offline


I love YaBB 2.1

Posts: 130
Location: North East Of Eangland
Joined: Feb 19th, 2006
Gender: Male
Re: Return To V1.0 for YaBB 2.4
Reply #4 - Sep 1st, 2009 at 11:03am
Print Post  
One slight thing I found when you reply to a message and return to Forum Index you get the New Posts indicator flashing ?? Apart from that it works great and installs a dream nice mod.
  


Back to top
WWW  
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Return To V1.0a for YaBB 2.4
Reply #5 - Sep 1st, 2009 at 4:58pm
Print Post  
Okay, thanks for pointing it out. It should be fixed now, I've updated the zip package in the first post - You need to uninstall and reinstall, the only changes are in ModifyMessage.pl and Post.pl.

If you could test it please, and let me know how it goes...
  
Back to top
 
IP Logged
 
Derek Barnstorm
God Member
*****
Offline



Posts: 1146
Location: Warwickshire
Joined: Mar 23rd, 2008
Gender: Male
Re: Return To V1.0b for YaBB 2.4
Reply #6 - Sep 30th, 2009 at 6:31pm
Print Post  
I've made another fix to this. There was no reason for it to show when sending a broadcast message to admin or alerting a moderator, so I've removed it from those pages.

If you don't want to install the mod again, find this bit of code in Sources/Post.pl:

Code
Select All
	### Return To mod start ###
	&LoadLanguage('Return_To');
	my ($rts, $rt, $return_to_select, $return_to);
	$rts = $FORM{'return_to'} ? $FORM{'return_to'}: ${$uid.$username}{'return_to'};
	for ($rt = 1; $rt <= 3; $rt++) {
	     $return_to_select .= $rts == $rt ? qq~<option value="$rt" selected>$return_to_txt{$rt}</option>~ : qq~<option value="$rt">$return_to_txt{$rt}</option>~;
	}
	$return_to = qq~
	<tr id="feature_status_9">
	    <td class="windowbg" width="23%"><label for="return_to"><b>$return_to_txt{'01'}:</b></label></td>
	    <td class="windowbg" width="77%"><select name="return_to" id="return_to">$return_to_select</select><span class="small"> <label for="return_to">$return_to_txt{'02'}</label></span></td>
	</tr>~;
	### Return To mod end ###
 


And add the highlighted:

Code
Select All
	### Return To mod start ###
	&LoadLanguage('Return_To');
	my ($rts, $rt, $return_to_select, $return_to);
	$rts = $FORM{'return_to'} ? $FORM{'return_to'}: ${$uid.$username}{'return_to'};
	for ($rt = 1; $rt <= 3; $rt++) {
	     $return_to_select .= $rts == $rt ? qq~<option value="$rt" selected>$return_to_txt{$rt}</option>~ : qq~<option value="$rt">$return_to_txt{$rt}</option>~;
	}
	if ($destination ne 'modalert2' && $destination ne 'guestpm2') {
	$return_to = qq~
	<tr id="feature_status_9">
	    <td class="windowbg" width="23%"><label for="return_to"><b>$return_to_txt{'01'}:</b></label></td>
	    <td class="windowbg" width="77%"><select name="return_to" id="return_to">$return_to_select</select><span class="small"> <label for="return_to">$return_to_txt{'02'}</label></span></td>
	</tr>~;
	}
	### Return To mod end ###
 


  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint