Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Guru 'Power' Mechanic
Picture of Bruceee
Posted
Special code is sometimes useful for things like counters, shopping carts, menus and the like. Usually the provider of the code will give you some instructions:
  • 'Copy and paste this code to the body of your page'; and/or
  • 'Copy and paste this code to the head of your page'
    Fortunately both these steps are very easy with SiteSpinner.

    To paste code into the body of your page:
  • Create a Code Object (left hand toolbar)
  • Paste the provided code into the text editor window
  • Save and Close the text editor
  • Resize the code object. It is not essential to do this -- however if the code will display an image, I find it useful to make the code object about the same size as the image
  • At this point, the code object will still display as text
  • Preview your project. The code should now execute and do whatever you intended.

    To paste code into the head of your page:
  • Open the Page Editor (left-hand toolbar) > Header tab
  • Click the 'New Header' button
  • Paste the code into the 'Custom Header' box
  • If you have already pasted the same code into another page, instead select the header from the drop-down list box
  • Consider giving the header a meaningful new name
  • Click the OK button
  • The code should do its stuff when you preview or publish

    More information, including controlling the position of code in the body of your page is here:
    What kind of code can I put in a Code Object?

    If the code does not work:
  • Check that you have pasted in everything you needed. It is easy to accidentally lose characters from the beginning or end of the code.
  • If it is in the body of your page, try repositioning it. See the link above.
  •  
    Posts: 7959 | Location: Wellington, New Zealand | Registered: December 11, 2003Reply With QuoteEdit or Delete MessageReport This Post
    Junior Mechanic
    Posted Hide Post
    I am looking to add header coding, but I don't see any header tabs, just "title" and "background"
     
    Posts: 1 | Registered: August 05, 2004Reply With QuoteEdit or Delete MessageReport This Post
    VM Staff
    Picture of Harpo
    Posted Hide Post
    Hello Marcus,

    WebDwarf does not have an option to add code to the header, only SiteSpinner and WebEngine have that. If you want to do that with WebDwarf you must open the HTML file after you publish and put your header code in manually.
     
    Posts: 3147 | Registered: January 08, 2003Reply With QuoteEdit or Delete MessageReport This Post
    Working Mechanic
    Picture of nksiefert
    Posted Hide Post
    So, Bruce, Andy's code for email in the other post would be done this same way? I'm printing this out as I type...On the email page I would enter that code in the 'body' of the text, or text body, so to speak...and it will publish the correct way? Hmmm...

    Maybe I should walk around the block, come back and re read this.
     
    Posts: 20 | Location: Chicago Suburb | Registered: February 13, 2005Reply With QuoteEdit or Delete MessageReport This Post
    Guru 'Power' Mechanic
    Picture of Bruceee
    Posted Hide Post
    Answered in the other post. Hope you enjoyed the walk Smile
     
    Posts: 7959 | Location: Wellington, New Zealand | Registered: December 11, 2003Reply With QuoteEdit or Delete MessageReport This Post
    Junior Mechanic
    Posted Hide Post
    Is it possible to see the code that SiteSpinner puts out?

    I seemingly uploaded a file to a web site this morning and renamed it "index.html" and there's now a 45k file there. I get a "Forbidden" error message when I try to access it. (I'm using a Cox Cable free personal web page space to practice.)

    It uploaded/published well enough when I tried the "Trial free web host" but it turns out there are placeholder pages on the template which I didn't see from the Home page. When you left-click the menu, a page comes up with a placeholder picture in it and all the old labels I'd changed on the Home page.

    How do I proceed? I tried to look at that HTML file on Cox but it was mostly unreadable except for the text contents of template.

    I'd sure prefer to practice with free space than rent space right now. I'm not even sure this is the right template. It was just the easiest looking one I saw when I first ran SiteSpinner.
     
    Posts: 2 | Registered: August 01, 2005Reply With QuoteEdit or Delete MessageReport This Post
    Honorary Mechanic
    Picture of podge
    Posted Hide Post
    Alt+C will display the code, but you cannot edit it Frown
    Failing that Go Publish > preview code (its under publish project)
     
    Posts: 837 | Location: England | Registered: March 13, 2005Reply With QuoteEdit or Delete MessageReport This Post
    Guru 'Power' Mechanic
    Picture of Bruceee
    Posted Hide Post
    Something is a little strange here. You shouldn't have had to rename any uploaded page to index.html You should have had a page of that name already -- SiteSpinner creates it when you publish.

    Could it be that you have renamed your project file -- which would have had a name like YourProject.ims?

    If you are still stuck, can you post a link to your site?
     
    Posts: 7959 | Location: Wellington, New Zealand | Registered: December 11, 2003Reply With QuoteEdit or Delete MessageReport This Post
    Junior Mechanic
    Posted Hide Post
    EEEK! You see why there oughta be a book or some sort of Big Picture text file describing what has to be there and a map of the land mines? I did indeed rename a project file, if "project file" is what is generated by the "Publish" command in the top bar of the SiteSpinner software. I recall it did have a .ims suffix.

    I did not even hear/recognize what "project file" meant in the roar of the admonition that the one file I _had_ to have was index.html.

    The same pedagogical spazz happens with Linux. It's a big reason why Linux has not done better in all these years and years of exposure. *sigh*

    I'll try it again. The web space is easy to erase and revive as a blank slate.
     
    Posts: 2 | Registered: August 01, 2005Reply With QuoteEdit or Delete MessageReport This Post
     Previous Topic | Next Topic powered by eve community  
     


    ™ & © 1998 - 2008, Virtual Mechanics Inc. All rights reserved.