| Author |
Message |
dsnail2000
Site Admin


Joined: Mar 17, 2003
Posts: 331
Location: Northern VA
|
Posted:
Wed Apr 16, 2003 2:09 pm |
  |
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]--> |
|
|
|
    |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Wed Apr 16, 2003 2:55 pm |
  |
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 |
|
    |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Wed Apr 16, 2003 3:02 pm |
  |
OK, I see what's happening. Looks like there's a bug in nuke . 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 ). 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 |
|
    |
 |
dsnail2000
Site Admin


Joined: Mar 17, 2003
Posts: 331
Location: Northern VA
|
Posted:
Wed Apr 16, 2003 9:22 pm |
  |
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? |
|
|
    |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Thu Apr 17, 2003 2:16 am |
  |
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 |
|
    |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Thu Apr 17, 2003 3:30 am |
  |
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 |
|
    |
 |
dsnail2000
Site Admin


Joined: Mar 17, 2003
Posts: 331
Location: Northern VA
|
Posted:
Thu Apr 17, 2003 9:57 am |
  |
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 |
|
|
    |
 |
dsnail2000
Site Admin


Joined: Mar 17, 2003
Posts: 331
Location: Northern VA
|
Posted:
Thu Apr 17, 2003 10:42 am |
  |
I tested it and it's available at nukecops.com's downloads area. Click here to download it directly |
|
|
    |
 |
|
|