-
-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forum quickreply templatization #5414
base: master
Are you sure you want to change the base?
Forum quickreply templatization #5414
Conversation
Code Climate has analyzed commit 90ce61e and detected 1 issue on this pull request. Here's the issue category breakdown:
The test coverage on the diff in this pull request is 7.1% (80% is the threshold). This pull request will bring the total coverage in the repository to 39.0% (0.0% change). View more on Code Climate. |
@rica-carv Thank you for this! I left some comments. Just some minor tweaks and then I can commit it. Thank you. |
@CaMer0n Sorry, but i don't see any coments.... anywhere.... |
<textarea cols='80' placeholder='{LAN=FORUM_2007}' rows='4' id='forum-quickreply-text' class='tbox input-xxlarge form-control' name='post' onselect='storeCaret(this);' onclick='storeCaret(this);' onkeyup='storeCaret(this);'></textarea> | ||
</div> | ||
<div class='center text-center form-group'> | ||
<input type='submit' data-token='{QR_TOKEN}' data-forum-insert='{QR_AJAX}' data-forum-post='{QR_THFORUMID}' data-forum-thread='{QR_THID}' data-forum-action='quickreply' name='reply' value='{LAN=FORUM_2007}' class='btn btn-success button' /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The button and hidden element should be shortcodes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CaMer0n Done
Just find a bit of a "overkill" to have a shortcode to output only the hidden field...
I couldn't manage it to do it with a var and without the sc definition....
@@ -481,6 +481,17 @@ | |||
|
|||
"; | |||
|
|||
$FORUM_VIEWTOPIC_TEMPLATE['quickreply'] = " | |||
<form action='{QR_URL}' method='post'> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the form tags from the template.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just by curiosity, why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CaMer0n Done
@rica-carv Sorry, It appears they went into a 'pending' state. Do you see them now? |
@CaMer0n Yes i do. Tx |
Done. |
Motivation and Context
Enable custom template for the forum quick reply form
Description
Changed code to take hardcoded HTML from forum quickreply shortcode to template
How Has This Been Tested?
Latest e107 github code
Types of Changes
Checklist