template customization with if

Discussion in 'Templates customization' started by cambridge_amem, Jul 13, 2006.

  1. cambridge_amem

    cambridge_amem New Member

    Joined:
    Jul 12, 2006
    Messages:
    13
    I am customizating a template with php_include and smarty at
    aMember script. The point is I try to have 'if' for choosing
    two options. Does aMember allow to take 'header' at php script!

    I have a validate.php file like this:

    1 <?php
    2 include($rd.'/home/user/public_html/BETA/config.inc.php');
    3 if(selection) {
    4 Header("Location: invalid.php");
    5 } else {
    6 $t = & new_smarty();
    7 $error = '';
    8 $vars = & get_input_vars();
    9 $t->display("valid.html");}
    10
    11 ?>

    with the error message:

    Parse error: syntax error, unexpected $end in /home/user/public_html/BETA/member/data/validate.php on line 11

    May be anyone know some solution for this bug. I guess you won't have all the info what you need, I will send if you
    answer!
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Hey, what is BETA/member/data/validate.php ? There is no such file in aMember distributive, and PHP syntax error is inside this file.

    P.S. I'm just amazed how easy is it to name things "bugs" even if reasons of problem are unclear. I personally cannot say if a thing is bug or not, until it is fixed. Can you?
  3. cambridge_amem

    cambridge_amem New Member

    Joined:
    Jul 12, 2006
    Messages:
    13
    Which syntax error will be in this file! The validate.php is written with me. Its not an aMember file. I wont know if it is a bug, but I have some error messages from aMember script without having this file installed. Error message: 'Cannot modify header information' ! Could you fix the error in that validate.php file! I guess it is a bug, but I can say it only if I see the aMember Code without encryption. Can I see the aMember php code without encryption?
  4. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Please contact us via helpdesk with ftp info and all your problems will be resolved.
  5. cambridge_amem

    cambridge_amem New Member

    Joined:
    Jul 12, 2006
    Messages:
    13
    should I do respond at the forum or do you have a secure ftp email address!
  6. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    RED message above:

    CGI-Central doesn't provide official support via this forum. To get quick response to your question, please contact us using Trouble Tickets system
    https://www.amember.com/support/
  7. cambridge_amem

    cambridge_amem New Member

    Joined:
    Jul 12, 2006
    Messages:
    13
    thanks alex,

    my amember job was canceled. The owner of the hosting with amember script is not responding. I won't know if you coming directly to the person with the amember script, then I could deliver you the website url. As you said before its only possible with the trouble ticket system from the owner of the amember script.
  8. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    My personal e-mail is alex@cgi-central.net. If there are any unresolveable problems with support, don't nestitate to contact me directly.

Share This Page