Use a link for a 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   Use a link for a module
Dauthus
CZ Addict
 Codezwiz Site Donator
Dauthus has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 60
Gender: Male
Website:
Status: Offline
Joined: Mar 17, 2004
0.06 posts per day
Posts: 426
Points: 15,917
   
I didn't quite know how to say this so here is what I am trying to do.

I want to use the forum FAQ link as a module.

In other words, create a folder in the modules directory called Forum_FAQ and then place an index.php file in the folder.

Now in the index.php all I want to happen is for the page to call up the link to the Forum FAQ page. I tired:

<?php
include("http://www.yoursite.com/nuke/modules.php?name=Forums&file=faq");
?>


and this works to some extent. The correct page shows up, and in the proper format, but there are numerous "page header already sent" errors on the page. Any ideas?



_________________
[ Register or login to view links on this board.]
Vivere disce, cogita mori
Back to top Reply with quote
#2   re: Use a link for a module
Dauthus
CZ Addict
 Codezwiz Site Donator
Dauthus has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 60
Gender: Male
Website:
Status: Offline
Joined: Mar 17, 2004
0.06 posts per day
Posts: 426
Points: 15,917
   
Ok, I looked around and got a fix. All I had to do was upload the following text into my htaccess file:

PHP_FLAG output_buffering on


This stopped all the "header information already sent" errors.

So now all I have to do is make an index.php file with the code from the first post in it, and I have a working module to a link.

This sound ok to everyone?



_________________
[ Register or login to view links on this board.]
Vivere disce, cogita mori
Back to top Reply with quote
#3   
JRSweets
CZ Active Member
 Codezwiz Site Donator
JRSweets has been a member for over 20 year's 20 Year Member
usa.gif massachusetts.gif
Age: 43
Gender: Male
Fav. Sports Team: NE Patriots
Website:
Status: Offline
Joined: Apr 07, 2004
0.03 posts per day
Posts: 259
Points: 19,861
  MSN Messenger 
[ Register or login to view links on this board. ]

Look here. I have done this with links on my site. The code I used is posted at that link and its always worked for me.

Let me know how it works.



Back to top Reply with quote
#4   re: Use a link for a module
Dauthus
CZ Addict
 Codezwiz Site Donator
Dauthus has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 60
Gender: Male
Website:
Status: Offline
Joined: Mar 17, 2004
0.06 posts per day
Posts: 426
Points: 15,917
   
After looking at the post, I have a couple of questions.

First, doesn't the link, (when it opens), already call up the header and footer? Why would you do this again? Or, as usual, am I missing something here?

Second, the get_lang would cause an error unless you have a language file in the same directory as the index. I would have to "//" that line out.

Now be nice....I don't profess to know too much about coding. I am mostly learning this stuff by reading what you guys are doing.

By the way...the include I used seems to be working fine also. Is that a good thing or not?




_________________
[ Register or login to view links on this board.]
Vivere disce, cogita mori
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