vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - Contact Us Enhancements (updated) (https://vborg.vbsupport.ru/showthread.php?t=292677)

borbole 12-04-2012 11:00 PM

Contact Us Enhancements (updated)
 
1 Attachment(s)
This is a small mod I coded for a client of mine and thought to share it here as well for all those that might have a need for it too.

This mod will send automatically a pm to users whenever they will submit a contact form. You can also choose if you want the contact form to be posted as a thread automatically at a forum of your choosing. This can be handy if you want the other members of your staff to view the contact forms submissions. You can also choose to increase the post count of the user or not when the contact thread is automatically created.

After installation go to Options->Site Name / URL / Contact Details and all the way down you will see 6 new options. Configure the options to your needs/likings.

For more info, please have a look at the attached screenshots.

borbole 12-05-2012 09:32 PM

Reserved.

Skyrider 12-05-2012 10:01 PM

Installed, this does sound handy-dandy!

borbole 12-05-2012 10:15 PM

Quote:

Originally Posted by FF|Skyrider (Post 2388774)
Installed, this does sound handy-dandy!

Indeed, it is a handy addition to have if I may say so myself as well. The guy I originally coded it for, had a great use for it.

Anyway, I had forgotten to update the xml file here with the new mod. Please re-download it again.

Skyrider 12-05-2012 10:37 PM

What's new? I've tried it and I'm loving it. Though the new thread that gets created doesn't display the users email, ip, etc information that you do by mail. Especially for unregistered users (guest threads)

borbole 12-06-2012 10:06 AM

Quote:

Originally Posted by FF|Skyrider (Post 2388783)
What's new? I've tried it and I'm loving it. Though the new thread that gets created doesn't display the users email, ip, etc information that you do by mail. Especially for unregistered users (guest threads)

The first version of the mod had the pm option only then I expanded it by including the automated thread creation as well.

The ip is being displayed for guests and members alike whereas for the rest of the guests info I did not look much into that as my client does not allow them to use the contact form.

smirkley 12-06-2012 06:45 PM

Is there a hope for a selection in acp to prevent emails from being sent if you are having a thread made?

borbole 12-06-2012 09:32 PM

Quote:

Originally Posted by smirkley (Post 2388959)
Is there a hope for a selection in acp to prevent emails from being sent if you are having a thread made?

Simply leave the Webmaster's Email and Contact Us Email fields blank and you will not receive emails from the contact form but instead it will be posted automatically as a thread.

Skyrider 12-07-2012 01:04 PM

A guest has left a message, I could only see his contact message what he filled in, IP, email, etc is being left out. Would be great if the thread also display:

Quote:

Referring Page:
IP Address: xxxx
Email: xxxx@xxx.com
Or better yet, that it only creates a thread when a normal registered member uses the contact form, and when a guest leaves a message it won't create any thread and thus only leaves an email.

smirkley 12-07-2012 05:29 PM

Quote:

Originally Posted by borbole (Post 2388986)
Simply leave the Webmaster's Email and Contact Us Email fields blank and you will not receive emails from the contact form but instead it will be posted automatically as a thread.

Thank you.

BTW, just noticed while doing tests, either as a member or a guest, that this doesnt always post to a thread. I am still testing this, but out of ten contact messages sent, three havent been made into threads.

borbole 12-07-2012 06:48 PM

Quote:

Originally Posted by smirkley (Post 2389138)
Thank you.

BTW, just noticed while doing tests, either as a member or a guest, that this doesnt always post to a thread. I am still testing this, but out of ten contact messages sent, three havent been made into threads.

Is this happening with guests or users?

It is strange because it should post the thread automatically each time an users submits a contact request. The guy I originally coded it for is using constantly and it works fine without any issues. Not to mention that I have tested it thoroughly as well myself without any issues.

But maybe you have another mod that might conflict with this one. There is no other reason that I can think of that why is behaving like that at your forum.

smirkley 12-07-2012 08:39 PM

I agree and have looked over the code without any issues found. I would think that if there was code conflict with any other mod it wouldnt be so hit or miss as I have lost a thread creation as both guest and logged in. But it doesnt seem to be consistant with any action in particular. Granted I cannot test this currently on a base oem style or code, I will do some more tests to see why this may be happening.

borbole 12-07-2012 09:11 PM

This is a strange issue. Are you testing it in a brand new (test) forum?

smirkley 12-07-2012 09:26 PM

Update, in an attempt to isolate where it drops the thread creation, I isolated the email function by deleting my contact email addy in acp, and then adding an if/else in the xml product where if the contact email addy doesnt exist in options it doesnt fetch the hook.

It should just go to the create thread routine. So far, sometimes it does, sometimes it doesnt, logged in or not. So the emailer code isnt the issue.

Will be back as I take it further...

smirkley 12-07-2012 10:52 PM

OK, hafta take a break,...gonna let it rest for now, reverted all tests.

smirkley 12-08-2012 01:11 AM

Well I had to play with it just a tad more, came home from taking the wife out to dinner, and found a whole bunch of emails from this that suddenly showed up.
Of course there were no threads made but I am left to wonder if they were delayed in a batch email or something, maybe preventing the thread to be made?

Dunno, cant dig into it right now, but thought I would mention.

It isnt my server, maybe my vb mail settings?

smirkley 12-08-2012 04:29 PM

I have this setup on a not so busy website, so I tried some email settings,...

old vb options email settings :

Email Flood Check - 60
Use Mailqueue System - Yes (no locking)
Use Cron Based Sending - Yes
Number of Emails to Send Per Batch - 10
E-Mail Send Delay - None

new vb options email settings :

Email Flood Check - 0
Use Mailqueue System - No
Use Cron Based Sending - No
Number of Emails to Send Per Batch - 10
E-Mail Send Delay - None

Then I tried to do a Contact Us and got the email immediatly but no thread created.
Second try produced a thread.

smirkley 12-08-2012 10:49 PM

Ok, I have been having issues with another mod here and the result of my problems has been the cron system.

I feel the same problem here.

I know I posted above that my email settings didnt change the faulty operation, but now it seems to be working properly.

My guts tell me that if these two settings in the vb email settings arent set to be off or "no":

Use Mailqueue System
Use Cron Based Sending


That the emailer doesnt release the thread creation as it is waiting on the email cron.

I am testing this as I speak, but these two settings may have to be turned off to make this setting work.

Ok with me as my board isnt a heavy usage board and my server can handle the load of shooting the emails out on the fly instead of every ten minutes.

These two might have to be added to the instructions of this mod.

borbole, can you verify this is the settings your client uses for email?

More as I test this....

Skyrider 12-09-2012 08:47 AM

All URL's posted within the contact us message are not being posted as links when a new thread is being created. Just wanted to share.

smirkley 12-09-2012 02:49 PM

Yes, the coder explained his client wanted it that way. And he posted the same mod here.

I hope to find a solution for that too as it work better for my needs too.

borbole 12-09-2012 04:04 PM

Quote:

Originally Posted by smirkley (Post 2389519)
Yes, the coder explained his client wanted it that way. And he posted the same mod here.

I hope to find a solution for that too as it work better for my needs too.

I will check about the email thing. But my client disabled that option for the contact form by leaving the email fields for that part blank and as far as I know there have not been any issues at all.

borbole 12-09-2012 04:07 PM

Quote:

Originally Posted by FF|Skyrider (Post 2389478)
All URL's posted within the contact us message are not being posted as links when a new thread is being created. Just wanted to share.

How are the urls posted? Can you post a screenshot?

smirkley 12-09-2012 04:07 PM

I found that if you were to leave the contact email blank, vbulletin by default loads the contact webmaster email and still ships out the email. We might be talking about something different, if so my bad.

Skyrider 12-09-2012 05:01 PM

Quote:

Originally Posted by borbole (Post 2389530)
How are the urls posted? Can you post a screenshot?

Sure:

http://i.imm.io/OxZv.png

It simply uses text, rather than a link.

Skyrider 12-15-2012 03:10 PM

Any updates?

borbole 12-15-2012 09:49 PM

Quote:

Originally Posted by FF|Skyrider (Post 2390883)
Any updates?

I haven''t much free time to look into that.

Naijasite 02-14-2013 10:40 AM

how do i allow guest email to show on the contact form new thread creation?

pepin_bcn 03-21-2013 01:20 PM

I have the same problem as the companion "Sirkley".

First created new issues and then stopped working and sending via e-mail.

Version 4.2 Pl 3

Please!! update . Thanks.


All times are GMT. The time now is 05:00 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01195 seconds
  • Memory Usage 1,795KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (28)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete