Welcome to Geeklog Wednesday, October 18 2017 @ 01:26 am EDT


Status: offline

suprsidr

Forum User
Full Member
Registered: 29/12/2004
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

Status: offline

ivy

Forum User
Full Member
Registered: 25/11/2004
Posts: 290
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

Status: offline

ivy

Forum User
Full Member
Registered: 25/11/2004
Posts: 290
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

Status: offline

suprsidr

Forum User
Full Member
Registered: 29/12/2004
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

Status: offline

Dirk

Site Admin
Admin
Registered: 12/01/2002
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

Status: offline

Dirk

Site Admin
Admin
Registered: 12/01/2002
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

Status: offline

suprsidr

Forum User
Full Member
Registered: 29/12/2004
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

Status: offline

suprsidr

Forum User
Full Member
Registered: 29/12/2004
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

All times are EDT. The time is now 01:26 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