What is twitter:domain good for? - twitter-card

I'm currently trying the Twitter Card Validator for my website.
I did not set twitter:domain, because the help text shows
RESTRICTED - twitter:domain will be automatically generated from your card's URL.
Not required
But I've just wondered if I should set it anyway.
What would be the effect when I set twitter:domain? To which value should I set it? Should I set it at all?
(I guess martin-thoma.com, but it might also be http://martin-thoma.com or martin-thoma.com/.)
Answers that don't cite a reliable source are note acceptable!

The twitter:domain tag had since been omitted in Cards Markup Tag Reference and is no longer mentioned by validator.
It seems to have been de-facto deprecated and no longer used.

According to this, twitter:domain is used to display the text on the button "View on ...". The validator seems to agree. Once you enter it and update the card, it changes from "View on web" to "View on (value of twitter:domain)".

Related

How to prevent the 3CX chrome extension from making a number clickable

At our company, we use chrome and have the 3CX chrome extension.
This extension is quite eager to transform any sequence of number into a clickable link to pass a phone call.
How to prevent the 3CX extension from converting sequences of numbers into clickable links on specific pages ?
So far we figured out that enclosing numbers in a <pre> or <code> tag does the trick. But we need something to disable 3CX as a whole on a webpage.
Does a special meta tag exists for this purpose ?
So I ran into the same problem my company uses 3cx extension, but it keeps modifying our page to add "click to call" links where it shouldn't.
I found this thread on the official forum which says that apparently they have no options to force the extension to ignore a specific website or field:
https://www.3cx.com/community/threads/disable-the-chrome-extension-for-my-website.79302/
But on the bright side, I implemented a hack on my field to force the extension to ignore numbers on my string, I added zero-width space after each number like this:
str.split(/(\d+)/g).join('​<zero-width-space>​​​​​​​​​​​​');​​
the editor does not let me paste the code for the zero-width space, it can be acquired here: https://codepen.io/chriscoyier/pen/AwVNjg%E2%80%8B%E2%80%8B
Try this
Admin Panel>Extensions>Click to Talk> untick the box labeled "Click2Talk"at the top of the page.

How to remove text in subscribe button embedded on website

How can I remove the text YouTube on my website's youtube subscribe button? I tried to apply some styles to target the text but still displaying. I want to apply some style with the button. Please see the fiddle below:
JSFiddle: https://jsfiddle.net/jc47r8ys/2/
Not only can you not remove the text, I would go so far as to say it may be a violation of YouTube’s policy to do so. You can not access the text using a script, as it falls under the same origin policy and they are smarter than to let you use simple CSS to accomplish this.
They do, however, allow you to customize your button as per their pre-determined guidelines.
Sorry to disappoint, hope this helps.
The text "YouTube" is coming from the following CSS file:
https://www.youtube.com/yts/cssbin/www-subscribe-embed-webp-vflp1Z4Vh.css
(Open the link and you search for "YouTube")
I'm not sure, but you might be able to override it. (turns out you should not)

Using image styles with Scald dnd (Drupal 7)

I have been using the Scald module for few months now, with great experience. But there is one thing I haven't quite figured out yet.
When I have Drag'n'Drop enabled for a textarea (with CKEditor) I can drag images into the textarea and it displays in it's original size. If i Right-click the image I get the image properties for the image, but only at CSS level.
I'm trying to figure out how to add an Image Style to the image, so that my 4000x3000 image that I drag into the editor will be scaled down to a nicer 300x200 image where wanted, and therefor save some valuable bandwidth.
I found the answer after a pile of googling and reading through few articles. First and foremost it was the one about installing and configuring Scald. (Please Google, I can't post that many links :( )
I installed the CKEditor module, disabled the Wysiwyg module, downloaded the library into sites/all/libraries/, and finally read this article about contexts with Scald: https://drupal.org/node/2104651.
Bottom line, this is possible, but not easy (as sometimes Scald is), but when you get the hang of it, it's much better than the Media module.
I just struggled with this so thought I'd document how to set up contexts.
This is how you add new contexts which can use an image style formatter as a transcoder using the UI:
Go to /admin/structure/scald and click add context. Choose any name and details, but do check "Make parseable"
On the top of the original page for scald settings click "Contexts" in the upper right for "Image" under "Scald Unified Atom Types"
In the page that loads (/admin/structure/scald/image/contexts) you'll see your new context named. Open the fieldset and change the "Transcoder" from "Passthrough" to one of your image styles, e.g. "Large (image style)"
Now when you right-click on a image atom in a textarea wysiwyg and choose "Edit Atom Properties" you'll get a dialog with a new context to choose from. You can also go the default contexts provided by Scald and change them from "Passthrough" to one of your image styles.
Also, at the moment you also have to apply this change https://drupal.org/node/2046545 to scald.pages.inc or you'll lose your legend as you switch contexts or use the dev version. When 7.x-1.2 is released this will no longer be necessary.
I just ran across this same issue, using WYSIWYG 2.x-dev with CKEditor library 4.3, Scald 1.2. What fixed it was one of these things (sorry can't remember exactly which one):
Both "Scald DnD Integration" and "Scald SAS conversion" enabled in the relevant WYSIWYG profiles
The display settings for your image (at admin/structure/scald/image/display) have atom field set to enabled but image field set to hidden
You want to use the insert image module
https://drupal.org/project/insert
The easiest way to assign image styles to images going into a wysiwyg area

set iframe in article in joomla

I am new in joomla. I am using joomla 1.5.26. I have created one article and try to place an iframe in that article in html mode. But when I try to save its becoming blank. How to solve this issue. Please help me.
Thanks in advance.
I think it's happened because of text filtering. To prevent Joomla from stripping HTML from your content see below (Note: Be careful while settings in production server):
Go to the Article Manager.
Select ” Options ” (the button on the top right).
Under Text Filters options, choose: Filter groups: select the groups that are allowed to use HTML code, e.g. SuperAdministrator Filter type: Whitelist / no filtering.
also check your editor settings.

Reporting in Rich Text

I've built an ASP.net web application which allows the users to view and make notes on a list of calendar events. The notes are edited in a WYSIWYG editor that outputs to HTML text (but could also output to RTF), which is then saved as text in an MSSQL05 database.
Now I've got to add a printing function to the calendar application. Prior to this version, the printing was done through SSRS05, but now that I've added rich text notes, this method will no longer work.
I can render the whole calendar in a printer-friendly format in the web browser, but my users have two issues with that: first, I can't turn off the header and footer added during the print, and the users are a little too basic to understand how to turn it off themselves; and second, when a note gets too long, the text gets wrapped not-too-gracefully to the next page. Unfortunately, they use IE7, so the page-break-inside attribute isn't recognized, and upgrading to IE8 or using a different browser is out of the question (I already asked :P)
So with that information, what's the best way to generate a report which features rich text?
I suggest DataDynamics ActiveReports. Very powerful, lightyears ahead Crystal. Give it a try!

Resources