PDA

View Full Version : HELP! Automated Links??


theicfire
10-14-2005, 11:36 PM
Ok, I'm currently trying to make a joke website, but I keep running into the fact I don't know how to make automated links. I've searched all over, but it's hard because I'm not exactly sure what to do. Anyways, here is the problem:

My joke website is going to have lots and lots of pages. Let's say for example you click on "blonde jokes". I want it so that it takes you to a page with lots of links to "joke 1" "joke 2" etc. I know how to do that, and make pages to link it to, but the problem is this takes too long. I know mostly how to make a template, so my question is this:

How do I make a new page (open a template I've made), type my joke in, and then press something (not exactly sure, maybe submit, or maybe convert or something like that) and then on my "blonde jokes" page, a new link automatically comes up to link to the page I just created? I think that this would have something to do with updates on sites, usually on the homepage.

Keep in mind that I'm so not sure of how to do this, that the question may be wrong. What I mean by that, is that I don't want EXACTLY that, i don't need a speacial button to click to convert or something. All I need is a fast way to make a page, and a link to that page.
Note: I'm using dreamweaver to make my site.

Creative Insanity
10-15-2005, 01:57 AM
Highlight the text or select the button that is going to be the link.
In the properties for that page click on the folder next to the link and when the navigation window appears navigate and select the page you want the link to go to.

domedia
10-15-2005, 02:03 PM
theicfire,
I think what you mean by automated links is a small little application that let's you upload new jokes, specifiy which categogry it should appear in, and let the page with the joke, and links to it, automatically be generated so you don't need to create the page and links to it manually.

You'll need some good knowledge about creating this kind of website in dreamweaver. The amnual will be very helpful, make sure you cover all the sections about databases and server side languages. Then go to the developer section of macromedia.com and continue reading their technical articles. You should have the general knowledge to do this in a month or two.

Creative Insanity
10-15-2005, 08:56 PM
Ahh so you want a dynamic site ah!

yeah domedia is correct. Learn server side.

domedia
10-16-2005, 04:55 PM
There should be some good tutorials on how to make database driven websites with DW somewhere. I'm at loss at where though :-/ Google might be able to help you.

Creative Insanity
10-16-2005, 06:57 PM
Ok let's see how far I can help trying to make it as simple as I can.

First you are going to need to install a few things so that you can have a local development platform. You can use a hosting site, but I find these can be slow and time consuming and feel it is best if you have a local development server.
If you have not got a second box that you can make into a development server then you can use your own personal machine. It is not hard.

Apache
The first thing you are going to need to install is apache.
Apache is a webserver and has versions for Linux and Win32 so you can grab that from http://www.apache.org ('http://www.apache.org') and install it. Grab the latest version.
This is your webserver.
It comes with very good documentation.

PHP
Now pop over to http://www.php.net ('http://www.php.net') and grab the latest copy of php. Grab the full bundle as you don't really need the installer as you can just unzip the package to c:\php or in a location where you want it. If you want to use their installer, then by all means grab that and use that, but you are best to also grab the full bundle and extract that into the directory that the installer creates. You may not need them right away, but trust me as you get better you will use them.
Now once you have this installed open up your httpd.conf for Apache and go to the bottom and paste this: (if your drive letter differs from mine then just change for your drive letter)
# For PHP 5 do something like this:
LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php

# configure the path to php.ini
PHPIniDir "C:/php"
Now restart your server. In your document root folder (htdocs in apache directory) place this small txt file to test your installation for php.
<? phpinfo() ?>
Name it something like info.php
Now in a web browser go http://localhost/info.php ('http://localhost/info.php') and if all went well you should get some stats on your php options and installation.

MySQL
Now you are going to need a database so go to http://www.mysql.com ('http://www.mysql.com') and downlond the win32 package for MySQL.. this is the biggest download you will have at around 30Mb. Now install this, but make sure you look at what you are installing and read all the info the installer shows. A wrong move here can stuff everything up.
This would be the hardest to install so don't rush this part.
When the installer ask you if you want to configure it, check to.
Once you have this installed you can test it by going to a command prompt and navigate to the MySQL bin directory and type:
mysql -u root -p
When you are prompted for a password enter the one you added when you configured MySQL and if you are placed at a mysql prompt, then great job as you have MySQL running. Pat yourself on the back, you have done well!

phpMyAdmin
Just because many people do not like command line for their databases (I personaly prefer it) you can go to http://www.phpmyadmin.net ('http://www.phpmyadmin.net') and download a php MySQL client which is an excellent way to create databases and tables without command line.


Now once you have all the above installed and working you are ready to start creating dynamic sites in php/mysql.
From here just use the DW help options and if you have any questions then just ask.

Good luck.

ranjan
10-16-2005, 07:18 PM
For a beginner installing and configuring Apache, PHP and MySQL to play nice with each other can be intimidating. I recommend downloading and installing a preconfigured WAMP (Windows, Apache, MySQL, PHP) package. Amongst the available options i like

1. phpdev - http://www.firepages.com.au/ ('http://www.firepages.com.au/')
2. xampp - http://www.apachefriends.org/en/xampp.html ('http://www.apachefriends.org/en/xampp.html')

Once you have installed a WAMP Package.

a. Open Dreamweaver
b. Click "Help" and Select "Getting Started and Tutorials"
c. Select "Setup for Sample PHP Site" and follow the tutorial

Creative Insanity
10-16-2005, 08:02 PM
2. xampp - http://www.apachefriends.org/en/xampp.html ('http://www.apachefriends.org/en/xampp.html')
This would be my choice if I wanted to do it this way (but I am a sucker for the hands on way), as it has php5.