A noob question for php nuke how to make a simpel module

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   A noob question for php nuke how to make a simpel module
adapter
CZ Newbie
adapter has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Apr 28, 2005
0.00 posts per day
Posts: 3
Points: 511
   
Hello

First of I want to tank you all @ codezwiz Im using you Menu module and you userinfo moudels the best there is.

And then to my problem. I have posted in 5 diffrent foums in sweden but no one can hlep me. Im a noob in php.

I want to make a small module thats opening a link form mywebsight/hlstats/hlstats.php but when i try its only going in to full screen.

here is the code for my hlstas module


<?php
if (!defined('MODULE_FILE')) {
   die ("You can't access this file directly...");
}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
$index = 0;
$subject = "$sitename "._HLstats."";
header("Location: http://mywebsite/hlstats/hlstats.php");
?>


When I use "header("Location blabla" its opening the link in full sceen. I want it in same plase like when you click forums in a windows on my websigt

Tanks for you help and sorry for my bad englsh


Back to top Reply with quote
#2   re: A noob question for php nuke how to make a simpel module
dkwds
CZ Active Member
dkwds has been a member for over 20 year's 20 Year Member
uk.gif
Occupation: Student
Age: 38
Gender: Male
Website:
Status: Offline
Joined: Jul 29, 2004
0.04 posts per day
Posts: 282
Points: 12,713
   
i think what your after is a block, not a module.
[ Register or login to view links on this board. ]

If your not quite sure copy the code below into notepad

<?php
#### Generated by Block Creator by Disipal Site (www.disipal.net) ###
if (eregi("block-Hits_Stats.php",$PHP_SELF)) {
    Header("Location: index.html");
    die();
}
$content  =  "<a href=\"Page_Address_Here\">Hits Stats</a>";
?>


Replace Page_Address_Here with the link address.
Then save the file as block-Hits_Stats.php

After that upload the file to your blocks folder. Then log in to the admin section of your site and click on blocks.

Then scroll down to the add a new block. In the filename field select Hits Stats, postition, activate and select the other appropriate options and click on create block.

That's it! Hopefully this is what you were after.

There are other ways too but this is one.



_________________
Back to top Reply with quote
#3   
adapter
CZ Newbie
adapter has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Apr 28, 2005
0.00 posts per day
Posts: 3
Points: 511
   
Ok tanks It worked but It allso opend up in a new windows Pleas taka a look.. [ Register or login to view links on this board. ]

In the menu to the left look up Counter-Strike then "Statestik CSS" this open up in a new screen same as the bock you help me to do. You can see the block I made whit you help down to the left. I want hlstats/hlstats.php to show in the same plase like forum is.

And tanks for 4 you time.



Back to top Reply with quote
#4   re: A noob question for php nuke how to make a simpel module
dkwds
CZ Active Member
dkwds has been a member for over 20 year's 20 Year Member
uk.gif
Occupation: Student
Age: 38
Gender: Male
Website:
Status: Offline
Joined: Jul 29, 2004
0.04 posts per day
Posts: 282
Points: 12,713
   
The link opened in the same window for me. Do you want it to open in another window or the same one? Sorry i didn't quite get what you were trying to say in your last post.




_________________
Back to top Reply with quote
#5   Re: re: A noob question for php nuke how to make a simpel mo
adapter
CZ Newbie
adapter has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Apr 28, 2005
0.00 posts per day
Posts: 3
Points: 511
   


Originally posted by dkwds @ Sat Jul 30, 2005 6:54 am:

The link opened in the same window for me. Do you want it to open in another window or the same one? Sorry i didn't quite get what you were trying to say in your last post.


Ok .. This might help.. Image file icon_biggrin.gif




Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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
You cannot attach files in this forum
You cannot download files in this forum