QUICK NEWS

{NEW} - A new css video is up.

{OLD} - New video courtesy of Skhilled, Thanks for posting it up.

Video of the moment:


Internal Links

SMF Sites

Quick Info

Code tags

Started by Bigguy, Mar 29, 2019, 02:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

live627

Great. Indeterminate bug. Just the worst.

LandyVlad

Cut and pasted from an earlier post by BG -

/* You can find detailed information at https://wiki.simplemachines.org/smf/Curve2_CSS
/* Index */
html {
background: #3e5a78;
}
body {
background: #e9eef2;
font: 83.33%/150% "Segoe UI", "Helvetica Neue", "Nimbus Sans L", Arial, "Liberation Sans", sans-serif;
color: #4d4d4d;
display: flex;
flex-direction: column;
min-height: 100vh;
}


as above but pasted as plain text

/* You can find detailed information at https://wiki.simplemachines.org/smf/Curve2_CSS
/* Index */
html {
background: #3e5a78;
}
body {
background: #e9eef2;
font: 83.33%/150% "Segoe UI", "Helvetica Neue", "Nimbus Sans L", Arial, "Liberation Sans", sans-serif;
color: #4d4d4d;
display: flex;
flex-direction: column;
min-height: 100vh;
}

Cut and paste from page source code
<script>
var smf_theme_url = "https://www.smfhelper.com/Themes/default";
var smf_default_theme_url = "https://www.smfhelper.com/Themes/default";
var smf_images_url = "https://www.smfhelper.com/Themes/default/images";
var smf_smileys_url = "https://www.smfhelper.com/Smileys";
var smf_smiley_sets = "fugue,alienine,smfh";
var smf_smiley_sets_default = "fugue";
var smf_scripturl = "https://www.smfhelper.com/index.php";
var smf_iso_case_folding = false;
var smf_charset = "UTF-8";
var smf_session_id = "ff988965e56403fe5713f2f912e80113";
var smf_session_var = "a179627d0cf";
var smf_member_id = 4;
var ajax_notification_text = 'Loading...';
var help_popup_heading_text = 'A little lost? Let me explain:';
var banned_text = 'Sorry LandyVlad, you are banned from using this forum!';
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://www.smfhelper.com/Themes/default/scripts/smf_jquery_plugins.js"></script>
<script src="https://www.smfhelper.com/Themes/default/scripts/jquery.custom-scrollbar.js"></script>
<script src="https://www.smfhelper.com/Themes/default/scripts/script.js"></script>
<script src="https://www.smfhelper.com/Themes/default/scripts/theme.js"></script>
<script src="https://www.smfhelper.com/Themes/default/scripts/editor.js"></script>
<script src="https://www.smfhelper.com/Themes/default/scripts/jquery.sceditor.bbcode.min.js"></script>
<script src="https://www.smfhelper.com/Themes/default/scripts/jquery.sceditor.smf.js"></script>
<script src="https://www.smfhelper.com/Themes/default/scripts/spellcheck.js"></script>
<script src="https://www.smfhelper.com/Themes/default/scripts/jquery.caret.min.js" defer></script>
<script src="https://www.smfhelper.com/Themes/default/scripts/jquery.atwho.min.js" defer></script>
<script src="https://www.smfhelper.com/Themes/default/scripts/mentions.js" defer></script>
<script src="https://www.smfhelper.com/Themes/default/scripts/quotedText.js" defer></script>
<script src="https://www.smfhelper.com/Themes/default/scripts/dropzone.min.js" defer></script>
<script src="https://www.smfhelper.com/Themes/default/scripts/smf_fileUpload.js" defer></script>
<script src="https://www.smfhelper.com/Themes/default/scripts/alerts.js"></script>
<script>
var smf_smileys_url = 'https://www.smfhelper.com/Smileys/smfh';
var bbc_quote_from = 'Quote from';


cut and 'paste as text' from page source code

<script>
var smf_theme_url = "https://www.smfhelper.com/Themes/default";
var smf_default_theme_url = "https://www.smfhelper.com/Themes/default";
var smf_images_url = "https://www.smfhelper.com/Themes/default/images";
var smf_smileys_url = "https://www.smfhelper.com/Smileys";
var smf_smiley_sets = "fugue,alienine,smfh";
var smf_smiley_sets_default = "fugue";
var smf_scripturl = "https://www.smfhelper.com/index.php";
var smf_iso_case_folding = false;
var smf_charset = "UTF-8";
var smf_session_id = "ff988965e56403fe5713f2f912e80113";
var smf_session_var = "a179627d0cf";
var smf_member_id = 4;
var ajax_notification_text = 'Loading...';
var help_popup_heading_text = 'A little lost? Let me explain:';
var banned_text = 'Sorry LandyVlad, you are banned from using this forum!';
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://www.smfhelper.com/Themes/default/scripts/smf_jquery_plugins.js"></script>
<script src="https://www.smfhelper.com/Themes/default/scripts/jquery.custom-scrollbar.js"></script>
<script src="https://www.smfhelper.com/Themes/default/scripts/script.js"></script>
<script src="https://www.smfhelper.com/Themes/default/scripts/theme.js"></script>
<script src="https://www.smfhelper.com/Themes/default/scripts/editor.js"></script>
<script src="https://www.smfhelper.com/Themes/default/scripts/jquery.sceditor.bbcode.min.js"></script>
<script src="https://www.smfhelper.com/Themes/default/scripts/jquery.sceditor.smf.js"></script>
<script src="https://www.smfhelper.com/Themes/default/scripts/spellcheck.js"></script>
<script src="https://www.smfhelper.com/Themes/default/scripts/jquery.caret.min.js" defer></script>
<script src="https://www.smfhelper.com/Themes/default/scripts/jquery.atwho.min.js" defer></script>
<script src="https://www.smfhelper.com/Themes/default/scripts/mentions.js" defer></script>
<script src="https://www.smfhelper.com/Themes/default/scripts/quotedText.js" defer></script>
<script src="https://www.smfhelper.com/Themes/default/scripts/dropzone.min.js" defer></script>
<script src="https://www.smfhelper.com/Themes/default/scripts/smf_fileUpload.js" defer></script>
<script src="https://www.smfhelper.com/Themes/default/scripts/alerts.js"></script>
<script>
var smf_smileys_url = 'https://www.smfhelper.com/Smileys/smfh';
var bbc_quote_from = 'Quote from';


I don;t seem to be able to replicate the problem.....
Please do not PM me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

SychO

You have to use WYSIWYG mode

Bigguy

#18
I found this bug with code tags awhile ago. It's here somewhere on the site. I was told it was how I pasted it or something but not to sure about that.
"It's the American dream....cause ya have to be asleep to believe it." - George Carlin

Bigguy

Here it is. I guess it happens when you use wysiwyg

https://www.smfhelper.com/index.php?topic=227.0
"It's the American dream....cause ya have to be asleep to believe it." - George Carlin

Skhilled

That's exactly what happened.

live627

test

/* You can find detailed information at https://wiki.simplemachines.org/smf/Curve2_CSS
/* Index */
html {
 background: #3e5a78;
}
body {
 background: #e9eef2;
 font: 83.33%/150% "Segoe UI", "Helvetica Neue", "Nimbus Sans L", Arial, "Liberation Sans", sans-serif;
 color: #4d4d4d;
 display: flex;
 flex-direction: column;
 min-height: 100vh;
}
/* General reset */
* {
 box-sizing: border-box;
 padding: 0;
 margin: 0;
}
ul, ol {
 list-style: none;
}
ul.normallist {
 list-style-type: disc;
 padding: 0 0 0 15px;
}
table {
 empty-cells: show;
}
abbr {
 border-bottom: 0.1em dotted;
}
input, button, select, textarea {
 color: #222;
 font: 83.33%/150% "Segoe UI", "Helvetica Neue", "Nimbus Sans L", Arial, "Liberation Sans", sans-serif;
 background: #fff;
 outline: none;
 border: 1px solid #bbb;
 vertical-align: middle;
 border-radius: 3px;
 box-shadow: 1px 2px 1px rgba(160, 187, 221, 0.2) inset;
 padding: 0.3em 0.4em;
}
input:hover, textarea:hover, button:hover, select:hover {
 outline: none;
 border-color: #82a2bc;
}
textarea:hover {
 background: #fbfbfb;
}
input:focus, textarea:focus, button:focus, select:focus {
 outline: none;
 border-color: #7fb0d8;
 background: #fff;
}
input, button, select {
 padding: 0 0.4em;
 height: 2em;
 line-height: 2em;
}
select {
 padding: 0.22em 0.2em; /* selects don't apply line-height */
}
/* Selects with more than one line */
select[size] {
 height: auto;
}
input[type="file"] {
 padding: 2px;
 height: auto;
}
/* Remove default mozilla dotted borders */
input[type="submit"]::-moz-focus-inner, button::-moz-focus-inner {
 border: 0;
}
/* Prevent inputs and images overflowing */
img, input, select, textarea {
 max-width: 100%;
}

live627

I pasted the code inside a blank code block after  switching  to the WYSIWYG editor

Bigguy

Copied your text hit reply in wysiwyg and this is what I get:

/* You can find detailed information at https://wiki.simplemachines.org/smf/Curve2_CSS
/* Index */
html {
 background: #3e5a78;
}
body {
 background: #e9eef2;
 font: 83.33%/150% "Segoe UI", "Helvetica Neue", "Nimbus Sans L", Arial, "Liberation Sans", sans-serif;
 color: #4d4d4d;
 display: flex;
 flex-direction: column;
 min-height: 100vh;
}
/* General reset */
* {
 box-sizing: border-box;
 padding: 0;
 margin: 0;
}
ul, ol {
 list-style: none;
}
ul.normallist {
 list-style-type: disc;
 padding: 0 0 0 15px;
}
table {
 empty-cells: show;
}
abbr {
 border-bottom: 0.1em dotted;
}
input, button, select, textarea {
 color: #222;
 font: 83.33%/150% "Segoe UI", "Helvetica Neue", "Nimbus Sans L", Arial, "Liberation Sans", sans-serif;
 background: #fff;
 outline: none;
 border: 1px solid #bbb;
 vertical-align: middle;
 border-radius: 3px;
 box-shadow: 1px 2px 1px rgba(160, 187, 221, 0.2) inset;
 padding: 0.3em 0.4em;
}
input:hover, textarea:hover, button:hover, select:hover {
 outline: none;
 border-color: #82a2bc;
}
textarea:hover {
 background: #fbfbfb;
}
input:focus, textarea:focus, button:focus, select:focus {
 outline: none;
 border-color: #7fb0d8;
 background: #fff;
}
input, button, select {
 padding: 0 0.4em;
 height: 2em;
 line-height: 2em;
}
select {
 padding: 0.22em 0.2em; /* selects don't apply line-height */
}
/* Selects with more than one line */
select[size] {
 height: auto;
}
input[type="file"] {
 padding: 2px;
 height: auto;
}
/* Remove default mozilla dotted borders */
input[type="submit"]::-moz-focus-inner, button::-moz-focus-inner {
 border: 0;
}
/* Prevent inputs and images overflowing */
img, input, select, textarea {
 max-width: 100%;
}
"It's the American dream....cause ya have to be asleep to believe it." - George Carlin

Bigguy

Yeah...Now it works, holy shit. lol. Well it usually doesn't. :bnghd
"It's the American dream....cause ya have to be asleep to believe it." - George Carlin

Skhilled

/* Help popups require a different styling of the body element. *//* Deprecated? */body#help_popup { padding: 12px;}
Ah ha! I think it only does it in the quick reply at the bottom of the forum. That's where I did it before and just did it now.

Bigguy

No it does it in the other editor as well. That is what I use all the time. I will open a file and get a bit of code.
"It's the American dream....cause ya have to be asleep to believe it." - George Carlin

Bigguy

One more test before this gets split I think. Copied code from php designer and pasted, than added code tags.

// If this category even can collapse, show a link to collapse it. if ($category['can_collapse']) echo ' <span id="category_', $category['id'], '_upshrink" class="', $category['is_collapsed'] ? 'toggle_down' : 'toggle_up', ' floatright" data-collapsed="', (int) $category['is_collapsed'], '" title="', !$category['is_collapsed'] ? $txt['hide_category'] : $txt['show_category'], '" style="display: none;"></span>'; echo ' ', $category['link'], ' </h3>', !empty($category['description']) ? ' <div class="desc">' . $category['description'] . '</div>' : '', ' </div> <div id="category_', $category['id'], '_boards" ', (!empty($category['css_class']) ? ('class="' . $category['css_class'] . '"') : ''), '>'; /* Each board in each category's boards has: new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.), children (see below.), link_children (easier to use.), children_new (are they new?),
"It's the American dream....cause ya have to be asleep to believe it." - George Carlin

Bigguy

"It's the American dream....cause ya have to be asleep to believe it." - George Carlin

Skhilled

I copied the code from Notepad++ then clicked the code bbc tag and pasted the code into it.