| Author |
Message |
msimonds
Premium


Joined: Jul 11, 2003
Posts: 240
Location: Dallas, Texas
|
Posted:
Sun Aug 10, 2003 7:47 am |
  |
menu like the modules menu . I need to create a block with my own links in it. Is there such a thing!!
Mike |
|
|
        |
 |
msimonds
Premium


Joined: Jul 11, 2003
Posts: 240
Location: Dallas, Texas
|
Posted:
Sun Aug 10, 2003 8:18 am |
  |
I tried this and it works but I cannot remember the command to open this into a new window and how to but the dot next to it. can someone help me, I mean I can put a dot next to it but Not centered
| Quote: |
<center><br><a href="index.php">Home</a><br>
<a href="http://picks.sportsrant.com/signon.php">Weekly Picks</a></center> |
|
|
|
        |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Sun Aug 10, 2003 8:20 am |
  |
Create a folder (example:myModule). Then, in myModule create a file called index.php with code like this
| Code: |
<?php
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
die ("You can't access this file directly...");
}
$module_name = basename(dirname(__FILE__));
$index = 1;
include("header.php");
OpenTable();
echo "<a href=\"http://nukecops.com\">Nuke Cops</a><br />";
echo "<a href=\"http://yahoo.com\">Yahoo</a><br />";
CloseTable();
?> |
Then activate the module. |
_________________ Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff |
|
    |
 |
msimonds
Premium


Joined: Jul 11, 2003
Posts: 240
Location: Dallas, Texas
|
Posted:
Sun Aug 10, 2003 8:29 am |
  |
for a menu??. I want this as a block not a module?? Does that make Since?? |
_________________ Founder
SportsRant.com |
|
        |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Sun Aug 10, 2003 8:35 am |
  |
Create a file called block-myModule.php with this content. Place it in the blocks folder with code like this
| Code: |
<?php
if (eregi("block-myModule.php",$_SERVER[PHP_SELF])) {
Header("Location: ../index.php");
die();
}
$content .= "<a href=\"http://nukecops.com\">Nuke Cops</a><br />";
$content .= "<a href=\"http://yahoo.com\">Yahoo</a><br />";
?> |
Then activate the block. |
_________________ Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff |
|
    |
 |
msimonds
Premium


Joined: Jul 11, 2003
Posts: 240
Location: Dallas, Texas
|
Posted:
Sun Aug 10, 2003 8:39 am |
  |
|
        |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Sun Aug 10, 2003 8:44 am |
  |
I see you also asked how to open it in a new window. That would be like this[code]$content .= "<a href=\"http://nukecops.com\" target=\"_newwin\">Nuke Cops</a><br />"; |
_________________ Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff |
|
    |
 |
|
|