[Mahara-contributors] [Bug 1027739] Re: Enhance tagged posts block - copy block

2016-01-15 Thread Stéphanie Lanthier
Hello,
The piece of code included is brought as a solution to the Mahara Community 
Developers Forum conversation « Copy "tagged journal entry" bloc », which is 
found at the URL https://mahara.org/interaction/forum/topic.php?id=7448.

Our will was to be able to copy a page from a model user containing a
"tagged journal entry" block , while keeping the block presence and its
configuration, i.e., it's tag.

As the tag must exist in the destination user portfolio, we ensure the
tags presence by first copy a page from the model user containing a
journal in which only one article is written and is marked as draft.
This draft article is tagged by all the wished tags.

Moreover, in htdocs/artefact,blog/blocktype/taggedposts/lib.php file, we
change the return value of the default_copy_type function, from 'nocopy'
to 'shallow'

Once those prerequisites in place, we modified the htdocs/blocktype/lib.php 
file. Those following lines has been inserted under the line 1525 (on which we 
can see a newblock -> commit ) 
(The complete file is found attached)

//Change - BEGIN - By Helene Bouley
$viewid=$template->get('id');
$bid=get_record('block_instance', 'view', 
$viewid,'blocktype','taggedposts');
if ($this -> id ==   $bid -> id ) {
$tagrecords = get_records_array('blocktype_taggedposts_tags', 
'block_instance', $bid-> id, 'tagtype desc, tag', 'tag, tagtype');
$newid=$newblock -> get('id');
foreach ($tagrecords as $k => $v) {
$o=new   stdClass();
$o ->  block_instance= $newid;
$o -> tag=$v -> tag;
$o -> tagtype=1;
insert_record('blocktype_taggedposts_tags', $o);
}
}  //Change - END - By Helene Bouley 


** Attachment added: "This file is a modified version of Mahara-15.04 
htdocs/blocktype/lib.php file"
   
https://bugs.launchpad.net/mahara/+bug/1027739/+attachment/4550769/+files/lib.php

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1027739

Title:
  Enhance tagged posts block - copy block

Status in Mahara:
  Confirmed

Bug description:
  This is a follow-up from https://reviews.mahara.org/#/c/1072/ for
  milestone 1.6

  Add block copy permission selector

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1027739/+subscriptions

___
Mailing list: https://launchpad.net/~mahara-contributors
Post to : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp


[Mahara-contributors] [Bug 1027739] Re: Enhance tagged posts block - copy block

2015-12-01 Thread Aaron Wells
See also this forum post on the topic:
https://mahara.org/interaction/forum/topic.php?id=7448

This block is not copyable, because copy functionality for it would be
non-trivial. This is also true of the journal blocks, but even more so
for this one, because it combines journal entries from multiple
journals.

It's not insurmountable; we probably could figure out a reasonable set
of strategies for copying it and add a menu to let the user decide about
it, as we've done with the other journal blocks. But it'll require some
effort.

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1027739

Title:
  Enhance tagged posts block - copy block

Status in Mahara:
  Confirmed

Bug description:
  This is a follow-up from https://reviews.mahara.org/#/c/1072/ for
  milestone 1.6

  Add block copy permission selector

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1027739/+subscriptions

___
Mailing list: https://launchpad.net/~mahara-contributors
Post to : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp


[Mahara-contributors] [Bug 1027739] Re: Enhance tagged posts block - copy block

2015-01-17 Thread Kristina Hoeppner
** Tags added: block

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1027739

Title:
  Enhance tagged posts block - copy block

Status in Mahara ePortfolio:
  Confirmed

Bug description:
  This is a follow-up from https://reviews.mahara.org/#/c/1072/ for
  milestone 1.6

  Add block copy permission selector

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1027739/+subscriptions

___
Mailing list: https://launchpad.net/~mahara-contributors
Post to : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp


[Mahara-contributors] [Bug 1027739] Re: Enhance tagged posts block - copy block

2013-10-27 Thread Kristina Hoeppner
Aaron,  we are not working on this. The client decided not to go forward
with this at the moment.

** Changed in: mahara
Milestone: 1.9.0 = None

** Changed in: mahara
 Assignee: Robert Lyon (robertl-9) = (unassigned)

** Changed in: mahara
   Status: In Progress = Confirmed

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1027739

Title:
  Enhance tagged posts block - copy block

Status in Mahara ePortfolio:
  Confirmed

Bug description:
  This is a follow-up from https://reviews.mahara.org/#/c/1072/ for
  milestone 1.6

  Add block copy permission selector

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1027739/+subscriptions

___
Mailing list: https://launchpad.net/~mahara-contributors
Post to : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp


[Mahara-contributors] [Bug 1027739] Re: Enhance tagged posts block - copy block

2013-10-21 Thread Aaron Wells
Hi Robert,

I think you're working on something like this for a client already,
right? Making it so the tagged posts journal block has options saying
what happens to the underlying journals when it is copied by another
user?

Cheers,
Aaron

** Changed in: mahara
 Assignee: (unassigned) = Robert Lyon (robertl-9)

** Changed in: mahara
Milestone: 1.8.0 = 1.9.0

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1027739

Title:
  Enhance tagged posts block - copy block

Status in Mahara ePortfolio:
  In Progress

Bug description:
  This is a follow-up from https://reviews.mahara.org/#/c/1072/ for
  milestone 1.6

  Add block copy permission selector

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1027739/+subscriptions

___
Mailing list: https://launchpad.net/~mahara-contributors
Post to : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp


[Mahara-contributors] [Bug 1027739] Re: Enhance tagged posts block - copy block

2013-09-30 Thread Aaron Wells
** Changed in: mahara
Milestone: 1.8rc1 = 1.8.0

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1027739

Title:
  Enhance tagged posts block - copy block

Status in Mahara ePortfolio:
  In Progress

Bug description:
  This is a follow-up from https://reviews.mahara.org/#/c/1072/ for
  milestone 1.6

  Add block copy permission selector

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1027739/+subscriptions

___
Mailing list: https://launchpad.net/~mahara-contributors
Post to : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp


[Mahara-contributors] [Bug 1027739] Re: Enhance tagged posts block - copy block

2013-09-03 Thread Chris Wharton
** Changed in: mahara
 Assignee: Chris Wharton (y-chrisw) = (unassigned)

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1027739

Title:
  Enhance tagged posts block - copy block

Status in Mahara ePortfolio:
  In Progress

Bug description:
  This is a follow-up from https://reviews.mahara.org/#/c/1072/ for
  milestone 1.6

  Add block copy permission selector

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1027739/+subscriptions

___
Mailing list: https://launchpad.net/~mahara-contributors
Post to : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp


[Mahara-contributors] [Bug 1027739] Re: Enhance tagged posts block - copy block

2013-04-18 Thread Aaron Wells
Hi Kristina,

Can you expand on what this bug is about?

Cheers,
Aaron

** Changed in: mahara
Milestone: 1.7.0 = 1.8.0

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contrib members
https://bugs.launchpad.net/bugs/1027739

Title:
  Enhance tagged posts block - copy block

Status in Mahara ePortfolio:
  In Progress

Bug description:
  This is a follow-up from https://reviews.mahara.org/#/c/1072/ for
  milestone 1.6

  Add block copy permission selector

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1027739/+subscriptions

___
Mailing list: https://launchpad.net/~mahara-contributors
Post to : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp


[Mahara-contributors] [Bug 1027739] Re: Enhance tagged posts block - copy block

2012-08-12 Thread Hugh Davenport
** Changed in: mahara
Milestone: 1.6.0 = 1.7.0

** Tags removed: newfeature1.6
** Tags added: newfeature1.7

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/1027739

Title:
  Enhance tagged posts block - copy block

Status in Mahara ePortfolio:
  In Progress

Bug description:
  This is a follow-up from https://reviews.mahara.org/#/c/1072/ for
  milestone 1.6

  Add block copy permission selector

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1027739/+subscriptions

___
Mailing list: https://launchpad.net/~mahara-contributors
Post to : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp


[Mahara-contributors] [Bug 1027739] Re: Enhance tagged posts block - copy block

2012-07-22 Thread Kristina Hoeppner
** Tags added: newfeature1.6

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/1027739

Title:
  Enhance tagged posts block - copy block

Status in Mahara ePortfolio:
  New

Bug description:
  This is a follow-up from https://reviews.mahara.org/#/c/1072/ for
  milestone 1.6

  Add block copy permission selector

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1027739/+subscriptions

___
Mailing list: https://launchpad.net/~mahara-contributors
Post to : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp


[Mahara-contributors] [Bug 1027739] Re: Enhance tagged posts block - copy block

2012-07-22 Thread Chris Wharton
** Changed in: mahara
   Status: New = In Progress

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/1027739

Title:
  Enhance tagged posts block - copy block

Status in Mahara ePortfolio:
  In Progress

Bug description:
  This is a follow-up from https://reviews.mahara.org/#/c/1072/ for
  milestone 1.6

  Add block copy permission selector

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1027739/+subscriptions

___
Mailing list: https://launchpad.net/~mahara-contributors
Post to : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp