Author |
Message |
xGSTQ
Involved


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 |
|
|
|
 |
kguske
Site Admin

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! |
|
|
 |
xGSTQ

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

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

|
Posted:
Sat Jan 20, 2007 5:25 pm |
|
kk thx ill try now !
Ill let you know later |
|
|
|
 |
evaders99
Former Moderator in Good Standing

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! |
|
|
 |
xGSTQ

|
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 ! |
|
|
|
 |
xGSTQ

|
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 ? |
|
|
|
 |
evaders99

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

|
Posted:
Fri Nov 16, 2007 2:18 am |
|
THx Evaders
Ill think ill leave them inside the Modules !! Much easier ... |
|
|
|
 |
|