Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Contact Us Enhancements (updated) Details »»
Contact Us Enhancements (updated)
Version: 1.00, by borbole borbole is offline
Developer Last Online: Oct 2015 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.2.0 Rating:
Released: 12-04-2012 Last Update: 12-04-2012 Installs: 34
Uses Plugins
 
No support by the author.

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.

Download Now

File Type: xml product-contact_enhancements.xml (7.3 KB, 129 views)

Screenshots

File Type: png 2pm.png (49.6 KB, 0 views)
File Type: png 1acp.png (50.0 KB, 0 views)
File Type: png 5contactthread.png (22.3 KB, 0 views)
File Type: png thread.png (40.1 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
Insta-Gator

Comments
  #12  
Old 12-07-2012, 06:48 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by smirkley View Post
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.
Reply With Quote
  #13  
Old 12-07-2012, 08:39 PM
smirkley smirkley is offline
 
Join Date: Apr 2008
Posts: 627
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #14  
Old 12-07-2012, 09:11 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a strange issue. Are you testing it in a brand new (test) forum?
Reply With Quote
  #15  
Old 12-07-2012, 09:26 PM
smirkley smirkley is offline
 
Join Date: Apr 2008
Posts: 627
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #16  
Old 12-07-2012, 10:52 PM
smirkley smirkley is offline
 
Join Date: Apr 2008
Posts: 627
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, hafta take a break,...gonna let it rest for now, reverted all tests.
Reply With Quote
  #17  
Old 12-08-2012, 01:11 AM
smirkley smirkley is offline
 
Join Date: Apr 2008
Posts: 627
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #18  
Old 12-08-2012, 04:29 PM
smirkley smirkley is offline
 
Join Date: Apr 2008
Posts: 627
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #19  
Old 12-08-2012, 10:49 PM
smirkley smirkley is offline
 
Join Date: Apr 2008
Posts: 627
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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....
Reply With Quote
  #20  
Old 12-09-2012, 08:47 AM
Skyrider Skyrider is offline
 
Join Date: Feb 2006
Location: Netherlands
Posts: 1,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #21  
Old 12-09-2012, 02:49 PM
smirkley smirkley is offline
 
Join Date: Apr 2008
Posts: 627
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:43 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06824 seconds
  • Memory Usage 2,335KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (5)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete