The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
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
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pulling child page info
#1
Hello,
So i have successfully used this: http://get-simple.info/forums/showthread.php?tid=6629

In order to pull page content and then i created a function to pull the page title as well

Code:
function getPageTitle($page,$field='title'){

    $thisfile = file_get_contents(GSDATAPAGESPATH.$page.'.xml');
    $data = simplexml_load_string($thisfile);
    $title = stripslashes(htmlspecialchars_decode($data->$field, ENT_QUOTES));
    if ($field=='title'){
        $title = exec_filter('title',$title);
    }
    echo $title;
}

and i can now use:
<?php getPageTitle($child); ?>

So, now all i need to do is pull the date for the child pages.
However, i can't figure out how to do a function to be able to pull the child page date because the date function is created in theme_functions and not caching_functions.

So how would i go about pulling the child pages correct date?
Currently i can either display the main pages date or what is currently displaying.

[Image: mZACkrA.png]


If someone could help me in pulling the child pages date without any plugins that would be great Big Grin
Since i don't want to have to go through and manually add pages to the file. I want it done automatically so this is why I'm doing it this way.

Thanks
- Alex
Reply


Messages In This Thread
Pulling child page info - by alex809 - 2015-09-13, 06:44:25
RE: Pulling child page info - by DimaYakovlev - 2015-09-17, 17:16:03
RE: Pulling child page info - by alex809 - 2015-09-19, 02:50:17
RE: Pulling child page info - by shawn_a - 2015-09-19, 03:04:31
RE: Pulling child page info - by alex809 - 2015-09-19, 03:46:53
RE: Pulling child page info - by Carlos - 2015-09-19, 05:54:45
RE: Pulling child page info - by alex809 - 2015-09-21, 01:07:55



Users browsing this thread: 2 Guest(s)