xoops forums

wcrwcr

Home away from home
Posted on: 2009/4/30 23:33
wcrwcr
wcrwcr (Show more)
Home away from home
Posts: 1114
Since: 2003/12/12
#1

For x-movie users and coders

Hi all

I´d like very much to have a direct link for download in the video page of x-movie.

in the modules/x_movie/x_movie_view.php

Wondering if is a too dificult thing to achieve.

Any help will be great.

Thanks

wrecked

Just popping in
Posted on: 2009/5/1 2:42
wrecked
wrecked (Show more)
Just popping in
Posts: 55
Since: 2006/12/5
#2

Re: For x-movie users and coders

nice idea, gl.
I switched to videotube..

It's sad that XOOPS still doesn't have a flash based video plugin :[

wcrwcr

Home away from home
Posted on: 2009/5/1 18:09
wcrwcr
wcrwcr (Show more)
Home away from home
Posts: 1114
Since: 2003/12/12
#3

Re: For x-movie users and coders

Just to tease a bit

here follows the template where I GUESS the call for the direct download must be issued.

x_movie_view.html

<{include file="db:x_movie_navi.html"}>

<
center>
<
table>
<
tr><td><{$popvideo}></td></tr>
<
tr><td align="center"><{$link.player}></td></tr>
<
tr><td align="center"><{$link.bottombanner}></td></tr>
</
table>
</
center>

<
table>
<
th><{$link.adminlink}><{$link.title}></th>
<
tr><td>
<
table>
<
tr><td width="40%">
<
table>
<
tr><td class="odd"><b><{$lang_submitter}></b></td><td class="even"><{$link.submitter}></td></tr>
<
tr><td class="odd"><b><{$lang_rating}></b></td><td class="even"><a href="ratemovie.php?cid=<{$link.cid}>&lid=<{$link.id}>"><img src="images/rate<{$link.rate}>.gif" border="0" alt="<{$link.rating}>" title="<{$link.rating}>"width="66" height="14"></td></tr>
<
tr><td class="odd"><b><{$lang_size}></b></td><td class="even"><{$link.size}></td></tr>
<
tr><td class="odd"><b><{$lang_hits}></b></td><td class="even"><{$link.hits}></td></tr>
<{if 
$link.embed}>
<
tr><td class="odd"><b>EMBED:</b></td><td class="even"><{$link.embed}></td></tr>
<
tr><td class="odd"><b>Download:</b></td><td class="even"><!--<a href=<{$link.pathinfo_url}><b>Baixar</b></a>--></td></tr>
<{/if}>
<{if 
$link.videoget}>
<
tr><td class="odd" colspan="2" align="center"><{$link.videoget}></td></tr>
<{/if}>
</
table>
</
td>
<
td width="60%"><{$lang_description}><HR class="x_movie_hr"><{$link.description}></td></tr>
</
table>
</
td></tr>
</
table>
<!--<
div align='right'><small><a href='http://voicha.com/voice/' target='_blank'><b>X_Movie <{$lang_version}></b></a></small></div>-->

<
div style="text-align: center; padding: 3px; margin:3px;">
  <{
$commentsnav}>
  <{
$lang_notice}>
</
div>
<
div style="margin:3px; padding: 3px;">
<!-- 
start comments loop -->
<{if 
$comment_mode == "flat"}>
  <{include 
file="db:system_comments_flat.html"}>
<{elseif 
$comment_mode == "thread"}>
  <{include 
file="db:system_comments_thread.html"}>
<{elseif 
$comment_mode == "nest"}>
  <{include 
file="db:system_comments_nest.html"}>
<{/if}>
<!-- 
end comments loop -->
</
div>
<{include 
file='db:system_notification_select.html'}>


and here the partial commented line where i´m doing my try

<tr><td class="odd"><b>Download:</b></td><td class="even"><!--<a href=<{$link.pathinfo_url}><b>Baixar</b></a>--></td></tr>


the $link.pathinfo_url is not working as expected

Catzwolf

Home away from home
Posted on: 2009/5/1 19:52
Catzwolf
Catzwolf (Show more)
Home away from home
Posts: 1392
Since: 2007/9/30
#4

Re: For x-movie users and coders

You have comments around that, you need to remove them in order for it to show

<tr><td class="odd"><b>Download:</b></td><td class="even"><a href=<{$link.pathinfo_url}><b>Baixar</b></a></td></tr>

wcrwcr

Home away from home
Posted on: 2009/5/1 20:43
wcrwcr
wcrwcr (Show more)
Home away from home
Posts: 1114
Since: 2003/12/12
#5

Re: For x-movie users and coders

Hi Catz

Thank you for your interest but, i´ve commented out that TRY cauz it´s not working, understand?

<a href=<{$link.pathinfo_url}>
returns me nothing

xsell

Quite a regular
Posted on: 2009/5/3 19:51
xsell
xsell (Show more)
Quite a regular
Posts: 245
Since: 2008/9/2 1
#6

Re: For x-movie users and coders

did you get it to work .. i want the same too but i dont know how to do it

wcrwcr

Home away from home
Posted on: 2009/5/4 3:34
wcrwcr
wcrwcr (Show more)
Home away from home
Posts: 1114
Since: 2003/12/12
#7

Re: For x-movie users and coders

No, not yet xsell

xsell

Quite a regular
Posted on: 2009/5/4 5:17
xsell
xsell (Show more)
Quite a regular
Posts: 245
Since: 2008/9/2 1
#8

Re: For x-movie users and coders

for me it look like we used the wrong tag instaed of =<{$link.pathinfo_url}> maybe we need to use something like
<a href=<{$link.url}>
or
<{$link.id}>

By the way Optikool supports this Module maybe he can give us a Hand

xsell

Quite a regular
Posted on: 2009/5/4 5:46
xsell
xsell (Show more)
Quite a regular
Posts: 245
Since: 2008/9/2 1
#9

Re: For x-movie users and coders

Oh Man i Guess we are idiot's this is already in X_movie . From the module Setting Click Yes to the'Video Get Engine activate (No recommend)'

That Will Show a Download link on the Video Page ..:)

optikool

Not too shy to talk
Posted on: 2009/5/4 5:46
optikool
optikool (Show more)
Not too shy to talk
Posts: 154
Since: 2007/3/26
#10

Re: For x-movie users and coders

I can add an option to x_movie so that it will allow you to let people download movies on the local server. I just finished my cloud tag module so I have some time. There is actually a newer version of the x_movie module running on one of my sites but I haven't put it out yet because of some fixes I hadn't had time to fix and also I had been wanting to add the ability to do a mass insert of movies using a comma delimited format.

wrecked: I didn't understand what you meant about plugin. If you are referring to x_movie not playing swf and flv files, my version of x_movie does play these files. Here are a couple of examples...

http://www.optikool.com/modules/x_mov ... ie_view.php?cid=13&lid=76
http://www.optikool.com/modules/x_mov ... ie_view.php?cid=13&lid=94
http://www.optikool.com/modules/x_mov ... vie_view.php?cid=3&lid=26

If you were referring to something else please let me know.

Optikool