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, 307 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Creating a new module [ ]
 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
prestique
Sergeant
Sergeant


Joined: Sep 16, 2004
Posts: 102

Location: Atlanta, GA

PostPosted: Fri Sep 17, 2004 3:10 pm Reply with quoteBack to top

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?
Find all posts by prestiqueView user's profileSend private messageVisit poster's websiteAIM Address
scandicdiscopub
Sergeant
Sergeant


Joined: Oct 20, 2003
Posts: 88


PostPosted: Fri Sep 17, 2004 3:24 pm Reply with quoteBack to top

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|
Find all posts by scandicdiscopubView user's profileSend private message
prestique
Sergeant
Sergeant


Joined: Sep 16, 2004
Posts: 102

Location: Atlanta, GA

PostPosted: Fri Sep 17, 2004 3:34 pm Reply with quoteBack to top

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?
Find all posts by prestiqueView user's profileSend private messageVisit poster's websiteAIM Address
BrainSmashR
Support Mod
Support Mod


Joined: Jan 05, 2004
Posts: 1390

Location: Louisiana, USA

PostPosted: Fri Sep 17, 2004 3:44 pm Reply with quoteBack to top

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....

_________________
ImageImage
USE THE FORUM. If you contact me via messenger for support I will add you to my ignore list.
Find all posts by BrainSmashRView user's profileSend private messageVisit poster's websiteYahoo MessengerMSN MessengerICQ Number
scandicdiscopub
Sergeant
Sergeant


Joined: Oct 20, 2003
Posts: 88


PostPosted: Fri Sep 17, 2004 3:46 pm Reply with quoteBack to top

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 Smile
Find all posts by scandicdiscopubView user's profileSend private message
prestique
Sergeant
Sergeant


Joined: Sep 16, 2004
Posts: 102

Location: Atlanta, GA

PostPosted: Fri Sep 17, 2004 3:58 pm Reply with quoteBack to top

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
Find all posts by prestiqueView user's profileSend private messageVisit poster's websiteAIM Address
prestique
Sergeant
Sergeant


Joined: Sep 16, 2004
Posts: 102

Location: Atlanta, GA

PostPosted: Fri Sep 17, 2004 4:02 pm Reply with quoteBack to top

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?
Find all posts by prestiqueView user's profileSend private messageVisit poster's websiteAIM Address
BrainSmashR
Support Mod
Support Mod


Joined: Jan 05, 2004
Posts: 1390

Location: Louisiana, USA

PostPosted: Fri Sep 17, 2004 4:04 pm Reply with quoteBack to top

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.

_________________
ImageImage
USE THE FORUM. If you contact me via messenger for support I will add you to my ignore list.
Find all posts by BrainSmashRView user's profileSend private messageVisit poster's websiteYahoo MessengerMSN MessengerICQ Number
prestique
Sergeant
Sergeant


Joined: Sep 16, 2004
Posts: 102

Location: Atlanta, GA

PostPosted: Fri Sep 17, 2004 4:09 pm Reply with quoteBack to top

Good idea...i'll give this a try...THANKS!
Find all posts by prestiqueView user's profileSend private messageVisit poster's websiteAIM Address
prestique
Sergeant
Sergeant


Joined: Sep 16, 2004
Posts: 102

Location: Atlanta, GA

PostPosted: Fri Sep 17, 2004 4:14 pm Reply with quoteBack to top

dude, YOU ROCK! that works like a charm! thanks a million!
Find all posts by prestiqueView user's profileSend private messageVisit poster's websiteAIM Address
BrainSmashR
Support Mod
Support Mod


Joined: Jan 05, 2004
Posts: 1390

Location: Louisiana, USA

PostPosted: Fri Sep 17, 2004 4:18 pm Reply with quoteBack to top

No problem

...and thanx for using Nukecops!!

_________________
ImageImage
USE THE FORUM. If you contact me via messenger for support I will add you to my ignore list.
Find all posts by BrainSmashRView user's profileSend private messageVisit poster's websiteYahoo MessengerMSN MessengerICQ Number
scandicdiscopub
Sergeant
Sergeant


Joined: Oct 20, 2003
Posts: 88


PostPosted: Fri Sep 17, 2004 4:29 pm Reply with quoteBack to top

ups i was busy and forgot happy it worked out for yah

_________________
All we want is knowledge and if knowledge is power we should be considered dangerous.

http://www.nukeroyal.com|http://www.mexicomiamore.com|
Find all posts by scandicdiscopubView user's profileSend private message
prestique
Sergeant
Sergeant


Joined: Sep 16, 2004
Posts: 102

Location: Atlanta, GA

PostPosted: Fri Sep 17, 2004 4:30 pm Reply with quoteBack to top

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?"
Find all posts by prestiqueView user's profileSend private messageVisit poster's websiteAIM Address
BrainSmashR
Support Mod
Support Mod


Joined: Jan 05, 2004
Posts: 1390

Location: Louisiana, USA

PostPosted: Fri Sep 17, 2004 4:57 pm Reply with quoteBack to top

My main menu is created with the Sommaire add-on.

http://nukecops.com/modules.php?name=Downloads&d_op=search&query=sommaire

_________________
ImageImage
USE THE FORUM. If you contact me via messenger for support I will add you to my ignore list.
Find all posts by BrainSmashRView user's profileSend private messageVisit poster's websiteYahoo MessengerMSN MessengerICQ Number
Dave688
Nuke Soldier
Nuke Soldier


Joined: Aug 04, 2004
Posts: 19


PostPosted: Fri Sep 17, 2004 5:34 pm Reply with quoteBack to top

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.
Find all posts by Dave688View user's profileSend private message
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 - TUTTISU E-COMMERCE http://www.tuttisu.it
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.217 Seconds - 229 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::