Author Topic: PHPDTube Template  (Read 3185 times)

0 Members and 1 Guest are viewing this topic.

Offline FireDart

  • Project Leader
  • Pro Member
  • *****
  • Posts: 405
  • Karma: 4
    • View Profile
    • FireDart
PHPDTube Template
« on: July 01, 2009, 12:46:41 AM »
New Download Link:
http://www.box.net/shared/i9l3ohi29m

Seems there are some problems with the download link, try the link above.

-FireDart



Well I got bored and made a template so here we go:

Features:
Style: Looks like YouTube(Well I think :D)
Valid: XHTML 1.0 Transitional
Width: 960px
Mods:
Turn off the Lights
Edit Video Details From Admin Panel
Bookmark or Share Video
License: GNU(AKA. Free)
Other:
Has a auto generating code that generates the Video URL & Embed Code which is located at the bottom of the right side bar on the Page of the video and on Video Pop-up.

Admin Panel:
Looks Like the rest off the site

Browser(s) Tested:
FireFox 3.0.11
Opera 9.64
Safari 4
IE 8
IE 7
IE 6

Browser(s) that have problems rendering the template:
IE 7 (Small Glitch, nothing bad)
IE 6 (Has problem with pop-up, and same glitch that IE7 has)

Screenshots:
Index:


Video Page:


Pop-up:


Admin Login:


Admin Welcome:


Admin - Video List:


Admin -Video Tab:


Admin Options Tab:



Installation
1) Upload all folders to the ROOT(or were your PHP Director is installed) to your server. DO NOT UPLOAD TO THE TEMPLATE
FOLDER!!!!
2) Go to the Admin Panel and go to the "Options" tab and edit the "Template" field by filling it with "phpdtube".

Your done, refresh the site and you should have your new PHPDTube Template installed!

Enjoy,
-FireDart

Download:
http://www.box.net/shared/i9l3ohi29m

See a bug? Tell me! Either post here, or E-Mail at: firedartonline[at]gmail[dot]com
« Last Edit: September 09, 2009, 08:41:40 PM by FireDart »

Offline Jeff

  • Global Moderator
  • Sr phpd Member
  • *****
  • Posts: 359
  • Karma: 5
  • Need help? Feel free to ask.
    • View Profile
Re: PHPDTube Template
« Reply #1 on: July 01, 2009, 01:03:34 AM »
Wow man.... great job... im deff. using this.....

Thank a lot

Offline Jeff

  • Global Moderator
  • Sr phpd Member
  • *****
  • Posts: 359
  • Karma: 5
  • Need help? Feel free to ask.
    • View Profile
Re: PHPDTube Template
« Reply #2 on: July 01, 2009, 01:24:58 AM »
Found a bug.....

even if its a youtube video or not... it shows you how to embed a youtube video...

ex. http://mvideos.co.cc/videos.php?id=57#
ex.2 http://mvideos.co.cc/videos.php?id=56

Offline naxtra

  • Full phpd Member
  • ***
  • Posts: 74
  • Karma: 1
    • View Profile
Re: PHPDTube Template
« Reply #3 on: July 01, 2009, 06:34:02 AM »
Wow! Awesome dude!!!

Ur site looks good now Jeff  ;D

Well done FireDart!!  8)

Offline FireDart

  • Project Leader
  • Pro Member
  • *****
  • Posts: 405
  • Karma: 4
    • View Profile
    • FireDart
Re: PHPDTube Template
« Reply #4 on: July 01, 2009, 03:02:50 PM »
Found a bug.....

even if its a youtube video or not... it shows you how to embed a youtube video...

ex. http://mvideos.co.cc/videos.php?id=57#
ex.2 http://mvideos.co.cc/videos.php?id=56

What is funny was when I was about to go to bed I just thought about this glitch. :-\ I will see what I can do.

Offline FireDart

  • Project Leader
  • Pro Member
  • *****
  • Posts: 405
  • Karma: 4
    • View Profile
    • FireDart
Re: PHPDTube Template
« Reply #5 on: July 01, 2009, 03:33:40 PM »
FIXED!
Just need to change the old:
Quote
      <div id="link">
         {if $vidtype eq "YouTube"}
         
         Link This Video:
         

         <a target="_blank" href="http://www.youtube.com/v/{if $video[video].file eq ""}{$videoid}{else}{$video[video].file}{/if}">http://www.youtube.com/v/{if $video[video].file eq ""}{$videoid}{else}{$video[video].file}{/if}[/url]
         

         

         Embed This Video:
         

<textarea id="ta1" name="ta1" rows="3" cols="52">
&lt;object type="application/x-shockwave-flash" style="width:450px;
height:366px;" data="http://www.youtube.com/v/{if $video[video].file eq
""}{$videoid}{else}{$video[video].file}{/if}&amp;amp;autoplay=1"&gt;
&lt;param name="movie" value="http://www.youtube.com/v/{if
$video[video].file eq
""}{$videoid}{else}{$video[video].file}{/if}&amp;amp;autoplay=1"
/&gt;
&lt;/object&gt;
</textarea>
</div>

with a Video IF statement:
Quote
      <div id="link">
         {if $vidtype eq "YouTube"}
         
         Link This Video:
         

         <a target="_blank" href="http://www.youtube.com/v/{if $video[video].file eq ""}{$videoid}{else}{$video[video].file}{/if}">http://www.youtube.com/v/{if $video[video].file eq ""}{$videoid}{else}{$video[video].file}{/if}[/url]
         

         

         Embed This Video:
         

<textarea id="ta1" name="ta1" rows="3" cols="52">
&lt;object type="application/x-shockwave-flash" style="width:450px;
height:366px;" data="http://www.youtube.com/v/{if $video[video].file eq
""}{$videoid}{else}{$video[video].file}{/if}&amp;amp;autoplay=1"&gt;
&lt;param name="movie" value="http://www.youtube.com/v/{if
$video[video].file eq
""}{$videoid}{else}{$video[video].file}{/if}&amp;amp;autoplay=1"
/&gt;
&lt;/object&gt;
</textarea>

         {elseif $vidtype eq "GoogleVideo"}
         Link This Video:
         

         <a target="_blank" href="http://video.google.com/videoplay?docid={if $video[video].file eq ""}{$videoid}{else}{$video[video].file}{/if}">http://video.google.com/videoplay?docid={if $video[video].file eq ""}{$videoid}{else}{$video[video].file}{/if}[/url]
         

         

         Embed This Video:
         

<textarea id="ta1" name="ta1" rows="3" cols="52">
&lt;embed style="width:400px; height:326px;" id="VideoPlayback"
type="application/x-shockwave-flash"
src="http://video.google.com/googleplayer.swf?docId={if
$video[video].file eq ""}{$videoid}{else}{$video[video].file}{/if}"
flashvars=""&gt; &lt;/embed&gt;
</textarea>

         {elseif $vidtype eq "dailymotion"}
         Link This Video:
         

         <a target="_blank" href="http://www.dailymotion.com/video/{if $video[video].file eq ""}{$videoid}{else}{$video[video].file}{/if}">http://www.dailymotion.com/swf/{if $video[video].file eq ""}{$videoid}{else}{$video[video].file}{/if}[/url]
         

         

         Embed This Video:
         

<textarea id="ta1" name="ta1" rows="3" cols="52">
&lt;div&gt;&lt;object width="425"
height="335"&gt;&lt;param name="movie"
value="http://www.dailymotion.com/swf/{if $video[video].file eq
""}{$videoid}{else}{$video[video].file}{/if}"&gt;&lt;/param&gt;&lt;param
name="allowfullscreen"
value="true"&gt;&lt;/param&gt;&lt;embed
src="http://www.dailymotion.com/swf/{if $video[video].file eq
""}{$videoid}{else}{$video[video].file}{/if}"
type="application/x-shockwave-flash" width="425" height="334"
allowfullscreen="true"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;
</textarea>
         {/if}
      </div>
      {/section}
   </div>


New Download is available

Offline FireDart

  • Project Leader
  • Pro Member
  • *****
  • Posts: 405
  • Karma: 4
    • View Profile
    • FireDart
Re: PHPDTube Template
« Reply #6 on: July 01, 2009, 03:46:52 PM »
Another update!

I fixed:
The Link & Embed Issue
Made all Google Videos Xhtml Valid(Includes Link & Embed Code)
Made all DailyMotion Videos Xhtml Valid(Includes Link & Embed Code)
Fixed the Pop-up so it's like the rest of the site

-FireDart

Offline Jeff

  • Global Moderator
  • Sr phpd Member
  • *****
  • Posts: 359
  • Karma: 5
  • Need help? Feel free to ask.
    • View Profile
Re: PHPDTube Template
« Reply #7 on: July 01, 2009, 03:51:05 PM »
Good job and thank you

Offline Jeff

  • Global Moderator
  • Sr phpd Member
  • *****
  • Posts: 359
  • Karma: 5
  • Need help? Feel free to ask.
    • View Profile
Re: PHPDTube Template
« Reply #8 on: July 01, 2009, 04:18:14 PM »
it still seems to be giving me the youtube only bug again......

maybe i didnt do somthing right.... lol

im off to work so ill look at this later...

thx again

Offline FireDart

  • Project Leader
  • Pro Member
  • *****
  • Posts: 405
  • Karma: 4
    • View Profile
    • FireDart
Re: PHPDTube Template
« Reply #9 on: July 01, 2009, 04:32:00 PM »
I will be moving this over to my site soon so this link WILL change but here is a demo:
http://www.firedartonline.com/projects/phpdirector/

-FireDart
« Last Edit: July 06, 2009, 11:41:39 PM by FireDart »

Offline Jeff

  • Global Moderator
  • Sr phpd Member
  • *****
  • Posts: 359
  • Karma: 5
  • Need help? Feel free to ask.
    • View Profile
Re: PHPDTube Template
« Reply #10 on: July 02, 2009, 01:21:07 PM »
I see its working perfectly fine on your server....

below is the code i have placed into my own theme...... (just a small amount to see if this works)

Code: [Select]
<div class="box_content">
         {if $vidtype eq "YouTube"}
<a target="_blank" href="http://www.youtube.com/v/{if $video[video].file eq ""}{$videoid}{else}{$video

[video].file}{/if}">http://www.youtube.com/v/{if $video[video].file eq ""}{$videoid}{else}{$video[video].file}

{/if}</a>    
         {elseif $vidtype eq "GoogleVideo"}
<a target="_blank" href="http://video.google.com/videoplay?docid={if $video[video].file eq ""}{$videoid}{else}

{$video[video].file}{/if}">http://video.google.com/videoplay?docid={if $video[video].file eq ""}{$videoid}{else}

{$video[video].file}{/if}</a>      
         {elseif $vidtype eq "dailymotion"}
<a target="_blank" href="http://www.dailymotion.com/video/{if $video[video].file eq ""}{$videoid}{else}{$video

[video].file}{/if}">http://www.dailymotion.com/swf/{if $video[video].file eq ""}{$videoid}{else}{$video

[video].file}{/if}</a>
        

         {/if}
All it does is output this

Quote
http://www.youtube.com/v/
Quote
http://www.dailymotion.com/swf/
Quote
http://video.google.com/videoplay?docid=

I might be missing something... but i dont see why this isnt working for me

edit - nvm i figured it out

lol i ended the section a little 2 soon :-D
« Last Edit: July 02, 2009, 02:10:22 PM by Jeff »

Offline Chris (krissy)

  • Project Leader
  • Sr phpd Member
  • *****
  • Posts: 219
  • Karma: 1000
    • View Profile
    • PHPDirector
Re: PHPDTube Template
« Reply #11 on: July 06, 2009, 10:46:29 PM »
Thanks for the theme. If you could put our form logo on it as the deafult logo we shall add this as a theme in future releases.

Offline FireDart

  • Project Leader
  • Pro Member
  • *****
  • Posts: 405
  • Karma: 4
    • View Profile
    • FireDart
Re: PHPDTube Template
« Reply #12 on: July 06, 2009, 11:45:48 PM »
Thanks for the theme. If you could put our form logo on it as the deafult logo we shall add this as a theme in future releases.
Done!

Thanks,
-FireDart

Offline FireDart

  • Project Leader
  • Pro Member
  • *****
  • Posts: 405
  • Karma: 4
    • View Profile
    • FireDart
Re: PHPDTube Template
« Reply #13 on: July 13, 2009, 03:45:40 AM »
Just did an update, forgot to add some files in last upload and I just added them. Also edited some of the code so it would better suit the every day person.

-FireDart

Offline Chris (krissy)

  • Project Leader
  • Sr phpd Member
  • *****
  • Posts: 219
  • Karma: 1000
    • View Profile
    • PHPDirector
Re: PHPDTube Template
« Reply #14 on: July 13, 2009, 03:13:48 PM »
Can anyone/someone confirm that this will work on PHP4?