4images Modifications / Modifikationen > Mods & Plugins (Releases & Support)

[MOD] Media sites v1.11.1 (2010-12-22)

<< < (53/53)

Tino23:
Da sich ja doch wieder einiges geändert hat und die Videos nur noch im Firefox liefen, hab ich die youtube.html folgendermaßen geändert


--- Code: ---<!-- http://code.google.com/apis/youtube/player_parameters.html -->

<iframe width="{if image_width}{image_width}{endif image_width}{ifno image_width}480{endifno image_width}" height="{if image_height}{image_height}{endif image_height}{ifno image_height}390{endifno image_height}" src="https://www.youtube.com/embed/{media_id}?autoplay=1&rel=0" frameborder="0" gesture="media" allow="encrypted-media" allowfullscreen></iframe>


--- End code ---

Warrior:
I know this is a rather old MOD, but believe it or not, it still  works on v.1.8 (which works in this PHP7+ world)!

I did notice something though due to a change I made on the general usage of my Gallery - I normally do NOT allow BB code in the comments, so this issue never showed up before. I turned them on and discovered that this code from this MOD was wiping out the text for Description and Comments -

From includes/Functions:
Find:

--- Code: ---    $text = preg_replace($search_array, $replace_array, $text);
--- End code ---

Insert above:


--- Code: ---/*
  MOD MEDIA SITES
  BEGIN INSERT
*/
    $text = media_sites_bbcode($text);
/*
  MOD MEDIA SITES
  END INSERT
*/
--- End code ---
I removed that code and all the description and comments text came back. It's an optional step in the MOD, so it's not a big deal as far as the MOD goes.

Navigation

[0] Message Index

[*] Previous page

Go to full version