[DEV] WPM 1.0.9

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Post Reply
Duvelske
Registered User
Posts: 131
Joined: Tue Nov 04, 2003 11:36 am

[DEV] WPM 1.0.9

Post by Duvelske »

Code: Select all

############################################################## 
## MOD Title: WPM
## MOD Author: Duvelske < Duvelske@planet.nl > (Richard Wagtmans) http://www.vitrax.org
## MOD Description: This mod gives you in the admin section a panel to control a welcome message
## on registration. You can disable it with the admin panel and type the message send by the mod.
## MOD Support site: www.vitrax.org, www.phpbb.nl, www.phpbb2.de, www.phpbb.com
## MOD Version: 	1.0.9
## MOD Compatibility:	2.0.4 - 2.0.17
##############################################################
## Installation Level: easy
## Installation Time: ~3 minutes
##
## Files To Edit: 2
##		  includes/usercp_register.php
##		  includes/constants.php
##
## Included Files: 10
## 		   admin_wpm.php
## 		   wpm_body.tpl
##		   functions_wpm.php
## 		   lang_admin_wpm.php (English,Dutch & German)
##		   wpm_db_update.php
##		   wpm_db_install.php
##		   uninstallwpm.php
##		   
############################################################## 
## MOD History:
##
##   2005-09-17 - Version 1.0.9
##	-  Changed some coding. This for fixing bugs for letting it work with other mods.
##	-  Changed the zip file. So it is easier for peeps to find the correct install.
##	-  Still have to look about the nuke install file.
##
##   2004-05-07 - Version 1.0.8
##	-  Changed some of the code. For better working with some new mods and older ones.
##	-  Fixed some little typo's in the install.txt file.
##
##   2004-04-05 - Version 1.0.7
##	-  Fixed the bug with the pop-up when receving a wpm
##	-  Because the how-to working of the wpm mod changed in the 1.0.6
##	   version some bugs where solved.
##
##   2004-03-15 - Version 1.0.6
##	-  Fixed some errors in admin_wpm.php
##	-  Fixed some typo's in the lang files
##	-  Made an wpmuninstall file
##	-  Replaced several txt files into one called 
##	   READMEBEFOREINSTALL.txt
##
##   2004-01-28 - Version 1.0.5
##	-  Changed the way the mod works. Now it should
##	   also be compatible most portal and premodded versions
##	   of phpbb
##	-  Changed the place in the acp menu. Now it is with general
##	-  Fixed a little pop up error (didn't show up)
##	-  Changed some minor things in the lang files
##
##   2004-01-13 - Version 1.0.4
##	-  ' Bug fixed
##	-  Some minor changes to admin_wpm.php
##	-  Changes to the install script
##
##   2003-12-24 - Version 1.0.3
##	-  Quote fix (thnx by Elo)
##	-  Lang Files fix. (forgot some entries)
##	-  Admin_wpm.php solved some bugs
##
##   2003-12-17 - Version 1.0.2
##	-  Added some changes in the working of the mod
##	-  Fixed some minor bugs with other mods
##	-  New function added with the Name wich sendt the PM
##
##
##   2003-11-28 - Version 1.0.1
##	-  Added some code to the install file.
##	-  Some minor fixes in the admin_wpm.php file &
##	   in the wpm_body.tpl
##	
##   2004-11-09 - Version 1.0.0
##	-  initial release
##     	-  An added request for disabling the mod
##     	-  EM Ready
##
##   2003-10-16 - Version 0.9.0
##	-  initial BETA release
##	
##
############################################################## 
## This MOD is released under the GPL License. 
## Intellectual Property is retained by the MOD Author(s) listed above 
############################################################## 
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/mods/ 
############################################################## 
## Author Notes: 
##	Please Run before you mod the files the wpm_db_update.php file in the root of your forum
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
##############################################################
Download phpbbhacks (upgrade sent. May take some days)
Download own site (You have te be a member for downloading from my site.. This because of much hotlinking!! Sorry peeps :( )
Last edited by Duvelske on Thu Oct 27, 2005 10:58 pm, edited 12 times in total.
Greetzzz, Duvelske
| Vitrax Premodded | my Mods | Partyfreakers |
cratz
Registered User
Posts: 23
Joined: Thu Dec 25, 2003 10:42 pm

Post by cratz »

You include the file, send_pm_on_registration_102uninstall.txt with your mod.

Why?

Are the two mods not compatible?
mgurain
Registered User
Posts: 89
Joined: Mon Jun 30, 2003 5:28 pm
Location: Al-Qatif - Al-Jarodiah

Post by mgurain »

hi,,

a nice hack, but can you make it as :

each MODERATOR and ADMIN can set his own WPM to be sent automatically on a user registeration ?

thanks in advance,,
Duvelske
Registered User
Posts: 131
Joined: Tue Nov 04, 2003 11:36 am

Post by Duvelske »

@cratz:

Yes they can work both at the same time, but then 2 pm's are send when someone registers.

@mgurain

That could be a nice addon, but if someone new registers he get at once many pm's. But i gonna think about it. Maybe in a later release
Greetzzz, Duvelske
| Vitrax Premodded | my Mods | Partyfreakers |
mgurain
Registered User
Posts: 89
Joined: Mon Jun 30, 2003 5:28 pm
Location: Al-Qatif - Al-Jarodiah

a new Idea

Post by mgurain »

hi,,

thanks Duvelske for your coorporation,,

I have a new Idea :

instead of making multiple PM's let it as it is one PM from admin, but :

Each MOD and Admin Can set his own signiture to have a welcome message of the new member for three days (admin control) then back to his normal signiture ?

ofcourse the message will change if another member registers in this three days, and the message will show only the Welcome message of the last member ?

Is it easy or complicated ?

thanks in advance,,
Duvelske
Registered User
Posts: 131
Joined: Tue Nov 04, 2003 11:36 am

Post by Duvelske »

if you make it like this the problem is that not everyone reads the message and their can be a security flau in this! If you can acces the post, it can access it as a post everyone get's the problem is that everyone has access to it! And because it has to be an admin to insert the predefined text. Doesn't it seem to be a nice idea. But the idea itself i liked. I will give it a look if it can been. But the way it act's now is the best i think :oops:
Greetzzz, Duvelske
| Vitrax Premodded | my Mods | Partyfreakers |
User avatar
smithy_dll
Former Team Member
Posts: 7630
Joined: Tue Jan 08, 2002 6:27 am
Location: Australia
Name: Lachlan Smith
Contact:

Post by smithy_dll »

please edit your topic title in accordance of the forum rules

thank you, we cannot make exceptions
Systems Engineering
Duvelske
Registered User
Posts: 131
Joined: Tue Nov 04, 2003 11:36 am

Post by Duvelske »

It has been edited ;)
Greetzzz, Duvelske
| Vitrax Premodded | my Mods | Partyfreakers |
User avatar
Tia
Registered User
Posts: 141
Joined: Mon May 19, 2003 4:21 am

Post by Tia »

Hello, I originally installed the version 1.0.2 and finally found your updated version. I carefully removed the previous version from the phpbb files and deleted the wpm files before installing this newer version. I did not alter any tables but simply ran the newer db_update that you include in this version. It successfully added stuff but I recieved "already exists" errors for the others. Then I installed this version, uploaded the new files and set the sender name to the admin. After, I registered a test user and recieved an error. Here is the error:
Could not insert/update private message sent text.

DEBUG MODE

SQL Error : 1196 Warning: Some non-transactional changed tables couldn't be rolled back

INSERT INTO phpbb_privmsgs (privmsgs_type, privmsgs_subject, privmsgs_from_userid, privmsgs_to_userid, privmsgs_date, privmsgs_ip, privmsgs_enable_html, privmsgs_enable_bbcode, privmsgs_enable_smilies, privmsgs_attach_sig) VALUES (1, 'Welcome to MY SITE', 10, 16, 1075964323, '', 0, 1, 1, 1)

Line : 109
File : /home/me/public_html/phpbb2/includes/functions_post.php

How do I fix this? Thanks, I look forward to getting this mod to work correctly.
Duvelske
Registered User
Posts: 131
Joined: Tue Nov 04, 2003 11:36 am

Post by Duvelske »

Did you edit the function_post correctly? If you think you did it properly. Please mail me at duvelske@Planet.nl with the file as an attachment and i will give it a look ;)
Greetzzz, Duvelske
| Vitrax Premodded | my Mods | Partyfreakers |
Duvelske
Registered User
Posts: 131
Joined: Tue Nov 04, 2003 11:36 am

Post by Duvelske »

The error is solved. Also i wanted to ask if people are interested in a bpm mod? The mod is an addon of the wpm mod. (for now) And works with the birthday mod of Niels. It is yet very crappy. But it works. When someone has his/her birthday the mod sends a pm to that person. And congratulates with his/her birthday. It can be adjusted in the acp. Let me know what you think about it
Greetzzz, Duvelske
| Vitrax Premodded | my Mods | Partyfreakers |
Duvelske
Registered User
Posts: 131
Joined: Tue Nov 04, 2003 11:36 am

Post by Duvelske »

New version released 1.0.5

Release 1.0.5
  • -Changed the way the mod works. Now it should also be compatible most portal and premodded versions of phpbb
    -Changed the place in the acp menu. Now it is with general
    -Fixed a little pop up error (didn't show up)
Read the update files! For updating
Greetzzz, Duvelske
| Vitrax Premodded | my Mods | Partyfreakers |
User avatar
Tia
Registered User
Posts: 141
Joined: Mon May 19, 2003 4:21 am

Post by Tia »

Yes sorry, that problem was corrected. Thank you. :D
I see your latest release: 1.0.5 has been removed from your site?
I would really love to see that pop-up working and hope you can
fix the problems. :D
Duvelske
Registered User
Posts: 131
Joined: Tue Nov 04, 2003 11:36 am

Post by Duvelske »

The 1.0.5 version isn't removed, but their are problems with letting the mod work. It doesn't send any message. The cause is that i relay the way the mod functions. So the problem is in the working of the mod.
Greetzzz, Duvelske
| Vitrax Premodded | my Mods | Partyfreakers |
User avatar
transwarp™
Registered User
Posts: 92
Joined: Fri Jul 19, 2002 11:34 pm

Post by transwarp™ »

Some little problem inside your language, because you have taken this from the AI MOD

Code: Select all

$lang['updated_return_settings'] = "Welcome PM configuration updated successfully.<br /><br />Click %shere%s to return to these AI Settings."; // %s's for URI params - DO NOT REMOVE
Change to

Code: Select all

$lang['updated_return_settings'] = "Welcome PM configuration updated successfully.<br /><br />Click %shere%s to return to these WPM Settings."; // %s's for URI params - DO NOT REMOVE
- TERRA OCEANICA -
Post Reply

Return to “[2.0.x] MODs in Development”