The oEmbed plugin solved the issue of inserting videos and adjusting the layout. When inserting the link, it must not have any formatting.
There’s only a small difference in the video layout depending on the link format. For example:
https://www.youtube.com/watch?v=vE26dVkCvpw https://youtu.be/vE26dVkCvpw?si=qBS0Sou_DYqD8TGI
One video appears larger than the other. I know this is a minor issue, but for the sake of standardization, I’ll run some tests and get back to you soon.
When pasting the link (without formatting) into the editor, it doesn’t convert in the backend (which is fine); it’s only rendered on the frontend. I’ll run some tests with adjustments in the file:
/vendor/elgg/elgg/mod/ckeditor/views/default/ckeditor/config/base.mjs
Thank you for your help; your suggestion works. The issue has been resolved.
The issue was with the plugin configuration in the backend.
Whitelisted domains for oEmbed support was set as:
https://youtube.com, https://youtube.com.br, https://www.youtube.com/watch?v=,When I left the configuration blank, the plugin worked.
In the help text of the plugin settings it gives you a hint of what you should fill in.
https://youtube.com is an URL, not a domain. The domain of that link would be 'youtube', that will catch any URL with the same domain (like https://www.youtube.com or https://youtube.com).
There’s only a small difference in the video layout depending on the link format. For example:
https://www.youtube.com/watch?v=vE26dVkCvpw https://youtu.be/vE26dVkCvpw?si=qBS0Sou_DYqD8TGIOne video appears larger than the other. I know this is a minor issue, but for the sake of standardization, I’ll run some tests and get back to you soon.
With the plugin setting 'height' we try to make sure the format is the same, but it can still be that the height is the same but the width isn't. Let me know of any issues.
<elgg_folder>/vendor/elgg/elgg/mod/ckeditor/views/default/ckeditor/config/base.mjs
==============================================
CODE :
// Gets the height of the top bar, if present
========================================================
How to standardize shared videos through iframe? The code above does not work for users not connected to the network.
Thanks
Since I wasn't able to figure out how to create the design I was hoping for, I changed my plan and don't do it like instagram anymore. Instead I use it as intended with albums.
But maybe someone can answer me this: How do I change the CSS for Tidypics? Testing with manual changes in the views/default/photos/CSS.php file of Tidypics won't do anything. Is this not the right file for it?
I want to display the $title in the $heading smaller. Not as a <h2> (?), but normal sized text. I would like to add this to my own plugin as an overwrite, but I don't know what I have to overwrite, sorry.
In case someone finds this thread and is wondering how it went:
After one month of trying all kinds of things out, I actually succeeded: My "siteimagesall" page looks (kinda) like Instagram now. :)
All changes happened in the "summary.php". The downside is that the changes in this file effect other views as well, e.g. all photo albums page and the album list. This is OK for me for now. But step by step I will try to correct this as well.
This is what I did:
1. Copied code I found in elgg/views/detail/object/elements/summary to add an image block view above the photo which created the area from the full view with the user icon, display name, date and social links.
2. Set $header to false in the body view section, so that the title of the picture isn't shown.
3. Added $image->description below the picture.
4. Changed the thumbnail size from 153 pixels to 500 pixels on the admin settings page.
5. Styled the max-width for the view to 500 pixels, so that all entries look the same, no matter how long the description or amount of tags.
6. Added a <hr> to separate between entries. (This is only until I find a better solution to style the page more beautifully.)
(7. I also found out how to get metadata to show under the picture to get the social links there. This would be even nicer than having them above the picture. But I wasn't able to hide the social links from the image block view I called above the picture, so I hid that lower metadata area again. If someone tells me how I can easily hide the social links from the image block view, please let me know.)
And all of that without knowing anything about PHP! Just observing the code everywhere, reading the hints from Nikolai and the documentation, and, of course, a loooot of trial and error.
In the .htaccess (which is in the root of your website) you can change the max file size.
Make sure you also increase the 'post_max_size' to be above the 'upload_max_filesize' because the file size also counts in the post size and the rest of a form also needs to be send in the post size. A safe bet is 2MB more in post size.
Memory also has to be increased. The PHP Manual states that "memory_limit
" must be larger than "post_max_size
" and also that "post_max_size
" must be larger than "upload_max_size
".
You gave the 'login' events, are there any 'logout' events?
If not then I no idea what the issue is. I've never encountered anything like that.
There is nothing on the logout event except this. That's why I haven't shared above. I also checked the elgg core files login, logout and register php files, and I don't see any changes there.
register, menu:topbar | 500 | Elgg\Menus\Topbar::registerUserLinks |
500 | Elgg\Menus\Topbar::registerLogoutAs |
please don't double post your questions. I'll close this one, follow up can be here https://elgg.org/discussion/view/3322711/csv-file-upload-to-elgg-website
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.