3
1

I've talked to a few of my users and they've all said that it was really hard to find a sign up button because they had to click login and then signup. How could I change the login but to login/signup instead? I want a simple solution if possible.

asked 26 Oct '10, 20:56

Noah%20Rainey's gravatar image

Noah Rainey
22121320
accept rate: 16%

I agree. I think a "sign-up" link at the top of the front page would be easier to find for new users (especially when the osqa site is not attented to expert users).

(22 Mar '11, 03:55) orgoz

The Header links in OSQA are kept in a separate registry, which can be modified at forum.registry. If you explore that registry you'll find a HEADER_LINKS section. If you want to add a "sign up" link to the header, this is the file that has to be edited.

A good example of this functionality is the "Login" link. Take a look at it:

ui.Link(
    text=lambda u, c: u.is_authenticated() and _('logout') or _('login'),
    url=lambda u, c: u.is_authenticated() and reverse('logout') or reverse('auth_signin'),
    weight=200),

But it's not a good idea to edit the Python files of your project, especially if you're planning to update your system frequently. Another option is to edit the template files, that are kept in forum/skins/default/templates and specifically the base_content.html file. Before showing the link you can do a simple check using an if-statement.

{% if not user.is_authenticated %} ... {% endif %}

In general, this are the two options.

link

answered 24 Mar '11, 08:00

Jordan's gravatar image

Jordan ♦♦
3.1k618
accept rate: 39%

This is useful. I'm personally contemplating to just add text 'Login or Signup' so users know that both are at the same place.

(08 Jun '11, 02:39) Sandro Dznel...
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×75
×4
×2
×1

Asked: 26 Oct '10, 20:56

Seen: 722 times

Last updated: 22 Nov '11, 11:57

powered by OSQA