Results 1 to 6 of 6

Thread: Show contact email in modify_pwd_form.html

  1. #1
    Join Date
    Feb 2008
    Posts
    23

    Default Show contact email in modify_pwd_form.html

    If you user update an listing i want to show the contact email (some companies change there staff and with this emailadresse belonging to a listing. Which make updating very hard for the owner

    pete@compnay.com
    john@company.com

    Therefore i want to have a field that shows the email in modify_pwd_form.html

    Contact email <%$url%> doesn't work.

    But i figured out it needs some
    ?pflag=retrieve&id=$link_id or
    pflag=retrieve&id=$link_id

    Any help would be appricated.

    Tom

  2. #2
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    Typically you don't want users to be able to change the email address, this can introduce issues with hacked accounts where users can redirect a site to a different URL and the original owner would never know about it.

    I don't know where you get "Contact email <%$url%>" from because that would just show the URL. Simply use <%$email%> to display the email address.

  3. #3
    Join Date
    Feb 2008
    Posts
    23

    Default

    Hi Bruce,

    You are right. But the user won't be able to change the email, only see it (which is available in on detail page.

    let me clarify, Before you come on the modify page you
    have to fill in the link_id in the modify_select. Then on the modify_pwd_form
    You fill in the pwd. Then you go on the real modify page.

    On the password form (modify_pwd_form). I want the user to see the contact_email. (nothing can be edited here)

    I tried this with
    <label>Contact Email</label>
    <span class="text"><b><%$email%></b></span>

    But it stays empty. I think i have to change to add:
    pflag=retrieve&id=$link_id or
    pflag=retrieve&id=$link_id

    Regards,
    Tom


    Thank you come to

  4. #4
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    Doing that would be inviting harvesting from spammers and your visitors would not be very happy at all.

    Use <%$email_address%> and it will display. I'm not sure why $email didn't as it appears to be valid

  5. #5
    Join Date
    Feb 2008
    Posts
    23

    Default

    I understand, but i use a javascript blocker very handy.
    <SCRIPT TYPE="text/javascript">
    emailE=('info@' + '<%$domain%>')
    document.write('<A href="mailto:' + emailE + '">' + emailE + '</a>')

    </script>
    <NOSCRIPT>
    <em>Email address protected by JavaScript.<BR>
    Please enable JavaScript to see it.</em>
    </NOSCRIPT>

    Still <%$email_address%> and <%$email%> are not working..

  6. #6
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    Allow me to kick myself because I didn't realize this was for 5.x.

    $email_address works for Deluxe

    What you would have to do is to edit modify.php and add the variable $email to the code. You're going to be on your own for that one.

Similar Threads

  1. Moving category image from index.html to browse.html
    By twomiracles in forum Blocks and Modification
    Replies: 4
    Last Post: 02-11-2008, 08:42 AM
  2. Replies: 1
    Last Post: 01-22-2007, 08:18 PM
  3. Show meta description in browse.html
    By binto in forum v5.x
    Replies: 3
    Last Post: 06-07-2004, 06:39 PM
  4. Replies: 1
    Last Post: 06-03-2004, 08:03 AM
  5. Replies: 0
    Last Post: 09-20-2002, 10:13 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
  •