HTML - Newbie Questions...updating Pages And User Commenting?
Hi, I am semi new to HTML coding, I have created several basic websites but I am currently working on a bigger web project.
I am hoping to create a website that will get traffic, and I am trying to make it as legit as possible, but of course, I do not know how to do certain things, and help would definitely be appreciated So first of all, the website will be kind of like a news page, so I might very well be updating the main page several times a week with new articles, and as I update, I want the older updates to go to page 2, and articles in page 2 to go to page 3 and on...So it is like a Stack, but I just do not know how to express or code this in HTML or what have you. The second is I wish for people to be able to comment on each article. Now I am not sure if I want them to be signed up users or anonymous, but at the least some kind of system so that people can comment on the articles and talk to each other. Also a a side question, if and only if, the site began to get ads or something, where and how would they be implemented? I have extra spaces at the left and right sides of the website, so I am thinking they could just be implemented there? Sorry to all if these questions sound obvious, but I would appreciate any kind of help Thank you for your time! Similar Tutorials1. When designing for an 800x600 resolution, am I supposed to start with the same size canvas in PS? I've heard that some people reduce the height or width a little but I've never understood why. 2. When designing a site, should I use a white background when opening a new file in PS, or should I start with a transparent background? What do others do and why? Thanks. Hi my site www.brewrecords.net the text on the top right, I have to change it on all pages on the site when a new gig comes in. It is highly time consuming Is there a way i can update it once and that applies to the whole of the site? It's only text. cheers, tom Hello all, I have recently set up a website for my gaming servers. http://www.accurategameserver.110mb.com As you can see on my site, it has all the recent game changes etc. I find it really anoying and time consuming to have to keep flicking back and forth to change each section data and its usually only like one small change. Any way that I can change it so that it automatically updates to a set image/text on a seperate page? Last question is, how do ou make a registration form on your website without mysql and send out automatic emails. Thanks all in advance. Cheers Don't forget to register to my website for gaming goodness Hey, Firstly let me just say, Hi everyone, first time here, etc etc. Right I shall get straight to the point of why I am here, and hope that some kind soul can help me. 1. I work in a educational environment, and we are looking at publishing our students timetables on the intranet, running on a link something like http://intranet/students/timetable/ inside that file would be their timetable (just a plain old HTML doc) each student already has a unique ID and their file would take that name, so what I want to do, on our main index page is put a little tiny form in at the top, of which they can just type in their number, press go, and it to bring up there timetable. Buttttt! I have no idea how to do it, the actual form would need the preset link then take the inputed data, add it too the end, then forward on to the said page. is it possible? if so could you kindly tell me how? or a little script would be god sent Thanks in advance for that one if you reply. 2. I was going to do number two, but after all of my typing it dawned on me what the solution was, doh! Kieran. Hello everyone. I'm working on a website and I'm not quite sure how to do something. I'm hoping someone here might be able to point me in the right direction. The site will have content on each product page such as special deals, recent news or announcements. Each product page will also have their contact information. Now what I need to figure out is this. Since the "recent news" , "Special deals" and "Announcements" will be on every product page. I need to find a way to those things on every page at once. Just to show an example. Here's one of the practice pages: http://sbultimate.com/newsite/toeswitch.html If you scroll down you'll see the sample of Announcements, specials and news. That's the part I'm talking about. If any of you can help me learn how to do this I'd greatly appreciate it. Thanks. Ron I am creating my first web page through HTML using notepad. How do I view it (without publishing it) on a web page? What ive done right now is open internet explorer to a blank page (meaning not connected to the internet) and I thought id be able to view it by opening up view code and then cut and pasting my code into it that way. It didnt work! Im stuck and Im trying to get creative to find the answer but am not finding one. If anyone knows- a simple and VERY detailed explanation would be great! Im very new to the web- thanks in advance! Hi: I am new to this group and to html programming .. sort of. I am trying to find a way to display http headers from an html file (index.html) The scenario is that I can display the http header variable and value information in my apache access.log file by setting the logformat in the httpd.conf file; and I need to verify that these are all available in the launched index.html file And recommedations greatly appreciated. Ron Well first off I would like to say hello to the community here. I recently got an idea for a website. That with some time and hard work I think has the potential to turn over a decent profit. I just got the Domain name registered and Webhosting with www.fatcow.com I know just about nothing about html, xhtml , css all that stuff. I mostly used the computers to copy backup games for all my game systems. Then a collection of software. Then I run 5 computers on World Of Warcraft to bot characters. I've had to install 2 seperate comcast service plans and Verizon Fios to keep up with my computer demands. Also need the DSL to change ip's to AutoMouse free rapidshare points, Then accounts. So I do ok with computers, But this website stuff has my head spinning. I am intending to use Adobe Photoshop CS4 to Creat my template. Then going to try and use DreamWeaver CS4 to create the html ( if its called that..lol ) I've watched a ton of tutorials on the photoshop and finally got a basic template that I would like to go with. I am just paused at this time cause I was reading into the different screen resolutions. I created my template at 860 / 580 .. Also one at 955/600 I uploaded them both to my webhost background only, but they look so funny to me. Could someone help me to get the auto resolution going on this ? http://www.itemraffle.com is the site name. I you could view source and let me know what needs to be there. Its only like 6 lines long now. I also don't think I added the actual template I created in there the right way. I just saved the photoshop file as a jpeg then uploaded it the server and added a html image tag. Question 1 of I'm sure a million !! l Introduction: Seeing as this question is brought up very often, I hope this short guide will be a destination for users seeking information about the topic. Although this is a server-side issue, those who are not aware of this fact generally seek help in HTML/XHTML, so this is where the topic will remain Note: Read the answers to Frequently Asked Questions in the next post! Hasn't this been done before? Absolutely; this is meant as a straightforward stickied version that brings a few things together and references previous threads where you can find further details. If your question is somewhere in the realm of one of these, you're in the right place: How do large websites manage their content? How do I make the same content appear in multiple pages without copy/pasting? How do I automatically update parts of different pages, without editing every file? How do I avoid duplicating code in multiple files? Is there an alternative to IFrames? The answer is using PHP Includes, SSI (Server Side Includes), or ASP Includes. Each will be discussed below. Basic Concept: Let's assume we have a basic HTML page with a few links that represent a navigation menu (we're using HTML5 markup for simplicity): Code: <!doctype html> <html> <head> <meta charset="UTF-8"> <title>Main Page</title> </head> <body> <div> <ul> <li><a href="home.html">Home Page</a></li> <li><a href="gallery.html">Gallery Page</a></li> <li><a href="about.html">About Page</a></li> <li><a href="contact.html">Contact Page</a></li> </ul> </div> </body> </html> This HTML page is now our basic template for subsequent pages that we create, which traditionally meant that we copy and paste our menu into each one. However, what if we end up creating 50 pages and then find out we have to add another link to the menu? Our only solution would be to add the link to each page. In order to avoid this, we separate our menu from the rest of the page like so: Code: <div> <ul> <li><a href="home.html">Home Page</a></li> <li><a href="gallery.html">Gallery Page</a></li> <li><a href="about.html">About Page</a></li> <li><a href="contact.html">Contact Page</a></li> </ul> </div> Save it in a file, and then place an include on every page where we want to display the menu: Code: <!doctype html> <html> <head> <meta charset="UTF-8"> <title>Main Page</title> </head> <body> code for including menu would go here </body> </html> This setup lets us update our menu file, and have the changes be immediately reflected everywhere we placed our include. The concept is most often used with things like menus, headers, and footers, but it can be used with anything and we'll now discuss how it's done in practice. Note: The attached zip contains working examples of all three methods. PHP Includes: General Requirements: Your web-hosting provider must support PHP, which most of them do. If your host does not support PHP, I would suggest switching hosts. If you do not have a hosting provider, and you're attempting this on your local computer, it must be set up as a local server and configured to run PHP. The easiest way to do this at once is by installing XAMPP. Required Filetypes: By default, servers will only parse PHP code inside files with the .php extension. Therefore, you must change the extension of any files you want to use includes in to .php (e.g. index.html becomes index.php). Although your main file must have a .php extension, you can include files with extensions such as .html, .txt, .inc, other .php files, and more. Syntax Here are two ways to include a file in PHP: PHP Code: <?php include('file_to_include.html');?> or: PHP Code: <?php include 'file_to_include.html';?> Note that you can also include full URLs if URL file-access is enabled in your server's configuration: PHP Code: <?php include("http://www.google.com/");?> Code Example: (some_page.php) Code: <!doctype html> <html> <head> <meta charset="UTF-8"> <title>PHP Include</title> </head> <body> <?php include("menu.html");?> </body> </html> Server Side Includes (SSI): General Requirements: Your web-hosting provider must support Server Side Includes, which most of them do. If you do not have a hosting provider, and you're attempting this on your local computer, it must be set up as a local server and configured to support Server Side Includes. If you are using Apache, you can find information on enabling SSI here. If you are using IIS, you can install Server Side Includes inside Windows Features > World Wide Web Services > Application Development Features > Server Side Includes, although this path may differ depending on your version of Windows. Required Filetypes: By default, servers will only parse Server Side Includes inside files with the .shtml, .shtm or .stm extensions. Therefore, you must change any files you want to use includes in to have one of these extensions (e.g. index.html becomes index.shtml). Although your main file must have one of the above extensions, you can include files with extensions such as .ssi, .html, .txt, .inc, and more. Syntax Here are two ways to include a file using SSI: Code: <!--#include file="menu.ssi" --> Is used to specify a relative path, i.e. a path to your include in relation to where your main file is. The above assumes that your main file, and menu.ssi are in the same directory. Code: <!--#include virtual="includes/menu.ssi" --> Is used to specify a path relative to the web root. The above assumes that menu.ssi is located inside webroot/includes Code Example: (some_page.shtml) Code: <!doctype html> <html> <head> <meta charset="UTF-8"> <title>SSI Include</title> </head> <body> <!--#include file="menu.ssi" --> </body> </html> ASP Includes: General Requirements: Your web-hosting provider must support ASP. If you do not have a hosting provider, and you're attempting this on your local computer, it must be set up as a local server and configured to support ASP. If you are using Apache, you can find information on enabling ASP here. If you are using IIS, you can install ASP inside Windows Features > World Wide Web Services > Application Development Features > ASP, although this path may differ depending on your version of Windows. Required Filetypes: By default, servers will only parse ASP code inside files with the .asp extension. Therefore, you must change the extension of any files you want to use includes in to .asp (e.g. index.html becomes index.asp). Although your main file must have a .asp extension, you can include files with extensions such as, .html, .txt, .inc, other .asp files, and more. Syntax Here are two ways to include a file using ASP (The syntax is exactly the same as SSI): Code: <!--#include file="menu.html" --> Is used to specify a relative path, i.e. a path to your include in relation to where your main file is. The above assumes that your main file, and menu.html are in the same directory. Code: <!--#include virtual="includes/menu.html" --> Is used to specify a path relative to the web root. The above assumes that menu.html is located inside web root directory/includes Code Example: (some_page.asp) Code: <!doctype html> <html> <head> <meta charset="UTF-8"> <title>ASP Include</title> </head> <body> <!--#include file="menu.html" --> </body> </html> i need a quick way to add a commenting system to my site (you know, a way for guests to add a comment to the bottom of the page) This will be hard for me to explain so I will add an image: http://img75.imageshack.us/my.php?image=examplexu6.gif How do I go about loading a page within a page. For example, in the pic, if you clicked Cost it would load a page within the loading area without taking off to another location. I seen it on a site before, i remember the links were something like "/?p=cost" or something like that. And the page appeared to not navigate elsewhere, the cost page was just loaded within the page i was on. hope that makes sense, if so any examples on this? is it hard to do? messy? safe with most browsers? thanks I am a new member and I was hoping someone could help me. I have looked for answers myself, but I havent come across them. Question 1- How do I add a Scroll Bar Box to left side to slip the page into 2 sections, and How to add Links to it? Question 2- How Do I make the Screen not move off the page? So the Bottom scrollbar does not show up. Ex. If I am using Internet Explorer, and I have my Favorites up, and I expand the box, It makes the screen smaller, But the website also gets smaller, but you can still see evrything. I Hope you guys can help me. 1. Is there any HTML code that can allow me to create a newsletter for my website. So people can sign up with it, then whenever I want to send one out I just fill in some form for the new letter then hit send and it will send to all the people who signed up. Is there any html code to do this, if so what is the code? 2. I would like a link or something to useful html codes that I could use for my website. Hi guys I don't know if I should be asking these question here not still here we go, 1. I want to add the login and out box from the forums to my website homepage How can I do that??? 2. I want to put that search box from the forums to website homepage as well so if some member/user search the website they get the results out of forums. I hope I explained good Please ask for more information if you need Thank You so much. This is my site currently ... www.fortheloveinc.com (please click to see what I am referring to) 1st Question ~ As you go from page to page on my site, you'll notice the annoying banner at the very top of the page. The site is hosted by godaddy.com, but there must be a way to remove that from my site. All the advertisements as well. Is it because I am temporarily using the free host option when you first purchase a domain do you think? Just wondering how I remove all of that off of my site. 2nd Question ~ I've been using Photoshop, for the graphics on my site (the headers, and the clickable links). I would like to be able to fill my site, from side to side, and from top to bottom. How do I do this using html? Basically make use of the whole page, instead of just little portions of it. Thank you and I'm hoping y'all can help me out with these questions. Much appreciated. 1. Can I define two classes? For example: Code: <p class="one" class="two">Text...</p> 2. Can a class be defined as a number? For example: Code: <p class="1">Text...<p> Thanks. Hello everyone. Tho i am a new user, i need help on this one. 1)Does anyone have or know a ready rating and commenting system code that you can just stick on your HTML page? 2)Anyone know where to get Dreamweaver CS1+ for a pretty low price? I hope i posted in the right section. Please help me out! Thanks in advance! 01:: object won't touch the top of the page:: On my site, www.subliminalmusic.co.nr, I got a flash mp3 player in a frame at the top.. but, for some reason, the mp3 player won't touch the very top of the page. I want it where the mp3 player touches the very top of the page and is fixed in place instead of having a scroll bar on the right. 02:: how do you make frame1 close when frame2 browses off of the original domain?:: I'm wondering if it's possible to make my top frame, with the mp3 player in it, close whenever I go to an off-site link in the bottom frame? Where the top frame stays put whenever I browse my own site, but closes whenever I go to another website. It seems logical that I could make a list of safe-urls, or whatever.. something like.. where the top frame can recognize what's in the bottom frame.. and there'd be a list of urls in the code somewhere. If the url in the bottom frame isn't in the list of urls mentioned in the code, then the top frame closes. Is that possible? If so, can you tell me how to do it or point me in the right direction? Thanks in advance! -Anthony- Hello all! I just started a site and I have two questions that would really help me out. First - I have a news section on my website that I want people to be able to comment on. I have searched the web forever on this, but I want people to be able to click the comment section below the article which will redirect them to another page where they can add/view comments. I also want people to be able to see how many comments have been posted on the original article. Whats the best way of doing this? Second - I have a sidebar on my website that provides a quick link to an article that has been posted. Is there anyway I can make that sidebar once and reference throughout the other pages on my website so I don't have to update each individual page? Thanks in advance for your help. p.s. the website is http://www.socomfans.com |