Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Aug 2009
    Location
    Highlands Ranch, Colorado
    Posts
    84
    Plugin Contributions
    0

    Default Tell a Friend Sitewide Mod

    Hi folks. I've uploaded Tell a Friend (Advise to Friend) and would love to know how to remove the page number from the header which I modified to say "Tell a Friend About Herdoos" (but it adds 1 after Herdoos).

    I'm not a coder but I'm guessing its a simple(?) change to tpl_advise_to_friend_default.php somehow in here:
    <div class="centerColumn" id="tellAFriendDefault">
    <?php echo zen_draw_form('email_friend', zen_href_link(FILENAME_ADVISE_TO_FRIEND, 'action=process&adlink=' . urlencode($_GET['adlink']))); ?>

    I also see that the "success" page just brings up a blank page. I have Debug Error Logging installed but nothing is coming up.

    Can you help me? The site is http://herdoos.com/shop and Tell a Friend is in the header links.
    _ _ _ _ _ _ _
    DebiWebi
    http://www.tejadadesign.com

  2. #2
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Tell a Friend Sitewide Mod

    Hi Debi,

    It will be just after the code you have posted by the looks of it. Your looking for a line with <legend> in it inside a fieldset.

  3. #3
    Join Date
    Aug 2009
    Location
    Highlands Ranch, Colorado
    Posts
    84
    Plugin Contributions
    0

    Default Re: Tell a Friend Sitewide Mod

    Hi Niccol, thanks for getting your toes wet with this.

    Is this what you're talking about?

    <fieldset>
    <legend><?php echo print(HEADING_TITLE); ?></legend>
    <div class="alert forward"><?php echo FORM_REQUIRED_INFORMATION; ?></div>
    <br class="clearBoth" />

    I don't understand how that pulls in the page number (1).

    Also, do you know what I'd get a blank page after the form is sent?

    The URL of the blank page is
    http://herdoos.com/shop/index.php?ma...rocess&adlink=
    _ _ _ _ _ _ _
    DebiWebi
    http://www.tejadadesign.com

  4. #4
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Tell a Friend Sitewide Mod

    Try
    Code:
    <legend><?php echo HEADING_TITLE; ?></legend>
    From now on I am guessing as I don't know the mod.

    As far as the blank page goes : the link looks kind of wrong.
    "http://herdoos.com/shop/index.php?main_page=advise_to_friend&amp;action=process&amp;adlink="
    It's the adlink= that obviously should be set to something and hasn't been.

    It looks like that is meant to contain the URL of the page to be recommended but doesn't. SO something is going wrong. And when the form is processed MAYBE this is causing the php to fail. It will be in the header_php.php file for the new page, I suspect. But I am shooting in the dark a bit because I don't know the mod.

    Looking at the previous bit of code that you posted:

    Code:
    <div class="centerColumn" id="tellAFriendDefault">
    <?php echo zen_draw_form('email_friend', zen_href_link(FILENAME_ADVISE_TO_FRIEND, 'action=process&adlink=' . urlencode($_GET['adlink']))); ?>
    the page with the form is trying to get the adlink from a _GET which means that the adlink should be added to the url on the page that the original 'Tell a Friend' button was pressed. Looking at the page source for this page the link looks like this:

    Code:
    <a href="http://herdoos.com/shop/index.php?main_page=advise_to_friend">TELL A FRIEND</a>
    So, no adlink has been appended to the URL here so it doesn't arrive at the form page and it isn't passed out of the form page. (And doesn't appear on the emails either)

    OK. So now I have downloaded the MOD and had a look

    At the end of the process the user is redirected back to the original page. The line that does that is in header_php.php file and looks like:

    Code:
        zen_redirect($adLink);
    If adlink doesn't exist then this is going to cause problems.


    So, because the initial link is not passing a value for adlink the process is going wrong. I am not sure how that link has been created but it needs to have a bit of code to add the value 'adlink' to it.

    On a different issue you will want to think about how this works with 'guests'. You might not want this enabled with guests as it allows anyone to send mail (Which might say 'buy your ############ from Dans ############ Shop') to anyone else via the site. Just a thought.

    And wow I just discovered that this forum won't even let me use the word for that common drug name that appears in so much spam!

 

 

Similar Threads

  1. v150 Tell a Friend Mod / Problem Sending
    By pamela631 in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 3 Jun 2013, 08:13 PM
  2. v150 Tell a Friend Mod
    By pamela631 in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 15 May 2013, 11:45 PM
  3. Tell a Friend Sitewide
    By jackie.taferner in forum Addon Sideboxes
    Replies: 1
    Last Post: 31 May 2010, 11:15 PM
  4. Tell a friend
    By boogily in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 28 Oct 2009, 11:27 AM
  5. Refer a friend page or Tell a friend about website, not product
    By dealbyethan.com in forum General Questions
    Replies: 2
    Last Post: 5 Jul 2008, 11:58 AM

Posting Permissions

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