By FHC on
How do you modify where a module displays on the page? I have a module which is accessed through drupalinstallation.com/module
and it generates an iFrame within the content div tags of the page. I need to change it to my ads
.
Where can that be changed? What files in a module determine where the content is placed? If it automatically goes to the content div,
is there a method to override?
Here is an example of what I need based on view source (after it has been processed into hypertext):
<div id="ads">
<div class="inner-page">
***************I need the module to place the code HERE instead***************
</div>
</div>
<div id="center">
<div class="inner-page">
<div id="main">
<div id="content">
<div class="clear-block">
<iframe id="forumFrame" src="http://drupalinstallation.com/forum" width="100%" height="100%" frameborder="0" framespacing="0" scrolling="no" allowtransparency="false"><p>Sorry your browser does not work</p></iframe> </div> <<<<<<<<<<< The module generates this code within this DIV tag.
</div>
</div>
Thanks
Comments
This has nothing to do with
This has nothing to do with "Post-install" questions? This has to do with coding specified within a MODULE. Why was this moved?
I'm not talking about moving blocks here, I'm talking about something that's probably in the hooks or other .incs of a MODULE.
Yes it...
..has. VM aint wrong too often
You need:
You can print it out anywhere you want!
Thanks for the reply. Where
Thanks for the reply.
Where is that code supposed to go though? I'm not generating the page, the module is.
I'm not trying to display the module itself in a div... this module is generating the CODE that I need to be
within a specific div.
I dont understand
What you want to do,
Is that page within a page? what's wrong with a PHP include() ?
My apologies. I'm not calling
My apologies. I'm not calling the core forum module within the iframe, I have a custom forum installation at /forum and the core module is turned OFF.
I can see how that could be confusing. I have the module set up to display the custom forum inside an iFrame, it's just the DIV placement of the output
that's giving me trouble.
In the pages.inc the module is set up to print the iframe and arguments of the iframe. I
have tried wrapping the div tags around HTML in the $output of the pages.inc but the iframe inherits
the div instead of appearing inside of the div.
Because of that, it would seem that there is someplace that is preset to print a modules output into
a default place (content), that is what I need to override or change.
The more I mess with it the more it seems like there is no way to do it, haha.
Thanks
Nope
Still don't get it, Sorry!
In my book; a module is a module, but then again....apparently not!
All the module does is some
All the module does is some authentication and then generates an iframe.
In other words, the module is accessed by navigating to drupalinstallation.com/module
It generates the iframe and places it on the page. I am NOT trying to place the MODULE, I'm trying to place it's OUTPUT.
The module works almost exactly like the phpbbforum module.
ok
So the module maps to a path: /module
Try create a php page /test and
Just a guess!
=-=
It was not clear to me that you were building a module, rather asking about how to alter a module. My apologies for moving if you are indeed developing a module.