Ich habe es mal weiterprobiert:
Ich hab mir das php-plugin besorgt, allerdings gibt es probleme weil die seite auf viele variablen zurückgreifen will und die nicht angezeigt werden können.
dazu steht auch was auf der seite des plugin authors:
[size=10]Why does my included PHP script spits out parsing errors?[/SIZE]
[size=10]Assume your included code is working outside a post and the path to the include file is correct. PHP may still spit out error messages even if everything seems to be correct. This can happen when your included file assumes it runs on global level and does not use the keyword global to mark its global variables. As example create a new post or page with the following code:[/SIZE]
[size=10]<?php include('test.php'); ?>[/SIZE] [size=10]After that copy the following code into a new file named test.php:[/SIZE]
[size=10]<?php
$g_text = 'Hello World';
function hello()
{
global $g_text;
echo $g_text;
}
?>[/SIZE] [size=10]Your test will end up in unexpected behaviour because assigning a value to the $g_text variable hasn’t taken place in global scope in terms of the used Wordpress hook to execute your code. This is because of how Wordpress works and there is no way to handle this in the plugin. You can work around this problem by adding the following PHP code into your post before the include statement or into the file you want to include at the very beginning:[/SIZE]
[size=10]global $g_text;[/SIZE] [size=10]No need to say, you have to do this for each global variable where this wasn’t already done by the original programmer of the code. Another way would be to contact the original programmer and kindly ask him to change his code.
[/SIZE]
[size=10][/SIZE]
[size=10]
Das macht natürlich alles viel komplizierter, und ich muss zugeben das ich keine Ahnung hab wie das jetzt genau geht in meinem fall.
Eventuell hat ja jemand von Euch Ahnung davon und kann mir sagen was ich ändern müsste.
[/SIZE]