Dating Script - Vldpersonals

Discussion in 'PHP' started by ahdsan, Sep 25, 2009.

  1. #1
    I am using vldpersonals for my site, i have one problem

    In members_sections_card.tpl, I want to add a link to the field 'state'.
    The state field has special chars as 'Québec', so I wrote a function , thats not very good, but works for quebec....

    function vldext_rmacc($str) {

    $table = array(
    'Š'=>'S', 'š'=>'s', 'Ð'=>'Dj', 'd'=>'dj', 'Ž'=>'Z', 'ž'=>'z', 'C'=>'C', 'c'=>'c', 'C'=>'C', 'c'=>'c',
    'À'=>'A', 'Á'=>'A', 'Â'=>'A', 'Ã'=>'A', 'Ä'=>'A', 'Å'=>'A', 'Æ'=>'A', 'Ç'=>'C', 'È'=>'E', 'É'=>'E',
    'Ê'=>'E', 'Ë'=>'E', 'Ì'=>'I', 'Í'=>'I', 'Î'=>'I', 'Ï'=>'I', 'Ñ'=>'N', 'Ò'=>'O', 'Ó'=>'O', 'Ô'=>'O',
    'Õ'=>'O', 'Ö'=>'O', 'Ø'=>'O', 'Ù'=>'U', 'Ú'=>'U', 'Û'=>'U', 'Ü'=>'U', 'Ý'=>'Y', 'Þ'=>'B', 'ß'=>'Ss',
    'à'=>'a', 'á'=>'a', 'â'=>'a', 'ã'=>'a', 'ä'=>'a', 'å'=>'a', 'æ'=>'a', 'ç'=>'c', 'è'=>'e', 'é'=>'e',
    'ê'=>'e', 'ë'=>'e', 'ì'=>'i', 'í'=>'i', 'î'=>'i', 'ï'=>'i', 'ð'=>'o', 'ñ'=>'n', 'ò'=>'o', 'ó'=>'o',
    'ô'=>'o', 'õ'=>'o', 'ö'=>'o', 'ø'=>'o', 'ù'=>'u', 'ú'=>'u', 'û'=>'u', 'ý'=>'y', 'ý'=>'y', 'þ'=>'b',
    'ÿ'=>'y', 'R'=>'R', 'r'=>'r',' '=>'_');

    $string=htmlentities($str,ENT-QUOTES,"UTF-8");

    if(strpos($str,'é'))
    $str="Quebec";*/
    return $str;
    }

    I wanted to call it in the member_sections_card.tpl as
    <a href="/state/dating_{rmacc:profile_field_state_value}_singles/" style="color:#D52525">{profile_field_state_value}</a>
    but its not working.
    I checked the corresponding file generated in the tmp/ directory, this "{rmacc:profile_field_state_value}" is replaced by the following statement :
    <?php echo vldext_rmacc(array('profile_field_state_value',$_obj[''])); ?>

    Please help asap.

    Thanks.
     
    ahdsan, Sep 25, 2009 IP
  2. sahil104

    sahil104 Peon

    Messages:
    34
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    check this link :-

    For dating script :-

    http://www.infocuswebdesigning.com/Web_Development/dating_script.php

    Pm me

    Regards,
    Sahil
     
    sahil104, Sep 25, 2009 IP
  3. ahdsan

    ahdsan Member

    Messages:
    74
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #3
    I don't want a dating script. I already have a live site.
    If you have used the vldpersonals script you can understand the problem.
     
    ahdsan, Sep 25, 2009 IP
  4. sahil104

    sahil104 Peon

    Messages:
    34
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    hello,

    Get dating script at just $99 USD.

    Regards,
    Sahil
     
    sahil104, Sep 25, 2009 IP
  5. ahdsan

    ahdsan Member

    Messages:
    74
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #5
    why are you marketing your product ?
    i have asked a technical question if you know the answer then post that otherwise don't waste time
     
    ahdsan, Sep 25, 2009 IP