Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Changing the order of Edit | Delete | Quote | Reply

Quote Reply
Changing the order of Edit | Delete | Quote | Reply
I've tried changing the order in include_post_display.html to something like

<%GForum::GUI::draw(
draw => post_display_options,
separator => " | ",
edit => "Edit",
delete => "Delete",
cant_post => "Can't Post",
reply => "Reply",
quote => "Quote",

a_attribs => ""
)%>

But Quote still comes before Reply. Suggestions?
Quote Reply
Re: [agaffin] Changing the order of Edit | Delete | Quote | Reply In reply to
Hi,

Try out the attached file (replaces admin/GForum/GUI.pm). I've modified it so that you can add a line such as:

order => "quote,delete,reply,edit,cant_post"

to define the order in which the links are displayed.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] Changing the order of Edit | Delete | Quote | Reply In reply to
Thanks!

It works great with one proviso:

It always treats cant_post as the first item in the list . So for example, if I have:

order => "edit, cant_post, delete, quote, reply",

The order they'll show up on the page is:

cant_post, delete, quote, reply, edit

Not a major deal in my case since if I have cant_post showing up, I won't see the other items anyway (and vice versa), so I'll just put it first, but was a wee bit confusing until I figured out what was happening.
Quote Reply
Re: [agaffin] Changing the order of Edit | Delete | Quote | Reply In reply to
Does the order of cant_post matter at all? The logic will either show "Can't Post", or it'll show the others - "Can't Post" cannot appear with the others.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] Changing the order of Edit | Delete | Quote | Reply In reply to
You're right; doesn't really matter...