Results 1 to 2 of 2

Thread: [hack] Display enquiry form with link

  1. #1
    Join Date
    Jan 2004

    Default [hack] Display enquiry form with link

    The email vb has in file is not necessarily the email that someone who is adding a listing is using. It is not recommended to expose someone's email to email harvesters.

    This will allow your member to safely include a contact email with their listing by using vbulletin sendmessage.php

    Please note that all options for custom fields must be set to "no" for those categories that you want to use this for, so the email addresses do not get get parsed as links or BB code.


    Go to vba Links directory and create a custom field text input single line and remember the field id. You will need it later.
    Title:Email contact
    Description: If you wish to be contacted about this listing, enter your email address here. Please note that this address will not be seen by the public. Instead they will have access to a contact form.
    (the rest, you do to your taste)

    Step 2

    create 2 error phrases
    a)directorymail_invalidid: There is no such listing in the directory.
    b)directorymail_noemail: This directory listing has no email defined.

    Step 3

    Create a new template "adv_links_directory_mailform" and paste in the content of the attached text.

    Step 4

    open sendmessage.php and paste the entire copy of sendmessage.txt above the closing ?>
    and replacing the line before last with where you want to send then after the email was sent (I redirect mine to link home, but could be whatever you want)

    $vbulletin->url = REPLACE

    MAKING SURE that you replaced the 3 instances of the XX in fieldXX with your field ID.

    Step 5

    Replace your "adv_links_showlink_custombits" template with (replacing XX with actual field id that youu created earlier and making sure to change the link to sendmessage.php according to yours)
    <tr class="$bgclass">
    <td><if condition="$field[fieldid] == 'XX'"><a href="/forums/sendmessage.php?do=directorymail&linkid=$linkid"><span class="smallfont">Request more info from $link[name]</a></span>
    <else />$field[value]</if></td>
    Last edited by Lionel; 04-19-2007 at 05:18 PM.

  2. #2

    Default Re: [hack] Display enquiry form with link

    Working great!!
    Thanks! Lionel

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Form Submit hack??
    By halpern in forum Module & Modification Discussion & Requests
    Replies: 0
    Last Post: 10-01-2006, 11:57 AM
  2. Form hack
    By Jimbo in forum Module & Modification Discussion & Requests
    Replies: 2
    Last Post: 05-21-2006, 04:14 PM
  3. (Request) Longin Link instead of form bars?
    By Volconvo in forum Add-On Modules & Modifications
    Replies: 3
    Last Post: 03-17-2005, 12:27 AM
  4. Branding Free License Enquiry
    By jeffro in forum Chit Chat
    Replies: 7
    Last Post: 12-19-2004, 05:32 PM
  5. How do I make a Home/Form link?
    By Pam in forum Troubleshooting / "How do I..." Questions
    Replies: 2
    Last Post: 05-20-2004, 04:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts