1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Help Plz for Phpld Directory Integration WIth Paypall

Discussion in 'Directories' started by prabha99, Apr 12, 2007.

  1. #1
    Hi,

    I have a directory and I have created a paypall acount and I want to integrate the paypal account to my site. I went to my admin panel and I have added my paypal account in the payment tab.

    It is phpld 2.1 directory script

    LIKE:

    When i tested it is showing this result what should i do plz help me.

    Fatal error: Call to undefined function: disable_browser_cache() in /home/newyearg/public_html/a2zsitesdirectory/directory/payment.php on line 105


    Please Help ME Out.

    Regards
    Prabha99
     
    prabha99, Apr 12, 2007 IP
  2. LeopardAt1

    LeopardAt1 Well-Known Member

    Messages:
    880
    Likes Received:
    126
    Best Answers:
    0
    Trophy Points:
    135
    #2
    Hey,

    open up your "functions.php" inside your "/include" folder.

    Add this anywhere inside:
    /**
     * Disable any caching by the browser
     * @author Constantin Bejenaru / Boby <constantin_bejenaru@frozenminds.com> (http://www.frozenminds.com)
     * http://www.faqs.org/rfcs/rfc2616
     */
    function disable_browser_cache()
    {
       @ header ('Expires: Mon, 14 Oct 2002 05:00:00 GMT');               // Date in the past
       @ header ('Last-Modified: ' . gmdate ("D, d M Y H:i:s") . ' GMT'); // Always modified
       @ header ('Cache-Control: no-store, no-cache, must-revalidate');   // HTTP 1.1
       @ header ('Cache-Control: post-check=0, pre-check=0', false);
       @ header ('Pragma: no-cache');                                     // HTTP 1.0
    }
    Code (markup):
    Upload your functions.php with the new addition and try refreshing.

    Cheers
     
    LeopardAt1, Apr 12, 2007 IP
  3. deluxdon

    deluxdon Catch Me If You Can...!!!™ Staff

    Messages:
    25,480
    Likes Received:
    1,943
    Best Answers:
    32
    Trophy Points:
    480
    #3
    Try to contact an0n for this error.

    Definately Rob (an0n) solve your problem.

    BTW i got same error while trying to submit 1 regular listing (testing).

    Fatal error: Call to undefined function: disable_browser_cache() in /home/newyearg/public_html/a2zsitesdirectory/directory/payment.php on line 105
     
    deluxdon, Apr 12, 2007 IP
  4. prabha99

    prabha99 Active Member

    Messages:
    240
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    73
    #4
    Thanks LeopardAt1

    I will try it out first.

    Ones againg thanks.

    Cheers,
    Prabha99
     
    prabha99, Apr 12, 2007 IP
  5. SasaVtec

    SasaVtec Notable Member

    Messages:
    1,588
    Likes Received:
    150
    Best Answers:
    0
    Trophy Points:
    275
    #5
    How did you come up with this?


    Instead of using the free version 3.1 is well worth the money ***Highly recommended by a good friend and coder. :D
     
    SasaVtec, Apr 12, 2007 IP
  6. prabha99

    prabha99 Active Member

    Messages:
    240
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    73
    #6
    When i click the buy now button it is showing the follwoing error plz help


    Notice: SmartyValidate: [validate plugin] form 'pay_link' is not registered. in /home/newyearg/public_html/a2zsitesdirectory/directory/libs/smarty/plugins/function.validate.php on line 46

    what to do next ?

    Help plz

    prabha99
     
    prabha99, Apr 12, 2007 IP
  7. LeopardAt1

    LeopardAt1 Well-Known Member

    Messages:
    880
    Likes Received:
    126
    Best Answers:
    0
    Trophy Points:
    135
    #7
    I helped a friend who had the same bug with his 2.1 version.


    I'm assuming if he fixes this bug, they'll be another 2-3 bugs that pop up afterwards---thats the annoying "pay_link" bug--if not good for him :)
     
    LeopardAt1, Apr 12, 2007 IP
    jhnrang likes this.
  8. LeopardAt1

    LeopardAt1 Well-Known Member

    Messages:
    880
    Likes Received:
    126
    Best Answers:
    0
    Trophy Points:
    135
    #8
    LeopardAt1, Apr 12, 2007 IP
  9. prabha99

    prabha99 Active Member

    Messages:
    240
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    73
    #9
    hi LeopardAt1,

    Plz help as you said it is correct i have got another bug "pay_link"

    plz help me out

    waiting for your reply

    plz.

    Prabha99.
     
    prabha99, Apr 12, 2007 IP
  10. LeopardAt1

    LeopardAt1 Well-Known Member

    Messages:
    880
    Likes Received:
    126
    Best Answers:
    0
    Trophy Points:
    135
    #10
    prabha, let me know if it worked or not.
     
    LeopardAt1, Apr 12, 2007 IP
  11. prabha99

    prabha99 Active Member

    Messages:
    240
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    73
    #11
    HI, Leopard At1

    Thanks alot it worked for me.

    Thanks ones again

    Cheers,

    Prabha99
     
    prabha99, Apr 12, 2007 IP
  12. jhnrang

    jhnrang Notable Member

    Messages:
    4,107
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    225
    #12
    Why you ask so?
    He helmed me previously --and it is just great now:cool: If you can't help yourself --you should not comment on others who help people.
     
    jhnrang, Apr 12, 2007 IP
    an0n likes this.