Gossamer Forum
Home : Products : Gossamer Forum : Development, Plugins and Globals :

Greyed out Post New button mod

Quote Reply
Greyed out Post New button mod
Here's a little mod that I did. I didn't like the "Post New" button being greyed out and unclickable for guests. This mod tweaks the "Post New" button so that guests are taken directly to the Sign Up page, and works as normal for those already logged in.

In the forum_view.html template, I changed:

<input type="submit"<%unless user_forum_permission >= 5%> disabled<%endif%> name="do=post_write;forum=<%forum_id%>" value="Post New" class="submit">


to this:

<input type="submit" name="do=<%if user_forum_permission <= 5%>user_signup<%else%>post_write<%endif%>;forum=<%forum_id%>" value="Post New" class="submit">

Or if you'd prefer to take them to the Log In page instead:

<input type="submit" name="do=<%if user_forum_permission <= 5%>login<%else%>post_write<%endif%>;forum=<%forum_id%>" value="Post New" class="submit">

Last edited by:

Katana Man: Feb 6, 2002, 1:30 PM
Subject Author Views Date
Thread Greyed out Post New button mod Katana Man 2748 Feb 6, 2002, 1:22 PM
Post Re: [Katana Man] Greyed out Post New button mod
Jagerman 2635 Feb 12, 2002, 8:50 AM