Need help with inserting hyperlink

General software, Operating Systems, and Programming discussion.
Everything from software questions, OSes, simple HTML to scripting languages, Perl, PHP, Python, MySQL, VB, C++ etc.
Post Reply
User avatar
agustintorre
Regular Member
Posts: 446
Joined: Tue Dec 26, 2006 11:57 pm

Need help with inserting hyperlink

Post by agustintorre »

Hello, we have some new forums we want to add to our website.
But i don't know how to do this, I herd people say that all I need to do is insert the hyperlink into the header of out site. (which I have no idea how to do)
I have tried looking for the header but I can not find it.
Thanks! :thumb:
One time when me was high, me sold me car for like 24 chicken McNuggets. -Ali G
User avatar
A_old
Posts: 10663
Joined: Sun Jan 30, 2000 12:00 am
Location: Atlanta

Post by A_old »

Ok so to make sure I understand what you need:

You have an existing website (presumably http://www.mysuperpc.com) and would like to add a link from the main page to your forums, correct?

If you're new to web development, it might be easier to use some sort of tool to do this (something like http://www.snapfiles.com/get/namu6.html). If so, find the file for the main page of your site (probably index.html or index.htm) and open it up in your HTML editor and add the link (how you do it will vary - if you want to add the link manually, into the HTML code itself, just open said file in notepad or wordpad and add this line to the location you want it to show up at:

<a href="http://forums.mysuperpc.com/">Forums</a>

save and exit, then replace the exiting file with the new one. Make sure not to delete anything. Make sure to place the above line within the <body> and </body> tags.
User avatar
agustintorre
Regular Member
Posts: 446
Joined: Tue Dec 26, 2006 11:57 pm

Post by agustintorre »

Amro wrote:Ok so to make sure I understand what you need:

You have an existing website (presumably www.mysuperpc.com) and would like to add a link from the main page to your forums, correct?

If you're new to web development, it might be easier to use some sort of tool to do this (something like http://www.snapfiles.com/get/namu6.html). If so, find the file for the main page of your site (probably index.html or index.htm) and open it up in your HTML editor and add the link (how you do it will vary - if you want to add the link manually, into the HTML code itself, just open said file in notepad or wordpad and add this line to the location you want it to show up at:

<a href="http://forums.mysuperpc.com/">Forums</a>

save and exit, then replace the exiting file with the new one. Make sure not to delete anything. Make sure to place the above line within the <body> and </body> tags.

OK but the mysuper pc is not my site its a site have as a link so people will go check it out coz its kwl!
My site is my clans site (www.riddlesoflife.com) for Americas Army, I did not design the site or anything like that.
The person that created the site was my co leaders friend who has disappeared so were on our own for the website.
This is the site I want to replace with our old forums:
http://riddlesoflife.informe.com/index.php
We have these really bad forums, that no one likes so we got some phpBB forums!
I'm gonna look to see if I can find that index.HTML
Thanks for the help! :thumb: :D
One time when me was high, me sold me car for like 24 chicken McNuggets. -Ali G
User avatar
YARDofSTUF
Posts: 70006
Joined: Sat Nov 11, 2000 12:00 am
Location: USA

Post by YARDofSTUF »

agustintorre wrote:OK but the mysuper pc is not my site its a site have as a link so people will go check it out coz its kwl!

Thats a relief! That site is not "kwl"

I was gonna tell you to just give up cuz I assumed it was the site in question.


Good luck.
User avatar
TonyT
SG VIP
Posts: 10356
Joined: Fri Jan 28, 2000 12:00 am
Location: Fairfax, VA

Post by TonyT »

use the below to replace the section of source code in your site pages

Code: Select all

<div id="navigation">
<img src="images/navigation.gif" alt="" /><a href="index.php" onclick="doAjax('news', this.href, 0); return false;"><img src="images/home.gif" alt="" /></a><a href="roster.php" onclick="doAjax('news', this.href, 0); return false;"><img src="images/roster.gif" alt="" /></a><a href="forums.php" onclick="doAjax('news', this.href, 0); return false;"><img src="images/forums.gif" alt="" /></a><a href="downloads.php" onclick="doAjax('news', this.href, 0); return false;"><img src="images/downloads.gif" alt="" /></a><a href="links.php" onclick="doAjax('news', this.href, 0); return false;"><img src="images/links.gif" alt="" /></a><a href="matches.php" onclick="doAjax('news', this.href, 0); return false;"><img src="images/matches.gif" alt="" /></a><a href="register.php" onclick="doAjax('news', this.href, 0); return false;"><img src="images/join.gif" alt="" /></a><img src="images/right-nav.gif" alt="" /> <a href="http://riddlesoflife.informe.com/index.php" target="_new" title="Forums">Forums</a>
</div>
No one has any right to force data on you
and command you to believe it or else.
If it is not true for you, it isn't true.

LRH
User avatar
agustintorre
Regular Member
Posts: 446
Joined: Tue Dec 26, 2006 11:57 pm

Post by agustintorre »

TonyT wrote:use the below to replace the section of source code in your site pages

Code: Select all

<div id="navigation">
<img src="images/navigation.gif" alt="" /><a href="index.php" onclick="doAjax('news', this.href, 0); return false;"><img src="images/home.gif" alt="" /></a><a href="roster.php" onclick="doAjax('news', this.href, 0); return false;"><img src="images/roster.gif" alt="" /></a><a href="forums.php" onclick="doAjax('news', this.href, 0); return false;"><img src="images/forums.gif" alt="" /></a><a href="downloads.php" onclick="doAjax('news', this.href, 0); return false;"><img src="images/downloads.gif" alt="" /></a><a href="links.php" onclick="doAjax('news', this.href, 0); return false;"><img src="images/links.gif" alt="" /></a><a href="matches.php" onclick="doAjax('news', this.href, 0); return false;"><img src="images/matches.gif" alt="" /></a><a href="register.php" onclick="doAjax('news', this.href, 0); return false;"><img src="images/join.gif" alt="" /></a><img src="images/right-nav.gif" alt="" /> <a href="http://riddlesoflife.informe.com/index.php" target="_new" title="Forums">Forums</a>
</div>

Ok thanks for giving me the code, but i cant find were i need to nsert it.
I looked fot the index.hm but there is none.
I put a list up of wats in the folder righ ubove your post!
Thanks! :thumb:
One time when me was high, me sold me car for like 24 chicken McNuggets. -Ali G
User avatar
agustintorre
Regular Member
Posts: 446
Joined: Tue Dec 26, 2006 11:57 pm

Post by agustintorre »

any one.................
??
One time when me was high, me sold me car for like 24 chicken McNuggets. -Ali G
User avatar
TonyT
SG VIP
Posts: 10356
Joined: Fri Jan 28, 2000 12:00 am
Location: Fairfax, VA

Post by TonyT »

look in httpdocs dir for:
/OLD/
No one has any right to force data on you
and command you to believe it or else.
If it is not true for you, it isn't true.

LRH
User avatar
morbidpete
Posts: 7283
Joined: Sat Mar 30, 2002 12:00 pm
Location: W. Warwick RI

Post by morbidpete »

index.php
User avatar
morbidpete
Posts: 7283
Joined: Sat Mar 30, 2002 12:00 pm
Location: W. Warwick RI

Post by morbidpete »

you could always just change the url for the forums button. i did it on this one for ya

http://www.morbidpete.com/Personal/inde ... anged .php
User avatar
agustintorre
Regular Member
Posts: 446
Joined: Tue Dec 26, 2006 11:57 pm

Post by agustintorre »

morbidpete wrote:index.php

Ok I looked in there but all it did was take me to the web site:

ftp://riddlesoflife.com/riddlesoflife.c ... /index.php
One time when me was high, me sold me car for like 24 chicken McNuggets. -Ali G
User avatar
agustintorre
Regular Member
Posts: 446
Joined: Tue Dec 26, 2006 11:57 pm

Post by agustintorre »

morbidpete wrote:you could always just change the url for the forums button. i did it on this one for ya

http://www.morbidpete.com/Personal/index[1]forums lik changed .php

Ok so how do I do it then?
I have no idea about this stuff lol.
Thanks!
One time when me was high, me sold me car for like 24 chicken McNuggets. -Ali G
User avatar
agustintorre
Regular Member
Posts: 446
Joined: Tue Dec 26, 2006 11:57 pm

Post by agustintorre »

TonyT wrote:look in httpdocs dir for:
/OLD/

Ive tryied looking in old but still have no idea wut im looking for, tryied index.php but that takes me to the website and it look all wierd.
Thanks! :thumb:
One time when me was high, me sold me car for like 24 chicken McNuggets. -Ali G
User avatar
TonyT
SG VIP
Posts: 10356
Joined: Fri Jan 28, 2000 12:00 am
Location: Fairfax, VA

Post by TonyT »

go here w/ ftp client:
ftp://www.riddlesoflife.com/OLD/
download the file called index.php (DON'T double click the file, drag it to the desktop or rt click & select COPY TO FOLDER and copy to Desktop)
open that file in Notepad
locate the section that looks like this:

Code: Select all

<div id="navigation">
			
			
    <img src="images/navigation.gif" alt="" /><a href="index.php" onclick="doAjax('news', this.href, 0); return false;"><img src="images/home.gif" alt="" /></a><a href="roster.php" onclick="doAjax('news', this.href, 0); return false;"><img src="images/roster.gif" alt="" /></a><a href="forums.php" onclick="doAjax('news', this.href, 0); return false;"><img src="images/forums.gif" alt="" /></a><a href="downloads.php" onclick="doAjax('news', this.href, 0); return false;"><img src="images/downloads.gif" alt="" /></a><a href="links.php" onclick="doAjax('news', this.href, 0); return false;"><img src="images/links.gif" alt="" /></a><a href="matches.php" onclick="doAjax('news', this.href, 0); return false;"><img src="images/matches.gif" alt="" /></a><a href="register.php" onclick="doAjax('news', this.href, 0); return false;"><img src="images/join.gif" alt="" /></a><img src="images/right-nav.gif" alt="" />
    </div>
replace that entire section with this:

Code: Select all

<div id="navigation">
<img src="images/navigation.gif" alt="" /><a href="index.php" onclick="doAjax('news', this.href, 0); return false;"><img src="images/home.gif" alt="" /></a><a href="roster.php" onclick="doAjax('news', this.href, 0); return false;"><img src="images/roster.gif" alt="" /></a><a href="forums.php" onclick="doAjax('news', this.href, 0); return false;"><img src="images/forums.gif" alt="" /></a><a href="downloads.php" onclick="doAjax('news', this.href, 0); return false;"><img src="images/downloads.gif" alt="" /></a><a href="links.php" onclick="doAjax('news', this.href, 0); return false;"><img src="images/links.gif" alt="" /></a><a href="matches.php" onclick="doAjax('news', this.href, 0); return false;"><img src="images/matches.gif" alt="" /></a><a href="register.php" onclick="doAjax('news', this.href, 0); return false;"><img src="images/join.gif" alt="" /></a><img src="images/right-nav.gif" alt="" /> <a href="http://riddlesoflife.informe.com/index.php" target="_new" title="Forums">Forums</a>
</div>
In Notepad, use File Menu > Save
upload index.php back to /OLD/ directory on server (drag file to ftp window)
No one has any right to force data on you
and command you to believe it or else.
If it is not true for you, it isn't true.

LRH
User avatar
agustintorre
Regular Member
Posts: 446
Joined: Tue Dec 26, 2006 11:57 pm

Post by agustintorre »

Also I get this error when i try downloading that file:
Log in request denied.
I am logged as I should be. :confused:
One time when me was high, me sold me car for like 24 chicken McNuggets. -Ali G
User avatar
agustintorre
Regular Member
Posts: 446
Joined: Tue Dec 26, 2006 11:57 pm

Post by agustintorre »

OK I figured it out and downloaded it and opened it with notepad, found the line and entered new line you gave me.
saved it then tried to upload it but it didn't work?
I dragged it and said open file or save file... :confused: :confused:
Thanks for all the help, I really appreciate it!! :rotfl: :nod:
One time when me was high, me sold me car for like 24 chicken McNuggets. -Ali G
User avatar
TonyT
SG VIP
Posts: 10356
Joined: Fri Jan 28, 2000 12:00 am
Location: Fairfax, VA

Post by TonyT »

what program are you using for ftp?
you should really be using a standalone ftp client.
download and install this:
http://www.ftpx.com

note: if use a software firewall then you will have to allow the ftp client to connect when the firewall blocks it.

use this is modified code, not the code above:

Code: Select all

<div id="navigation">
<img src="images/navigation.gif" alt="" /><a href="index.php" onclick="doAjax('news', this.href, 0); return false;"><img src="images/home.gif" alt="" /></a><a href="roster.php" onclick="doAjax('news', this.href, 0); return false;"><img src="images/roster.gif" alt="" /></a><a href="http://riddlesoflife.informe.com/index.php"><img src="images/forums.gif" alt="Forums" /></a><a href="downloads.php" onclick="doAjax('news', this.href, 0); return false;"><img src="images/downloads.gif" alt="" /></a><a href="links.php" onclick="doAjax('news', this.href, 0); return false;"><img src="images/links.gif" alt="" /></a><a href="matches.php" onclick="doAjax('news', this.href, 0); return false;"><img src="images/matches.gif" alt="" /></a><a href="register.php" onclick="doAjax('news', this.href, 0); return false;"><img src="images/join.gif" alt="" /></a><img src="images/right-nav.gif" alt="" />
</div>
No one has any right to force data on you
and command you to believe it or else.
If it is not true for you, it isn't true.

LRH
User avatar
agustintorre
Regular Member
Posts: 446
Joined: Tue Dec 26, 2006 11:57 pm

Post by agustintorre »

well I'm not really using a program, just IE.
I downloaded the program you suggested but I am getting this error when I try connecting to the server:
Connecting to host (206.112.100.132)
! Winsock error: timeout (10035)
! Error connecting to: idex.php
One time when me was high, me sold me car for like 24 chicken McNuggets. -Ali G
User avatar
agustintorre
Regular Member
Posts: 446
Joined: Tue Dec 26, 2006 11:57 pm

Post by agustintorre »

TonyT wrote:what program are you using for ftp?
you should really be using a standalone ftp client.
download and install this:
www.ftpx.com

note: if use a software firewall then you will have to allow the ftp client to connect when the firewall blocks it.

use this is modified code, not the code above:

Code: Select all

<div id="navigation">
<img src="images/navigation.gif" alt="" /><a href="index.php" onclick="doAjax('news', this.href, 0); return false;"><img src="images/home.gif" alt="" /></a><a href="roster.php" onclick="doAjax('news', this.href, 0); return false;"><img src="images/roster.gif" alt="" /></a><a href="http://riddlesoflife.informe.com/index.php"><img src="images/forums.gif" alt="Forums" /></a><a href="downloads.php" onclick="doAjax('news', this.href, 0); return false;"><img src="images/downloads.gif" alt="" /></a><a href="links.php" onclick="doAjax('news', this.href, 0); return false;"><img src="images/links.gif" alt="" /></a><a href="matches.php" onclick="doAjax('news', this.href, 0); return false;"><img src="images/matches.gif" alt="" /></a><a href="register.php" onclick="doAjax('news', this.href, 0); return false;"><img src="images/join.gif" alt="" /></a><img src="images/right-nav.gif" alt="" />
</div>

Ok I got it to work with SmartFTP Cleint 2.0
But when uploading the file to the server it gave me this error:
[05:46:30] PASV
[05:46:31] 227 Entering Passive Mode (75,126,13,200,6,74).
[05:46:31] Opening data connection to 75.126.13.200 Port: 1610
[05:46:31] STOR index.php
[05:46:31] 550 index.php: Access is denied.
[05:46:31] MDTM 20070321124622 index.php
[05:46:31] 550 20070321124622 index.php: The system cannot find the file specified.
[05:46:31] Transfer failed.

Does this mean I do not have to the aothority to do it? :confused: :confused: :confused:
Thanks!
One time when me was high, me sold me car for like 24 chicken McNuggets. -Ali G
User avatar
TonyT
SG VIP
Posts: 10356
Joined: Fri Jan 28, 2000 12:00 am
Location: Fairfax, VA

Post by TonyT »

You do not have permission to overwrite the file, access denied. You need to login ftp with admin privledges.
No one has any right to force data on you
and command you to believe it or else.
If it is not true for you, it isn't true.

LRH
User avatar
agustintorre
Regular Member
Posts: 446
Joined: Tue Dec 26, 2006 11:57 pm

Post by agustintorre »

OK thats what I thought, (I need to speak to co leader and ask him!)
Thanks for all your help thought.
I'm gonna try to get admin rights, coz I'm co leader, LOL of my clan.
Also do you know were U could find a tutorial on this kind of stuff?
Thanks! :D :thumb:
One time when me was high, me sold me car for like 24 chicken McNuggets. -Ali G
User avatar
TonyT
SG VIP
Posts: 10356
Joined: Fri Jan 28, 2000 12:00 am
Location: Fairfax, VA

Post by TonyT »

No one has any right to force data on you
and command you to believe it or else.
If it is not true for you, it isn't true.

LRH
User avatar
agustintorre
Regular Member
Posts: 446
Joined: Tue Dec 26, 2006 11:57 pm

Post by agustintorre »

Thanks
One time when me was high, me sold me car for like 24 chicken McNuggets. -Ali G
Post Reply