1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unmaintained Contact Thread 2.0.0

Creates an Thread after somebody sends the contact formular

  1. ragtek

    ragtek Guest

    ragtek submitted a new resource: Contact Thread

    Creates an Thread after somebody sends the contact formular

    Read more
    Coop1979, Lone Wolf and CFodder like this.
  2. Sylar

    Sylar Well-Known Member

    Doesn't this defeat the purpose of a contact form?
  3. ragtek

    ragtek Guest


    I'm not always online in all my boards... ( to be honest, 50% of my boards i'm only visiting to check if they're working and to do some admin works..)
    Because you can't have more e-mail recivers for the contact formular like in vB, i would get ALL messages, even the uninteressting, which can be handeled by my team...

    So we're posting all the stuff to a intern team(staff) forum, where the mods can handle the message and contact me if necessary...

    Also it's a nice way to track & share with the team, instead of having only 1 recipient
    Bram, erich37 and Digital Doctor like this.
  4. Sylar

    Sylar Well-Known Member

    Ah, well I suppose that could be useful.
    Haha, if I installed this we would have some pretty weird threads being made :p
  5. CFodder

    CFodder Well-Known Member

    We've used this resource previously and as I tend to miss emails etc it's def a good one and will be installing it :).
  6. Digital Doctor

    Digital Doctor Well-Known Member

    Q: Would it be a good idea to have subsequent contact requests by the same person go to the original thread ?
  7. Chris D

    Chris D XenForo Developer Staff Member

    ragtek, this is perfect.

    I have modified it for my own site so that there is a drop down list on the contact form where each option relates to a thread prefix and allows us to categorise our different contact types.

    I can share the code for this if anyone wants, but I'd classify it as a bit of a "hack" rather than anything of a decent quality.
  8. ragtek

    ragtek Guest

    you're welcome to post it:)

    something similar was already requested, but because i never needed this, i didn't implement it
  9. Chris D

    Chris D XenForo Developer Staff Member

    • Create the thread prefixes as normal with the relevant permissions
    • Once created, you will need the prefix IDs. You can find these from the URLs in the Admin CP. e.g.
      • /admin.php?thread-prefixes/news.2/edit
      • /admin.php?thread-prefixes/suggestions.3/edit
    (Where 2 is the ID for the News prefix and 3 is the ID for the Suggestions prefix)
    • Edit the "contact" template.
    <xen:include template="helper_captcha_unit" />
    <dl class="ctrlUnit">
    dt><label for="prefix">Contact Type:</label></dt>
    dd><select name="prefix">
    option value="2">News</option>
    option value="3">Suggestions</option>
    option value="4">Admins</option>
    option value="5">Other</option>
    The important things here are the <select name="prefix"> as we call that later and the value parameter within the <option> tags. The value has to match the thread prefix ID you noted earlier. The text within the <option> tags is just how you want each option to appear in the list.

    Once your contact template is complete, it's time to make a small adjustment to one of ragtek's files:

    Locate: /library/Ragtek/ContactThread/ControllerPublic/Misc.php


                $input $this->_input->filter(array(
    'subject' => XenForo_Input::STRING,
    'message' => XenForo_Input::STRING

                $input $this->_input->filter(array(
    'subject' => XenForo_Input::STRING,
    'message' => XenForo_Input::STRING,
    'prefix' => XenForo_Input::UINT
    Remember I said this was a bit hacky?

    I've been a bit lazy. You will notice this section:

                if (XenForo_Application::get('options')->ragtek_contactthread_usePrefix) {
    $forumData $writer->getForumCacheItem($nodeId);
    This works with the Default Thread Prefix option in the add-on Basic Board Information settings.

    What I've done is change this line:

    To this:


    Finally in the admin CP go to Home > Options > Basic Board Information and click "Use Default Forum Prefix".

    This achieves contacts being created as threads using thread prefixes.
    rafass, Luis, DRE and 3 others like this.
  10. Lone Wolf

    Lone Wolf Well-Known Member

    Does anyone know if this is being updated for 1.2
  11. xf_phantom

    xf_phantom Well-Known Member

    I can't see any reason why this shouldn't work with 1.2
  12. GeorgeS

    GeorgeS Member


    I have it implemented in my 1.2.4 installation, and it works GREAT. As we say in Germany "second best, after sliced bread!" You do not have to check your mailbox, you just see it in a forum you define to catch the contact forms. Great!

    mcatze and Lone Wolf like this.

Share This Page