Author |
Message |
prestique
Sergeant


Joined: Sep 16, 2004
Posts: 102
Location: Atlanta, GA
|
Posted:
Fri Sep 17, 2004 3:10 pm |
  |
I created a new module and all I want it to do is point to a different URL. So that when you click on the module "Music Calendar" it takes you to the URL of my Yahoo calendar. Can anyone help? |
|
|
     |
 |
scandicdiscopub
Sergeant


Joined: Oct 20, 2003
Posts: 88
|
Posted:
Fri Sep 17, 2004 3:24 pm |
  |
i dont understand you .
you created a module you say?
it should appear in your modules administration no?
you added it to modules/HERE no |
_________________ All we want is knowledge and if knowledge is power we should be considered dangerous.
http://www.nukeroyal.com|http://www.mexicomiamore.com| |
|
   |
 |
prestique
Sergeant


Joined: Sep 16, 2004
Posts: 102
Location: Atlanta, GA
|
Posted:
Fri Sep 17, 2004 3:34 pm |
  |
yes. and the module shows up in my Modules block, but that's it. i don't know how to make a script that takes you to my Yahoo calendar (http://calendar.yahoo.com/jakelaughlin) when you click on the module that I created called Music Calendar. is that clear? |
|
|
     |
 |
BrainSmashR
Support Mod


Joined: Jan 05, 2004
Posts: 1390
Location: Louisiana, USA
|
Posted:
Fri Sep 17, 2004 3:44 pm |
  |
Off the top of my head I'd say that's set in the index.php you created for the module.
Post your code and let's take a look.... |
_________________

USE THE FORUM. If you contact me via messenger for support I will add you to my ignore list. |
|
       |
 |
scandicdiscopub
Sergeant


Joined: Oct 20, 2003
Posts: 88
|
Posted:
Fri Sep 17, 2004 3:46 pm |
  |
hmm so you created a module you mean just an empty dir or did you actually added a index.php
with code
if not a simple code like this to start with:
Code: |
<?php
// standard stuff
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
die ("You can't access this file directly...");
}
// for the functions to invlude
require_once("mainfile.php");
// our module
$module_name = basename(dirname(__FILE__));
// get our lang
get_lang($module_name);
// show up left blocks 0 is none
$index =1;
//include the header
include('header.php');
// if isnt a user
if (!is_user($user){
//
opentable();//open table
echo "hello visitor";
closetable();//close table function
include('footer.php');// the footer
exit(); //goodbye nothing more for you
}else{
// now it is a user
cookiedecode($user);//get the userinfo if u ewant
$username=$cookie[1];// 0 is user_id
opentable();
echo "<a href=\"mylink\">click me $username</a>";//a link
closetable();//close it
include('footer.php');// the footer
}// close the loop
?>
|
i hope with this its more clear a littlke  |
|
|
   |
 |
prestique
Sergeant


Joined: Sep 16, 2004
Posts: 102
Location: Atlanta, GA
|
Posted:
Fri Sep 17, 2004 3:58 pm |
  |
Don't laugh, but here's what I tried:
<a href="http://calendar.yahoo.com/jakelaughlin"</a>;
Again, I have no idea what I'm doing here.
My site is http://www.jrlaughlin3.com |
|
|
     |
 |
prestique
Sergeant


Joined: Sep 16, 2004
Posts: 102
Location: Atlanta, GA
|
Posted:
Fri Sep 17, 2004 4:02 pm |
  |
Just to make myself clear, when you go to my site and click on Music Calendar in my Main Menu (Modules), I want you to be taken directly to http://calendar.yahoo.com/jakelaughlin
Is this possible from a module? |
|
|
     |
 |
BrainSmashR
Support Mod


Joined: Jan 05, 2004
Posts: 1390
Location: Louisiana, USA
|
Posted:
Fri Sep 17, 2004 4:04 pm |
  |
ok, do you want your users to leave your site (terrible idea) and go to Yahoo or do you want that site to open up inside an iframe with your header and leftside blocks like I have done with google.
http://www.brainsmashr.com/modules.php?name=Google
Code: |
<?php
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
include("header.php");
$index = 0;
OpenTable();
echo"<iframe src=\"http://www.google.com\" name=\"Google\" background=\"#000000\" scrolling=\"yes\" frameborder=\"no\" align=\"right\" height = \"800px\" width = \"100%\">"
. "</iframe>";
CloseTable();
include("footer.php");
?>
|
Edit the iframe source and the name to match your Yahoo info, then save the above code as index.php, then upload to the module directory. |
_________________

USE THE FORUM. If you contact me via messenger for support I will add you to my ignore list. |
|
       |
 |
prestique
Sergeant


Joined: Sep 16, 2004
Posts: 102
Location: Atlanta, GA
|
Posted:
Fri Sep 17, 2004 4:09 pm |
  |
Good idea...i'll give this a try...THANKS! |
|
|
     |
 |
prestique
Sergeant


Joined: Sep 16, 2004
Posts: 102
Location: Atlanta, GA
|
Posted:
Fri Sep 17, 2004 4:14 pm |
  |
dude, YOU ROCK! that works like a charm! thanks a million! |
|
|
     |
 |
BrainSmashR
Support Mod


Joined: Jan 05, 2004
Posts: 1390
Location: Louisiana, USA
|
Posted:
Fri Sep 17, 2004 4:18 pm |
  |
No problem
...and thanx for using Nukecops!! |
_________________

USE THE FORUM. If you contact me via messenger for support I will add you to my ignore list. |
|
       |
 |
scandicdiscopub
Sergeant


Joined: Oct 20, 2003
Posts: 88
|
Posted:
Fri Sep 17, 2004 4:29 pm |
  |
|
   |
 |
prestique
Sergeant


Joined: Sep 16, 2004
Posts: 102
Location: Atlanta, GA
|
Posted:
Fri Sep 17, 2004 4:30 pm |
  |
I have another question for you:
I checked out your site, and I like the way you have a tree-like main menu. How do I go about doing something like that?
Also, I'm not EXACTLY sure what the Content module is used for. Is that just for dedicating separate pages, if you will, for different things? What's the difference between "content" and "modules?" |
|
|
     |
 |
BrainSmashR
Support Mod


Joined: Jan 05, 2004
Posts: 1390
Location: Louisiana, USA
|
Posted:
Fri Sep 17, 2004 4:57 pm |
  |
|
       |
 |
Dave688
Nuke Soldier


Joined: Aug 04, 2004
Posts: 19
|
Posted:
Fri Sep 17, 2004 5:34 pm |
  |
The Sommaire menu ROCKS! I have that on my site as well. You can actually use that to do what you originally posted about. You can set modules up to link to outside sources. I do that with my blog. I just have it open in a new window so people still have my site open in the parent window. |
|
|
   |
 |
|