[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 228
  • Last Modified:

php app to WP template

I have a small stand alone app which allows people to log in to look at reports for a logging setup that we have. It is unrelated to wp in any way but recently, a few people asked why we don't have this app as part of a wordpress installation.

That lead me to trying a little test by taking one of the existing php pages, sticking a 'template' name in it then referring to it from a page. Low and behold, it shows up almost like the stand alone page but now it's part of WP. Mind, the rest of the wordpress site disappears but that is probably just a little ccs work or something I don't know about which I need to put in the php page.

The test lead me to wanting to find out what it would take to convert the small php app into a wordpress one but my problem is, I have no idea what terminology any of this uses.

So, if I wanted this small stand alone app to be converted this way, what would this be called?

Is it a php top wordpress conversion?
Is it a template project? Is it one template or one for every single page of the app?

I need some starting points so that I can research what would be needed to accomplish this.

Thanks.
0
projects
Asked:
projects
  • 6
  • 4
  • 2
  • +1
2 Solutions
 
Jason C. LevineNo oneCommented:
Can you take another shot at explaining "convert a small app to a wordpress one" ?  I'm confused as to what you want us to answer.

Generally speaking  you can do one of three things with your own code:

1) embed it in a page template (sounds like you did this)

2) add it to functions.php or as a class and call it as a function in other things

3) create a plugin based on it

Which one(s) do you want advice on?
0
 
GaryCommented:
A few people - out of how many?

Jason will probably disagree with me but...
If you already have a working site I cannot see a reason for changing it to WP.
You are just adding unnecessary overhead and administration
0
 
Jason C. LevineNo oneCommented:
You are just adding unnecessary overhead and administration

Potentially.  There are valid reasons to take a stand alone site and wrap WP around it...
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
projectsAuthor Commented:
@Jason;
I don't know the terms well enough to properly answer but I'll try.

I took an existing page from the stand alone php application. It is a registration page which allows employees to sign up to something.

I added a template name inside of the php page and I edited it's functions path to reflect the change.
I created a page in wp and used the template option to use a different template for that page, picking the template I just created.
Then I added that page into a menu, clicked on it and the php registration page showed up.

My question is asking about terminology and a little info in terms of adding more of the php pages from my stand alone application.

One, would I need to create a 'page' in the admin section of WP along with a template page for each of my php pages or how is this done?

Two, what are the terms used to describe my wanting to integrate my small app into wp, so that it becomes a part of wp, just as I've had programmers add template pages for other things into wp.

@Gary;
Mainly, it is because the app needs to be fixed up anyhow so rather than spending money on it as it is, some would like to see it become part of WP so that it can become more useful. Having it integrated into wp means folks could use wp to share information, details, etc without having to add all of that into the stand alone app which has nothing of that.
0
 
GaryCommented:
If it needs 'redoing' then yes it could be good point to look at WP.
But WP is not a one for all software, you will still need to write all the code to do what you want to do - development time will be considerably increased compared to if you were doing it against your own code.

I'll leave this with Jason as he is the go-to guy for WP
0
 
projectsAuthor Commented:
@Gary; I don't know because I had a template built for something else and it didn't seem to be that complicated.
Also, the little test I tried seems to imply that this would be pretty easy for someone who knows how to do it of course.

At the moment, I don't know if the php pages all get converted or if they all need to be rebuilt as individual template pages, etc etc.
My post is asking for information on how to convey this task to someone who would know how to do that, not so much if it's worth the effort or not at this point at least.
0
 
Ray PaseurCommented:
No points for this, please, but please, please consider hiring a professional WP developer.  Aaron Brazell is good (Google him) and Jason Levine is good (engage with him here). This is the kind of thing that could take you a long time and result in suboptimal outcomes.  Or it could take a little time, a little money, and achieve a very good result.
0
 
projectsAuthor Commented:
@Ray; Thanks for the input but I am not talking about doing it myself. I am asking for help with terminology in order to talk with someone who does know this.

As you have seen in my many posts on this site lately, I am having to take on a lot of territory which isn't mine and my main problem is conveying the things I need to explain to people.

This post is asking for help on terminology, not programming.
0
 
Jason C. LevineNo oneCommented:
One, would I need to create a 'page' in the admin section of WP along with a template page for each of my php pages or how is this done?

You could create a page template matching each of your old PHP files and just pass data from one to the next.  That works, but it's a little cumbersome and slightly inelegant.  

I would instead combine your scripts into one large script, declaring areas as functions where needed and just keep posting to the same page.  Depending on what gets posted, you return different values.  If you are unfamiliar with building applications this way, talk to Ray.

Two, what are the terms used to describe my wanting to integrate my small app into wp, so that it becomes a part of wp, just as I've had programmers add template pages for other things into wp.

Since you want to do your own research, try these as a starting point:

https://www.google.com/search?q=add+custom+php+code+to+wordpress

https://www.google.com/search?q=creating+a+wordpress+plugin+from+scratch

Those should give you enough of a basic grounding to engage with a developer and understand what is being proposed.  Let me know if I'm still misinterpreting your request...

I'll leave this with Jason as he is the go-to guy for WP on EE

FTFY :)

Mind, the rest of the wordpress site disappears

What does this mean, exactly?
0
 
projectsAuthor Commented:
>Mind, the rest of the wordpress site disappears

I'm doing too many things at once so I'm rushing between postings, messages, code, scripts, too much things.

Anyhow, it's partly typo but it meant that when I called up the template test page I created, it wasn't 'wrapped' by wp, it just came up on it's own, as if I was running the app stand alone. Anything WP just didn't show up.
0
 
Jason C. LevineNo oneCommented:
I'm doing too many things at once so I'm rushing between postings, messages, code, scripts, too much things.

Unsolicted suggestion:

Slow down and break up issues into multiple questions here.  Helps to stay organized.

I called up the template test page I created, it wasn't 'wrapped' by wp, it just came up on it's own

Can you post the custom template code here?  Redact any sensitive things that relate to your app.
0
 
projectsAuthor Commented:
I'm sorry that I cannot post it fully but it is a canvasjs based report to show ping times and network disconnections from another task I am working on.

Because it's not my code, I am not allowed to simply post everything in their entirety which unfortunately makes it much more difficult to get help.

I hired a programmer to build me a basic template so that we could output the reports to a graph inside of WP. That is why I got to testing the php page just to see what might happen.

As for slowing down, yes, I'd love to. I think my life has been shortened by stress over the past 7 months but thanks to this site and a few other things I am doing such as hiring a little here and there, things are coming together, just much too slowly.
0
 
projectsAuthor Commented:
Let's just split this and call it done :)

I was able to hire someone to rebuild the app into wp for a very reasonable price. The only other question I had was about using templates and that question is now closed also.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 6
  • 4
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now