5231
oswaldo
Re: hack youtube for html5 & bootstrap3 RWD
  • 2016/1/15 2:43

  • oswaldo

  • Quite a regular

  • Posts: 215

  • Since: 2008/8/22


Thanks xd9527 very good.

it look better



5232
xd9527
hack youtube for html5 & bootstrap3 RWD
  • 2016/1/14 4:06

  • xd9527

  • Just popping in

  • Posts: 8

  • Since: 2016/1/13


Youtube have many new update ,
so i'm try hack this , for html5 and RWD...

hack point
1. compatible https
2. compatible long url and short url
3. of cause html5 , no flash
4. for bootstrap3 responsive embed , 16:9 and 4:3 and RWD
5 .mobile can full screen

just edit 2 files
\class\textsanitizer\youtube\youtube.php
\language\english\formdhtmltextarea.php


step1. edit \class\textsanitizer\youtube\youtube.php

old default height and width
var text2 prompt(enterFlashWidthPhrase"425");
var 
text3 prompt(enterFlashHeightPhrase"350");


change to 16:9
var text2 prompt(enterFlashWidthPhrase"16");
var 
text3 prompt(enterFlashHeightPhrase"9");


--

old only long url
if (!preg_match("/^http://(www.)?youtube.com/watch?v=(.*)/i"$url$matches)) {
    
trigger_error("Not matched: {$url} {$width} {$height}"E_USER_WARNING);
 
    return 
"";
 }
$src "http://www.youtube.com/v/" $matches[2];


change to compatible long url and short url , (i'm code beginner, so stupid code)
if (preg_match("/^http[s]?://(www.)?youtu.be/(.*)/i"$url$matches) ) { }
elseif (
preg_match("/^http[s]?://(www.)?youtube.com/watch?v=(.*)/i"$url$matches)) { }
else{
  
trigger_error("Not matched: {$url} {$width} {$height}"E_USER_WARNING);
  return 
"";
  }
 
$src "http://www.youtube.com/embed/" $matches[2];


--

old for flash object
$code "{$width}' height='{$height}'>{$src}'>" .
        
".
        
"{$src}' type='application/x-shockwave-flash' wmode='transparent' width='425' height='350'>" .
        
"";


change to bootstrap3 RWD embed-responsive 16by9 and 4by3
$code "{$width}by{$height}'>" .
        
"{$src}?controls=1&showinfo=0&rel=0&disablekb=1' allowfullscreen>
";


--

step2. edit language \language\english\formdhtmltextarea.php
define('_XOOPS_FORM_ALT_ENTERHEIGHT','(Video 16:9 or 4:3) input Height 9 or 3 :');
define('_XOOPS_FORM_ALT_ENTERWIDTH','(Video 16:9 or 4:3) input Width 16 or 4 :');


done!

try this

use newbb dhtml , click youtube, paste short url
Resized Image

input video width , default 16
Resized Image

input video height , default 9
Resized Image

test more, long and short , 16:9 and 4:3
Resized Image

post topic , video is widescreen , so black of 4:3 .
Resized Image

try my mobile phone, RWD ok !
Resized Image

thanks , i'm come from taiwan. (not china)
my english very pool , so embarrassed
everybody can change my pool translate :P

and hope next version have new best youtube code.

my blog
http://3q.9527.tw/80



5233
Mamba
Re: XOOPS error after PHP upgrade
  • 2016/1/13 0:38

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


Great to hear that we have another happy user!
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



5234
babay
Re: XOOPS error after PHP upgrade
  • 2016/1/12 20:50

  • babay

  • Just popping in

  • Posts: 6

  • Since: 2003/12/28


Many thanks! All ok!



5235
Mamba
XOOPS Presenter Alpha 1 available for testing
  • 2016/1/11 20:15

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


It's been a long time since you've mentioned the "XOOPS Presenter" module

I have now posted the code it on GitHub as Alpha 1.

NOTE: this is just an Alpha release and basically a "proof of concept", so expect bugs, and some weird code

But feel free to jump in and help with the development! Fork it on GitHub and contribute back.

This is the original presentation from impress.js, that is running here completely from XOOPS: click here to check it out!
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



5236
Mamba
Re: Best Web Hosting for Xoops
  • 2016/1/11 20:12

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


I have VPS on Arvixe, and everything works well so far!
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



5237
Dante7237
Re: Best Web Hosting for Xoops
  • 2016/1/11 18:57

  • Dante7237

  • Friend of XOOPS

  • Posts: 294

  • Since: 2008/5/28


I must retract my promotion of A2 Hosting. As it turns out they oversell their resources, and even *if* they claim you can xfer 1tb a month of data, they feel its ok to randomly delete anything they think is available for download w/o notice.

I was paying ~$70 a month for a reseller account so that I had the filespace and xfer ability to offer freeware utilities to my users. I have done so in the past using HostGator, Arvixe, even Yahoo back in the day. This is the 1st time a host has decided to arbitrarily delete perfectly legal files from my site w/o notice.
They claim even though they sell a service, I'm not allowed to use it.

Stablehost Is my next choice. We'll see how it goes.

I'll follow up here, as I hope that somehow my trials and tribulations will benefit someone, somewhere, eventually.

May your host be with you.



5238
goffy
Re: Block background
  • 2016/1/11 13:55

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


hi bleekk, yes, of course.

But a property/option solution would be quite nicer
and can be used by everyone, also dummies



5239
Bleekk
Re: Block background
  • 2016/1/11 7:36

  • Bleekk

  • Theme Designer

  • Posts: 941

  • Since: 2002/12/14


Hi Goffy,

I use custom class names for blocks in the block-title.
My title looks then like "classname|Blocktitle".

With smarty you can then get everything before | as the css class and behind | is the blocktitle.

Also you can use the block.id as the classname.

I hope it helps you



5240
goffy
Block background
  • 2016/1/11 6:18

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


I have a wish to our core developers:

I have created my latest websites as real onepage-website, and I am using only blocks to provide all information/functionallities.
If I want to have a striped design or different backgrounds for the different blocks, I solved it at the moment in the way, that I defined diffent backgrounds for the block groups (e.g. left blocks = grey, top left block = white, top center block = dark grey, top right block = white, and so on...)
But now I can only but one block in one area.
It would be helpful, if it would be possible to define for each block himself the background when editing the block properties/options (like weight, visible in...)

I hope, its clear, what I mean




TopTop
« 1 ... 521 522 523 (524) 525 526 527 ... 29425 »



Login

Who's Online

966 user(s) are online (222 user(s) are browsing Support Forums)


Members: 0


Guests: 966


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits