Using mod rewrite for phpld link details?

Discussion in 'Directories' started by dargre, Aug 25, 2007.

  1. #1
    If you are using custom mod rewrite for phpld link details:

    I noticed most (or everyone) directories didn't update rewrited method for link detail page when it is send in notification email.

    So if you're using custom mod rewrite and sends link to detail page in notification email:

    1. Edit file 'include/function.php'
    2. Find function:
    function replace_email_vars($text, $data, $type = 1)
    3. Find line:
    if (ENABLE_REWRITE == 1)
    4. Correct next line:
    $detailPageUrl = "detail/link-{$data['ID']}.html";

    Probably you will have to build proper php function for this.
    Can't post ready to use code as it's different for different method used by directories.

    Should be done as it is not recommended to send broken link :(

    Thanks.
     
    dargre, Aug 25, 2007 IP
    funkymario likes this.
  2. enQuira

    enQuira Peon

    Messages:
    1,584
    Likes Received:
    250
    Best Answers:
    0
    Trophy Points:
    0
    #2
    good point dargre!
     
    enQuira, Aug 25, 2007 IP
  3. WhatiFind

    WhatiFind offline

    Messages:
    1,789
    Likes Received:
    257
    Best Answers:
    0
    Trophy Points:
    180
    #3
    Thanks for sharing this, appreciated.
     
    WhatiFind, Aug 25, 2007 IP
  4. 121603

    121603 Peon

    Messages:
    933
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    0
    #4
    hehehe, that is what I seen for most new directories.. I hope new owners will see this. :)
     
    121603, Aug 25, 2007 IP