This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

a few suggestions


avatar
greghard 0
From: -
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. Smiling Face

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: a few suggestions
avatar
Administrator
1340
From: Vienna, Austria
a few suggestions

Found a better way for the date format Smiling Face

$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
avatar
OP 0
From: -
a few suggestions

Thanks! Now all i need is 12 hour time and i'm set. Winking Face
1 Re: a few suggestions
avatar
Administrator
1340
From: 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]);
1 Re: a few suggestions
avatar
OP 0
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?
1 Re: a few suggestions
avatar
Administrator
1340
From: Vienna, Austria
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
1 Re: a few suggestions
avatar
OP 0
From: -
a few suggestions

wow, thanks. Smiling Face Keep up the great work.
1 Re: a few suggestions
avatar
Administrator
1340
From: Vienna, Austria
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;

$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
avatar
OP 0
From: -
a few suggestions

oh, the ability to change the data format (MM DD, YY HH:MM) in the program.

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.