"log in to discuss" for anon users?

aharown07 - November 7, 2008 - 21:43
Project:Discuss This!
Version:5.x-1.0
Component:User interface
Category:feature request
Priority:normal
Assigned:spiderman
Status:closed
Description

Wd be super to have a teaser link that says "Login/register to Discuss" ... and appropriate links to user page.

On this one I am also open to some improvising if somebody can suggest how to code it. I just don't know PHP very well yet so... sometimes I can guess my way through. More expert guidance wd save much time.

#1

spiderman - February 11, 2009 - 15:30
Assigned to:Anonymous» spiderman
Status:active» fixed

I've implemented this feature in this commit: http://drupal.org/cvs?commit=170867.

Notably, the code there checks if the user is logged in FIRST, before checking any permissions. So even if you give the relevant perms to the Anonymous role, they won't take effect. This might be considered a bug, but it seems like this is the most common use case. If anyone needs anonymous users to be respected in this way, please reopen this issue.

#2

aharown07 - February 11, 2009 - 22:46

Many thanks! Will test in a day or two if not sooner.

#3

aharown07 - February 12, 2009 - 15:41

I'm not real familiar w/commits and CVS and all that... how do I use the commit? Or do I need to wait until it gets into a new release?

#4

spiderman - February 13, 2009 - 04:05

@aharown07: if you download the -dev.tar.gz release of the module, you should get the fix. I believe these tarballs are re-rolled every 6 hours with latest CVS code. Alternately, if you check the code out directly from CVS yourself, you can do a 'cvs update' after new code is committed to get the updates.

Read this handbook page and other related ones for more details on CVS.

#5

aharown07 - February 14, 2009 - 19:48

Many thanks

#6

System Message - February 28, 2009 - 19:50
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.