xerocool
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Need to improve menu[quote]You can check out my menu at https://basketball2k.com it’s expandable/collapsible drop-a-note if you want to know how to do it.[/quote]
Can u tell me how to do it please?Forum: Themes and Templates
In reply to: Need to improve menua table…Ever heard of one?…
I want a table around the sidebar.Forum: Themes and Templates
In reply to: Need to improve menuOk. so found the code and was wondering if you knew how to convert the sidebar to a whole table..
Forum: Themes and Templates
In reply to: Need to improve menuIght, I’ll check it out. Thanks.
Forum: Fixing WordPress
In reply to: Problems with CSSWow, I don’t like the background…It makes the text look weird.
Forum: Fixing WordPress
In reply to: Php in posts…*Bump*
okForum: Fixing WordPress
In reply to: Php in posts…Then it comes out as in bold:
include(“wp-usen.php”);Forum: Fixing WordPress
In reply to: Php in posts…Tried this:
< phpcode >include(“wp-user.php”; )</ phpcode > And it comes out in bold:
include(“wp-usen.php”; )Forum: Fixing WordPress
In reply to: Php in posts…Yep.
I inserted: < phpcode ><?php include (“wp-user.php”); ?></ phpcode >Forum: Fixing WordPress
In reply to: Php in posts…I tried inserting this:
<phpcode>< ?php include (“wp-user.php”) ; ?></phpcode>
So it comes out in the post as:
< ?php include (“wp-usen.php”) ; ?>
When i end it, It comes out as:
<phpcode>< ?php include (“wp-user.php”) ; ?></></phpcode>
WTF?Forum: Fixing WordPress
In reply to: Php in posts…Can you do it please? I suck @ doing it ??
Forum: Fixing WordPress
In reply to: Php in posts…Ok. So i added this code:
<?php
function run_phpinpost($data) { $PHPTag = “phpcode”; $data = str_replace(array(“rn”,”r”), “n”, $data); while (false !== strpos($data, “< “.$PHPTag .”>”)) { $Before= substr($data, 0, strpos($data, “< “.$PHPTag.”>”)); $After = substr($data, strpos($data, “</>”)+(strlen($PHPTag)+3)); $Evaluate = substr($data, strpos($data, “< “.$PHPTag.”>”)+(strlen($PHPTag)+2)); $Evaluate = substr($Evaluate,0,strpos($Evaluate, “</>”)-1); $Evaluate = str_replace(array(“’”,”‘”),”‘”, $Evaluate); $Evaluate = str_replace(array(“””,”“”),'”‘, $Evaluate); ob_start(); // run that data and grab what comes out eval($Evaluate); $data = $Before.ob_get_clean().$After; } // end of while return $data; } // end of run_phpinpost
add_filter(‘the_content’, ‘run_phpinpost’);
// To add compatibility with earlier PHP version…(before 4.3.0)
if (!function_exists(“ob_get_clean”)) {
function ob_get_clean() { $ob_contents = ob_get_contents(); ob_end_clean(); return $ob_contents; }
}
?>
And get this now:
Parse error: parse error, unexpected $ in /home/xero1/public_html/my-hacks.php on line 12Forum: Fixing WordPress
In reply to: Php in posts…Gonna try now ;).
Forum: Fixing WordPress
In reply to: Php in posts…Yeh…Heres the problem:
For Marks Hack (https://mark.scottishclimbs.com/archives/2004/07/02/running-php-in-wordpress-posts/), I get this error:
Warning: Cannot modify header information – headers already sent by (output started at /home/xero1/public_html/wp-content/plugins/runphp.php:46) in /home/xero1/public_html/wp-admin/post.php on line 342
In the comments, It said not to have no space after ending ?>. I made sure i didn’t and i still get the error. For this plugin (https://blog.idahocline.com/index.php/archives/2004/05/27/php-tag-within-a-post/), I get:
Parse error: parse error, unexpected $ in /home/xero1/public_html/my-hacks.php on line 8
Please help :(!@