Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
xGSTQ
Involved
Involved



Joined: Feb 03, 2006
Posts: 269

PostPosted: Sat Jan 20, 2007 4:19 pm Reply with quote

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
 
View user's profile Send private message Send e-mail
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6432

PostPosted: Sat Jan 20, 2007 4:50 pm Reply with quote

Does page1.php have it's own header, footer, etc.?

_________________
I search, therefore I exist...
nukeSEO - nukeFEED - nukePIE - nukeSPAM - nukeWYSIWYG
 
View user's profile Send private message
xGSTQ







PostPosted: Sat Jan 20, 2007 5:08 pm Reply with quote

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







PostPosted: Sat Jan 20, 2007 5:20 pm Reply with quote

Make the link something like modules/$name&file=pages/page1.php, though I'm not sure if you can put the directory.
 
xGSTQ







PostPosted: Sat Jan 20, 2007 5:25 pm Reply with quote

kk thx ill try now !

Ill let you know later
 
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Sun Jan 21, 2007 1:07 am Reply with quote

Keep everything in the standard
modules/$module_name/ folder

So modules/$module_name/page1.php
Then use modules.php?name=MODULE_NAME&file=page1

_________________
- Star Wars Rebellion Network -

Need help? Nuke Patched Core, Coding Services, Webmaster Services 
View user's profile Send private message Visit poster's website
xGSTQ







PostPosted: Sun Jan 21, 2007 1:59 am Reply with quote

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 ! Very Happy

Your a star thx worked like a treat !
 
xGSTQ







PostPosted: Thu Nov 15, 2007 5:32 am Reply with quote

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







PostPosted: Thu Nov 15, 2007 5:26 pm Reply with quote

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







PostPosted: Fri Nov 16, 2007 2:18 am Reply with quote

THx Evaders

Ill think ill leave them inside the Modules !! Much easier ...
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

View next topic
View previous topic
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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©