mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #29240
[Bug 1499150] Re: Anonymous author link not working
To test,
1) Set up a site and have Administration -> site configs -> general
settings -> allow anonymous pages turned on
2) As a normal user create a page and on the page description form page
turn on the 'Anonymise' option
3) Share the page with others
4) Login as admin and the page should be in latest pages list follow
page and add to watchlist - now back on dashboard page you should see
the page with '(Author's name hidden)' link in both latest pages block
and watchlist block
5) clicking the link should display the actual username for only the
link you clicked and not the other one.
Test this also with making a group page
--
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/1499150
Title:
Anonymous author link not working
Status in Mahara:
In Progress
Bug description:
Now that we load some blocks via ajax the 'Allow anonymous pages' is
not working right
When you are an admin and a user has made their page have anonymous
author you see a link with ' (Author's name hidden) ' instead of name.
On clicking that link it should show you the actual name, but it
doesn't.
Things broken:
1) The js is not working for the ' (Author's name hidden) ' links when
block loaded via ajax
2) The js is not working right if there are two blocks on a page
showing pages with author = ' (Author's name hidden) ' as each one
sets an id to use from a loop and so the id's are doubled.
The way this was implemented for the templates was a bit overblown.
Instead of trying to assign the index via the parent template then
declare it in author.tpl and also include the author.js via the
smarty, we can just do a js snippet in the author.tpl and call
get_random_key() instead.
This way things are easier to understand and the js will function with
ajax load
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1499150/+subscriptions
References