Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Apr 2008
    Location
    UK
    Posts
    63
    Member #
    16740
    Hello
    Iím trying to edit a rather big php script and some of the tpl files have got me baffled!?
    Take a look at this small section of code:
    <p id="videowatchFooter_copyright" style="float: left;">
    {$lang153} &copy; 2008 {$lang154}.
    What do the {$lang153} and {$lang154} refer to?
    Iím editing the site remotely via ftp using Dreamweaver CS3. The above code appears in Dreamweaver but if I view the Source in Internet Explorer {$lang153} is Copyright and {$lang154} refers to who programmed the script.
    What does this mean? Is it copyright protection?
    Cheers
    Ps I am new to all this.

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,693
    Member #
    5580
    Liked
    717 times
    Those are internal variables, probably used with a database (MySQL).
    So the variables get substituted for whatever was assigned to them.

    You'll probably see other variables like that ... perhaps in the
    <title> ... </title> part. It might be like: <title>{$sitename}</title>


  4. #3
    Member
    Join Date
    Apr 2008
    Location
    UK
    Posts
    63
    Member #
    16740
    Quote Originally Posted by mlseim
    Those are internal variables, probably used with a database (MySQL).
    So the variables get substituted for whatever was assigned to them.

    You'll probably see other variables like that ... perhaps in the
    <title> ... </title> part. It might be like: <title>{$sitename}</title>
    Will it be ok to remove them and replace them with normal text?

  5. #4
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,693
    Member #
    5580
    Liked
    717 times
    Quote Originally Posted by Boogle
    Will it be ok to remove them and replace them with normal text?
    Sure ...

    Make sure you always keep a safe back-up copy of the original files,
    so you can put it back again if things go bad.

    If you view the HTML of the actual web page (when online), you'll
    see the variables have been changed to an actual value (or HTML).
    Duplicate the same "idea" that they used.


  6. #5
    Senior Member
    Join Date
    May 2005
    Location
    Essex, United Kingdom
    Posts
    200
    Member #
    10131
    It looks like Smarty syntax, read http://www.smarty.net/ for more information.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 04:28 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com