Posted on: 11/04/04 02:26pm
By: mrb42
Hey,
I have stories that are submitted that will publish in the future, has anyone done a "coming soon" block that lists future stories?
Future Stories Block?
Posted on: 11/05/04 08:47pm
By: Euan
If you saved them as drafts, at least with a title even if you haven't written the content yet, then you could easily create a block to list the draft stories.
If you need help, there should be all the code needed in public_html/stats.php.
Cheers,
Euan.
Future Stories Block?
Posted on: 11/06/04 04:07am
By: Dirk
[QUOTE BY= euan] If you need help, there should be all the code needed in public_html/stats.php.[/QUOTE]
You'd have to reverse the logic in the SQL requests, though. Geeklog always excludes stories that have the draft flag set (or that have a publishing date in the future).
bye, Dirk
Future Stories Block?
Posted on: 11/06/04 07:12am
By: Euan
[QUOTE BY= Dirk]
You'd have to reverse the logic in the SQL requests, though. Geeklog always excludes stories that have the draft flag set (or that have a publishing date in the future).
bye, Dirk[/QUOTE]
I was thinking more of the draft stories block? Sorry if I'm wrong (I haven't checked), but I thought that was in there too?
Cheers,
Euan.
Future Stories Block?
Posted on: 11/06/04 07:24am
By: Dirk
[QUOTE BY= euan] I was thinking more of the draft stories block? Sorry if I'm wrong (I haven't checked), but I thought that was in there too?[/QUOTE]
Right, forgot about that one. It's in admin/moderation.php, though.
bye, Dirk
Future Stories Block?
Posted on: 11/06/04 07:27am
By: Euan
[QUOTE BY= Dirk]
Right, forgot about that one. It's in admin/moderation.php, though.
bye, Dirk[/QUOTE]
Euan.
Future Stories Block?
Posted on: 11/06/04 09:14am
By: Anonymous (MarkB)
I'm looking more for a "teaser" block, that basicly just gives the article title and nothing more... kind of a "come back and see this soon!" kind of thing
Future Stories Block?
Posted on: 11/06/04 01:48pm
By: Dirk
[QUOTE BY= MarkB] I'm looking more for a "teaser" block, that basicly just gives the article title and nothing more[/QUOTE]
Yeah, but such a block does not exist, so you'll have to write it yourself. The SQL requests you'll need to grab the draft stories (or the stories in the submission queue, if you want to display those) can be found in admin/moderation.php. You can safely ignore all the template-related code there ...
bye, Dirk
Future Stories Block?
Posted on: 11/07/04 03:32pm
By: Anonymous (MarkB)
[QUOTE BY= Dirk] [QUOTE BY= MarkB] I'm looking more for a "teaser" block, that basicly just gives the article title and nothing more[/QUOTE]
Yeah, but such a block does not exist, so you'll have to write it yourself. The SQL requests you'll need to grab the draft stories (or the stories in the submission queue, if you want to display those) can be found in admin/moderation.php. You can safely ignore all the template-related code there ...
bye, Dirk[/QUOTE]
I assumed I'd have to write it myself, but I figured I'd ask first rather then reinvent the wheel.