ryan

Module: Video embed for YouTube/Vimeo (TextformatterVideoEmbed)

Recommended Posts

I would install the 1.0.9 module in PW 2.5 and then upgrade PW to latest 3.x

after that upgrade the module. 

Just my 2 cents. 

Share this post


Link to post
Share on other sites
Posted (edited)

I already have 109 and it's working. So, jumping straight ahead to 3.x? Will try and report back, probably on Sunday.  Thx dragan & horst.

I upgraded PW from 2.5.4 to 3.0.104 and then php from 5.5.12 to 7.2.2 in one go. Everything went fine. I needed DynamicRoles module that is compatible with PW3. 

Edited by matjazp
Update
  • Like 2

Share this post


Link to post
Share on other sites
On 5/15/2018 at 10:40 PM, tires said:

Is there a way to use the youtube nocookie url like https://www.youtube-nocookie.com/embed/XYZ123

The module does not support this, but you could edit the module file, adding the following line here:

$embedCode = str_replace('youtube.com', 'youtube-nocookie.com', $embedCode);

If you later update the module the change would be overwritten and you would have to redo it.

  • Like 1

Share this post


Link to post
Share on other sites
8 hours ago, Robin S said:

The module does not support this, but you could edit the module file, adding the following line here:


$embedCode = str_replace('youtube.com', 'youtube-nocookie.com', $embedCode);

If you later update the module the change would be overwritten and you would have to redo it.

Thanks a lot Robin, you saved my day!!!!

Share this post


Link to post
Share on other sites

Sorry, but i got another issue:

What if i want to add the "rel=0" feature?

Where do i have to put the:

?rel=0

 

Share this post


Link to post
Share on other sites
9 hours ago, Robin S said:

The module does not support this, but you could edit the module file, adding the following line here:


$embedCode = str_replace('youtube.com', 'youtube-nocookie.com', $embedCode);

If you later update the module the change would be overwritten and you would have to redo it.

I did the same for the TextformatterVideoEmbed module. Also added an option to it, if you want to use the nocookie domain or not.

Share this post


Link to post
Share on other sites
2 hours ago, tires said:

Sorry, but i got another issue:

What if i want to add the "rel=0" feature?

Where do i have to put the:


?rel=0

 

Install this module.

Share this post


Link to post
Share on other sites
1 hour ago, PWaddict said:

Install this module.

Thanks for this hint!
Great Module!

Would be great to have this nocookie url setting in there!

Share this post


Link to post
Share on other sites
2 hours ago, jmartsch said:

I did the same for the TextformatterVideoEmbed module. Also added an option to it, if you want to use the nocookie domain or not.

Couldn't you add this option into the module?
Would be great!

Share this post


Link to post
Share on other sites
22 hours ago, tires said:

Couldn't you add this option into the module?
Would be great!

I am planning to make a PR on github the next few days, in the meantime you could download my version of the module, as soon as I release it on github. Will notify you here.

  • Like 1

Share this post


Link to post
Share on other sites

Hey,

 

I would like to use this module as well but when I use it the whole website slows extremely down. It doesn't work. On my colleguage's system it works as charme. He uses v  3.0.62 and I use v  3.0.98. I really need this module to work. Any ideas? We compared the settings on both systems / backends and they're the same. Any ideas? I would appreciate it.

Share this post


Link to post
Share on other sites
39 minutes ago, Marcel said:

Hey,

 

I would like to use this module as well but when I use it the whole website slows extremely down. It doesn't work. On my colleguage's system it works as charme. He uses v  3.0.62 and I use v  3.0.98. I really need this module to work. Any ideas? We compared the settings on both systems / backends and they're the same. Any ideas? I would appreciate it.

Are you both on the same web host?   What other third-parry Process modules are you using? Please tell us more about your web environment.  That will provide critical information for someone to help you.

Share this post


Link to post
Share on other sites
15 minutes ago, cstevensjr said:

Are you both on the same web host?   What other third-parry Process modules are you using? Please tell us more about your web environment.  That will provide critical information for someone to help you.

No, we are on seperates ones. On modules there are Process, Protected and Textformatter. As soon as I go to Fields>myfield>Details>Text Formatters>Video embed for YT/Vimeo even the backend is immediately super slow or doesn't even react. 

Share this post


Link to post
Share on other sites

@ryan

Any chance this module could be used for multilanguage textarea?

It only appears as a text formatter for single language textarea.

Share this post


Link to post
Share on other sites
11 hours ago, simonsays said:

@ryan

Any chance this module could be used for multilanguage textarea?

It only appears as a text formatter for single language textarea.

I just converted a Textarea field to Textarea (Multi-language) and the module is working properly for every language.

Share this post


Link to post
Share on other sites
19 hours ago, Marcel said:

As soon as I go to Fields>myfield>Details>Text Formatters>Video embed for YT/Vimeo even the backend is immediately super slow or doesn't even react. 

That is strange, because Textformatters are only active on the frontend and not in the backend (far as I know). I never experienced a real slowdown with this module active and in use. Maybe it has something to do with your database access, because the module caches the embed code in the database.

The module also works with multilanguage fields, as I am using it for that purpose on https://p-jentschura.com

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By blad
      Hi guys!
      I just uploaded a module to explore files based on elFinder. By default it will show the "Files" folder.
      Screenshots:

      Video:
       
      To do:
       More options To fix:
       The function of rotating or scaling an image fails  Image editors V 1.01 (view issue)
      Fixed the bug working with the Multi-Language support ( translation of folders ). Fixed the name of elfinder.en  Github:
      https://github.com/LuisSantiago/ProcessElFinder/
      I hope you like it.
    • By BitPoet
      I'm really in love with FormBuilder, but the one thing missing to match all my end users' expectations were repeatable field groups. Think repeaters, in ProcessWire terms. Our primary application of PW is our corporate intranet, so "lines" of fields are quite common in the forms I build. We have all kinds of request forms where the information for a varying number of colleagues needs to be entered (from meal order to flight booking request) and where it is simply impractical to send a form for each, and I don't want to clutter my forms with multiple instances of fields that may only get used ten percent of the time.
      That's why I started to build FormBuilderMultiplier (link to GitHub).
      What it does:
      Adds an option to make a regular Fieldgroup repeatable Lets you limit the number of instances of a Fieldgroup on the form Adds an "Add row" button the form that adds another instance of the Fieldgroup's fields Adds a counter suffix at the end of every affected field's label Stores the entered values just like regular fields Makes the entered values available in preview and email notifications Supports most text based fields, textareas and selects (really, I haven't had enough time to test all the available choices yet) What it doesn't do (yet):
      Support saving to ProcessWire pages (i.e. real Repeaters) I haven't tested all the validation stuff, Date/Time inputs etc. yet, but since I'm utterly swamped with other stuff at work, I didn't want to wait until I have it polished. Any feedback is welcome. There might also be some issues with different output frameworks that I haven't encountered yet. The forms I work with mostly use UIKit.
      Status:
      Still alpha, so test well before using it in the field.
      Known issues:
      When rows are added, the form's iframe needs to be resized, which isn't completely clean yet.
      How it works:
      The Fieldgroup settings are added through regular hooks, as is the logic that adds the necessary field copies for processing the form and displaying previews.
      "Multiplied" field instances are suffixed with _NUM, where NUM is an incremental integer starting from 1. So if you have add two fields named "surname" and "givenname" to a fieldgroup and check the "multiply" checkbox, the form will initially have "surname_1" and "givenname_1" field (I'm still considering changing that to make the risk to shoot oneself into the foot by having a regular "surname_1" field somewhere else in the form less likely).
      When a "row" is added, the first row is cloned through JS and the counter in the fields' IDs, names and "for" attributes as well as the counter in the label are incremented before appending the copies to the Fieldset container in the form.
      To keep backend and frontend in sync, a hidden field named [name of the fieldset]__multiplier_rows is added to the form. Both the backend and the frontend script use this to store and retrieve the number of "rows".
      ToDo:
      Naturally, add the option to store the data in real repeaters when saving to pages. Do a lot of testing (and likely fixing). Make a few things (like the "Add row" button label etc.) configurable in field(set) context. Add a smooth API to retrieve the multiplied values as WireArrays. The mandatory moving screenshot:

    • By MoritzLost
      Hello there,
      I'm working on a tiny textformatter module that searches the text for titles of other pages on your site and creates hyperlinks to them. I'm not sure if something like this exists already, but I haven't found anything in the module directory, so I wrote my own solution 🙂
      It's not properly tested yet and is still missing some functionality I would like to implement, so at the moment it should be considered in BETA. Features include limiting the pages that will get searched by template, and adding a custom CSS class to the generated hyperlinks. As I'm writing this I noticed that it will probably include unpublished and hidden pages at the moment, so yeah ... it's still in development alright 😅
      You can download the module from Github:
      https://github.com/MoritzLost/TextformatterPageTitleLinks
      There's some more information in the readme as well.
      Anyway, let me know what you think! I'm happy about any feedback, possible improvements or ideas on how to improve the module. Cheers.
    • By adrian
      This module provides a way to rapidly generate Page fields and the required templates and pages for use as a drop down select (or any other Page field type).
      This module will let you create a full page field setup in literally a few seconds 
      To use, run Page Field Select Creator from the Setup Menu
      Enter a Field Title, eg: Room Types Select Options - These will become the child pages that will populate the page field select options. There are two different options.
       
      Option 1. TITLE FIELD ONLY - enter one option per line, eg:
       
      Single
      Double
      Suite
       
       
      Option 2. MULTIPLE FIELDS - the first line is used for the field names and the first field must be 'Title'. Subsequent lines are the values for the fields, eg:
       
      Title, Number of Beds, Number of People, Kitchen Facilities
      Single, 1, 1, Fridge Only
      Double, 2, 2, Fridge Only
      Suite, 3, 6, Full Kitchen
        Choose the parent where the page tree of options will be created, eg a hidden "Options" parent page Select a "Deference in API as" option depending on your needs Choose the input field type Check whether "Allow new pages to be created from field?" should be enabled. As an example, if you entered "Room Types" as the field title, you would end up with all of the following automatically created:
      a fully configured page field called: room_types MULTIPLE FIELDS OPTION - 3 additional fields - number_of_beds, number_of_people, kitchen a parent template called: room_types a child template called: room_types_items (with either just a title field, or with the 3 additional fields as well) a parent page called: Room Types a series of child pages named and titled based on the per line entries in the Select Options textarea The templates are configured such that the "room_types_items" child template can only have the main "room_types" template as a parent, and vice versa.

      Then all you have to do is add the newly created page field to any template you want and you're ready to go!
       
      You can grab it from:
       
      Modules directory: http://modules.processwire.com/modules/process-page-field-select-creator/
      Github: https://github.com/adrianbj/ProcessPageFieldSelectCreator
       

    • By bernhard
      WHY?
      This module was built to fill the gap between simple $pages->find() operations and complex SQL queries.
      The problem with $pages->find() is that it loads all pages into memory and that can be a problem when querying multiple thousands of pages. Even $pages->findMany() loads all pages into memory and therefore is a lot slower than regular SQL.
      The problem with SQL on the other hand is, that the queries are quite complex to build. All fields are separate tables, some repeatable fields use multiple rows for their content that belong to only one single page, you always need to check for the page status (which is not necessary on regular find() operations and therefore nobody is used to that).
      In short: It is far too much work to efficiently and easily get an array of data based on PW pages and fields and I need that a lot for my RockGrid module to build all kinds of tabular data.

      Basic Usage

       
      Docs & Download
      https://modules.processwire.com/modules/rock-finder/
      https://github.com/BernhardBaumrock/RockFinder
       
      Changelog
      180817, v1.0.6, support for joining multiple finders 180810, v1.0.5, basic support for options fields 180528, v1.0.4, add custom select statement option 180516, change sql query method, bump version to 1.0.0 180515, multilang bugfix 180513, beta release <180513, preview/discussion took place here: https://processwire.com/talk/topic/18983-rocksqlfinder-highly-efficient-and-flexible-sql-finder-module/