Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 09:50 am EDT

Geeklog Forums

Clone stories


Status: offline

suprsidr

Forum User
Full Member
Registered: 12/29/04
Posts: 555
Location:Champaign, Illinois
Added story cloning functionality to GL 1.5.1 - same functionality we have enjoyed with staticpages.
Makes foe easy story templating Wink

get it here.

Maybe Dirk will add it to future releases?

-s
FlashYourWeb and Your Gallery with the E2 XML Media Player for Gallery2 - http://www.flashyourweb.com
 Quote

Status: offline

ivy

Forum User
Full Member
Registered: 11/25/04
Posts: 314
Location:Tokyo Japan
Hi suprsidr,

It's nice work!
If the story's date is set, it 's better I think.
Geeklog Japan https://www.geeklog.jp
 Quote

Status: offline

ivy

Forum User
Full Member
Registered: 11/25/04
Posts: 314
Location:Tokyo Japan
Hi,

This hack change date, too.
http://www.geeklog.jp/filemgmt/index.php?id=406

hiroron developed last month.
I'm sorry for the delay in the introduction.
Geeklog Japan https://www.geeklog.jp
 Quote

Status: offline

suprsidr

Forum User
Full Member
Registered: 12/29/04
Posts: 555
Location:Champaign, Illinois
I've updated this for geeklog 1.6.1 here.

@Dirk you should add this to future releases.
Its easy, keeps others from having to hack core code and would add a simple great feature.
And since I've done the work.... no skin off your back Wink

-s
FlashYourWeb and Your Gallery with the E2 XML Media Player for Gallery2 - http://www.flashyourweb.com
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
I didn't see the point of this modification originally but have since changed my mind. It didn't make it into 1.6.1 due to time constraints and the fact that the code had deviated too much for easy integration.

I'll take a look at the updated patch. Thanks!

bye, Dirk
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by: suprsidr

And since I've done the work.... no skin off your back Wink


I've got it working, but I think it does need some work, to be honest.

For example, the cloned story gets new permissions (why?), but the story id is not changed. I would also expect the clone to have the current date / time while the various counters (hits, comments, trackbacks) should be reset. Those are easy to fix of course.

I'm not quite sure what to do with images, though. If the original story contains uploaded images, should those be copied, too?

bye, Dirk
 Quote

Status: offline

suprsidr

Forum User
Full Member
Registered: 12/29/04
Posts: 555
Location:Champaign, Illinois

I'm not quite sure what to do with images, though. If the original story contains uploaded images, should those be copied, too?


Sure, why not.
I'm thinking nobody would really clone a story to have two of the same.
The purpose would more likely be for templating, so images might just act as placeholders.

-s
FlashYourWeb and Your Gallery with the E2 XML Media Player for Gallery2 - http://www.flashyourweb.com
 Quote

Status: offline

suprsidr

Forum User
Full Member
Registered: 12/29/04
Posts: 555
Location:Champaign, Illinois
I should read all of it...

For example, the cloned story gets new permissions (why?)

I built a site for a marina who had multiple departments and story admins, each template I made was available to any story admin, but the the stories these admins published had a new owner, topic, rights...
It worked perfect.

-s
FlashYourWeb and Your Gallery with the E2 XML Media Player for Gallery2 - http://www.flashyourweb.com
 Quote

All times are EDT. The time is now 09:50 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content