Results 1 to 1 of 1

Thread: Universal permission tag??

  1. #1
    Join Date
    Apr 2005
    Posts
    81

    Default Universal permission tag??

    Is there not a permission tag that cam be used universally with field names? I check out the wiki under listing template, and permission tags, and found none.

    basically the universal tag for field name would only show if the field name was populated with something.

    such as:
    {check_agent_field_skypename}
    <!--
    Skype 'My status' button
    http://www.skype.com/go/skypebuttons
    -->
    <script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script>
    <a href="skype:{listing_agent_field_FIELDNAME_value}? call"><img src="http://mystatus.skype.com/bigclassic/listing_field" style="border: none;" width="182" height="44" alt="My status" /></a>
    {/check_agent_field_skypename}

    otherwise, how would we do and if statement in php for field name?

    I might take the time to create this as an add-on and post it for everyone.. I think it would be cool if the agents and users could use their skype to communicate.

    UPDATE:

    It think i solved it with:

    PHP Code:
     $skype_name "{listing_agent_field_skypename_value}";
                                    if ( 
    $skype_name != "" ) {
                                    echo 
    "<!--
    Skype 'My status' button
    http://www.skype.com/go/skypebuttons
    -->
    <script type="
    text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script>
    <a href="skype:{listing_agent_field_skypename_value}?call"><img src="http://mystatus.skype.com/bigclassic/listing_field" style="border: none;" width="182" height="44" alt="My status" /></a>
    ";
                                    } 
    Crap all I get is t_String error now with:
    PHP Code:
    <?php
                                $skype_name 
    "{listing_agent_field_skypename_value}";
                                if ( 
    $skype_name != "" ) {
                                echo 
    "
                                <script type="
    text/javascript" src="                http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script>
                
    `                <a href="skype:{listing_agent_field_skypename_value}?call"><img src="http://mystatus.skype.com/bigclassic/listing_field" style="border: none;" width="182" height="44" alt="My status" /></a>";
                                } 
                                ?>
    Anyone got any ideas?
    Last edited by israelp; 06-12-2006 at 12:17 PM. Reason: update

Bookmarks

Posting Permissions

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