[ABD] Subscribe Members 1.0.3

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.
User avatar
mosymuis
Registered User
Posts: 319
Joined: Mon Dec 30, 2002 9:12 pm
Location: Amsterdam
Name: Rens
Contact:

[ABD] Subscribe Members 1.0.3

Post by mosymuis »

Subscribe Members 1.0.3

Code: Select all

##############################################################
## MOD Title: Subscribe Members [2.0.10]
## MOD Author: 	mosymuis < mods@mosymuis.nl > (Rens van Dongen) http://mods.mosymuis.nl
##
## MOD Description: This mod ads two new links to each topic, which can be used
##		by the admin to (un)subscribe all members to that topic.
##
## MOD Version: 1.0.3
##
## Installation Level: (Easy)
## Installation Time: 2 Minutes
## Files To Edit: (4)
##		- viewtopic.php 
##		- templates/subSilver/viewtopic_body.tpl
##		- language/lang_english/lang_main.php
##		- language/lang_dutch/lang_main.php
## Included Files: (2)
##		- phpbb_root_path/subscribe.php
##		- phpbb_root_path/templates/subsilver/subscribe.tpl
##############################################################
## Author Notes: Made for a request from va-voem at phpbb.nl.
##############################################################
## MOD History:
##
##   2004/04/06 - Version 1.0.3
##      - Fixed bug
##      - Improved database communication & security
##
##   2004/04/06 - Version 1.0.2
##      - Updated Registration Agreement
##
##   2004/01/02 - Version 1.0.1
##      - Fixed session bug
##      - Fixed viewtopic bug
##
##   2004/03/14 - Version 1.0.0
##      - Initial Release
##
##############################################################
Download
All files can be found in here. :P

Demo forum
You can find a demo forum here, and everyone is welcome to login with tester:tester.
Last edited by mosymuis on Sun Jul 18, 2004 10:48 am, edited 5 times in total.

User avatar
Xxh2kxX
Registered User
Posts: 149
Joined: Fri Aug 22, 2003 6:03 pm
Contact:

hey

Post by Xxh2kxX »

hey

thankyou its really cool mod .. iam going to install it .. thankyou :D

Rapid Dr3am
Registered User
Posts: 198
Joined: Sun Jul 13, 2003 4:14 pm
Location: Incommunicado
Contact:

Post by Rapid Dr3am »

Hello,

Unsolicited mail is illegal.

Please be aware that this script will be used to send mail that the user has no 'opted-in' for and as such can be classed as spam.

If I recived mail due to a script such as this I would have no hesitation is reporting the offending website.
What is spam? wrote: Spam is qualified as: unsolicited advertising, email dumping, senseless topics, pornography, post count spamming and a popular tinned meat.

User avatar
mosymuis
Registered User
Posts: 319
Joined: Mon Dec 30, 2002 9:12 pm
Location: Amsterdam
Name: Rens
Contact:

Post by mosymuis »

Then you would considder phpBB's mass email function also illegal? :roll:

I know what you mean, I'm also not gonna use this myself, I made it for an request. It's the admins responsibilaty to use this modification, and I think he knows best what his members will accept and what not.

Rapid Dr3am
Registered User
Posts: 198
Joined: Sun Jul 13, 2003 4:14 pm
Location: Incommunicado
Contact:

Post by Rapid Dr3am »

mosymuis wrote: Then you would considder phpBB's mass email function also illegal? :roll:


Something I have debated long and hard with many people.

I'm sure I am not teh only one who has signed up at a forum with a spam happy admin.

Only the other day, I got one about getting people to visit his site and click his google ads.

I belive that opt-in is the only way to recive mail.

User avatar
mosymuis
Registered User
Posts: 319
Joined: Mon Dec 30, 2002 9:12 pm
Location: Amsterdam
Name: Rens
Contact:

Post by mosymuis »

I'm also registered on an awful lot of forums, so I know what you're talking about. But then again, it's the admin's choice to send mass email either once per year or once per week, and you just have to accept that as a user when you register somewere. When I get irritated because of lot of those emails I just talk to the admin, and most of the times that'll work. I think it has to be the same when my mod is starting to be used.

And besides that, you can't refuse mass email (not without an extra mod), but you can unsubscribe to the topics the admin has subscribed you to, after the first notification mail you recieved. It's not all as bad as it may seam to you at this moment.

User avatar
Xxh2kxX
Registered User
Posts: 149
Joined: Fri Aug 22, 2003 6:03 pm
Contact:

Hello

Post by Xxh2kxX »

Hello

Here when i install it ..

Code: Select all

phpBB : Critical Error 

Error updating sessions table

DEBUG MODE

SQL Error : 1054 Unknown column 'PAGE_NOTES' in 'field list'

UPDATE phpbb_sessions SET session_time = 1079824529, session_page = PAGE_NOTES, session_topic = '0' WHERE session_id = 'ba0a03780f1a93024043a6b56da26ace'

Line : 314
File : c:\apache\htdocs\forum\includes\sessions.php 

Do u have any idea is there any SQL Needed to be add ? :D

User avatar
Xxh2kxX
Registered User
Posts: 149
Joined: Fri Aug 22, 2003 6:03 pm
Contact:

OK ...

Post by Xxh2kxX »

ok outher think again

Is there any way to let the

Subscribe all members to this topic
Unsubscribe all members from this topic

i want them to be Icon .. is there anyway .. Thankyou :D

User avatar
mosymuis
Registered User
Posts: 319
Joined: Mon Dec 30, 2002 9:12 pm
Location: Amsterdam
Name: Rens
Contact:

Post by mosymuis »

About that bug: that was just a stupid mistake of me, I had taken a line of code out of one of my other mods, so it didn't work with you. My appologise. ;)

v1.0.0 to v1.0.1

Code: Select all

##############################################################
## MOD Title: Subscribe Members [2.0.7]
## MOD Author: 	mosymuis < mods@mosymuis.nl > (Rens van Dongen) http://mods.mosymuis.nl
##
## MOD Version: 1.0.1 (update from 1.0.0)
##
## Installation Level: (Easy)
## Installation Time: 1 Minute
## Files To Edit: (1)
##		- subscribe.php
##		- viewtopic.php
## Included Files: (n/a)
##############################################################
## Author Notes: Made for a request from va-voem at phpbb.nl.
##############################################################
## MOD History:
##
##   2004/01/02 - Version 1.0.1
##      - Fixed session bug
##      - Fixed viewtopic bug
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

# 
#-----[ OPEN ]------------------------------------------ 
# 
subscribe.php

# 
#-----[ FIND ]------------------------------------------ 
# 
$userdata = session_pagestart($user_ip, PAGE_NOTES);

#
#-----[ REPLACE WITH ]------------------------------------------
#
$userdata = session_pagestart($user_ip, PAGE_INDEX);

# 
#-----[ OPEN ]------------------------------------------ 
# 
viewtopic.php

# 
#-----[ FIND ]------------------------------------------ 
# 
	'SUBSCRIBE_MEMBERS' => $subscribe_members,

#
#-----[ REPLACE WITH ]------------------------------------------
#
	'SUBSCRIBE_MEMBERS' => ( $userdata['user_level'] == ADMIN ) ? $subscribe_members : '',

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
And images instead of textlinks? That can easally be made, but I won't build it in my mod because I think it would look better the way it is now.

If you want to do it yourself, just open viewtopic.php, search for '. $lang['Subscribe_members'] . ' and '. $lang['Unsubscribe_members'] . ' and replace them by images (<img src="">).
Last edited by mosymuis on Tue Apr 06, 2004 4:40 pm, edited 3 times in total.

User avatar
Xxh2kxX
Registered User
Posts: 149
Joined: Fri Aug 22, 2003 6:03 pm
Contact:

thankyou

Post by Xxh2kxX »

thankyou...

its working know ..
:D
Can u pls Just Explain to me how can i make them Icon ..becz its make the page soo big .. and i just need them a small icon ..

thankyou :D

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 »

make the MOD change the signup agreement, then you should have no legality problems as all e-mail via the board will be opt-in

User avatar
mosymuis
Registered User
Posts: 319
Joined: Mon Dec 30, 2002 9:12 pm
Location: Amsterdam
Name: Rens
Contact:

Post by mosymuis »

Davidls wrote: make the MOD change the signup agreement, then you should have no legality problems as all e-mail via the board will be opt-in

What would you suggest? An option in each profile which allows the admin to use this function? I'm affraid that will make this mod kind of useless... :?:

Xxh2kxX wrote: Can u pls Just Explain to me how can i make them Icon ..becz its make the page soo big .. and i just need them a small icon ..

I told you allready in the post above you... :roll:

User avatar
drathbun
Former Team Member
Posts: 12204
Joined: Thu Jun 06, 2002 3:51 pm
Location: TOPICS_TABLE
Contact:

Post by drathbun »

mosymuis wrote:
Davidls wrote:make the MOD change the signup agreement, then you should have no legality problems as all e-mail via the board will be opt-in

What would you suggest? An option in each profile which allows the admin to use this function? I'm affraid that will make this mod kind of useless... :?:

That's not what the suggestion was. If during registration you add a paragraph that says something like:
On occasion the Board Administrator may add you to a notification list for specific topics. You agree to receive those emails as they will be used to blah blah blah whatever

By telling people up front that they may be subscribed to topics by the admin, they are agreeing up front (during the registration process) that it is okay.
I blog about phpBB: phpBBDoctor blog
Still using phpbb2? So am I! Click below for details
Image

User avatar
mosymuis
Registered User
Posts: 319
Joined: Mon Dec 30, 2002 9:12 pm
Location: Amsterdam
Name: Rens
Contact:

Post by mosymuis »

Yes, that would be a good solution for this, I understood it wrong. That change in the agreement will be in the new version. :wink:

User avatar
mosymuis
Registered User
Posts: 319
Joined: Mon Dec 30, 2002 9:12 pm
Location: Amsterdam
Name: Rens
Contact:

Post by mosymuis »

I didn't espected more updates, so here is the little change in the Registration Agreement, as requested. I used most of drathbun example.

v1.0.1 to v1.0.2

Code: Select all

##############################################################
## MOD Title: Subscribe Members [2.0.8]
## MOD Author: 	mosymuis < mods@mosymuis.nl > (Rens van Dongen) http://mods.mosymuis.nl
##
## MOD Version: 1.0.2 (update from 1.0.1)
##
## Installation Level: (Easy)
## Installation Time: 1 Minute
## Files To Edit: (2)
##		- language/lang_english/lang_main.php
##		- language/lang_dutch/lang_main.php
## Included Files: (n/a)
##############################################################
## Author Notes: Made for a request from va-voem at phpbb.nl.
##############################################################
## MOD History:
##
##   2004/04/06 - Version 1.0.2
##      - Updated Registration Agreement
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php

# 
#-----[ FIND ]------------------------------------------ 
# 
$lang['Reg_agreement'] = 'While the administrators and moderators of this forum will attempt to remove or edit any generally objectionable material as quickly as possible, it is impossible to review every message. Therefore you acknowledge that all posts made to these forums express the views and opinions of the author and not the administrators, moderators or webmaster (except for posts by these people) and hence will not be held liable.<br /><br />You agree not to post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-oriented or any other material that may violate any applicable laws. Doing so may lead to you being immediately and permanently banned (and your service provider being informed). The IP address of all posts is recorded to aid in enforcing these conditions. You agree that the webmaster, administrator and moderators of this forum have the right to remove, edit, move or close any topic at any time should they see fit. As a user you agree to any information you have entered above being stored in a database. While this information will not be disclosed to any third party without your consent the webmaster, administrator and moderators cannot be held responsible for any hacking attempt that may lead to the data being compromised.<br /><br />This forum system uses cookies to store information on your local computer. These cookies do not contain any of the information you have entered above; they serve only to improve your viewing pleasure. The e-mail address is used only for confirming your registration details and password (and for sending new passwords should you forget your current one).<br /><br />By clicking Register below you agree to be bound by these conditions.';

#
#-----[ IN-LINE FIND ]---------------------------------------------------
#
The e-mail address is used only for confirming your registration details and password (and for sending new passwords should you forget your current one).

#
#-----[ IN-LINE REPLACE WITH ]---------------------------------------------------
#
The e-mail address is used for confirming your registration details and password (and for sending new passwords should you forget your current one). On occasion the Board Administrator may add you to a notification list for specific topics, because of all sorts of reasons. You agree to receive those emails to be recieved at least once, after that you can unsubribe to them immediately. 

#
#-----[ OPEN ]------------------------------------------
# Only if you have the Dutch language pack installed
#
language/lang_dutch/lang_main.php

# 
#-----[ FIND ]------------------------------------------ 
# 
$lang['Reg_agreement'] = 'De beheerders en moderators van dit forum zullen proberen ongewenst materiaal zo snel mogelijk te verwijderen van de site. Het is echter onmogelijk om ieder bericht te controleren. Door in te stemmen met de voorwaarden erken je dat alle berichten op dit forum de meningen en gezichtspunten van de gebruikers zijn en niet van de beheerders, moderators of webmaster (behalve bij de berichten die door deze mensen geplaatst zijn). Het beheer kan niet aansprakelijk gesteld worden voor de inhoud van berichten van gebruikers.<br /><br />Je geeft verder aan dat je geen kwetsende, obscene, vulgaire, lasterlijke, haatdragende, bedreigende, seksueel georiënteerde berichten plaatst. Verder die je je te houden aan de van toepassing zijnde wetten en regels. Als je je niet houdt aan deze voorwaarden of aanwijzingen van het beheer niet volgt kan je meteen en permanent gebanned worden en zal eventueel je service provider op de hoogte worden gesteld van je gedrag. Het IP adres van je computer wordt bij ieder bericht opgeslagen om het beheer van de site te vereenvoudigen. Verder bewaard het systeem cookies op jouw computer. Deze cookies bevatten geen van de gebruikers informatie die in het profiel opgegeven wordt. Door deze voorwaarden te accepteren stem je er in toe dat bovenstaande gegevens bijgehouden worden. Deze informatie zal niet bekend worden gemaakt aan derden zonder jouw toestemming. Het beheer van de site is niet aansprakelijk voor hack pogingen die het gevolg zijn van het eventueel bekend worden van deze informatie.<br /><br />Het beheer van de site heeft het recht alle berichten te verwijderen, bewerken, verplaatsen en hebben het recht onderwerpen en forums te sluiten op het moment dat zij dit passend vinden. Het e-mail adres dat je opgeeft wordt alleen gebruikt voor het bevestigen van je account en wachtwoord en voor het verzenden van een nieuw wachtwoord als je je wachtwoord vergeet.<br >';

#
#-----[ IN-LINE FIND ]---------------------------------------------------
#
Het e-mail adres dat je opgeeft wordt alleen gebruikt voor het bevestigen van je account en wachtwoord en voor het verzenden van een nieuw wachtwoord als je je wachtwoord vergeet.

#
#-----[ IN-LINE REPLACE WITH ]---------------------------------------------------
#
Het e-mail adres dat je opgeeft wordt gebruikt voor het bevestigen van je account en wachtwoord en voor het verzenden van een nieuw wachtwoord als je je wachtwoord vergeet. Onder sommige omstandigheden kan de administrator ervoor kiezen om je te abonneren op specifieke onderwerpen, om allerlei soorten redenen. Je stemt ermee in deze emails ten minste één keer te ontvangen, hierna kan je dat abonnement direct opzeggen.

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM

Locked

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