The following warnings occurred:
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message



GetSimple Support Forum
Rewrote function get_page_content - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Scripts & Components (http://get-simple.info/forums/forumdisplay.php?fid=11)
+--- Thread: Rewrote function get_page_content (/showthread.php?tid=125)



Rewrote function get_page_content - Nijikokun - 2010-01-24

I needed support for theme url inside of my post for the most current site, and thus I rewrote the old get_page_content for this one:

Code:
function get_page_content() {
        global $content, $SITEURL, $SITENAME, $TEMPLATE, $title, $url;
        
        # Setup theme url
        $theme_url = $SITEURL . "theme/" . $TEMPLATE;
        
        # Strip slashes and decode special characters
        $content = stripslashes(htmlspecialchars_decode($content, ENT_QUOTES));
        
        # Replace data
        $patterns = array('/\{theme_url\}/i', '/\{site_url\}/i', '/\{site_name\}/i', '/\{page_slug\}/i', '/\{page_title\}/i');
        $replacements = array($theme_url, $SITEURL, $SITENAME,  $url, $title);

        # Send the data
        echo preg_replace($patterns, $replacements, $content);
    }

features:
Code:
{theme_url}, {site_url}, {site_name}, {page_slug}, {page_title}



Rewrote function get_page_content - ccagle8 - 2010-01-24

Neat... This would be a great addition to anyone's functions.php file (of course rename the function so the two can live happily ever after together)