You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 55 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Make start page code [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
dsnail2000
Site Admin
Site Admin


Joined: Mar 17, 2003
Posts: 331

Location: Northern VA

PostPosted: Wed Apr 16, 2003 2:09 pm Reply with quoteBack to top

Doesn't anybody have a block can make user's start page your site?

I can't get this code to work on a Nuke 6.5 site

Code:
<!--[if IE]>
<font face="Arial" size="3">
<A HREF="#"
onClick="this.style.behavior='url(#default#homepage)';
this.setHomePage('http://www.phunkyministry.com');">
Make PhunkyMinistry.com your Startpage
</A>
</font>
<![endif]-->
Find all posts by dsnail2000View user's profileSend private messageVisit poster's website
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Wed Apr 16, 2003 2:55 pm Reply with quoteBack to top

Is it just not working or is it producing a javascript error or what? It works on my site. How are you trying to add it?

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Wed Apr 16, 2003 3:02 pm Reply with quoteBack to top

OK, I see what's happening. Looks like there's a bug in nuke Crying or Very sad . If you are trying to add the code to a custom inline block, when you paste this code
Code:
<font face="Arial" size="3">
<A HREF="#"
onClick="this.style.behavior='url(#default#homepage)'; this.setHomePage('http://www.phunkyministry.com');"> Make PhunkyMinistry.com your Startpage </A> </font>
nuke is saving it as
Code:
<font face="Arial" size="3">
<A HREF="#"
onClick="this.style.behavior=''url(#default#homepage)''; this.setHomePage(''http://www.phunkyministry.com'');"> Make PhunkyMinistry.com your Startpage </A> </font>
(Notice the single quotes have been translated to 2 single quotes Shocked ). So re-edit the custom code and save the changes. The changes appear to get saved ok.

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
dsnail2000
Site Admin
Site Admin


Joined: Mar 17, 2003
Posts: 331

Location: Northern VA

PostPosted: Wed Apr 16, 2003 9:22 pm Reply with quoteBack to top

I'm copying the code into the custom block box in the blocks admin. It still doesn't work. What would the code be to make it a block file in the blocks folder.

Code:
<center><A class="chlnk" HREF="#"
onClick="this.style.behavior="url(#default#homepage)"; this.setHomePage("http://www.phunkyministry.com");"> Make PhunkyMinistry.com your Startpage </A><center>


This is what is supposed to work. Can this be made into a block?
Find all posts by dsnail2000View user's profileSend private messageVisit poster's website
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Thu Apr 17, 2003 2:16 am Reply with quoteBack to top

Please follow my instructions up above. It may take 2 edits, but that's what's happening. Copy and paste that original code directly into the block. Save it. You should get a javascript error. that's because the single quotes got converted to 2 single quotes. Change those back to one single quote, then save. If you get another javascript error, just correct it one more time. That should do it.

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Thu Apr 17, 2003 3:30 am Reply with quoteBack to top

Here would be the block code if you prefer to do it this way.
Code:
<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System                                          */
/* ===========================                                          */
/*                                                                      */
/* Copyright (c) 2002 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/

if (eregi("block-make_homepage.php",$_SERVER['PHP_SELF'])) {
    Header("Location: index.php");
    die();
}

$content = "<!--[if IE]><font face=\"Arial\" size=\"3\"><A HREF=\"#\" onClick=\"this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.phunkyministry.com');\"> Make PhunkyMinistry.com your Startpage </A></font><![endif]-->";
?>

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
dsnail2000
Site Admin
Site Admin


Joined: Mar 17, 2003
Posts: 331

Location: Northern VA

PostPosted: Thu Apr 17, 2003 9:57 am Reply with quoteBack to top

Hey Raven,

Thanks moving it to a block. It worked great.

I then went ahead and added global variables to it to make the code work with any site without manually having to change the code.

I am in the process of adding comments to it and giving proper credit where it's due. (Yes, you are in the credits)

Thanks much and I will post a link to it as soon as I get it up!

-David
Find all posts by dsnail2000View user's profileSend private messageVisit poster's website
dsnail2000
Site Admin
Site Admin


Joined: Mar 17, 2003
Posts: 331

Location: Northern VA

PostPosted: Thu Apr 17, 2003 10:42 am Reply with quoteBack to top

I tested it and it's available at nukecops.com's downloads area. Click here to download it directly
Find all posts by dsnail2000View user's profileSend private messageVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.530 Seconds - 417 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::