Author |
Message |
xGSTQ
Involved
![Involved Involved](modules/Forums/images/ranks/4stars.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Feb 03, 2006
Posts: 269
|
Posted:
Sat Jan 20, 2007 4:19 pm |
|
OMG
lol please dont laugh at me but ive been pulling my hair out all night trying to do this, ive also searched and searched but to no joy !
All im trying to do is link/make a second page in a module from say index.php
to modules/$module_name/pages/page1.php
I just cant get it to link up !
can someone smarter than the average ped help me out ... thx
Ped |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kguske
Site Admin
![](modules/Forums/images/avatars/41f0b40a419280935f3a0.gif)
Joined: Jun 04, 2004
Posts: 6437
|
Posted:
Sat Jan 20, 2007 4:50 pm |
|
Does page1.php have it's own header, footer, etc.? |
_________________ I search, therefore I exist...
Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
xGSTQ
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Jan 20, 2007 5:08 pm |
|
erm well idd like it to include the theme header and footer,
just an
open table
the page contents and then the
close table
same as the index really just a separate page, if you follow that
Thx kguske |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kguske
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Jan 20, 2007 5:20 pm |
|
Make the link something like modules/$name&file=pages/page1.php, though I'm not sure if you can put the directory. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
xGSTQ
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Jan 20, 2007 5:25 pm |
|
kk thx ill try now !
Ill let you know later |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
evaders99
Former Moderator in Good Standing
![](modules/Forums/images/avatars/803d73f6452557b947721.jpg)
Joined: Apr 30, 2004
Posts: 3221
|
Posted:
Sun Jan 21, 2007 1:07 am |
|
Keep everything in the standard
modules/$module_name/ folder
So modules/$module_name/page1.php
Then use modules.php?name=MODULE_NAME&file=page1 |
_________________ - Only registered users can see links on this board! Get registered or login! -
Need help? Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
xGSTQ
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jan 21, 2007 1:59 am |
|
evaders99 wrote: | Keep everything in the standard
modules/$module_name/ folder
So modules/$module_name/page1.php
Then use modules.php?name=MODULE_NAME&file=page1 |
Give that man 20 pints of the finest ale !
Your a star thx worked like a treat ! |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
xGSTQ
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Nov 15, 2007 5:32 am |
|
evaders99 wrote: | Keep everything in the standard
modules/$module_name/ folder
So modules/$module_name/page1.php
Then use modules.php?name=MODULE_NAME&file=page1 |
Can i ask how would i link to a file that is in a folder ?
say
modules/$module_name/files/top.php
how would i link to that ? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
evaders99
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Nov 15, 2007 5:26 pm |
|
The modules.php loader does not support subdirectories. So you will have to either move things to the modules/$module_name/ directory - or just write your code so that the entire modules/$module_name/files/top.php is accessed directly. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
xGSTQ
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Nov 16, 2007 2:18 am |
|
THx Evaders
Ill think ill leave them inside the Modules !! Much easier ... |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|