Programmers advice !!!

0
Hi Germi

What is the best way to "rem" out a line ? Sometimes you will say something like :

if you're using detailed view:

file /components/com_muscol/views/artist/tmpl/detailed.php

on line 19 there's this:

"style" => "max-height:60px;" ,

delete it



I am always terrified to do this !!! What is the proper way to do this? Is the proper way to ftp the site and copy the file that you are changing, to your computer for a back up and then edit the file on site, then save ?

Or is there any character that I can put in front of the line so that it cannot be read?

Thanks
Ron
Responses (1)
  • Accepted Answer

    Monday, November 23 2009, 06:48 PM - #Permalink
    0
    well, first of all, it is always a good idea to save a copy of the original file before making the change, just in case seomthing goes wrong, so you can restore the file.

    second, usually when I say "remove this" I am asuming that the user has some base knowledge on PHP syntaxi... I mean, you dont need to know much, just the basic.. (every sentence ends with a ";", etc) so you dont make any change that can make the file crash.

    if you dont know PHP at all, maybe is better if you dont delete anything

    in this case, for instance, it is enough if you just change that "60" to "600"... that will be enough. I mean... it's only adding an extra "0" :lol: I think you won't screw anything up! :)

    try it! ;)
    The reply is currently minimized Show
Your Reply