a few suggestions
greghard 0
From: -
From: -
Notice
This topic is archived. New comments cannot be posted and votes cannot be cast.Responses to this topic
1 Re: a few suggestions
Philipp
From: Vienna, Austria
Administrator
1340From: Vienna, Austria
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
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
1 Re: a few suggestions
greghard
OP
0
From: -
From: -
a few suggestions
Thanks! Now all i need is 12 hour time and i'm set.
Thanks! Now all i need is 12 hour time and i'm set.
1 Re: a few suggestions
Philipp
From: Vienna, Austria
Administrator
1340From: Vienna, Austria
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]);
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]);
1 Re: a few suggestions
greghard
OP
0
From: -
From: -
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?
Hi again,
the code you gave me doesn't change the date to MM-DD-YYYY, it's still YYYY-MM-DD. Any ideas?
1 Re: a few suggestions
Philipp
From: Vienna, Austria
Administrator
1340From: Vienna, Austria
a few suggestions
$insert[story_category] works now also on the story and story_printer template
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
1 Re: a few suggestions
greghard
OP
0
From: -
From: -
a few suggestions
wow, thanks. Keep up the great work.
wow, thanks. Keep up the great work.
1 Re: a few suggestions
Philipp
From: Vienna, Austria
Administrator
1340From: Vienna, Austria
a few suggestions
Hello Greg,
thanks for your suggestions
This is already supported on the main index page. Just add $insert[story_category] to the news template.
There is already a news archive. I think you mean an option to display the entire news archive on one page?
Added to my do list
The main problem here is the caching system. However, I can take a look at your script. Feel free to send it to me.
Added to the do list
This is already planned for one of the next releases.
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;
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;
$insert[story_time] = preg_replace("/(\d+)-(\d+)-(\d+) (\d+):(\d+):(\d+)/i","\$2 \$3, \$1 \$4:\$5",$insert[story_time]);
1 Re: a few suggestions
greghard
OP
0
From: -
From: -
a few suggestions
oh, the ability to change the data format (MM DD, YY HH:MM) in the program.
oh, the ability to change the data format (MM DD, YY HH:MM) in the program.
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.