<?php include('wp-content/theme_name/electric-products.php'); ?>
I should also note there is no php error when I load up the page. Nothing happens at all. But the echo works fine…
]]><IFRAME src="../new/search.php" width="100%" height="400px" frameborder=0 marginheight=0 marginwidth=0><p>Your browser does not support iframes.</p>
</IFRAME>
]]>I use FCKeditor to add text in posts. Now I want to use phpcode in posts and there is a plugin(PHPEXEC) that can do that but when I use this in FCKeditor nothing happens only that the php code is changed into something that is not [php code anymore. is this beacause I use fckeditor? or is there an other way to use php code in a post?
Greetz Renzo
]]>Any help is very much appreciated. I searched on this for a long time and wrote a bunch of shotty loops and PHP code and just can’t seem to get it. Here’s the code I am using right now. Thanks anyone!
<?php $recentPosts = new WP_Query();
$recentPosts->query('cat=12');
while ($recentPosts->have_posts()) : $recentPosts->the_post(); ?>
<h3 class="h1" id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3>
<div class="auth"><span>Posted by <strong><?php the_author_posts_link(); ?></strong></span> on <?php the_time('F j, Y'); ?></div>
<?php global $more; $more = 0; ?>
<?php the_content('Read the rest of this story »'); ?>
<!--Post Meta-->
<div class="post-bottom">
<!--<?php if (function_exists('the_tags')) { ?><strong>Tags: </strong><?php the_tags('', ', ', ''); ?><?php } ?>-->
<div class="cat"><span><?php the_category(', ') ?></span></div>
<div class="clearfix"></div>
</div>
<?php endwhile; ?>
]]>I was putting php code in posts in wordpress using a plugin: execPHP.
Everything was working fine all day. I don’t know what changed, but now, no PHP code is converting. I’ve tried two plugins, execPHP and runPHP, both with the same results.
https://www.pokerjuke.com/?p=928
The entire post of that was written in the regular html (not WYSIWYG).
The posts contents are:
Learn how to correctly use a pushbot chart for late-stage tournament play.
<?php
global $userdata;
get_currentuserinfo();
$userid = $userdata->ID;
echo ('<a href="https://www.pokerjuke.com/buynew.php?subid='.urlencode($userid).'&item=pushbotguide"><span style="color: blue;"><span style="text-decoration: underline;">Pushbot Video Guide</span></span></a>');
?>
The things I fiddled with that could cause this issue:
I unchecked the “Use the visual editor when writing” box in the admin panel.
I changed roles of a user. I know you can set user permissions to who can run php code. The code was written by an admin with access.
That’s about all I did. The only reasonable thing I think that could have caused this is disabling the visual editor. I have checked the box again and tried making new posts but I still get the same problem. Plus, I remember viewing pages after making that change and they were fine.
I don’t remember editing anything at all in between when pages went from working to broken.
I’m very worried that my site is going to need a complete rebuild now Can anyone think of anything that might save me from that?
]]>Any thoughts? Any other plugins that do the same thing that I can use?
]]>I am using:
OpenBSD 3.8
mysql-server-4.0.24p1
php4-core-4.4.0p0
php4-mysql-4.4.0
and
WordPress 2.2.2
With the PHPExec Plugin (the only activated plugin now).
PHP is not executing in posts or pages. I have installed the plugin by the book. I am posting as the admin user. I am using the <phpcode> </phpcode> tag and the <?php ?> tags.
Even the simplest PHP is not running, example:
<phpcode>
<?php
echo "Current date and time: ";
echo date("l dS of F Y h:i:s A");
?>
</phpcode>
Anyone else having trouble? My other WP install (on a OpenBSD 4.1 box) is running fine, I’m stumped.
Ah, looking at the error logs –
[Wed Aug 8 14:42:57 2007] [error] PHP Notice: Use of undefined constant ABSPATH – assumed ‘ABSPATH’ in /htdocs/site/wp/wp-includes/rss-functions.php on line 3
[Wed Aug 8 14:42:57 2007] [error] PHP Notice: Use of undefined constant WPINC – assumed ‘WPINC’ in /htdocs/site/wp/wp-includes/rss-functions.php on line 3
AND
[Wed Aug 8 14:42:57 2007] [error] PHP Fatal error: main(): Failed opening required ‘ABSPATHWPINC/rss.php’ (include_path=’.:/pear/lib:/var/www/pear/lib’) in /htdocs/site/wp/wp-includes/rss-functions.php on line 3
thanks in advance for any light shed,
-Jeff
]]>I have some annoying problems with the textarea in my new tell-a-friend form (https://www.horseornot.com/tell-a-friend/).
The form complains if the user doesn’t fill out all the fields, so in order to improve usability I have added some code preserve field contents when the page reload.
This works perfectly for the input fields, but my textarea behaves a bit strange. When I reload the page, the textarea shows HTML tags in the text. How do I get rid of those HTML tags?
I have tried to my PHP code in a seperate file (https://www.horseornot.com/abe2.php).
Putting the code in a seperate file makes the textarea behave properbly, so I guess the problem is caused by either WordPress of the PHPExec plug-in (https://priyadi.net/archives/2005/03/02/wordpress-php-exec-plugin/).
Thank you, Mads
]]>My provided moved to php cgi and upgraded to MySQL 4.1. Everything is just fine except for the PHP Exec plugin 1.7 on my WP 1.5.2.
After each new post I receive a server 500 Error. If I click back my browser to the previous page, the Write Post page including the new content is still there. Nevertheless the new entry is already posted and shows up okay.
I can post normally after deactivating PHP Exec which is an annoyance because of my php code at the front page.
Any help or idea?
]]>Instead of seeing RSS news items on my page, I now see PHP code. Here’s the PHP code I’m seeing…
<?php include (“https://app.feeddigest.com/digest3/random_letters_here.html”);
?>
Priyadi’s PHPExec plugin says to put
< phpcode > </phpcode> tags around the code you want to execute. So, inside my WordPress page, here’s what I’ve got…
<phpcode>
<?php include (“https://app.feeddigest.com/digest3/random_letters_here.html”);
?>
</phpcode>
Bottom-line: PHPExec is displaying my code, instead of executing it. How do I solve this problem? Anyone else experiencing this?
]]>