Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 09 May 2007, 15:41
DarkWolf74 DarkWolf74 is offline
 
Join Date: Mar 2007
Question Help with misc.php, passing vars?

Ok, so here is my Q..

I want to do /misc.php?template=Blah&var1=this&var2=that and to be able to use the var1/var2 info inside the template. Is there a way to do it because I have yet to be able to pinpoint how.


Now for the more complex question linked to the var1 var2 above..

Is there a way to include a file into the template based on the above vars, such as...

<?php include '/some/dir/[var1].txt'; ?>

I'd like an answer to either of the above, both if possible.
Reply With Quote
  #2  
Old 09 May 2007, 16:24
WetWired's Avatar
WetWired WetWired is offline
 
Join Date: Jun 2002
Use $_REQUEST[var1] and $_REQUEST[var2]

No, you cannot include external files in templates. You must write a mod in order to use external files.
Reply With Quote
  #3  
Old 10 May 2007, 11:07
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Real name: Hanson
Remember to clean your input variables before using them!
__________________
Former vBulletin.org Staff Member

View My Modifications
29 Releases and Counting... Latest Modification: dmActivityStream - vBookie Integration (4.x)

Please do not PM me to ask for support - please use the relevant thread or forum.
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
900+ Misc. Avatars SaintDog vBulletin Avatar Sets 46 02 Oct 2011 21:19



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 20:21.

Layout Options | Width: Wide Color: