Jump to content

Adapting a Stivasoft PhP script


Armand
 Share

Recommended Posts

I purchased a PHP script and installed it and it works fine on my vacation rental website.  It shows an availability calendar on the page pulled from the script.  The webpage has to be a PHP page in order to work.

In the html, I put

<?php
ob_start();
$PJ_LISTING_ID = 2;
?>
At the beginning of the page,

 {VRL_CALENDAR}  where I want the calendar to appear on the page

and end the page with

<?php include '/home/breakers/public_html/script2/app/views/pjLayouts/pjActionAvailCalendar.php'; ?> 

Question:  Is there a way to display this calendar on an html page (not php) using iFrame?

 

Any answers would be appreciated.

Link to comment
Share on other sites

If it's made to show inside an iframe then that probably means it comes as a complete HTML webpage and not simply some embeddable markup. Maybe there's some sort of configuration somewhere to enable the behavior you want? Because if not then that would mean you'd have to start making changes to it yourself.

Is there a problem with using iframes?

Link to comment
Share on other sites

I'm not using iframe now but want to.  It only works on a php page now but I'm trying to figure out how to do it so I can have an html page with that php code embedded.  I'm feeling now that it is not possible.

Link to comment
Share on other sites

Oh, yeah, you're right, I read it backwards.

If you can make a PHP page that shows the calendar then you can put the URL to that page inside an iframe. Not really sure what the difficulty is here.

Link to comment
Share on other sites

I'm sure the difficulty is with my lack of knowledge. 

Of course there are a number of listings in the script and I need to add the listing number somewhere.  On the Php page, I start with 

<?php
ob_start();
$PJ_LISTING_ID = 2;
?>

Then all I have to do is put  {VRL_CALENDAR}  where I want the calendar to go and end the html with

<?php include '/home/breakers/public_html/script2/app/views/pjLayouts/pjActionAvailCalendar.php'; ?> 

I guess I don't know how to put all three parts above into the iframe

When I put  http://surfsidecottages.com/script2/app/views/pjLayouts/pjActionAvailCalendar.php/  in an iframe, I get nothing.

 

What am I doing wrong?

Link to comment
Share on other sites

That {VRL_CALENDAR} thing looks like it's part of some templating language. You're either going to have to work with that, or find out what that thing does and make it happen yourself directly. For example, if that thing results in calling a function, you would just call that function yourself instead.

Keep in mind that you're asking questions about something nobody here knows anything about. Don't know your website, don't know your application, don't know your framework, don't know the calendar... You are going to have to do research and work here.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.