[CDB] Youtube Videos Gallery

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Suggested Hosts
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
doulis
Registered User
Posts: 14
Joined: Mon Apr 16, 2012 2:11 am

Re: [DEV] Youtube Videos Gallery

Post by doulis »

I cant see any SUBMIT button to create a new video..

all permissions are enabled and API KEY its ok!


Image
adult photo sharing
User avatar
Ralfik
Registered User
Posts: 3
Joined: Sat Feb 13, 2016 5:50 pm

Re: [DEV] Youtube Videos Gallery

Post by Ralfik »

Есть ли русский язык для последней версии? Очень жду. Расширение супер.
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 28948
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier

Re: [DEV] Youtube Videos Gallery

Post by Paul »

Ralfik, please keep in mind this is a English only forun
CCRoiDanton
Registered User
Posts: 35
Joined: Thu Oct 18, 2012 11:17 pm

Re: [DEV] Youtube Videos Gallery

Post by CCRoiDanton »

I just upgraded to the latest version 1.0.2 (from 1.0.0) and got errors after re-enabling the extension. I run the latest phpBB 3.1 (3.1.9). I cannot enable the extension anymore. Also downgrading to 1.0.0 does not work anymore with a different error when enabling.

Can you help me?

Code: Select all

SQL ERROR [ mysqli ]

Duplicate entry '1' for key 'PRIMARY' [1062]

SQL

INSERT INTO phpbb_video_cat (video_cat_id, video_cat_title) VALUES (1, 'Uncategorized')

BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 855
CALL: trigger_error()

FILE: [ROOT]/phpbb/db/driver/mysqli.php
LINE: 193
CALL: phpbb\db\driver\driver->sql_error()

FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 650
CALL: phpbb\db\driver\mysqli->sql_query()

FILE: [ROOT]/phpbb/db/driver/factory.php
LINE: 377
CALL: phpbb\db\driver\driver->sql_multi_insert()

FILE: [ROOT]/ext/dmzx/youtubegallery/migrations/youtubegallery_install.php
LINE: 155
CALL: phpbb\db\driver\factory->sql_multi_insert()

FILE: (not given by php)
LINE: (not given by php)
CALL: dmzx\youtubegallery\migrations\youtubegallery_install->insert_sample_data()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 550
CALL: call_user_func_array()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 496
CALL: phpbb\db\migrator->run_step()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 322
CALL: phpbb\db\migrator->process_data_step()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 202
CALL: phpbb\db\migrator->try_apply()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 185
CALL: phpbb\db\migrator->update_do()

FILE: [ROOT]/phpbb/extension/base.php
LINE: 80
CALL: phpbb\db\migrator->update()

FILE: [ROOT]/phpbb/extension/manager.php
LINE: 187
CALL: phpbb\extension\base->enable_step()

FILE: [ROOT]/includes/acp/acp_extensions.php
LINE: 177
CALL: phpbb\extension\manager->enable_step()

FILE: [ROOT]/includes/functions_module.php
LINE: 674
CALL: acp_extensions->main()

FILE: [ROOT]/adm/index.php
LINE: 81
CALL: p_master->load_active()
User avatar
Nosfe
Registered User
Posts: 4
Joined: Mon Apr 13, 2015 9:24 am

Re: [DEV] Youtube Videos Gallery

Post by Nosfe »

Salut,

Il serai bien d'ajouter un système de permissions pour les catégories, et encore mieux avoir la possibilité d'envoyer les vidéos depuis sont PC.

Vu qu'il n'existe pour le moment aucune autre Galerie Vidéo. ;)
User avatar
RMcGirr83
Former Team Member
Posts: 22099
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: [DEV] Youtube Videos Gallery

Post by RMcGirr83 »

Paul wrote:please keep in mind this is a English only forun
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer 🍺
sploinker
Registered User
Posts: 15
Joined: Thu Mar 09, 2006 4:27 am

Re: [DEV] Youtube Videos Gallery

Post by sploinker »

This extension blew up my ACP panel with the following error in the header. I have followed all the installation instructions, the API key, all to the letter. I have disabled the extension, deleted the associated data, and removed the extension and I sill get the below error:

Code: Select all

Parse error: syntax error, unexpected '\' (T_NS_SEPARATOR) in /home/trante2/public_html/test1/testphpbb/includes/functions_module.php(472) : eval()'d code on line 1

Parse error: syntax error, unexpected '\' (T_NS_SEPARATOR) in /home/trante2/public_html/test1/testphpbb/includes/functions_module.php(472) : eval()'d code on line 1

Parse error: syntax error, unexpected '\' (T_NS_SEPARATOR) in /home/trante2/public_html/test1/testphpbb/includes/functions_module.php(472) : eval()'d code on line 1
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 134: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions_module.php(472) : eval()'d code:1)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 134: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions_module.php(472) : eval()'d code:1)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 134: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions_module.php(472) : eval()'d code:1)
    
I also can no longer delete my cache. I get a spinning circle indicating its working then just goes away with no confirmation to delete the cache. Any ideas?
User avatar
dmzx
Registered User
Posts: 865
Joined: Fri Sep 05, 2014 6:48 am
Location: The Netherlands

Re: [DEV] Youtube Videos Gallery

Post by dmzx »

Strange not seen this before.
What version of phpBB you use?
Try to delete the files in the cache directory manual but not .htaccessand index.htm
Contact me on dmzx-web.net
sploinker
Registered User
Posts: 15
Joined: Thu Mar 09, 2006 4:27 am

Re: [DEV] Youtube Videos Gallery

Post by sploinker »

I'm on 3.8 but upgraded to 3.9 to see if it would correct the issue. I was getting the same errors as others as well when trying to post videos, etc. it worked great other than the errors and after half a day messing with it to get it to work I gave up and just uninstalled it. I'll try to remove manually and let you know what happens.
sploinker
Registered User
Posts: 15
Joined: Thu Mar 09, 2006 4:27 am

Re: [DEV] Youtube Videos Gallery

Post by sploinker »

Manual clear did not work.


UPDATE:
I found the problem and it was NOT your code. Apparently while messing around I managed to turn off "hide errors" function set in php.ini so it was showing all errors. Upon looking at the log these errors have been around for a month which I have now resolved. Apologies for thinking it was your code and not my dumb @$$! In any case, installing this on 3.8 still results in the aforementioned errors.

Thanks for responding!

UPDATE:
Got it all working perfectly.
User avatar
Galandas
Registered User
Posts: 803
Joined: Thu Jul 23, 2009 4:11 pm
Location: Italy
Name: Rey

Re: [DEV] Youtube Videos Gallery

Post by Galandas »

Italian translation, regards ;) here download --->
Last edited by Galandas on Fri Mar 31, 2017 3:54 pm, edited 1 time in total.
English is not my native language My CDB Contributions My RC extensions Styles Page
User avatar
noth
Registered User
Posts: 2528
Joined: Fri Jan 07, 2005 7:10 pm
Location: North Surrey

Re: [DEV] Youtube Videos Gallery

Post by noth »

I had the 0.1.3 version of this EXT

decided the 1.0.2. looked good so disabled 0.1.3. took out the 0.1.3 files, placed 1.0.2 files instead

enabled 1.0.2 ext

this is the result

Code: Select all

SQL ERROR [ mysql4 ]

Duplicate entry '1' for key 'PRIMARY' [1062]

SQL

INSERT INTO w2phpbb_video_cat (video_cat_id, video_cat_title) VALUES (1, 'Uncategorized')

BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 855
CALL: trigger_error()

FILE: [ROOT]/phpbb/db/driver/mysql.php
LINE: 181
CALL: phpbb\db\driver\driver->sql_error()

FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 650
CALL: phpbb\db\driver\mysql->sql_query()

FILE: [ROOT]/phpbb/db/driver/factory.php
LINE: 377
CALL: phpbb\db\driver\driver->sql_multi_insert()

FILE: [ROOT]/ext/dmzx/youtubegallery/migrations/youtubegallery_install.php
LINE: 155
CALL: phpbb\db\driver\factory->sql_multi_insert()

FILE: (not given by php)
LINE: (not given by php)
CALL: dmzx\youtubegallery\migrations\youtubegallery_install->insert_sample_data()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 550
CALL: call_user_func_array()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 496
CALL: phpbb\db\migrator->run_step()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 322
CALL: phpbb\db\migrator->process_data_step()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 202
CALL: phpbb\db\migrator->try_apply()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 185
CALL: phpbb\db\migrator->update_do()
so it seems if you want to upgrade from an early version you will have to delete all your data first :( which is a shame, is that the only solution here?


and now when I try and go back to the 0.1.3 version I can't even do that, I get this
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/class_loader.php on line 160: require(./../ext/dmzx/youtubegallery/migrations/youtubegallery_install.php): failed to open stream: No such file or directory

Fatal error: require(): Failed opening required './../ext/dmzx/youtubegallery/migrations/youtubegallery_install.php' (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/ma/windsorsafaripark.org.uk/phpbb/class_loader.php on line 160
User avatar
Volksdevil
Registered User
Posts: 2415
Joined: Sun Oct 03, 2010 2:03 pm
Location: Lancashire, UK
Name: Neil

Re: [DEV] Youtube Videos Gallery

Post by Volksdevil »

Is there any way I can change the extensions 'video' path to 'videos'? My website already has a folder 'video'. I'm getting a blank white page with
403 Access Denied. If this is in error, please contact support.
My phpBB Extensions
Finally found great Website Hosting from :arrow: KUALO!
Do NOT use 123-reg.co.uk - Incapable of running phpBB!
:ugeek: TekNeil - Streamer on Twitch | My Volkswagen Corrado G60
User avatar
Austeyr
Registered User
Posts: 30
Joined: Thu Jun 23, 2016 5:48 am
Location: Australia
Name: Randell Monaghan

Re: [DEV] Youtube Videos Gallery

Post by Austeyr »

Great Ext.. but first thing i noticed is it's not responsive...
ive searched all the files and i can't make sense of where to change it from px to %


How do i make the video on the view video page become responsive so it fits to screen on mobile devices i'd be happy with some hack em up job so it works.
Last edited by Austeyr on Sat Jul 16, 2016 2:29 am, edited 1 time in total.
My phpBB Forums Top Ad Coop, 4WD Nexus & Gamer Raid
Free Banner Advertising Share My Ads
Fav Quote: Words are vehicles that can transport us from the drab sands to the dazzling stars. ~M. Robert Syme
User avatar
Austeyr
Registered User
Posts: 30
Joined: Thu Jun 23, 2016 5:48 am
Location: Australia
Name: Randell Monaghan

Re: [DEV] Youtube Videos Gallery

Post by Austeyr »

Austeyr wrote:Great Ext.. but first thing i noticed is it's not responsive...

ive searched all the files and i can't make sense of where to change it from px to %


How do i make the video on the view video page become responsive so it fits to screen on mobile devices i'd be happy with some hack em up job so it works.

Here's my own little hack and slash job to get it to work it's not pretty at all lol


Go to
ext/dmzx/youtubegallery/controller/admin_controller.php

Find

Code: Select all

'video_width'						=> array('lang' => 'ACP_VIDEO_WIDTH', 'validate' => 'string', 'type' => 'text:4:4', 'explain' => true, 'append' => ' ' . $this->user->lang['PIXEL']),
Replace With

Code: Select all

'video_width'						=> array('lang' => 'ACP_VIDEO_WIDTH', 'validate' => 'string', 'type' => 'text:4:4', 'explain' => true, 'append' => ' ' . $this->user->lang['PERCENT']),
Go To

ACP Admin > Extensions > Youtube Gallery Settings

Notice now the px has been removed from the end of the width field.

In the width field paste

100%

Demo Of Responsive Video : http://sabaai.org/forum/video?mode=view&id=1




This is a very dirty hack can developer come up with a cleaner fix please everything must be responsive these days or you might as well not have a website. Mobile is the future.
My phpBB Forums Top Ad Coop, 4WD Nexus & Gamer Raid
Free Banner Advertising Share My Ads
Fav Quote: Words are vehicles that can transport us from the drab sands to the dazzling stars. ~M. Robert Syme

Return to “Extensions in Development”