[ABD] Youtube [thumbs] on Forum Index v.0.0.1

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.
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

[ABD] Youtube [thumbs] on Forum Index v.0.0.1

Post by 4_seven » Sat Dec 04, 2010 2:25 am

Youtube [thumbs] on Forum Index

MOD-Title: Youtube [thumbs] on Forum Index
MOD-Version: 0.0.1
MOD-Author: 4seven

Request by: Mess
Request Thread: http://www.phpbb.com/community/viewtopi ... #p12894085

MOD-Description: Shows [thumbs] of Youtube Videos from first post on Forum Index

phpBB-Version: phpBB 3.0.x
phpBB-Languages: multilingual
phpBB-Styles: all Styles, that are based on prosilver

Demo: http://www.4seven.de/forum/media/viewforum.php?f=11

Download: http://www.4seven.de/forum/6test/viewtopic.php?f=3&t=93

Image

Image

Features:
- Youtube [thumbs] on Forum Index
- Grab/display first/last or both videos from first post
- Size of thumbs adjustable
- Optional HQ Mouseover
- Thumb linked to Posting
- Multibrowser
- No server resizing
- Xhtml 1.0 strict
- Compatibility with Auto Video Embed

Planned:
- ?
#fix 1 v.0.0.1
- prevents sql error, when nested categories/forum mixed
#fix/improve 2 v.0.0.1
- prevent empty cat/subf. sql error
- size of thumbs adjustable
- optimize styling
Last edited by 4_seven on Sun Nov 13, 2011 7:41 pm, edited 11 times in total.
Current Mods | Mod Base | php(BB) programming | No help via PM

User avatar
Eragon
Registered User
Posts: 218
Joined: Tue Oct 07, 2008 1:57 pm

Re: [DEV] Youtube [thumb] on Forum Index

Post by Eragon » Sun Dec 05, 2010 11:13 am

very nice mod ... where is download link ?

User avatar
Mess
Registered User
Posts: 985
Joined: Wed Jul 01, 2009 6:37 am
Name: Kim

Re: [DEV] Youtube [thumb] on Forum Index

Post by Mess » Sun Dec 05, 2010 11:37 am

Woa cool mate. :D

Thanks a lot for taking this on.

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Youtube [thumbs] on Forum Index v.0.0.1

Post by 4_seven » Mon Dec 06, 2010 12:50 am

v.0.0.1 released

see first post for further details
Current Mods | Mod Base | php(BB) programming | No help via PM

User avatar
Mess
Registered User
Posts: 985
Joined: Wed Jul 01, 2009 6:37 am
Name: Kim

Re: [DEV] Youtube [thumbs] on Forum Index v.0.0.1

Post by Mess » Mon Dec 06, 2010 8:46 am

Installed and working perfectly. :D

Edit:
Would it be possible to count the number of videos/images the different user have posted/attached and show it under number of posts?

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Youtube [thumbs] on Forum Index v.0.0.1

Post by 4_seven » Mon Dec 06, 2010 11:34 am

Mess wrote:Would it be possible to count the number of videos the different user have posted and show it under number of posts?
all is possible, but have nothing to do with this mod. so make a request here:
[offtopic]
i make a complete [dev] stop on new projects for a half year, bcs. of rolling redesign on existing projects.
also for 2 month (till end of january) my time is very spare.
[offtopic]
Current Mods | Mod Base | php(BB) programming | No help via PM

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Youtube [thumbs] on Forum Index v.0.0.1

Post by 4_seven » Mon Dec 06, 2010 1:43 pm

#fix 1 v.0.0.1
- prevents sql error, when nested categories/forum mixed

open

includes/functions_youtube_thumb.php

find

Code: Select all

// build pre-environment
before add

Code: Select all

if (!isset($topic_tube)){
$topic_tube = array(0);}
package is updated...
Current Mods | Mod Base | php(BB) programming | No help via PM

User avatar
Eragon
Registered User
Posts: 218
Joined: Tue Oct 07, 2008 1:57 pm

Re: [DEV] Youtube [thumbs] on Forum Index v.0.0.1

Post by Eragon » Mon Dec 06, 2010 9:23 pm

good work.. "modification is working smoothly" ..

How do I make scale thumbnail .. I'm having problem in theme ..

thnask fpr reply

Code: Select all

<dt<!-- IF topicrow.TOPIC_ICON_IMG and S_TOPIC_ICONS --> style="background-image: url({T_ICONS_PATH}{topicrow.TOPIC_ICON_IMG}); background-repeat: no-repeat;"<!-- ENDIF --> title="<!-- IF topicrow.TOPIC_PREVIEW_TEXT -->{topicrow.TOPIC_PREVIEW_TEXT}<!-- ELSE -->{topicrow.TOPIC_FOLDER_IMG_ALT}<!-- ENDIF -->">
				
		    <!-- IF topicrow.PRE_IMG or topicrow.PRE_ATTACH -->
			<span style="padding:1px;float:left;width:{topicrow.CONVERT_SIZE}px;text-align:center;<!-- IF (topicrow.PRE_IMG or topicrow.PRE_ATTACH) and BORDER_COLOR --> background-color:{BORDER_COLOR};<!-- ENDIF -->">
			<!-- IF topicrow.PRE_IMG -->
			<a href="{topicrow.ORIG_LINK}"><img style="padding-top:2px;" src="{topicrow.PRE_IMG}" alt="" /></a>	
			<!-- ELSEIF topicrow.PRE_ATTACH -->
			<a href="{topicrow.ORIG_ATTACH_LINK}"><img style="padding-top:2px;" src="{topicrow.PRE_ATTACH}" alt="" /></a>
			<!-- ENDIF -->					
			</span>
			<span style="position:absolute; left:{topicrow.CONVERT_DIV_SIZE}px;">
			<!-- ELSEIF EMPTY_IMG -->	
			<span style="padding:1px;float:left;width:{CONVERT_SIZE}px;text-align:center;<!-- IF EMPTY_IMG and BORDER_COLOR --> background-color:{BORDER_COLOR};<!-- ENDIF -->">
			<img style="padding-top:2px;" src="{EMPTY_IMG}" alt="" />
			</span>
			<span style="position:absolute; left:{CONVERT_DIV_SIZE}px;">
			<!-- ELSEIF (not EMPTY_IMG)  and (PLACEHOLDER) -->
			<span style="padding:1px;float:left;width:{CONVERT_SIZE}px;text-align:center;">
			</span>
			<span style="position:absolute; left:{CONVERT_DIV_SIZE}px;">
			<!-- ENDIF -->		
				
				<!-- IF topicrow.TUBE_IMG_1 -->	
			<span style="padding:1px;margin-right:5px;float:left;width:124px;text-align:center; background-color:{BORDER_COLOR};">
			<!-- IF S_YOUTUBE_HOVER --><span style="javascript:void(0);width:480px;height:360px;" onmouseover="Tip('<img src=http://i2.ytimg.com/vi/{topicrow.TUBE_IMG_1}/hqdefault.jpg width=480 height=360 />', WIDTH, 480, PADDING, 4, BGCOLOR, '#DFE9F3', BORDERCOLOR, '#027AB7', OFFSETX, 100, OFFSETY, -100)" onmouseout="UnTip()"><a href="{topicrow.TUBE_LNK_1}"><!-- ENDIF --><img style="margin-top:2px;" src="http://i2.ytimg.com/vi/{topicrow.TUBE_IMG_1}/default.jpg" alt="" /><!-- IF S_YOUTUBE_HOVER --></a></span><!-- ENDIF -->
			</span>
			<!-- ENDIF -->
			
			<!-- IF topicrow.TUBE_IMG_2 -->	
			<span style="padding:1px;margin-right:5px;float:left;width:124px;text-align:center; background-color:{BORDER_COLOR};">
			<!-- IF S_YOUTUBE_HOVER --><span style="javascript:void(0);width:480px;height:360px;" onmouseover="Tip('<img src=http://i2.ytimg.com/vi/{topicrow.TUBE_IMG_2}/hqdefault.jpg width=480 height=360 />', WIDTH, 480, PADDING, 4, BGCOLOR, '#DFE9F3', BORDERCOLOR, '#027AB7', OFFSETX, 100, OFFSETY, -100)" onmouseout="UnTip()"><a href="{topicrow.TUBE_LNK_2}"><!-- ENDIF --><img style="margin-top:2px;" src="http://i2.ytimg.com/vi/{topicrow.TUBE_IMG_2}/default.jpg" alt="" /><!-- IF S_YOUTUBE_HOVER --></a></span><!-- ENDIF -->
			</span>
			<!-- ENDIF -->
				
				<span class="left-box"><!-- IF topicrow.S_UNREAD_TOPIC --><a href="{topicrow.U_NEWEST_POST}">{NEWEST_POST_IMG}</a> <!-- ENDIF -->
				<!-- IF topicrow.TOPIC_PREFIX --><span style="font-weight: bold<!-- IF topicrow.PREFIX_COLOUR -->;color: #{topicrow.PREFIX_COLOUR};<!-- ENDIF -->">{topicrow.TOPIC_PREFIX} </span><!-- ENDIF --><a href="{topicrow.U_VIEW_TOPIC}" class="topictitle"><!-- IF topicrow.TOPIC_TITLE_COLOUR --><span style="color: #{topicrow.TOPIC_TITLE_COLOUR}"><!-- ENDIF -->{topicrow.TOPIC_TITLE}<!-- IF topicrow.TOPIC_TITLE_COLOUR --></span><!-- ENDIF --></a>

<!-- IF topicrow.U_MOD_VIEW_TOPIC -->&nbsp;<a href="{topicrow.U_MOD_VIEW_TOPIC}">{L_VIEW_TOPIC_URL_MOD}</a><!-- ENDIF -->

<!-- IF topicrow.S_TOPIC_UNAPPROVED or topicrow.S_POSTS_UNAPPROVED --><a href="{topicrow.U_MCP_QUEUE}">{topicrow.UNAPPROVED_IMG}</a> <!-- ENDIF -->
<!-- IF topicrow.S_TOPIC_REPORTED --><a href="{topicrow.U_MCP_REPORT}">{REPORTED_IMG}</a><!-- ENDIF --></span>
<span class="right-box"><!-- IF topicrow.EVALUATION_IMG -->{topicrow.EVALUATION_IMG}<!-- ENDIF --></span>
<br clear="all" />
<!-- IF topicrow.TOPIC_DESC -->{topicrow.TOPIC_DESC}<br /><!-- ENDIF -->
<!-- IF topicrow.PAGINATION --><strong class="pagination"><span>{topicrow.PAGINATION}</span></strong><!-- ENDIF -->
<span class="left-box"><!-- IF topicrow.ATTACH_ICON_IMG -->{topicrow.ATTACH_ICON_IMG} <!-- ENDIF -->{L_POST_BY_AUTHOR} {topicrow.TOPIC_AUTHOR_FULL}  &raquo; {L_POSTED_ON_DATE} {topicrow.FIRST_POST_TIME}

<!-- IF U_ACP or U_MCP --> <!-- IF topicrow.TOPIC_EXPIRE --> - <strong>{L_TOPIC_WILL_EXPIRE} [{topicrow.L_TOPIC_EXPIRE_TYPE}]:</strong> {topicrow.TOPIC_EXPIRE}<!-- ENDIF --><!-- ENDIF -->

</span>


			<!-- IF (topicrow.PRE_IMG or topicrow.PRE_ATTACH) or(EMPTY_IMG)  or ((not EMPTY_IMG)  and (PLACEHOLDER)) -->			
				</span>
			<!-- ENDIF -->

</dt>

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Youtube [thumbs] on Forum Index v.0.0.1

Post by 4_seven » Mon Dec 06, 2010 9:43 pm

how scale? which proportions or size u mean?
Current Mods | Mod Base | php(BB) programming | No help via PM

User avatar
Eragon
Registered User
Posts: 218
Joined: Tue Oct 07, 2008 1:57 pm

Re: [DEV] Youtube [thumbs] on Forum Index v.0.0.1

Post by Eragon » Mon Dec 06, 2010 10:22 pm

yes. thumbnail size .. width and height

NoVa x ChAoZz
Registered User
Posts: 35
Joined: Tue Sep 21, 2010 5:56 pm
Location: Scotland <3
Name: Shane

Re: [DEV] Youtube [thumbs] on Forum Index v.0.0.1

Post by NoVa x ChAoZz » Tue Dec 07, 2010 12:25 am

Nice ;)

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Youtube [thumbs] on Forum Index v.0.0.1

Post by 4_seven » Tue Dec 07, 2010 12:51 am

#fix/improve 2 v.0.0.1
- prevent empty cat/subf. sql error
- size of thumbs adjustable
- optimize styling

to update

- load current package,
- re-configure and load up functions_youtube_thumb.php
- make edit change in viewforum_body.html
Current Mods | Mod Base | php(BB) programming | No help via PM

User avatar
Eragon
Registered User
Posts: 218
Joined: Tue Oct 07, 2008 1:57 pm

Re: [DEV] Youtube [thumbs] on Forum Index v.0.0.1

Post by Eragon » Tue Dec 07, 2010 10:14 pm

I get some errors

thanks for reply and mod

viewforum.php

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/functions_youtube_thumb.php on line 110: Undefined variable: result_tube
functions_youtube_thumb.php on line 110

Code: Select all

$db->sql_freeresult($result_tube);

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Youtube [thumbs] on Forum Index v.0.0.1

Post by 4_seven » Tue Dec 07, 2010 10:40 pm

a little boop :D

find

Code: Select all

}

$db->sql_freeresult($result_tube);	
replace with

Code: Select all

$db->sql_freeresult($result_tube);

}
package is updated..
Current Mods | Mod Base | php(BB) programming | No help via PM

User avatar
Mess
Registered User
Posts: 985
Joined: Wed Jul 01, 2009 6:37 am
Name: Kim

Re: [DEV] Youtube [thumbs] on Forum Index v.0.0.1

Post by Mess » Wed Dec 08, 2010 9:56 am

Hi 4_seven,

Id like to uninstall my current video portal and use this together with a few other mod as a video portal instead. But I would need a standalone page with videos posted with most viewed/comments, highest rated etc. Can I contact you via pm regarding hiring you?

Locked

Return to “[3.0.x] Abandoned MODs”