Image URL and Smarty Templates

Discussion in 'Templates, HTML, CSS, and Design Help' started by Kateedyd, Jan 28, 2008.

  1. Kateedyd Customer

    Good Morning,
    I am considering changing a couple of things on my site to attract a wider audience. To do this, I will need to change my header image. I have become familiar with assigning url's to images and placing them into html web pages, but, my 68C site image url's are with smarty templates. I didn't build my site (built by jueven14) and I am not familiar with smarty. Can someone tell me exactly what I need to do to change this image?

    I will also need to point or add another domain to the site. I will need assistance on that also.

    Any takers?

    http://SpeedPony.com
  2. Lhotch curmudgeon

    Placing image links ina smarty template isnt much different than placing one in an html page. Smarty variable are simply surounded by curly braces and aside from that it is just a standard looking html page.

    If all you want to do is change the header image there really isnt even a need to change the URL, just save your new image to your server with the same name as the current header and it willbe used in place of existing one. If you want to keep old header in tact make sure to save a copy of it or rename it prior to putting new image in place.

    As for having another domain point to your site, thats something you would do through your domain registrar. They usually have a control panel and you can configure where your domain name points and set up multiple domain names pointing to the same web space.
  3. Kateedyd Customer

    Thanks a million

    I have my domains registered with GoDaddy and there is a form to place the nameservers for my site. Do you know where I can find those?
  4. Lhotch curmudgeon

    Most hosting services have help pages with all the details for clients including name servers etc. I would start the search there.
  5. Kateedyd Customer

    UH OH! It didn't work.

    O.K. This didn't work for me at all.

    Keep in mind, my site was built by AusCity, and I don't have any of the images anywhere in my possession, other than my template editor.
    I could be way off base, but I keep thinking I should have to be able to get into Smarty to change these images. Am I way off base? I feel I am missing a peice of the puzzle.

    The only way I have of publishing images is thru msn, and the template editor will not accept these no matter what, when or where.
  6. Lhotch curmudgeon

    The images are on your web server, so in a sense they are in your posession. Im surprised you have not backed your site up. What happens if you host blows up and tells you they lost all of your site? Beleive me there are horror stories abound about how hosts claim to do bakups but when push comes to shove and data is lost they cant recover it.

    What template editor are you referring to? If the one inside 68C all it does is allow you to change the content of the template in terms of the text in it. In other words its just like using microsoft word, you open a letter, make changes and save it. If you want to change an image you can edit the template and tell it to use a different image by editing the URL for the image and changing the name so it points to the image you would like to use.

    Keep in mind that the image, in order for it to be used has to be on your webserver. Many web hosting packages have tools via their web control panel interface to upload files from your desktop computer to the server. Otherwise you can download and use an FTP client (File transfer protocol) like filezilla and use that to move files from your PC to your server.

    Images are not stored in the pages themselves, you use text, in the form of a URL within a smarty/html document to tell the web server where the image is and when the data is sent to a browser the images location is also sent and the image is downloaded and displayed in the web page where and how the html indicates.
  7. Eric Barnes Guest

    I can vouch for this statement.
  8. Kateedyd Customer

    Please Help Me, Guys!

    O.K.
    I admit up front that I am still pretty much in the dark when it comes this stuff, so pleeaassse be patient with me and see if I can get this stuffed into my "blonde" head.

    First of all, I had the understanding that my site was backed up. I would have been in a complete panic if I had known different. I guess myself and my builder got our wires crossed. What do I do? (in detailed english, please).

    As far as the images go, I don't have a clue what you are explaining to me, about them being on my web server. I DO understand about the template editor only being customizable with text and the impage URL being pasted into the template.

    Let me tell you what I have been doing so maybe we can better understand each other. I have been uploading images to the web (web server?) thru windows xp "Publish this document to the web" which goes into an msn document file and applies a url to the image. On other projects I am doing, I can go to the msn document file (which is online) and copy and paste the image url into the webpage I am creating. Presto, there is my image. BUT, when I do that with the 68C template editor, the image is not on my site. Now, it's more than obvious to me that this is not the correct way to do this with 68C. Now that you know exactly what I am doing (wrong), maybe you can explain the right way. I know and appreciate the fact that you have been trying to explain, but I think you forget that I don't have a clue.
  9. Mike-N-Tosh Developer & Moderator

    Kateedyd,

    In order for any of us to be able to help you, we need to know some basic details of how your website is being served.

    My first question would be, "Have you tried contacting juven14 who setup and customized your site?" If it were me, that's where I would start.

    If you don't have a way to contact him or can't then let's do this:
    What is the url to your site. http:// ???
    Do you know who your web host is? (Who do you pay to have your website working every month/quarter/year)

    Knowing this will at least be a start for us to be able to assist you.

    -Mike
  10. Kateedyd Customer

    You Bet.

    Yes, I have tried to email juven14 for the past week and I am not getting an answer. Maybe he changed his email address or is still really busy in school. I tried once before about a month ago when I first had this idea, with the same result.

    My URL is http://speedpony.com

    I have the 68C hosted version.

    Let me tell you what I am wanting to do. My site is speed and racehorse classifieds. I want to expand to all horse breeds and disciplines, so I really need to change the images in my header from racehorses to a more generic horse image. Everything else will stay the same.

    Can you tell me what I need to do to back up my site?
  11. Eric Barnes Guest

    Since you are hosted with us you can use an ftp client (Filezilla is a popular free one) and connect to the server and download all the files. Next visit Plesk and do a database backup.

    With both of those done you will have a complete backup of your database and all the files.
  12. Kateedyd Customer

    Thanks

    Thanks Eric, I'll give it a shot. Keep an eye out for me in case I have to come back for more information.

    You guys are the greatest.
  13. SkGold Customer

    To replace the image is easy. Follow these steps and you may change any image on your site:
    1. On your website in the browser do the right click on the image and click “properties”.
    2. In “properties” see where is your image located (Address URL). Example: http://www.speedpony.com/templates/speedpony/images/header_horse.jpg
    3. In “properties” see the image dimensions; in your case it is 391x 146 pixels.
    4. Make the new image with same dimensions (391x 146 pixels) and call it the same name (header_horse.jpg)
    5. Connect to your server by using FTP and go to the folder where is your image located. In your case it is /templates/speedpony/images/
    6. Replace the old image with the new. Done.
    Hope it helps. Your header have many images, so you need to change them one by one.
  14. Mike-N-Tosh Developer & Moderator

    Not only that, but the smaller images are all different widths.
  15. Kateedyd Customer

    Need More Help

    All of this sounds really simple, but, I have downloaded filezilla and tried to connect with my server and I keep getting a password error and no connection.
  16. Lhotch curmudgeon

    You need to reference your hosts online documentation on how to connect to and log into your host via a FTP client. Some hosts have IP addresses you need to connect to instead of your domain name. Some require a secure connection and others dont. These specifics are best answered by the host.
  17. cheesegrits PHP Mechanic

    Erm ...



    -- hugh
  18. Lhotch curmudgeon

    yea, but often times hosts have help docs outlining all this stuff, or info is sent when you sign up about how to ftp files to your site. Since im not hosted with them I dont know whats out there for them. It may be a lot faster than waiting for a response here.
  19. Eric Barnes Guest

    The ftp details for your account would have been emailed out once we installed the site. If you need us to resend this please submit a ticket with your domain name.
  20. SkGold Customer

    You don’t even need ftp. You can replace your images using Plesk. I didn’t used Plesk for more than 3 years but I am sure that you should be able to go to the images folder and replace your pictures.

Share This Page