Armand Posted February 6, 2021 Share Posted February 6, 2021 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. Quote Link to comment https://forums.phpfreaks.com/topic/312102-adapting-a-stivasoft-php-script/ Share on other sites More sharing options...
requinix Posted February 6, 2021 Share Posted February 6, 2021 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? Quote Link to comment https://forums.phpfreaks.com/topic/312102-adapting-a-stivasoft-php-script/#findComment-1584280 Share on other sites More sharing options...
Armand Posted February 7, 2021 Author Share Posted February 7, 2021 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. Quote Link to comment https://forums.phpfreaks.com/topic/312102-adapting-a-stivasoft-php-script/#findComment-1584288 Share on other sites More sharing options...
requinix Posted February 7, 2021 Share Posted February 7, 2021 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. Quote Link to comment https://forums.phpfreaks.com/topic/312102-adapting-a-stivasoft-php-script/#findComment-1584289 Share on other sites More sharing options...
Armand Posted February 7, 2021 Author Share Posted February 7, 2021 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? Quote Link to comment https://forums.phpfreaks.com/topic/312102-adapting-a-stivasoft-php-script/#findComment-1584290 Share on other sites More sharing options...
requinix Posted February 7, 2021 Share Posted February 7, 2021 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. Quote Link to comment https://forums.phpfreaks.com/topic/312102-adapting-a-stivasoft-php-script/#findComment-1584292 Share on other sites More sharing options...
Armand Posted February 7, 2021 Author Share Posted February 7, 2021 Thanks for the feedback. Guess I have dig deeper. Appreciate the guidance. Quote Link to comment https://forums.phpfreaks.com/topic/312102-adapting-a-stivasoft-php-script/#findComment-1584293 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.