The BoardMod Project
 The Project | News | Downloads | Mods | FAQ | Templates | Chat | Forum
BoardMod Support Forum
[ Home | Help | Search | Login | Register ]  

25.05.13 at 22:06:33, Welcome, Guest. Please Login or Register

Choose Language:
Page Index Toggle Pages: 1
Return To V1.0b for YaBB 2.4 (Read 2331 times)
Derek Barnstorm
Hacker God
*****
Offline

Warwickshire, United Kingdom
Posts: 1113



27.08.09 at 01:26:18  
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: 30.09.09 at 19:54:38 by Derek Barnstorm »  
IP Logged
 

Return_To_V1_0b.zip (5 KB | 103 )
mick
Hacker Expert
****
Offline

Dorsten, Nordrhein-Westfalen, Germany
Posts: 344



Reply #1 - 29.08.09 at 09:04:13  
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: 29.08.09 at 21:27:30 by mick »  
IP Logged
 
Derek Barnstorm
Hacker God
*****
Offline

Warwickshire, United Kingdom
Posts: 1113



Reply #2 - 29.08.09 at 17:12:54  
Thanks Mick! I've added them to the package.
 
IP Logged
 
MasterKarman
Hacker Wannabe
**
Offline

Karmanville, British Columbia, Canada
Posts: 90



Reply #3 - 01.09.09 at 05:36:39  
Nice little mod, Derek. Choices are always good Smiley
Installed fine and no problems.

* MasterKarman
 
IP Logged
 

...
smith21
Fulltime Hacker
***
Offline

North East Of Eangland, United Kingdom
Posts: 130



Reply #4 - 01.09.09 at 12:03:49  
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.
 
IP Logged
 

...
Derek Barnstorm
Hacker God
*****
Offline

Warwickshire, United Kingdom
Posts: 1113



Reply #5 - 01.09.09 at 17:58:22  
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...
 
IP Logged
 
Derek Barnstorm
Hacker God
*****
Offline

Warwickshire, United Kingdom
Posts: 1113



Reply #6 - 30.09.09 at 19:31:51  
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:

### 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:

### 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 ###

 
IP Logged
 
Page Index Toggle Pages: 1
© 2000-2012 by - All rights reserved.

Project website hosting proudly sponsored and provided by UK2 Hosting
 The Project | News | Downloads | Mods | FAQ | Templates | Chat | Forum