PDA

View Full Version : Disable Guest/Banned Users use of sendmessage.php


Snort_2005
04-28-2006, 10:00 PM
Hmm.. Well, I dunno if many people have thought of this, but, the sendmessage.php file doesn't have a native option to disable guest use of it so I have created a simple product that does so.

Installation is import the product and edit your footer template. This hack also adds 5 phrases for the admin control panel configuration end of the hack. :)

Template edit instructions are in the zip.

Upgrading instructions: If you have 1.0.0 or 1.0.1, be sure to just reinstall the product included and that you have "allow overwrite" checked. No templates have been modified since 1.0.0

Configuration of this hack is now ACP controlled. I have added a new setting group sendmessage.php - Guest/Banned Permissions to the vBulletin Options page. This will allow you to configure whether or not guests or banned users can use sendmessage.php. (You can set it so guests can, but banned users can't. and vice-versa. :))

When you do install this hack, remember this, I would at least have a single forum that guests can post in just in case they have a login or registration problem. Me, I have a forum that is accessable by guests and admin only. :)

Version History

1.0.0 - Initial Release

1.0.1 - Added checks and causes banned users to also get the no-permission message.

1.1.0 - Added vBulletin options for choosing whether or not you would like guests or banned users to use sendmessage.php

Boofo
04-28-2006, 11:34 PM
I have to ask this...why in the world would you want to do this? How is someone who is having problems registering on the site supposed to contact you for help? ;)

Snort_2005
04-28-2006, 11:36 PM
I have to ask this...why in the world would you want to do this? How is someone who is having problems registering on the site supposed to contact you for help? ;)
I have a guest/admin only forum that guests can post in instead. :)

Mr Chad
04-28-2006, 11:36 PM
I have to ask this...why in the world would you want to do this? How is someone who is having problems registering on the site supposed to contact you for help? ;)
lol, yea... I have had many members help me out because of registration problems i would of never known about. This is a bad idea.

Mr Chad
04-28-2006, 11:37 PM
I have a guest/admin only forum that guests can post in instead. :)
oh well thats different :)

Boofo
04-28-2006, 11:37 PM
I have a guest/admin only forum that guests can post in instead. :)

Ahhh, well, in that case, I digress. But you might want to state that in the hack and the first post as a lot of sites don't allow guests to post. ;)

Snort_2005
04-28-2006, 11:44 PM
Ahhh, well, in that case, I digress. But you might want to state that in the hack and the first post as a lot of sites don't allow guests to post. ;)
Thanks for the advice.. first post edited.

Boofo
04-28-2006, 11:47 PM
Thanks for the advice.. first post edited.

I highlighted the part you added in the first post so it stands out a bit more. ;)

Good job on the hack, by the way. ;)

Snort_2005
04-28-2006, 11:53 PM
Thanks. And thanks for the compliment. Just a side note to everyone, This is my first hack that uses a plugin/product. :p

DementedMindz
04-29-2006, 01:02 AM
what would be nice is if this stopped users you ban from sending a message... seems like if you ban a members they cant do nothing else at all... but what they can still do is send a messages to admin...

Snort_2005
04-29-2006, 02:12 AM
what would be nice is if this stopped users you ban from sending a message... seems like if you ban a members they cant do nothing else at all... but what they can still do is send a messages to admin...
I have just updated the product with that addon. Thank you for the suggestion. :)

DementedMindz
04-29-2006, 02:14 AM
thank you *clicks install*

kall
04-29-2006, 05:59 AM
the sendmessage.php file doesn't have a native option to disable guest use of it
It doesn't? What's this all about then?

Allow Unregistered Users to use 'Contact Us'
The last option only applies if you specify "sendmessage.php" in the previous option. It will cause an image to be displayed that the user will have to enter in order to prove that an automated process is not sending the feedback. If you do not see an image below, then please verify that your image processing settings are correct in Image Settings.
The options are Yes, Yes but require Image verification, No.

Snake
04-29-2006, 12:08 PM
Thank you, friend! :)

DementedMindz
04-29-2006, 02:57 PM
It doesn't? What's this all about then?

The options are Yes, Yes but require Image verification, No.

I like the fact it now stops banned members from sending messages.. where as before banned members could send messages...

Boofo
04-29-2006, 04:55 PM
Can this be done JUST for bannededed (;)) members and still allow guests to use it? I might be intersted in that. ;)

DementedMindz
04-29-2006, 05:03 PM
yeah maybe make 2 seperate ones... i would like guest to use mine but i hate the fact that banned members could still send a message...

Snort_2005
04-29-2006, 06:13 PM
Hmm.. Maybe I'll see about setting up a few yes/no options in the ACP.

*runs off to his vB*

I'll probably have this done within a few hours or days depending on how everything is setup.. (I've never added vBulletion options before. lol)

EDIT: Yes, I have figured out vBulletin options and I have just added that functionality into the hack. I've also sent out an update email to everyone that has the hack installed. I hope this will help. :)

Boofo
04-29-2006, 11:35 PM
Thank you, sir. I just clicked install for the banned users part of this. ;)

DementedMindz
04-30-2006, 12:41 AM
thank you Snort_2005...