Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 11 Dec 2011, 22:40
davis31b davis31b is offline
 
Join Date: Feb 2006
Real name: Mark
Question Including a webpage into another PHP file - NEED HELP!

I have tried every possible combination of trying to get this done and have got close, but it still isn't working correctly.

What I want to do is include my auction site, which can be viewed here: http://www.generalaviationonline.com/auction/ into a separate PHP file that I have created that was integrated into the navbar mod & used the How to create your own VB page article.

So my file, which is auction.php contains the following code:


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

While this is the closest code (which is highlighted in red) that I have been able to use to somewhat do what I want, when it outputs the auction site, it doesn't load it in between: vb:raw navbar & vb:raw footer, instead it displays it at the very top of the page (see attachment photo) and it doesn't even load all the images.

Any ideas what I need to do? I would even pay someone to help me fix it. Thanks!
Attached Images
File Type: jpg auction.jpg (113.4 KB, 15 views)
Reply With Quote
  #2  
Old 11 Dec 2011, 22:51
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Two things, why not just put the code into the page instead of this line:

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

And secondly, you cannot use echo when spitting out something to a template. You need to assign the output to a variable and then spit out the variable in the template.


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

__________________
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #3  
Old 11 Dec 2011, 23:40
davis31b davis31b is offline
 
Join Date: Feb 2006
Real name: Mark
I didn't think about placing the code directly in the php file. Where do you feel is a good place for the code? Where I had the echo command?

And the second part is over my skill level. Thanks for the quick input.

Here is the code from my index file for the auction site, I know that I will need to add "auction/" in front of most of the directories so that it will be able to find it, but I will probably need a little help combining both php files, if someone could help me, I would be indebted to you!


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


Last edited by davis31b : 12 Dec 2011 at 00:06.
Reply With Quote
  #4  
Old 12 Dec 2011, 04:33
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
I basically wrote the second part of the code for you. Cellarius wrote a really good article that you may be interested in - [vB4] Rendering templates and registering variables - a short guide That will help you understand that part of the code.

I would still not do it your way. I'd just include the code in the php file instead of in an outsite file, but that is up to you.
__________________
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #5  
Old 13 Dec 2011, 07:20
davis31b davis31b is offline
 
Join Date: Feb 2006
Real name: Mark
Originally Posted by Lynne View Post
Two things, why not just put the code into the page instead of this line:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
Okay, I tried this.. not working, I just want to pay someone!
Reply With Quote
  #6  
Old 13 Dec 2011, 16:48
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
You are welcome to post in the Requests For Paid Services if that is what you want.
__________________
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #7  
Old 15 Dec 2011, 07:30
davis31b davis31b is offline
 
Join Date: Feb 2006
Real name: Mark
I have posted this in the PAID services area and am looking for a design similar to this screenshot I edited:

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 10:49.

Layout Options | Width: Wide Color: