Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 101
4 members and 97 guests
cosxtmicorderin, fed3feralgrants, mir9gbiah7bdyiq, yossaphatdobai3
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
tattoo fonts
http://www.checkoutmyink.com/category/tattoo-fonts-tattoo

Go Back   Nukemods Forum > NM Staff > Purged Topics

Reply
 
LinkBack Thread Tools Display Modes
How to: Make link for users to make site their homepage
Old
  (#1 (permalink))
Moderator
 
Status: Offline
Posts: 737
Join Date: Nov 2002
How to: Make link for users to make site their homepage - 01-22-2003, 03:44 PM

Hi,

I thought I saw this somewhere, but can't for the life of me remember where it is. Does anyone know if there is already a hack done, or how create a link for users to click on the site so they can make the site their homepage.

Some of my users have mentioned that it would be a good feature. As I said before I thought I saw it mentioned somewhere but I can't remember where. A search here and a couple other places came up empty.

Thanks any help would be appreciated.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#2 (permalink))
Member
 
Status: Offline
Posts: 359
Join Date: Nov 2002
Location: Michigan, USA
01-22-2003, 04:09 PM

well heres the script:
Code:
<script language="JavaScript1.2">

//configure the two variables below to match yoursite's own info
var bookmarkurl="http://nukemods.com"
var bookmarktitle="Title here"

function addbookmark(){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

</script>
then add a link like this wherever youd like it to appear (probably someplace in your header.html or theme.php)

Bookmark this site!

the only thing im not sure on with nuke is where you would add the scripting, somone can help me with that oat
  Send a message via AIM to ReNeGaDe  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#3 (permalink))
Moderator
 
Status: Offline
Posts: 737
Join Date: Nov 2002
01-22-2003, 04:27 PM

Thanks Renegade

You are da best!

Will that add it to favorites or make it their homepage?
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#4 (permalink))
Senior Member
 
Status: Offline
Posts: 619
Join Date: Oct 2002
Location: Alabama, USA
01-22-2003, 04:45 PM

That will add it to favorites.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#5 (permalink))
Moderator
 
Status: Offline
Posts: 737
Join Date: Nov 2002
01-22-2003, 05:04 PM

Thanks Martin You da best too

What if I change the h ref to something like this?

Code:
<a HREF style="cursor:hand" class="" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.yoursite.com');">Bookmark</a>

The class being the same as the other links in the html file?
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#6 (permalink))
Senior Member
 
Status: Offline
Posts: 619
Join Date: Oct 2002
Location: Alabama, USA
01-22-2003, 05:08 PM

:?:
I'll look at dynamicdrive.com or somewhere to see if they have the script.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#7 (permalink))
Moderator
 
Status: Offline
Posts: 737
Join Date: Nov 2002
01-22-2003, 05:20 PM

Thanks Martin,

I want to add the option for both, I'm still looking too.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#8 (permalink))
Senior Member
 
Status: Offline
Posts: 619
Join Date: Oct 2002
Location: Alabama, USA
01-22-2003, 05:22 PM

Here is one.
Code:
============================================================
Script:     Make This Page Your Homepage Script

Functions:

   In IE 5 and later browsers, clicking the link opens
   the dialog to set the current page as the visitor's
   homepage.  An IE conditional comment prevents the link
   from showing in other browsers that do not support this.

Browsers:   IE 5 and later (degrades gracefully in others)

Author:     etLux
============================================================

Put the following script in the body of your page.

You may set the font with tags within the conditional
comment, as shown.  An image may also be used instead
of the text link shown.

Do *not* remove the comments, and set the url in the
script to your own.


<!--[if IE]>
<font face="Arial" size="3">
<A HREF="#"
onClick="this.style.behavior='url(#default#homepage)';
this.setHomePage('http://www.codelifter.com');">
Make CodeLifter Your Homepage
</a>
</font>
<![endif]-->

============================================================
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#9 (permalink))
Senior Member
 
Status: Offline
Posts: 619
Join Date: Oct 2002
Location: Alabama, USA
01-22-2003, 05:25 PM

Here's another
Code:
<!-- ONE STEP TO INSTALL SET HOMEPAGE LINK:

  1.  Copy the coding into the BODY of your HTML document  -->



<BODY>

<SCRIPT LANGUAGE="JavaScript">




<!-- Begin
// If it's Internet Explorer, use automatic link
// Be sure to change the "http://www.YourWebSiteHere.com\"
// to the URL you want them to bookmark.
if (document.all){
  document.write('<A HREF="javascript:history.go(0);" onClick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://www.YourWebSiteHere.com\');">');
  document.write('<font size="5" color=6699FF face=arial>Click Here to Make My Web Page Your Homepage</font></a>');
}

// If it's Netscape 6, tell user to drag link onto Home button
// Be sure to change the "http://www.YourWebSiteHere.com\"
// to the URL you want them to bookmark.
else if (document.getElementById){
  document.write('Drag this link onto your Home button to make this your Home Page.');
}

// If it's Netscape 4 or lower, give instructions to set Home Page
else if (document.layers){
  document.write('Make this site your home page:
- Go to Preferences in the Edit Menu.
- Choose Navigator from the list on the left.
- Click on the "Use Current Page" button.');
}

// If it's any other browser, for which I don't know the specifications of home paging, display instructions
else {
  document.write('Make this site your home page:
- Go to Preferences in the Edit Menu.
- Choose Navigator from the list on the left.
- Click on the "Use Current Page" button.');
}
//  End -->
</script>



<center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided

by The JavaScript Source</font>
</center>
Allow the visitor to set your site as their homepage with a link. This script works best in Internet Explorer, but also displays the appropriate information based on browser type.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#10 (permalink))
Senior Member
 
Status: Offline
Posts: 619
Join Date: Oct 2002
Location: Alabama, USA
01-22-2003, 05:27 PM

Put the script in the header.html file at the very top.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Clan you make a site for me blockheaded Nuke 7.x - General 1 04-29-2005 12:23 PM
make a module link open target in new window? dephton Nuke 6.5 to 6.9 - Modules 2 06-19-2003 09:53 AM
How do u make a site? Ammo Site design 3 06-08-2003 08:51 AM
make users theme Default.. dfm123 Nuke 6.5 to 6.9 - Modules 1 06-02-2003 05:04 PM
How to: Make it so that admins can load avatars for users IACOJ Purged Topics 4 02-02-2003 06:06 PM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31