Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 21 Aug 2002, 22:43
DrkFusion's Avatar
DrkFusion DrkFusion is offline
 
Join Date: Nov 2001
multiple variable includes

like for example in register there is $action, and it says close to the top if $action==(nothing) then action==$signup or something like that.

How would I have 2 variable includes, so action, and page, so if $page and $action== nothing, then by default $page=main will be used, and if action=dostuff, then $page will be ignored...etc

If this is even possible at all, please help, if it isn't, please warn me ahead of time, before I hunt for tutorials.
__________________
ZunePoint.com
Reply With Quote
  #2  
Old 21 Aug 2002, 22:50
NTLDR's Avatar
NTLDR NTLDR is offline
 
Join Date: Apr 2002
Real name: Lee Botley, BSc (Hons)
I think I get what you are asking, you want something along the lines of:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Lee Botley, BSc (Hons) - vBulletin.org Moderator
http://www.thesistersthree.com/lee/sigs/signature.ts3
The Sisters Three Charmed Discussion Forums

WinterDir .:. vBindex v2.1 for vB2 .:. vBindex v3.0.0 RC5 for vB3
Reply With Quote
  #3  
Old 22 Aug 2002, 01:43
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Real name: Mike
Try using:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Last edited by Velocd : 22 Aug 2002 at 01:52.
Reply With Quote
  #4  
Old 23 Aug 2002, 00:22
DrkFusion's Avatar
DrkFusion DrkFusion is offline
 
Join Date: Nov 2001
Thanks for replying.

I want to keep $page and $action seperate, like in Velocd tip,
on the 2nd if, it says
if $action=dostuff, then $page = '';

I think it would be easier if I put it kind of like this, how would I do 2 dynamic variable includes.

Lets pretend
I have an Information Section, Media Section, Reviews Setion, and a Main Section

so, each of them have there own variable
$information
$media
$reviews
$main

I am aiming to do this...
If $information, $media, $reviews have no value, then $main include news.html
Ex: index.php <--When nothing is specified news.html will be loaded where $main is to be invluded

but when its like..
index.php?information=info/bio.html or something similar, then bio.html will load where $inforation is in the php file, and so on.

Sorry that I am bad at explaining.

I want to do something around this line

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
ZunePoint.com
Reply With Quote
  #5  
Old 23 Aug 2002, 02:08
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Real name: Mike
Let me ask this first:
Why are you trying to include an HTML file? Just do whatever your doing in the HTML within a template, and then use dooutput in the index.php file to output the template, when called.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Create a new template called main, then put the stuff you would put in that HTML file in that template. No need to use .html files, when you got vBulletin template system
Reply With Quote
  #6  
Old 23 Aug 2002, 02:25
DrkFusion's Avatar
DrkFusion DrkFusion is offline
 
Join Date: Nov 2001
Well I might be using this later on not with vb
__________________
ZunePoint.com
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 22:47.

Layout Options | Width: Wide Color: