[ABD] OurTube [YouTube/Uploaded Video Streaming]

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
User avatar
Bruno36
Registered User
Posts: 287
Joined: Fri Mar 02, 2007 2:16 pm
Location: france
Name: bruno astie
Contact:

Re: [BETA] OurTube [YouTube/Uploaded Video Streaming]

Post by Bruno36 » Sun Apr 19, 2009 6:53 am

Bruno36 wrote:
Bruno36 wrote:
Bruno36 wrote:Bonjour!

How to make a block Board3Portal_v1.0.2 ?
Excuse me for my poor English, I speak french
Bruno36

yhelp
Registered User
Posts: 31
Joined: Fri Nov 16, 2007 10:20 pm
Contact:

Re: [BETA] OurTube [YouTube/Uploaded Video Streaming]

Post by yhelp » Sun Apr 19, 2009 7:22 am

Bruno36 wrote:
Bruno36 wrote:
Bruno36 wrote:
Bruno36 wrote:Bonjour!

How to make a block Board3Portal_v1.0.2 ?
A portal block has now been written for board3 portal, this will be included within the contrib folder of the next release.

Ill adapt it so it also works for phpbb3portal, although this should be a direct drop in i believe :)
If it ever gets release. :roll:
Y! Help - Our fresh approach is friendly and informative but above all we work at your pace your level of computer knowledge and take nothing for granted.

User avatar
Gleasonator
Registered User
Posts: 652
Joined: Tue Jun 05, 2007 2:19 pm
Location: Texas
Contact:

Re: [BETA] OurTube [YouTube/Uploaded Video Streaming]

Post by Gleasonator » Sun Apr 19, 2009 11:56 pm

What do you guys think of my modified OurTube layout? http://gleasonator.com/tube/index.php

I'd be willing to provide the template files if anyone is interested.
Sorry for my bad Engrish !
gleason|design

Image

User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm
Contact:

Re: [BETA] OurTube [YouTube/Uploaded Video Streaming]

Post by keith10456 » Mon Apr 20, 2009 4:35 am

Gleasonator wrote:What do you guys think of my modified OurTube layout? http://gleasonator.com/tube/index.php

I'd be willing to provide the template files if anyone is interested.
I like it... Please share!

Shalashaska
Registered User
Posts: 44
Joined: Sat Dec 17, 2005 11:07 am

Re: [BETA] OurTube [YouTube/Uploaded Video Streaming]

Post by Shalashaska » Mon Apr 20, 2009 2:53 pm

I like the Categories list view! Please share your template files! :) Thank you very much.

Peter77sx
Registered User
Posts: 3257
Joined: Wed Nov 09, 2005 2:51 pm

Re: [BETA] OurTube [YouTube/Uploaded Video Streaming]

Post by Peter77sx » Mon Apr 20, 2009 3:51 pm

Yeah that's pretty neat, Gleasonator. it would releave headache for those who are using Prosilver SE templates. :)

peterrishede
Registered User
Posts: 1
Joined: Mon Apr 20, 2009 7:02 pm

Re: [BETA] OurTube [YouTube/Uploaded Video Streaming]

Post by peterrishede » Mon Apr 20, 2009 7:28 pm

Hello mr.daemonic

very nice MOD, I realy need it for a forum i´m building http://www.hawkhills.com
Do you have a date for the 2nd release ?, corse I would like to have the comment part with

This Mod is exactly what I need, and I am ready to install the current version, but it would be better to install the 2nd release if it is to be ready soon 8-)

Keep upp the good work and hope to hear from you soon.

peter

User avatar
Gleasonator
Registered User
Posts: 652
Joined: Tue Jun 05, 2007 2:19 pm
Location: Texas
Contact:

Re: [BETA] OurTube [YouTube/Uploaded Video Streaming]

Post by Gleasonator » Mon Apr 20, 2009 8:57 pm

NOTE: This only works with prosilver-based styles.

Download the template files here: http://gleasonator.com/downloads/ourtube_templates.zip and replace your old ones in yourstyle/template/

In order for categories to be able to be displayed on category pages (in other words, in order for this template to work correctly) you need to open tube/index.php and:

Find:

Code: Select all

			while ($row = $db->sql_fetchrow($result))
			{
				$x++;
				$y++;
				$sql2 = 'SELECT COUNT(item_id)
					FROM ' . TUBE_ITEMS_TABLE . "
					WHERE category_id = '" . $db->sql_escape($row['category_id']) . "'";
				$result2 = $db->sql_query($sql2);
				$row2 = $db->sql_fetchrow($result2);
	                        $template->assign_block_vars('category', array(
					'S_ROW'			=> $x % 3,
					'S_COL'			=> $y,
					'U_CATEGORY'		=> append_sid("{$phpbb_root_path}tube/index.$phpEx", "mode=category&id=" . $row['category_id']),
					'CATEGORY'		=> $row['title'],
					'COUNT'			=> $row2['COUNT(item_id)'],
					'DESCRIPTION'		=> (strlen($row['description']) > 150) ? substr($row['description'], 0, 150) . '...' : $row['description'],
					'THUMB'			=> ($row['thumb'] != '') ? (($row['youtube'] != '') ? $row['thumb'] : append_sid("{$phpbb_root_path}" . $row['thumb'])) : '',
				));
				$db->sql_freeresult($result2);
			}
After add:

Code: Select all

			$db->sql_freeresult($result);
			make_tabs($id);
			$template->assign_vars(array(
				'U_CATEGORY'		=> append_sid("{$phpbb_root_path}tube/index.$phpEx", "mode=category&id=" . $id),
				'CATEGORY'		=> $category,
				'PAGINATION'		=> generate_pagination(append_sid("{$phpbb_root_path}tube/index.$phpEx", 'mode=category&id=' . $id), $total_items, 12, $start),
				'PAGE_NUMBER'		=> on_page($total_items, 12, $start),
			));
			$template->assign_block_vars('navlinks', array(
				'U_VIEW_FORUM'  	=> append_sid("{$phpbb_root_path}tube/index.$phpEx"),
				'FORUM_NAME'    	=> $user->lang['TUBE'],
			));
			$template->assign_block_vars('navlinks', array(
				'U_VIEW_FORUM'  	=> append_sid("{$phpbb_root_path}tube/index.$phpEx", "mode=category&id=" . $id),
				'FORUM_NAME'    	=> $category,
			));
			$template->set_filenames(array(
				'body'  		=> 'tube_category.html')
			);
			$page_title = $user->lang['TUBE'] . ' • ' . $category;
Then give credit to the author. In these template files, no credit is given. That's because I liked it better in overall_footer, so let's insert it into overall_footer. But first, in tube/index.php again:

Find:

Code: Select all

	'U_TUBE'			=> append_sid("{$phpbb_root_path}tube/index.$phpEx"),
After add:

Code: Select all

	'S_TUBE'			=> true,
Then in your yourstyle/template/overall_footer.html

Find:

Code: Select all

Powered by <a href="http://www.phpbb.com/">phpBB</a> &copy; 2000, 2002, 2005, 2007 phpBB Group
Before add:

Code: Select all

<!-- IF S_TUBE -->Powered by 'OurTube' written by <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2872753">Daemonic</a><br />& JW FLV Player written by <a href="http://www.jeroenwijering.com/?item=JW_FLV_Player">Jeroen Wijering</a><br /><!-- ENDIF --
With the tube/index.php change, this text will only show when browsing an OurTube page.

Next we'll add an "add video". This step isn't required, but if you add it it's pretty pimpin. You can't see the button on my site, I know, but because you're not logged in. If you don't do this next step, only text will be displayed.

Here is a preview of that button for prosilver: Image
And here's a download: https://camo.phpbb.com/526f70c91761f8d3a05237b8cdc72041a4fbab4f/687474703a2f2f676c6561736f6e61746f722e636f6d2f646f776e6c6f6164732f627574746f6e5f6164645f766964656f2e676966

Download it and put it in yourstyle/imageset/en then follow these instructions:

Open yourstyle/imageset/en/imageset.cfg and add this line anywhere in the file, on a completely new line:

Code: Select all

img_button_add_video = button_add_video.gif*25*90
Open yourstyle/theme/buttons.css

Find:

Code: Select all

.post-icon span		{ background: transparent none 0 0 no-repeat; }
After add:

Code: Select all

.addvideo-icon span   { background: transparent none 0 0 no-repeat; }
Find:

Code: Select all

.buttons div.reply-icon		{ width: {IMG_BUTTON_TOPIC_REPLY_WIDTH}px; height: {IMG_BUTTON_TOPIC_REPLY_HEIGHT}px; }
After add:

Code: Select all

.buttons div.addvideo-icon   { width: {IMG_BUTTON_ADD_VIDEO_WIDTH}px; height: {IMG_BUTTON_ADD_VIDEO_HEIGHT}px; }
Open yourstyle/theme/colours.css

Find:

Code: Select all

.reply-icon span   { background-image: url("{IMG_BUTTON_TOPIC_REPLY_SRC}"); }
After add:

Code: Select all

.addvideo-icon span   { background-image: url("{IMG_BUTTON_ADD_VIDEO_SRC}"); }
Open includes/acp/acp_styles.php

Find:

Code: Select all

 'button_topic_locked', 'button_topic_new', 'button_topic_reply',
Replace with:

Code: Select all

 'button_topic_locked', 'button_topic_new', 'button_topic_reply', 'button_add_video',
PHEW. What a post. I bet most of you weren't expecting it to be this complicated.

Refresh all your cache and this should work. Let me know if you guys have problems.
Sorry for my bad Engrish !
gleason|design

Image

yhelp
Registered User
Posts: 31
Joined: Fri Nov 16, 2007 10:20 pm
Contact:

Re: [BETA] OurTube [YouTube/Uploaded Video Streaming]

Post by yhelp » Tue Apr 21, 2009 3:55 am

I have tested this and there's a few things you need to fix.

Image

And when you click a category they don't show in that category.

Image

But all in all good work. :)

Edit: Forgot to put the add video button dose not show even the add video line text...... so just a few bugs.
Y! Help - Our fresh approach is friendly and informative but above all we work at your pace your level of computer knowledge and take nothing for granted.

hp_solomon
Registered User
Posts: 269
Joined: Wed Mar 30, 2005 8:06 am

Re: [BETA] OurTube [YouTube/Uploaded Video Streaming]

Post by hp_solomon » Tue Apr 21, 2009 5:56 pm

Still in beta? any estimated date for this to be in RC?

keep it up.. tnx

User avatar
Gleasonator
Registered User
Posts: 652
Joined: Tue Jun 05, 2007 2:19 pm
Location: Texas
Contact:

Re: [BETA] OurTube [YouTube/Uploaded Video Streaming]

Post by Gleasonator » Tue Apr 21, 2009 8:19 pm

yhelp wrote:I have tested this and there's a few things you need to fix.

Image

And when you click a category they don't show in that category.

Image

But all in all good work. :)

Edit: Forgot to put the add video button dose not show even the add video line text...... so just a few bugs.
The first file edit in my post should fix at least the categories issue. :(

As for the button, maybe it needs to be added via the ACP... go to ACP > Styles > Imagesets, find your style and choose the "Edit" option. On the next page, change the "Select image" dropdown to Localised buttons > Add video [en]. Then under the "Image" dropdown, set it to Localised > button_add_video.gif Then submit.

And let me know if that works. Thanks. :)
Sorry for my bad Engrish !
gleason|design

Image

User avatar
ameisez
Registered User
Posts: 1166
Joined: Sun Nov 04, 2007 7:04 am

Re: [BETA] OurTube [YouTube/Uploaded Video Streaming]

Post by ameisez » Tue Apr 21, 2009 11:14 pm

is there a way to make this work on shared host?
Last edited by ameisez on Tue Apr 21, 2009 11:23 pm, edited 1 time in total.
PHPBB on HOSTGATOR SERVER. MY PERSONAL CHOICE ;)
Need phpBB images and buttons? HIRE ME
my MOD: BB3 Media Player | a phpbb based media player

User avatar
Gleasonator
Registered User
Posts: 652
Joined: Tue Jun 05, 2007 2:19 pm
Location: Texas
Contact:

Re: [BETA] OurTube [YouTube/Uploaded Video Streaming]

Post by Gleasonator » Tue Apr 21, 2009 11:17 pm

ameisez wrote:will this work on shared host?
Find out if your host has shell access and you can manually install all this stuff. I remember you asked earlier to direct you to a host if I found one. It's much nicer to have all this stuff preinstalled if you can (since manually installing is quite a learning curve), but I've been able to get this all installed manually on dreamhost.com
Sorry for my bad Engrish !
gleason|design

Image

User avatar
ameisez
Registered User
Posts: 1166
Joined: Sun Nov 04, 2007 7:04 am

Re: [BETA] OurTube [YouTube/Uploaded Video Streaming]

Post by ameisez » Tue Apr 21, 2009 11:29 pm

wow.. that was quick..

I ask my chat support just now and he said "Yes. It is limited or "jailed" shell access. "

is that enough?
PHPBB on HOSTGATOR SERVER. MY PERSONAL CHOICE ;)
Need phpBB images and buttons? HIRE ME
my MOD: BB3 Media Player | a phpbb based media player

yhelp
Registered User
Posts: 31
Joined: Fri Nov 16, 2007 10:20 pm
Contact:

Re: [BETA] OurTube [YouTube/Uploaded Video Streaming]

Post by yhelp » Wed Apr 22, 2009 12:41 am

Gleasonator wrote:
yhelp wrote:I have tested this and there's a few things you need to fix.

Image

And when you click a category they don't show in that category.

Image

But all in all good work. :)

Edit: Forgot to put the add video button dose not show even the add video line text...... so just a few bugs.
The first file edit in my post should fix at least the categories issue. :(

As for the button, maybe it needs to be added via the ACP... go to ACP > Styles > Imagesets, find your style and choose the "Edit" option. On the next page, change the "Select image" dropdown to Localised buttons > Add video [en]. Then under the "Image" dropdown, set it to Localised > button_add_video.gif Then submit.

And let me know if that works. Thanks. :)
What files did you edit? As i see no change. :?

And i fixed the add video by myself. I am about to fix this as well..

Image

The next problem is because my board is offline i tested it with videos and you even have errors there...

Image

So it looks like....

Image

And as you can see you have not fixed the categories problem.
Y! Help - Our fresh approach is friendly and informative but above all we work at your pace your level of computer knowledge and take nothing for granted.

Locked

Return to “[3.0.x] Abandoned MODs”