Wicher's phpBB2 Mods Forum Index Wicher's phpBB2 Mods
On this board you will find all phpBB2 mods that i have created over the years. Most mods are on this board installed. Before asking for support, be sure to have your board updated to the latest phpBB2 version.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Simple db_update generatorSimple db_update generator   Advanced db_update generatorAdvanced db_update generator 
 This board is protected by Phpbbantispam 

NewTopic Auto Notify Checked
Goto page
 
Reply to topic    Wicher's phpBB2 Mods Forum Index -> Wicher's phpBB Mods Was this Topic Helpful?  
Points for this topic: 0
Topic gradiation: 
View previous topic :: View next topic  
Author NewTopic Auto Notify Checked
Wicher
Site Admin


Joined: 16 Dec 2005
Posts: 1144
User's local time:
2024 Mar 28 - 6:09 PM
Country IP         : Netherlands
Country of choice: Netherlands


Was This Post Helpful?

 
Users postingpoints:
58
Posts points:
0
Post gradiation:
PostPosted: Tue Jan 16, 2007 8:20 pm    Post subject: Reply with quote

Code:
  1. ##############################################################
  2. ## MOD Title:       NewTopic Auto Notify Checked
  3. ## MOD Author:      Wicher < N/A > (N/A) http://www.wichersmods.nl
  4. ## MOD Description: Makes it so that the checkbox next to "Notify me when a reply is posted"
  5. ##                  is automatically checked when a user starts a new topic.
  6. ##                  When a user reply's to someones post the checkbox is checked or not checked
  7. ##                  as given in users profile.
  8. ##
  9. ## MOD Version:     1.0.0
  10. ##
  11. ## Installation Level: Easy
  12. ## Installation Time: 1 Minute
  13. ##
  14. ## Files To Edit:  posting.php
  15. ##
  16. ## Included Files:   < n/a >
  17. ##
  18. ## License:      http://opensource.org/licenses/gpl-license.php GNU General Public License v2
  19. ##
  20. ##############################################################
  21. ## For security purposes, please check: http://www.phpbb.com/mods/
  22. ## for the latest version of this MOD. Although MODs are checked
  23. ## before being allowed in the MODs Database there is no guarantee
  24. ## that there are no security problems within the MOD. No support
  25. ## will be given for MODs not found within the MODs Database which
  26. ## can be found at http://www.phpbb.com/mods/
  27. ##############################################################
  28. ## Author Notes:   
  29. ##         This mod has been tested on phpbb 2.0.22
  30. ##
  31. ##############################################################
  32. ## MOD History:
  33. ##
  34. ## 16-01-2007
  35. ##   first release
  36. ##
  37. ##############################################################
  38. ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
  39. ##############################################################
  40. #
  41. #-----[ OPEN ]------------------------------------------
  42. #
  43. posting.php
  44. #
  45. #-----[ FIND ]------------------------------------------
  46. #
  47.    'S_NOTIFY_CHECKED' => ( $notify_user ) ? 'checked="checked"' : '',
  48. #
  49. #-----[ REPLACE WITH ]------------------------------------------
  50. #
  51. //   'S_NOTIFY_CHECKED' => ( $notify_user ) ? 'checked="checked"' : '',
  52. #
  53. #-----[ FIND ]------------------------------------------
  54. #
  55.    'S_POST_ACTION' => append_sid("posting.$phpEx"),
  56.    'S_HIDDEN_FORM_FIELDS' => $hidden_form_fields)
  57. );
  58. #
  59. #-----[ AFTER, ADD ]------------------------------------------
  60. #
  61. if($mode == 'newtopic' && !$refresh)
  62. {
  63.    $template->assign_vars(array(
  64.       'S_NOTIFY_CHECKED' => 'checked="checked"')
  65.    );
  66. }
  67. else
  68. {
  69.    $template->assign_vars(array(
  70.       'S_NOTIFY_CHECKED' => ( $notify_user ) ? 'checked="checked"' : '')
  71.    );
  72. }
  73. #
  74. #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
  75. #
  76. # EoM

_________________

Wicher's phpBB2 Mods | Wicher's phpBB3 Mods | Statistics Mod 4.x.x
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Wicher's phpBB2 Mods Forum Index -> Wicher's phpBB Mods All times are GMT
Goto page
Was this Topic Helpful?  
Points for this topic: 0
Topic gradiation: 
Page 1 of 0

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

This board is protected by Phpbbantispam
Powered by phpBB © 2001, 2005 phpBB Group

Googlepage: GooglePullerPage
IP Country Flag 2.9.4 © 2005, 2007 - 3Di (aka 3D)