DansDomain
Members-
Posts
14 -
Joined
-
Last visited
Everything posted by DansDomain
-
How do I do Twitter embeds (with video)?
DansDomain replied to DansDomain's topic in Getting Started
Also, change lang=en to lang=en&theme=dark if you want the black / dark look for your Twitter embeds (I do!) -
How do I do Twitter embeds (with video)?
DansDomain replied to DansDomain's topic in Getting Started
Note for anyone who reads this thread, the Module elabx suggested is set to do Twitter posts in Spanish. If you want to switch it to English, change line 277 to: "&maxwidth={$this->maxWidth}&maxheight={$this->maxHeight}&lang=en"; (formerly it was lang=es for Spanish) If you get the missing semicolon problem like I did, just add a semi colon to the end of line 163. -
How do I do Twitter embeds (with video)?
DansDomain replied to DansDomain's topic in Getting Started
I apologize. I tested my site on a different computer and the videos load... The problem seems localized to my main PC in Google Chrome. It just doesn't like displaying any Twitter widgets... But on my other PC, works like a charm!!! My humble thanks... -
How do I do Twitter embeds (with video)?
DansDomain replied to DansDomain's topic in Getting Started
Y'know, maybe I just have the wrong idea about Twitter. You used to be able to directly embed Twitter videos into your page, just like YouTube etc. Is that still possible? -
How do I do Twitter embeds (with video)?
DansDomain replied to DansDomain's topic in Getting Started
Thanks. I tried this Module, but there was an error because of a missing semicolon - I fixed that. After that it let me install it but... it doesn't show videos for Twitter. I'm going to look at its code to see if I can figure out what is going on... Specifically I pasted a Twitter link to someone's status post. It puts the Tweet text but the video is missing entirely. -
Hey there, Just curious, if I want to embed a Twitter post, especially one with a video, how do I paste the embed code into my ProcessWire site? I have tried hitting the Source button in CKEditor and pasting the embed code in there, but it removes most of it upon saving. I'm using the Classic site of ProcessWire, which, other than visual modifications in CSS, is virtually unchanged for the most part. Is there a module for this or do I not even need one? Total n00b here.
-
Showing Code Snippets for the default Body field in Classic Theme
DansDomain replied to DansDomain's topic in Getting Started
Haha, thanks a million. It turns out the browser is intercepting my keystroke when I press Tab, it takes my cursor out of the input field I am typing into for the code... But if I copy and paste in a " " TAB (4 space-wide tab, you know what I mean? but not actually 4 spaces lol) it works fine. Good enough! Lol -
Showing Code Snippets for the default Body field in Classic Theme
DansDomain replied to DansDomain's topic in Getting Started
That worked! Thanks. I was confused cuz it didn't say CodeSnippet in the list, but it definitely makes the button show up! Now, how do I add tabbing to my code? I have to use 4 spaces instead of a tab right now... or should I use ? *confused again lol* I just wanna indent my CSS, it doesn't let me just tab it out with the Tab key, does nothing... -
Showing Code Snippets for the default Body field in Classic Theme
DansDomain replied to DansDomain's topic in Getting Started
Hey thanks so much. This is great advice. However I'm still confused on a few things. I got this far but my toolbar items in CKEditor config don't indicate anything about CodeSnippets: Available core toolbar items: About, Anchor, Blockquote, Bold, BulletedList, Copy, CopyFormatting, CreateDiv, Cut, Find, Flash, Format, HorizontalRule, Iframe, Image, Indent, Italic, JustifyBlock, JustifyCenter, JustifyLeft, JustifyRight, Language, Link, Maximize, NewPage, NumberedList, Outdent, PageBreak, Paste, PasteFromWord, PasteText, Preview, Print, PWImage, PWLink, Redo, RemoveFormat, Replace, Save, Scayt, SelectAll, ShowBlocks, Smiley, Source, Sourcedialog, SpecialChar, SpellChecker, Strike, Styles, Subscript, Superscript, Table, Templates, Underline, Undo, Unlink Here are the plugins I have installed via the interface (I just put them in plugins folder like you said to, and then checked the box and clicked Save here): My toolbar definitely doesn't have another button in it yet... probably because, like you already said, I have to add it to the list !!! But I don't know what to add and there's no indication of CodeSnippet in there... Any help please? Also it says I need highlight.js , so I went to that site and downloaded it, but what do I do with it? It's not clear how I can make CKEditor notice it and use it ... thanks -
Showing Code Snippets for the default Body field in Classic Theme
DansDomain replied to DansDomain's topic in Getting Started
Hey I'm interested in this, but where do I look? I'm a little confused as to what to do and where to get this... -
Showing Code Snippets for the default Body field in Classic Theme
DansDomain replied to DansDomain's topic in Getting Started
Oh, is this because I'm using CKEditor? Should I switch it to textarea? -
Showing Code Snippets for the default Body field in Classic Theme
DansDomain replied to DansDomain's topic in Getting Started
Like a typical n00b I have rushed to the conclusion everything would work without first testing. I think I'ma stop doing that. I have added this textformatter to my body's Detail tab under Textformatters. In the module's Test section, ```CSS blah { some fake CSS: 10px; } ``` works flawlessly, anything does. But in my editor, once I save, it doesn't apply the Textformatter obviously... I must have missed a step? It just outputs the same thing I put in: ```CSS etc. literally......... Any suggestions please? Thx -
Showing Code Snippets for the default Body field in Classic Theme
DansDomain replied to DansDomain's topic in Getting Started
This! Thank you! Exactly what I needed. This saves me enormous hardship, ahh. *waves of relief pass over me* Thanks again. -
Hi, newbie here. Presently I have code on my site that I want users to be able to copy and paste for their own purposes. Unfortunately if I indent it, it all gets lost as the formatter rewrites everything as soon as I hit Save. I need to be able to wrap my code snippet in something that lets me indent it and style it with CSS. Anyone know how I can do that? echo 'This site has a Code button...'; echo 'That's precisely what I need in my editor...'; echo 'Where do I get it?';