PDA

View Full Version : Miscellaneous Hacks - Do Contact Us To Thread


TigerWare
11-11-2007, 10:00 PM
-=+ WHAT IS THIS? +=-

Quite simply this product allows for Do Contact Us form submissions to be directed into a new thread of a specified forum. You may optionally control the email notification system too.

-=+ FEATURES +=-

Various aspects of this product are controlled via the AdminCP, such as:-
Ability to turn it on/off.
Pick the forum into which new threads will appear.
Ability to specify a user as the thread starter.
Control the content of new thread titles.
Control the content of post text.
Turn on or off support for Smilies.
Ability to set new threads to Moderated.
Switch off email notification entirely.
Define multi-recipient Email Notifications.
-=+ INSTALLATION +=-

Import the supplied product xml by using the Product Manager of the AdminCP, as below:-
Plugins & Products -> Manage Products -> Add/Import Product
-=+ UPGRADING +=-

You do not need to uninstall the older version of the product.

Import the updated product xml by using the Product Manager of the AdminCP, as below:-
Plugins & Products -> Manage Products -> Add/Import Product
Ensure the option Allow Overwrite is set to Yes on the import screen, prior to clicking Import.

-=+ POST INSTALLATION/UPGRADE +=-

Post installation settings can be found in vBulletin options section:-
vBulletin Options -> TWP - Do Contact Us To Thread
In order for the product to operate certain criteria must be met, as follows:-
Plugin must be enabled. (true by default)
Product must be enabled in the options. (no by default)
A forum must have been picked in the options. (none by default)
If any of the above criteria are not satisfied, the product will NOT operate. Please check these before asking for help.

-=+ WHAT'S NEW IN V1.1 +=-

Cosmetic FixIt was noted after version 1.0 was released that certain phrase variables being used were defined twice. One for the plugin to use and another for the vbOptions screen. Version 1.1 fixes the issue by renaming each of the phrases defined for the vbOptions screen. An installation script is provided in the product xml to automate the renaming when users upgrade.
Bug Fix and Option Added : Missing Name ReplacementOn occasion the sender of the Do Contact Us form forgets fill out the Name field. This option provides a convenient replacement text if the name is empty. This was mistakenly hard-coded in version 1.0. ({no name} by default)
Option Added : Allow Smilies
You can now turn on or off smilies for new messages that come in. (No by default)
Option Added : Moderate New ThreadsYou can now set new threads to be Moderated upon arrival. This may be useful on boards which have a mixed permissions setup on the Forum, and allows messages to be approved first. (No by default)
Option Added : Override Default Email SenderBy default vBulletin will dutifully send notification emails to the address defined as "Webmaster" and to addresses defined in Contact Us Options (if configured). This setting will stop those emails from being sent. (No by default)
Option Added : Enable Email Notification ListThis option will enable or disable the Email Notification List (see below). (No by default)
Option Added : Email Notification ListThis setting allows you to define a set of email addresses that you wish to send notifications to on the arrival of new messages. This will work in addition to the default handling of notifications unless you have disabled it via the Override Default Email Sender option. (Empty by default)
-=+ RELEASE HISTORY +=-
v1.1 : 18-Nov-07 : Minor fixes and added options.
v1.0 : 12-Nov-07 : First public realease.
v0.1 : 04-Nov-07 : Internal Test Version.
-=+ THE CREDITS +=-

This product has been developed from an unreleased original plugin by weeno (https://vborg.vbsupport.ru/member.php?u=4723). Many thanks to weeno for permission to use the plugin code (originally posted here (https://vborg.vbsupport.ru/showthread.php?t=127964)) as the basis of this formal release.

-=+ ISSUES +=-

Confirmed as NOT COMPATIBLE with vBulletin 3.7.* Please refer to post#2 (https://vborg.vbsupport.ru/showpost.php?p=1381176&postcount=2) for a 3.7 Patch.

-=+ SPECIAL THANKS +=-

Many thanks to everyone who clicked the Nominate For MOTM during November 2007, and for subsequent votes on the MOTM Poll for December (https://vborg.vbsupport.ru/showthread.php?t=164019). It makes the effort a really worthwhile experience.

TigerWare
11-12-2007, 05:53 PM
Possible Future Updates

Create an option to direct new threads into different forums, depending on the pre-defined subjects available.
Create an option to customize the thread title prefix, depending on whether they are registered users (logged in) or unregistered (guest messages).
Create a configuration to direct messages to either a new thread or email depending on whether they are logged in user or guest.


FAQ

Q: Does this modification replace the email function of the Do Contact Us form?
A: No. Email settings are not touched by this modification. (v1.0)
A: It can be configured to stop or reconfigure email notifications. (v1.1)


PATCH FOR vB 3.7

As noted on the release of vB 3.7 Beta 3 there is a core vBulletin code change that has affected the AdminCP "vBulletin Options" when saving changes. This change means that you cannot save changes made in the vBulletin Options for this modification. Having coded a fix for this it was thought that I would be releasing a seperate version specifically for the new 3.7 line, but with the release of 3.6.9 and 3.6.10 this has been placed on a lower priority. Therefore, I have decided to release a patch for users wishing to use this modification in 3.7. Please find attached to this post the following attachments:

plugins_vb37_patch-twp_docontactus_to_thread.txt
Instructions for the application of the patch.
plugins_vb37_patch-twp_docontactus_to_thread.xml
XML Import file containing 2 replacement plugins.

Fungsten
11-12-2007, 05:54 PM
Installed.

RaceJunkie
11-12-2007, 06:00 PM
This is great. Tagged for future install.

itsblack
11-12-2007, 06:33 PM
Good idea! Installed.

yoyoyoyo
11-12-2007, 06:54 PM
good one thanks - will install later

Audentio
11-12-2007, 07:02 PM
Niiice mod, very impressive :).

youradhere4222
11-12-2007, 07:14 PM
Very nice--I might install later.

johnrizz
11-12-2007, 07:21 PM
very good! installed this

TheBlackPoet
11-12-2007, 07:51 PM
tested... and works great... good job.... installed.... i personally cant think of anything else this hack might need....~~~

TTG
11-12-2007, 08:01 PM
Simple but very useful .. like some of my friends :D

Clicked install

FreshFroot
11-12-2007, 08:06 PM
very good idea! Great hack mate.

yahoooh
11-12-2007, 08:49 PM
perfect

Tim_GPN
11-12-2007, 11:50 PM
Awsum idea!!! Installed, and running beautifully. Thankyou!

hddstudio
11-13-2007, 05:01 AM
*installed* Nice works !

bela-meaad
11-13-2007, 07:49 AM
Nice work

will install it soon

Mecho
11-13-2007, 09:48 AM
so u mean instead of an email it would create a new thread , right ??

TigerWare
11-13-2007, 10:02 AM
Glad you all like it, many thanks for all the positive responses. :up:

so u mean instead of an email it would create a new thread , right ??

You get a new thread yes, however this product does not interfere with the sending of the email by vBulletin. In fact, the position of the hook I'm using means even if my code fails, the email will already have been sent, so you won't loose the message.

** edit to add **
the email will already have been sent
My statement was not quite correct. The hook position I'm using comes a few lines prior to the actual sending of the email by vBulletin. In theory the email will get sent as I'm being careful not to fiddle with any of the built-in variables.

Dream
11-13-2007, 10:14 AM
Installed thank you.

valdet
11-13-2007, 11:54 AM
installed and a brilliant idea. I will make it so all these messages go only in admin area forums.

COBRAws
11-13-2007, 03:05 PM
In comparison to the old hack (https://vborg.vbsupport.ru/showthread.php?t=136664) this works great, we can even choose to enable/disable functions without any edits into the product.

A new option for this would be to be able to send the email to multiple UserIDs, so instead of the original vboptions config it would be sent to any other users we may want.

Thanks!

TigerWare
11-13-2007, 05:21 PM
A new option for this would be to be able to send the email to multiple UserIDs, so instead of the original vboptions config it would be sent to any other users we may want.

Thanks for the suggestion COBRAws. The email side of the do contact us is a little outside the scope of this particular modification, but I'll take it onboard for a possible extension, for sure. My first thought when I read this was, "why not give the multiple-recipients access to the forum in which the messages will appear", I would assume they would be board staff members. This would save email bandwidth, especially on a busy board.

Many thanks.

TigerWare
11-13-2007, 05:51 PM
personally cant think of anything else this hack might need....

Actually that got me thinking, which is probably a bad idea at my age. vBulletin options allow for different pre-defined subjects to be added to the default sendmessage form (vBulletin Options -> Site Name / URL / Contact Details -> Contact Us Options). In turn, these subjects can be configured to send to different recipients (see the Admin Help Popup) so why not define a different forum for each unique subject? Might be useful on a busy board with a few different subjects set up.

The mind boggles... that's one for version 1.1 me thinks.

:up:

Floris
11-14-2007, 03:11 AM
This looks like a nice modification. The code has been properly commented, and it seems to be using vBulletin functionality such as the data manager to increase performance and security. Finally no nag text "click install to get support" or "donate to me if you like my small mod" .. I've nominated it for mod of the month. And will most likely use this on my web site.

TigerWare
11-14-2007, 07:54 AM
Thank you so much Floris. :) I couldn't ask for a better summary. :up:

ymy
11-14-2007, 11:36 AM
perfect ,

Good idea! Installed.

YmY

Dream
11-14-2007, 11:23 PM
This looks like a nice modification. The code has been properly commented, and it seems to be using vBulletin functionality such as the data manager to increase performance and security. Finally no nag text "click install to get support" or "donate to me if you like my small mod" .. I've nominated it for mod of the month. And will most likely use this on my web site.
I'm hoping I'm not included in that definition. I don't see what's wrong with asking people to click install to get support, or to donate if they like your work. Some very good coders around here do those.

And bump for a great addon.

Eq4bits
11-15-2007, 02:34 AM
*Installed quick and easy, works like a charm
Thanks and Kudu's

Scandal
11-15-2007, 10:01 PM
Great hack! I'm looking for a hack as this one!
I delete my e-mail from Vb options > Contact details and now i receive the messages only on a hidden -only for admins - forum. :)

You have my vote for the mod of the month! ;)



-philos

Breathex
11-16-2007, 03:07 AM
Really a nice mod what i need for a long time.

When an unregistered user sends message, it appears as a thread but when i click to thread it gives database error message.

Any solution for this problem?

TigerWare
11-16-2007, 06:17 AM
When an unregistered user sends message, it appears as a thread but when i click to thread it gives database error message.

What is the error message?

** edit to add **
Unfortunately you came back to the site almost 2 hours after I originally posted this reply, and you did not respond. Having thought more about your enquiry, I cannot actually say with any certainty that your error has anything to do with this modification. If you can see the thread listed, my modification will have done its job already, and the thread would be accessible as per the normal access rules of your site. Until you respond with more information, I'm unable to help you. I have had no other error reports to date from the 52 installs logged. (Thanks All!)

kushal
11-17-2007, 06:05 PM
good modification, thank you for the efforts.

ThorstenA
11-17-2007, 07:13 PM
Will not use this product, but here's a suggestion: option to only use "Do Contact Us To Thread" for logged in users. They can then see their messages in the forum (you can set up forum rules to let users only let view threads they created).

TigerWare
11-17-2007, 07:25 PM
only use "Do Contact Us To Thread" for logged in users. They can then see their messages in the forum (you can set up forum rules to let users only let view threads they created).

The same thing can be accomplished by creating a special usergroup, or changing forum permissions for logged in users within a specific forum. I cannot see any scenario where a logged in member would need to use a 'contact us' form to post a forum message. Can you cite an example where your proposed option could be used?

thalamus
11-18-2007, 03:02 PM
Excellent plugin, TW! :up: As ever, it's great, I love it and have it installed on one of my vb sites :)

TigerWare
11-18-2007, 09:52 PM
Hello all,

First of all, many thanks for your tremendous support and positive responses on the release thread. I have now finished extending the product to version 1.1 with some cool new features. Some of the update is based on requests from you guys, so please feel free to upgrade as soon as possible.

I have updated post #1 with the new product xml and added some additional screenshots for your enjoyment.

Once again, many thanks for your support, and you have any problems with the upgrade, please fire me a message on the thread, or in PM if you prefer.

Cheers for now,

TigerWare

Triky
11-22-2007, 09:32 PM
Nive product, TigerWare. :)
I have one question. If I reply to the created thread, do I reply to the e-mailer (it send an automatic e-mail reply), or not?

TigerWare
11-22-2007, 09:54 PM
Nive product, TigerWare. :)
I have one question. If I reply to the created thread, do I reply to the e-mailer (it send an automatic e-mail reply), or not?

Thanks Triky,

That's a very good question and I have been thinking about this particular aspect myself.

Currently, a reply to the new thread is just that, a reply to the thread only. I may add an option later where a reply to the thread can reply to the original sender address, but for now any outbound communications would have to be done manually.

Triky
11-23-2007, 06:16 AM
I understand. Thank you for your fast reply. :)

TigerWare
11-23-2007, 07:31 AM
Thank you for your fast reply. :)

You are welcome. :up:

tanujdude91
11-23-2007, 08:59 AM
Beautiful.
Installed but not tested.

TigerWare
11-23-2007, 11:29 AM
Beautiful.
Installed but not tested.

Feel free to drop in with any comments after you have given the product a test. :up:

wally
12-03-2007, 08:16 PM
Idea looks good gonna install this one later on

TigerWare
12-04-2007, 08:14 AM
Idea looks good gonna install this one later on

Thanks wally, do let me know if you have any problems, or ideas on how to make this better. :up:

ThorstenA
12-06-2007, 04:59 PM
I simply rewrote contact us style , deleted form and set a link up to a forum where users should post.

TigerWare
12-06-2007, 05:07 PM
Will not use this product, but here's a suggestion: option to only use "Do Contact Us To Thread" for logged in users. They can then see their messages in the forum (you can set up forum rules to let users only let view threads they created).

The same thing can be accomplished by creating a special usergroup, or changing forum permissions for logged in users within a specific forum. I cannot see any scenario where a logged in member would need to use a 'contact us' form to post a forum message. Can you cite an example where your proposed option could be used?

I simply rewrote contact us style , deleted form and set a link up to a forum where users should post.

You deleted the form? Sounds rather drastic. What about guests, how do they get in touch with you? I still don't actually see any benefit to the way you have done that, but whatever floats your boat. :)

wally
12-06-2007, 06:56 PM
Thanks wally, do let me know if you have any problems, or ideas on how to make this better. :up:

haven't noticed any problems yet :) looks good

i agree that a email option would be handy (no rush :D)

TigerWare
12-06-2007, 07:04 PM
haven't noticed any problems yet :) looks good

i agree that a email option would be handy (no rush :D)

Cool, no problems is music to my ears. :up: As for email... I did that already in 1.1, is there something missing?

nyunyu
12-12-2007, 09:49 AM
perfect hack..reserved for future use.
Great release!

serhat_kk
12-12-2007, 10:43 AM
Great mod. Thanks

TigerWare
12-12-2007, 05:34 PM
Thank you both. Let me know if you have problems. :up:

TigerWare
12-21-2007, 07:55 AM
Hi all,

I recieved a report yesterday that this modification has some issues in 3.7.0 Beta 3. Apparently attempting to save settings via the Admin CP fails with a blank screen. Please DO NOT install this modification on any 3.7 release. I will be releasing a new version once I have time to investigate the issue. A note has been made in the "Issues" section of the release notes.

Many thanks.

Arrogant-One
12-22-2007, 06:27 AM
Niiice mod, very impressive :).
What does this mod do exactly? I am not understanding its relevance.

TigerWare
12-22-2007, 06:57 AM
What does this mod do exactly? I am not understanding its relevance.

What exactly do you not understand? The release notes (https://vborg.vbsupport.ru/showthread.php?t=162537) explain exactly what this Mod does as below:-

Quite simply this product allows for Do Contact Us form submissions to be directed into a new thread of a specified forum. You may optionally control the email notification system too.

NeitherSparky
01-02-2008, 04:16 AM
I love this SOOOOOOOOOOOOOOOOOOO much!! Now my staff can share the pain of my more stupid random messages people like to use the Contact Us form for. ;) Of course, more importantly, my staff can actually help me taking care of real issues when I'm not there. Thank you thank you it's great!! :)

TigerWare
01-02-2008, 09:44 AM
Glad to be of service NeitherSparky, and thanks! :up:

LilSniper
01-06-2008, 04:18 AM
Awesome mod. Installed and nominated.

TigerWare
01-06-2008, 09:54 AM
Cheers LilSniper, glad you like it. :up:

TTG
03-31-2008, 11:47 PM
Hi all,

I recieved a report yesterday that this modification has some issues in 3.7.0 Beta 3. Apparently attempting to save settings via the Admin CP fails with a blank screen. Please DO NOT install this modification on any 3.7 release. I will be releasing a new version once I have time to investigate the issue. A note has been made in the "Issues" section of the release notes.

Many thanks.

Would like to know if this is going to be updated for 3.7.0 !?

TigerWare
04-01-2008, 07:59 AM
Would like to know if this is going to be updated for 3.7.0 !?

Hi TTG,

Thank you for your interest. Yes, I will be releasing a strictly 3.7 version of this modification (with an appropriate upgrade path), sometime after the Gold release. The issue in 3.7 is due to a core vB code change. I have tested a patch, which will be forming the basis of an upgrade to my 3.7 version. The patch will remain unavailable until that time.

ChurchMedia
04-09-2008, 03:12 AM
I'm running VB 3.7 RC 2. When trying to save the settings, this is the error I'm getting:

Fatal error: Unsupported operand types in /my/path/adminfunctions_options.php on line 645

I hope to see a 3.7 version soon! Thanks for the mod! :)

TigerWare
04-09-2008, 07:49 AM
I'm running VB 3.7 RC 2. When trying to save the settings, this is the error I'm getting:

Thank you ChurchMedia, as per my previous post I'm aware of the issue with 3.7. I'm on vacation next week so may move my schedule up slightly and drop a release out early. I'll have to see how I'm fixed for time.

Thanks for your patience.

TigerWare
05-03-2008, 06:14 PM
Patch for 3.7 users is now available. Please see post#2 (https://vborg.vbsupport.ru/showpost.php?p=1381176&postcount=2) for details.

Note: 3.6.x users DO NOT require the patch.

NeitherSparky
05-04-2008, 05:06 AM
Thanks Tiger. It would have been a shame to lose this mod!

tschai
05-09-2008, 12:10 PM
Great mod. Thanx.

I want to tweak it just a bit, maybe some of you have some suggestions...

I want to post every entry in the same thread instead of creating a new one every time.
How can I achieve this?
Anyone any idea?

Thanks in advance.

snunhuck
06-03-2008, 02:02 AM
How do I access the form? I apologise for my stupidity.

TigerWare
06-03-2008, 06:07 AM
What Form?

TigerWare
06-09-2008, 05:05 PM
Please look at the title of this modification. It clearly states "Do Contact Us To Thread", it has nothing to do with the "Send To Friend" feature.

TigerWare
06-09-2008, 05:31 PM
No problem, glad to help. :)