Contentteller

Contentteller Support Forums
Home Forums > Contentteller > Version 1.x >

a few suggestions

Discussion in 'Version 1.x' started by greghard, Nov 22, 2003.

  1. greghard Guest

    a few suggestions

    1) Category names. A way to put category names on each post.
    2) News archive. A page that has all the news every posted in order of newest to oldest.
    3) Selective caching. Disable caching of certain areas only.
    4) Fix include(). I can't use include properly, even using the methods mentioned here. It includes the text <?php include("blah");?> on the page, it's not parsed. Maybe an internal include command would work better?
    5) Universal disable comments and/or anonymous comments. I believe in free speech, i dont care what my visitors post. Let it be free, i say!
    6) Link pages. Links on seperate categorized pages.

    That's all I can think of for now. Nice program, Phillip. :)
    greghard, Nov 22, 2003
    #1
  2. greghard Guest

    a few suggestions

    oh, the ability to change the data format (MM DD, YY HH:MM) in the program.
    greghard, Nov 22, 2003
    #2
  3. Philipp Guest

    a few suggestions

    Hello Greg,
    thanks for your suggestions

    1) Category names. A way to put category names on each post.
    This is already supported on the main index page. Just add $insert[story_category] to the news template.

    2) News archive. A page that has all the news every posted in order of newest to oldest.
    There is already a news archive. I think you mean an option to display the entire news archive on one page?

    3) Selective caching. Disable caching of certain areas only.
    Added to my do list

    4) Fix include(). I can't use include properly, even using the methods mentioned here. It includes the text <?php include("blah");?> on the page, it's not parsed. Maybe an internal include command would work better?
    The main problem here is the caching system. However, I can take a look at your script. Feel free to send it to me.

    5) Universal disable comments and/or anonymous comments. I believe in free speech, i dont care what my visitors post. Let it be free, i say!
    Added to the do list

    6) Link pages. Links on seperate categorized pages.
    This is already planned for one of the next releases.

    Oh, the ability to change the data format (MM DD, YY HH:MM) in the program.
    Additional date options are already planned.

    However, this could be also done with the templates. Add the following line to the news and story template after global $insert;

    Code:
    $insert[story_time] = preg_replace("/(\d+)-(\d+)-(\d+) (\d+):(\d+):(\d+)/i","\$2 \$3, \$1 \$4:\$5",$insert[story_time]);
    Philipp, Nov 23, 2003
    #3
  4. greghard Guest

    a few suggestions

    wow, thanks. :) Keep up the great work.
    greghard, Nov 23, 2003
    #4
  5. Philipp Guest

    a few suggestions

    This is already supported on the main index page. Just add $insert[story_category] to the news template.
    $insert[story_category] works now also on the story and story_printer template
    Philipp, Nov 23, 2003
    #5
  6. greghard Guest

    a few suggestions

    Hi again,

    the code you gave me doesn't change the date to MM-DD-YYYY, it's still YYYY-MM-DD. Any ideas?
    greghard, Nov 25, 2003
    #6
  7. Philipp Guest

    a few suggestions

    Hmm.. it seems like that vB's PHP code tag break the regex with some white characters

    Here the code again:

    $insert[story_time] = preg_replace("/(\d+)-(\d+)-(\d+) (\d+):(\d+):(\d+)/i","\$2 \$3, \$1 \$4:\$5", $insert[story_time]);

    This will change the date format to MM DD, YY HH:MM

    To change it to MM-DD-YYYY HH:MM:

    $insert[story_time] = preg_replace("/(\d+)-(\d+)-(\d+) (\d+):(\d+):(\d+)/i","\$2-\$3-\$1 \$4:\$5", $insert[story_time]);
    Philipp, Nov 26, 2003
    #7
  8. greghard Guest

    a few suggestions

    Thanks! Now all i need is 12 hour time and i'm set. ;)
    greghard, Nov 26, 2003
    #8
  9. Philipp Guest

    a few suggestions

    Found a better way for the date format :)

    $insert[story_time] = date("m-d-Y h:iA",strtotime($insert[story_time]));

    for MM-DD-YYYY HH:MM AM/PM
    Philipp, Nov 26, 2003
    #9
Tweet
Facebook:
Forgot your password?
Contentteller Support Forums
Home Forums > Contentteller > Version 1.x >
  • Home
  • Forums

    Forums

    Quick Links
    • Search Forums
    • What's New?
  • Members

    Members

    Quick Links
    • Registered Members
    • Current Visitors
    • Recent Activity
  • Help

    Help

    Quick Links
    • Smilies
    • BB Codes
    • Trophies

Separate names with a comma.

Advanced search...
    Forum software by XenForo™ ©2011 XenForo Ltd.