PDA

View Full Version : Getting CMPS modules into my own scripts..


ChrisHasenpflug
01-17-2006, 12:49 AM
I have been contracted to develop a database application for a website which uses VBulletin and the vBadvanced CMPS. I have my application built, accepting query string inputs, etc. using a very basic template.

Now what I need to do is incorporate this application into their website design. Ideally, what I'd like to do is put some code into a header.php and footer.php files that i'll wrap around my scripts' output. header.php would include logic to get the head and all associated headers, left modules, and start the content block. footer.php would grab the right column modules, footer and close out the html doc. Make sense?

Sure, I could just copy the HTML output from a CMPS page and copy and paste it in, but if I do that, changes in the CMPS shared modules will not take effect automatically, which I'd like to do.

Surely somebody has had to do this?? What's the right way to go about doing this?

Brian
01-17-2006, 04:24 PM
I don't think your method is really going to be feasible. You could just create a new PHP page with the CMPS though and include your file that way.

Our Sponsors
 

ChrisHasenpflug
01-17-2006, 11:22 PM
If I do it that way will the script have access to query string variables??

I've managed to dynamically grab the vbulletin default header & footers, but the cmps modules would be really nice!

KW802
01-18-2006, 09:44 AM
ChrisHasenpflug,

It'd be the other way around, making your PHP script to be a module inside of CMPS. Should be much easier that way.

Our Sponsors
 

ChrisHasenpflug
01-18-2006, 04:18 PM
ChrisHasenpflug,

It'd be the other way around, making your PHP script to be a module inside of CMPS. Should be much easier that way.


Can you provide some input on how to do this?? Additionally will the "module" have access to the query string? As I orginally stated, this is a database application, so accessing the query string is crucial.

Brian
01-19-2006, 05:55 PM
If the script is just one page then you could just create a new PHP file page with the CMPS and then choose that file as the one to include. If it's multiple pages/files though then it's probably not going to be that easy since there's a good chance that vB and your script won't "play well" together.