Jamen dog! Hvor er det JavaScript henne?
Din browser understøtter ikke JavaScript eller har ikke understøttelsen slået til. Slå JavaScript til i din browser for at se denne side ordentligt, eller opgrader til en browser, der understøtter JavaScript.
Besøgende online nu
Gæster online 10
Brugere online 0

Antal brugere: 181
Nyeste bruger: Snif45

Panel Code Needed

Sidst opdateret den 3 år siden
A
afosterBruger
Skrevet d. 3 år siden
Jeg har forsøgt at oprette et panel, der vil trække oplysninger fra en kalender i en anden mappe og vise en liste over kommende begivenheder i et panel. Jeg kan ikke synes at regne ud, hvordan du indtaster koden for at få dette til at ske. Dette er hvad jeg har forsøgt at gøre.

openside('Side block');
?>

<!-- html code goes here -->
require("http://domainname.com/calendar/display03.php");

<?php
closeside();


Det virker ikke. Enhver hjælp ville blive meget værdsat.
Redigeret af afoster d. 13-04-2019 06:05, 3 år siden
F
fljFusioneer
Skrevet d. 3 år siden
Most servers do not allow the use include/require across domains, as it represents a security issue. If allowed, allow_url_include should be set in php.ini configuration file.

But you can achieve the same using for example:
<?php
openside('Side block');
echo(file_get_contents('http://www.domainname.com/calendar/display03.php'));
closeside();
?>
A
afosterBruger
Skrevet d. 3 år siden
Thanks for your response, but unfortunately it is still not displaying the information from the file. I just get a blank panel. I guess it can't be done.
F
fljFusioneer
Skrevet d. 3 år siden
If it does NOT work, the error is to be found another place. It’s standard and it works.
A
afosterBruger
Skrevet d. 3 år siden
I'm trying to do this on version 8.00.21...do you think that has something to do with it because all I get is a blank panel. Where else should I look for the error. If I enter the url I want displayed out of php-fusion, it works fine so the url is correct.
F
fljFusioneer
Skrevet d. 3 år siden
I don't know. It's hard to say without insight.

I would start putting the file_get_contents line in a separate new php file, and test it here. If this does work it's something with the remaining code or phpfusion.
A
afosterBruger
Skrevet d. 3 år siden
I think I found the problem...my webhost has disabled allow_url_fopen=0 in the configuration and I don't believe I have access to the php.ini file to fix it. Perhaps I can get it done through the wrapper infusion and display it that way, although I wanted it to be visible to the user as soon as they get to the home page without having to click on a link. If you have any suggestions on doing that, I would appreciate any input.
F
fljFusioneer
Skrevet d. 3 år siden
you can also use curl or maybe an old school html <iframe>
Du kan se alle diskussionstråde i dette debatforum.
Du kan ikke starte en ny diskussionstråd i dette debatforum.
Du kan ikke svare i denne diskussionstråd.
Du kan ikke påbegynde en afstemning i dette debatforum.
Du kan ikke vedhæfte downloads i dette debatforum.
Du kan ikke vedhæfte downloads i dette debatforum.
Log ind
Er du endnu ikke registreret bruger? Klik her for at oprette dig.
Glemt kodeord?