inherit
178061
0
Jan 20, 2013 17:19:47 GMT -8
Lauren
164
March 2012
bluskye218
|
Post by Lauren on May 7, 2013 13:21:14 GMT -8
Lol, found another issue with this Shrike... what parameters can I add to change the text on the button for sending a PM, like "Send PM"? That button now says the same thing as starting a new thread, which I have as "Create Thread", since it doesn't have the post summary... ::sigh:: Thanks! Edit: Gosh, maybe this is a bad idea to change the text on the buttons as changing one, changes others... but I really wanted to simply change just the one original one I asked about (replying to a thread) as it was confusing to some people... but I would like the ability to change each one somehow... but I just noticed another issue, the button when Editing a post says "Post Reply" instead of "Save Changes" now. Ugh...
|
|
inherit
126477
0
Apr 21, 2023 15:18:52 GMT -8
Shrike
Re-appeared briefly after 6 years only to no doubt disappear again.
1,569
June 2008
shrike
|
Post by Shrike on May 9, 2013 9:51:21 GMT -8
Lol, found another issue with this Shrike... what parameters can I add to change the text on the button for sending a PM, like "Send PM"? That button now says the same thing as starting a new thread, which I have as "Create Thread", since it doesn't have the post summary... ::sigh:: Thanks! Edit: Gosh, maybe this is a bad idea to change the text on the buttons as changing one, changes others... but I really wanted to simply change just the one original one I asked about (replying to a thread) as it was confusing to some people... but I would like the ability to change each one somehow... but I just noticed another issue, the button when Editing a post says "Post Reply" instead of "Save Changes" now. Ugh...First of all, your request was totally reasonable and I was under the impression that the V5 template system would make things like this simple to do. Aside from not being able to use logical comparators (which I know even some of the others developers have been wanting), there was no actual way to get the "value" of the button in the same way we do for the attributes of other variables. This meant that you'd have to make cases for every time this button shows up and then rename them all because the button would otherwise be blank (because we couldn't get that "value" attribute). Complaints aside, I did actually manage to make something that will change just the "replying to an existing thread" button and leave the others to be the default ones. It looks terribly messy because that's how amazing the template system is (/s). Find the <span class="float-right"> and closing </span> tag around the code we've been dealing with, and replace everything between them with this: {if $[summary]}{if $[type] == "Post"}{if $[form.updated_reason] != 1}<input id="$[form.post.button.id]" name="post" tabindex="4" value="Post Reply" type="submit">{else}$[form.post.button]{/if}{else}$[form.post.button]{/if}{else}$[form.post.button]{/if} Edit: For other coders, here is a readable form of the above {if} stuff followed by what it would be if V5 templates had logical comparators: {if $[summary]} {if $[type] == "Post"} {if $[form.updated_reason] != 1} <input id="$[form.post.button.id]" name="post" tabindex="4" value="Post Reply" type="submit"> {else} $[form.post.button] {/if} {else} $[form.post.button] {/if} {else} $[form.post.button] {/if}
{if $[summary] && $[type] == "Post" && $[form.updated_reason] != 1} <input id="$[form.post.button.id]" name="post" tabindex="4" value="Post Reply" type="submit"> {else} $[form.post.button] {/if}
|
|
inherit
178061
0
Jan 20, 2013 17:19:47 GMT -8
Lauren
164
March 2012
bluskye218
|
Post by Lauren on May 14, 2013 17:19:11 GMT -8
Thanks Shrike! I'm wondering though, before I switch to that code & just be able to edit the text on the button when replying to threads... is there a way to be able to change the text on each different kind: new thread, reply to thread, send PM, any others? Thanks!
|
|