From 03f08c81a531975453c5e21a5d798244bb34bd43 Mon Sep 17 00:00:00 2001 From: Rick Hays Date: Wed, 14 Dec 2022 14:20:44 -0600 Subject: [PATCH] Fixes, and Changes Fixed why it would not open when started.. Session! Altered Theme to fit my site theme. Could not handle more than one theme in the directory. "Like/Dislike" counters were adding up when bots found them, they are A tags, added "nofollow" so far seems to help, but will have to wait for next scan to see. Note: Pagination not working, if I change the cpage to page on url it comes up, but can only get it to see first page, will have to come back on this on. --- .idea/.gitignore | 10 + .idea/code-comments.xml | 6 + .idea/dbnavigator.xml | 412 +++++++++++++++++++++++++++++++++++++ .idea/deployment.xml | 15 ++ .idea/modules.xml | 8 + .idea/php.xml | 21 ++ .idea/snicker.iml | 8 + .idea/vcs.xml | 6 + .idea/webServers.xml | 14 ++ plugin.php | 4 +- themes/default/snicker.css | 137 +++++++----- themes/default/snicker.php | 26 +-- 12 files changed, 598 insertions(+), 69 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/code-comments.xml create mode 100644 .idea/dbnavigator.xml create mode 100644 .idea/deployment.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/php.xml create mode 100644 .idea/snicker.iml create mode 100644 .idea/vcs.xml create mode 100644 .idea/webServers.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..a29d697 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,10 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml +# CodeStream ignored files +/codestream.xml diff --git a/.idea/code-comments.xml b/.idea/code-comments.xml new file mode 100644 index 0000000..ec56926 --- /dev/null +++ b/.idea/code-comments.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/dbnavigator.xml b/.idea/dbnavigator.xml new file mode 100644 index 0000000..4ee6cbd --- /dev/null +++ b/.idea/dbnavigator.xml @@ -0,0 +1,412 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/deployment.xml b/.idea/deployment.xml new file mode 100644 index 0000000..881d626 --- /dev/null +++ b/.idea/deployment.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..f8522da --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/php.xml b/.idea/php.xml new file mode 100644 index 0000000..f73b37b --- /dev/null +++ b/.idea/php.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/snicker.iml b/.idea/snicker.iml new file mode 100644 index 0000000..c956989 --- /dev/null +++ b/.idea/snicker.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/webServers.xml b/.idea/webServers.xml new file mode 100644 index 0000000..57a1d5b --- /dev/null +++ b/.idea/webServers.xml @@ -0,0 +1,14 @@ + + + + + + \ No newline at end of file diff --git a/plugin.php b/plugin.php index 12ec807..d111c05 100644 --- a/plugin.php +++ b/plugin.php @@ -319,7 +319,7 @@ // Start Session if(!Session::started()){ - Session::start(); + Session::start('', true); } $key = null; @@ -798,7 +798,7 @@ // Start Session if(!Session::started()){ - Session::start(); + Session::start('', true); } // Init Comments diff --git a/themes/default/snicker.css b/themes/default/snicker.css index 437b90b..69dd883 100644 --- a/themes/default/snicker.css +++ b/themes/default/snicker.css @@ -75,18 +75,20 @@ margin: 15px 0 30px 0; padding: 0; display: block; - font-size: 14px; + font-size: 16px; line-height: 1.5em; } .snicker-comments input, .snicker-comments textarea, .snicker-comments button{ - font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif; + font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif; /*"Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;*/ } + +/* Effects Textarea when mouse is away */ .snicker-comments input[type="text"], .snicker-comments input[type="email"], .snicker-comments textarea{ - color: #404448; + color: #333333; width: 100%; max-width: none; height: auto; @@ -111,28 +113,36 @@ padding: 15px; resize: vertical; } + +/* Effects TextArea on Hover */ .snicker-comments input[type="text"]:hover, .snicker-comments input[type="email"]:hover, .snicker-comments textarea:hover{ - color: #343A40; - border-color: #343A40; + color: #444444; + border-color: #444444; background-color: #ffffff; } + +/* Effects TextArea on Focus */ .snicker-comments input[type="text"]:focus, .snicker-comments input[type="email"]:focus, .snicker-comments textarea:focus{ - color: #343A40; - border-color: #343A40; + color: #444444; + border-color: #444444; background-color: #ffffff; + /* box-shadow: 0 0 0 3px rgba(52,58,64, 0.35); -moz-box-shadow: 0 0 0 3px rgba(52,58,64, 0.35); -webkit-box-shadow: 0 0 0 3px rgba(52,58,64, 0.35); + */ } .snicker-comments input[type="checkbox"]{ display: none; } + +/* Text for TERMs Checkbox */ .snicker-comments input[type="checkbox"]+label{ - color: #606468; + color: #ffcc01; cursor: pointer; height: auto; margin: 10px 5px; @@ -144,7 +154,8 @@ } .snicker-comments input[type="checkbox"]+label:hover, .snicker-comments input[type="checkbox"]:checked+label{ - color: #404448; + background-color: #444444; + color: #fff; } .snicker-comments input[type="checkbox"]+label:before{ width: 20px; @@ -155,7 +166,7 @@ position: relative; vertical-align: top; background-color: #ffffff; - border: 1px solid #a0a4a8; + border: 1px solid #ffcc01; background-repeat: no-repeat; background-position: center center; border-radius: 3px; @@ -166,17 +177,17 @@ -webkit-transition: all 142ms linear; } .snicker-comments input[type="checkbox"]+label:hover:before{ - border-color: #343A40; + border-color: #444444; } .snicker-comments input[type="checkbox"]:checked+label:before{ - background-color: #343A40; - border-color: #343A40; + background-color: #333333; + border-color: #333333; background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC\ 9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDEyIDE2Ij48cGF0aCBmaWxsPSIjZmZmIiBkPSJNM\ TIgNWwtOCA4LTQtNCAxLjUtMS41TDQgMTBsNi41LTYuNUwxMiA1eiIvPjwvc3ZnPg=="); } .snicker-comments button{ - color: rgba(255, 255, 255, 0.9); + color: #ffcc01; cursor: pointer; width: auto; margin: 0; @@ -187,8 +198,8 @@ text-align: left; line-height: 1.5em; vertical-align: top; - background-color: #343A40; - border: 1px solid #343A40; + background-color: #333333; + border: 1px solid #333333; border-radius: 3px; -moz-border-radius: 3px; -webkit-border-radius: 3px; @@ -197,16 +208,17 @@ -webkit-transition: background 142ms linear; } .snicker-comments button:hover{ - background-color: rgb(14, 16, 19); + background-color: #444444; + color: #fff; } .snicker-comments button:active{ - background-color: #242A30; + background-color: #444444; } .snicker-comments button:disabled, .snicker-comments button.disabled{ color: rgba(255, 255, 255, 0.35); cursor: not-allowed; - background-color: #040A10; + background-color: #444444; } .snicker-comments button.loading:before{ top: 8px; @@ -262,7 +274,7 @@ margin: 0; padding: 0; display: block; - border: 1px solid#c0c4c8; + border: 1px solid #ffcc01; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; @@ -282,8 +294,8 @@ line-height: 50px; } .snicker-comments .no-comments{ - background-color: #f4f8fa; - border: 1px solid #c0c4c8; + background-color: #333333; + border: 1px solid #ffcc01; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; @@ -306,7 +318,7 @@ } .snicker-comments .comment-alert.alert-success{ color: #ffffff; - background-color: #28A745; + background-color: #ffcc01; } /* @end GENERAL */ @@ -328,8 +340,8 @@ form.comment-form .comment-footer{ } form.comment-form .comment-header{ font-size: 16px; - background-color: #f4f6f8; - border-bottom: 1px solid #d0d4d8; + background-color: #333333; + border-bottom: 1px solid #ffcc01; border-radius: 5px 5px 0 0; -moz-border-radius: 5px 5px 0 0; -webkit-border-radius: 5px 5px 0 0; @@ -341,8 +353,8 @@ form.comment-form .comment-article{ padding: 15px 20px; } form.comment-form .comment-footer{ - background-color: #f4f6f8; - border-top: 1px solid #d0d4d8; + background-color: #333333; + border-top: 1px solid #ffcc01; border-radius: 0 0 5px 5px; -moz-border-radius: 0 0 5px 5px; -webkit-border-radius: 0 0 5px 5px; @@ -351,9 +363,10 @@ form.comment-form .comment-captcha{ display: block; text-align: right; } + form.comment-form .comment-captcha input, form.comment-form .comment-captcha input:hover, -form.comment-form .comment-captcha input:focus{ +form.comment-form .comment-captcha input:focus { width: 100px; height: 40px; padding: 5px 10px; @@ -363,17 +376,23 @@ form.comment-form .comment-captcha input:focus{ line-height: 22px; vertical-align: top; border: 0; - background-color: #e0e4e8; + background-color: #fff; box-shadow: none; -moz-box-shadow: none; -webkit-box-shadow: none; } -form.comment-form .comment-captcha input:hover{ - background-color: #f0f4f8; + +form.comment-form .comment-captcha input:hover { + background-color: #fff; } -form.comment-form .comment-captcha input:focus{ - background-color: #e0e4e8; +form.comment-form .comment-captcha input:focus { + background-color: #fff; } + +input[placeholder] { + color: #ff0000; +} + form.comment-form .comment-captcha a{ width: auto; height: 40px; @@ -477,7 +496,7 @@ form.comment-form .comment-reply .reply-cancel{ display: inline-block; position: absolute; background-size: 14px; - background-color: #555; + background-color: #444; background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC\ 9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDEyIDE2Ij48cGF0aCBmaWxsPSIjZmZmZmZmIiBkP\ SJNNy40OCA4bDMuNzUgMy43NS0xLjQ4IDEuNDhMNiA5LjQ4bC0zLjc1IDMuNzUtMS40OC0xLjQ4TDQuNTIgOCAuNzcgNC4y\ @@ -509,13 +528,13 @@ form.comment-form .comment-reply .reply-title{ margin: 15px 0; padding: 0; display: block; - border: 1px solid #c0c4c8; + border: 1px solid #ffcc01; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; } .snicker-comments-list .comment.new-comment{ - border-color: #007bff; + border-color: #ffcc01; } .snicker-comments-list .comment .comment-avatar{ width: 110px; @@ -527,10 +546,12 @@ form.comment-form .comment-reply .reply-title{ -moz-border-radius: 5px; -webkit-border-radius: 5px; } + +/* Banner inside user icon/avatar */ .snicker-comments-list .comment .comment-avatar .avatar-role{ top: 15px; right: 10px; - color: #ffffff; + color: #333333; width: auto; margin: 0; padding: 3px 5px; @@ -541,7 +562,7 @@ form.comment-form .comment-reply .reply-title{ line-height: 16px; font-weight: bold; text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.25); - background-color: #007bff; + background-color: #ffcc01; border-radius: 0 4px 0 3px; -moz-border-radius: 0 4px 0 3px; -webkit-border-radius: 0 4px 0 3px; @@ -550,7 +571,7 @@ form.comment-form .comment-reply .reply-title{ padding: 10px; } .snicker-comments-list .comment .comment-content .comment-title{ - color: #707478; + color: #fff; margin: 0; padding: 5px 5px 2px 5px; display: block; @@ -574,17 +595,21 @@ form.comment-form .comment-reply .reply-title{ -moz-border-radius: 3px; -webkit-border-radius: 3px; } + +/* Text in Comment Header */ .snicker-comments-list .comment .comment-content .comment-meta{ - color: #707478; + color: #fff; margin: 0; padding: 1px 6px; display: inline-block; font-size: 12px; line-height: 1.25em; - background-color: #e0e4e8; + background-color: #444444; } + +/* Text inside Comments */ .snicker-comments-list .comment .comment-content .comment-comment{ - color: #303438; + color: #7e7d7e; margin: 0; padding: 10px; display: block; @@ -593,23 +618,25 @@ form.comment-form .comment-reply .reply-title{ margin: 0; padding: 0; display: block; - background-color: #f4f6f8; - border-top: 1px solid #d0d4d8; + background-color: #333333; + border-top: 1px solid #ffcc01; border-radius: 0 0 4px 4px; -moz-border-radius: 0 0 4px 4px; -webkit-border-radius: 0 0 4px 4px; } + +/* Color of the Like/Dislike with no value (Zero) */ .snicker-comments-list .comment .comment-action a{ color: #606468; margin: 2px 0; padding: 2px 7px; - opacity: 0.65; + opacity: 0.95; display: inline-block; font-size: 12px; font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 18px; - background-color: #ffffff; - border: 1px solid #c0c4c8; + background-color: #333333; + border: 1px solid #ffcc01; border-radius: 3px; -moz-border-radius: 3px; -webkit-border-radius: 3px; @@ -626,9 +653,11 @@ form.comment-form .comment-reply .reply-title{ border-color: #dc3545; } .snicker-comments-list .comment .comment-action a.action-reply{ - color: #007bff; - border-color: #007bff; + color: #ffcc01; + border-color: #333333; } + +/* Color of the Like/Dislike with a value (Not Zero) */ .snicker-comments-list .comment .comment-action a:hover, .snicker-comments-list .comment .comment-action a.active{ color: #ffffff; @@ -645,7 +674,7 @@ form.comment-form .comment-reply .reply-title{ } .snicker-comments-list .comment .comment-action a.action-reply:hover, .snicker-comments-list .comment .comment-action a.action-reply.active{ - background-color: #007bff; + background-color: #444444; } .snicker-comments-list .comment .comment-action a span{ margin: 0 3px 0 2px; @@ -662,7 +691,7 @@ form.comment-form .comment-reply .reply-title{ display: block; } .snicker-comments-list .pagination .pagination-button{ - color: #ffffff; + color: #444444; width: auto; min-width: 30px; height: 32px; @@ -674,7 +703,7 @@ form.comment-form .comment-reply .reply-title{ text-align: center; line-height: 22px; vertical-align: top; - background-color: #007bff; + background-color: #ffcc01; border-radius: 3px; -moz-border-radius: 3px; -webkit-border-radius: 3px; @@ -684,11 +713,11 @@ form.comment-form .comment-reply .reply-title{ } .snicker-comments-list .pagination .pagination-button:hover, .snicker-comments-list .pagination .pagination-button.hover{ - background-color: #0062cc; + background-color: #ffcc01; } .snicker-comments-list .pagination .pagination-button:active, .snicker-comments-list .pagination .pagination-button.active{ - background-color: #004999; + background-color: #886b00; } .snicker-comments-list .pagination .pagination-button:disabled, .snicker-comments-list .pagination .pagination-button.disabled{ diff --git a/themes/default/snicker.php b/themes/default/snicker.php index 7934d46..916d4ba 100644 --- a/themes/default/snicker.php +++ b/themes/default/snicker.php @@ -88,7 +88,7 @@
" /> - + generateCaptcha(); ?>
@@ -96,7 +96,7 @@
- +
username(); ?> :
@@ -121,7 +121,7 @@
@@ -166,11 +166,11 @@ - + - + @@ -187,8 +187,8 @@ « - « - + « + - + "> - - » + + » » @@ -286,19 +286,19 @@