Log in | Register | Lost password

Bottom
sendThis, sendThisURL extending for other purpose
  • Posted: 02.03.2006, 14:27
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Hi,

    I would like to use sendThis Function or SendThisURL Function in a diffrent way,...
    everything should be stay the same in general, I would like to supply the reciepient field with an E-Mail Adress from a publication!

    The Publication is kinda buisnesscard, and I will give the User the chance to get in Contact with this person.
    The recipient field should not be editable,... also I would like to extend the Sumary by a Standart(solid) Text and a user text.
    And I really like the Idea to supply the reciepient the URL to the entry that he can see from where the User contact them,... also I need to add some other standart content in the body,... like legal informations and other stuff of this kind!

    Does somebody has an Idea wheree I can find a template for sendThis?!?

    greetings
    bernie
  • Posted: 02.03.2006, 15:05
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Well, rather than modifying your core pagesetter functions why not just put a html form into your template and have it refrence a "mailThis.php" file that you create... You can pull variables from the publication and have a custom contact form within the publication- To jazz it up you could make it a collapsible DIV...

    It's super easy- I've put html forms into my templates that allow the user to convert a publication to an xml file and other things...
  • Posted: 02.03.2006, 16:14
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    ok understood! ;)

    maybe not that collapse thing, i am not that far with css nad div's yet, but maybe I should take a closer look now!
    but what about secure them? I have read you need to secure them, because crawler can pick the mailadress out?!? true or not? I read anywhere something about!?
    any idea?
  • Posted: 02.03.2006, 18:00
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Oh but DIV's are so so so cool...

    Check out: http://smarty.php.net/manual/en/language.function.mailto.php

    If you need help or run into a roadblock just post...

    G'luck!!
  • Posted: 02.03.2006, 22:04
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I thought about using the pn integrated Mailer Module for sending Mails, a form is no big deal, but passing the layout and content to an E-mail is totally new for me,...

    the link you posted is for securring the link, ofcourse I need to use the smartytag within the <-- -->

    You then just use this link in a normal Form like you would use it for the standart mailer form's? I stuck more in the layout and what should be insert really for mailing? I would really like kind of automated templates like formicula,... there I just can modify the reciepients mail or did not figured out how,...

    When you would like to give me a more detailed startup it would be wonderfull,...
    maybe I just need aliitle nap before working further,...
  • Posted: 03.03.2006, 03:32
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Ok, so I think I understand what you need:

    You have a publication that acts as a "business card" with all the relative information of the author...

    You wish to enable a visitor to your site to contact the author of the "business card"...

    If this is correct then you would:
    1.) create the business card publication and all necessary templates
    2.) in the full template create an html form with the necessary fields as you would normally on a plain html site.
    3.) for recipient you could have a hidden field like:

    Code

    <form id="form1" name="form1" method="post" action="contact.php">

    <p>

    <input type="hidden" name="recipient" value="<!--[$recipient]-->"/>

    </p>

    <p>

    <input type="text" name="textfield" width="150" height="100"/>

    </p>

    <p>

    <input type="submit" name="Submit" value="Contact" />

    </p>

    </form>

    then in your contact.php you would process the fields and the hidden field named "recipient" will contain the value from the pagesetter pub

    I am a bit confused about why you would want to pass the layout and content to the e-mail...

  • Posted: 26.07.2006, 06:34
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I used the 3rd party 'vpContacts' module to achive a similar task. I added one 'contact' to vpContacts then stuck this html form on the bottom of my pagesetter template. This way the sites non technical admins can change the recipients address without me + the users of the site get passed to a standard Module 'page' and don't get lost etc. You can customise the to vpContacts messages in the userapi.php file if you like.

    Code

    <form action="index.php?module=vpContact&amp;func=send" method="post" enctype="application/x-www-form-urlencoded">

    <input type="hidden" name="authid" value="<!--[pnsecgenauthkey module="Mailer"]-->">

    <input type="hidden" name="cid" value="1">

    <table class="bgcolor5">

    <tr>

    <td colspan="2" class="pn-pagetitle">Make an Enquirey</td>

    </tr>

    <tr>

    <td class="pn-normal">Name: <span class="slogan">*</span></td>

    <td><input type="text" name="uname" id="uname" value="" size="40" maxlength="40" tabindex="1" /></td>

    </tr>

    <tr>

    <td class="pn-normal">Email: <span class="slogan">*</span></td>

    <td><input type="text" name="uemail" id="uemail" value="" size="40" maxlength="80" tabindex="2" /></td>

    </tr>

    <tr>

    <td class="pn-normal">Phone: </td>

    <td><input type="text" name="phone" id="phone" value="" size="40" maxlength="40" tabindex="4" /></td>

    </tr>

    <tr>

    <td class="pn-normal">Company: </td>

    <td><input type="text" name="company" id="company" value="" size="40" maxlength="40" tabindex="5" /></td>

    </tr>

    <tr>

    <td class="pn-normal">Address: </td>

    <td><input type="text" name="location" id="location" value="" size="40" maxlength="40" tabindex="6" /></td>

    </tr>

    <tr>

    <td class="pn-normal">Comment: </td>

    <td><textarea name="comment" id="comment" rows="4" cols="36" tabindex="7">I would like someone to contact me in regards to a <!--[$core.title]-->, <!--[$EquipCat.title]-->.</textarea></td>

    </tr>

    <tr>

    <td><input type="submit" value="send comment" tabindex="8" /></td>

    <td></form></td>

    </tr>

    </table>

    <div class="slogan">* mandantory field</div>
  • Posted: 15.12.2006, 19:12
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    finally found time after months and several other tasks,...

    Now I am back to this task,... and meanwhile I fully got the whole stuff in my head and I already got it working BUT!

    the pagesetter E-Mail field will deliver me as a feedback for $emailadress and e-mail adress looking like

    Code

    inf&#111;&#064;&#102;ranken-reggae.de
    and my formmailer script used doesn't like the value supplied as an E-Mail.

    so I thought about using a kinf of a modifier or something and do not find anything,...
    on support.pn-cms.de I got the feeback that it is a spam protection,... so what to do???

    It would be really kind if somebody can give me a hint in the right direction!

    greetings
    bernie

    PS: the vpContact Solution is not what I am searched for, since there is no way to use the E-Mail form the puplication,...
    maybe I should start coding and create a plugin! ;)

Template courtesy of Designs By Darren.