51
optikool
Re: x_movie module installation help
  • 2008/2/6 16:25

  • optikool

  • Not too shy to talk

  • Posts: 154

  • Since: 2007/3/26


I have been thinking about how to do this and was one of the features I will be adding once I have it all figure it out and tested. But you need to be able to add code that looks at each of the categories and checks its permissions. It will be a config value you set for each category you create. You also need to modify the admin page to allow you to set the permissions on categories that are created.

To check permissions you can do something similar to this...

If you want to display group-specific information on a web page to two groups of your users: regular user group (GroupID 2) and membership group (GroupID 4).
$in_group = is_object($xoopsUser) && in_array(4, $xoopsUser->getGroups());

//display group-specific information
if ($in_group) {
Membership ONLY info Here
} else {
Regular user ONLY infor Here
}
(taken from www.xoops-tips.com)

Optikool



52
optikool
Re: x_movie module installation help
  • 2008/2/6 1:10

  • optikool

  • Not too shy to talk

  • Posts: 154

  • Since: 2007/3/26


mf_iii,

Unfortunately for now, you cannot extract images from the movie itself. I had thought to put this in, and may do so at a later time, but if I did, the only way you could take advantage of this feature if is you had ffmpeg-php installed on the server itself. This would basically be a hit and miss for people not having this module installed. But later I will probably add it as an option for people that are lucky enough to have this module already on their server. In the mean time you would need to take a screen shot of the video you are uploading and upload that as well.

Optikool



53
optikool
Re: x_movie module installation help
  • 2008/2/5 16:51

  • optikool

  • Not too shy to talk

  • Posts: 154

  • Since: 2007/3/26


Hi mf_iii,

What format is the video in? It will depend on the format of the video because some formats require software on the server in order to extract an image... Flash for example.

Optikool



54
optikool
Re: x_movie module installation help
  • 2008/2/4 18:39

  • optikool

  • Not too shy to talk

  • Posts: 154

  • Since: 2007/3/26


fernan2,

For your first error, remove the mx from mx.youtube.com and replace it with www (www.youtube.com). Currently the module doesn't understand mx. For your second error, you only need to put everything in the embed tag. You don't need to put the contents of the Object tag or the param tags. The module doesn't look at this information and it's being concatenated because the string you are entering is to long. It will work if you only put the embed tag.

Optikool



55
optikool
Re: x_movie module installation help
  • 2008/2/4 16:47

  • optikool

  • Not too shy to talk

  • Posts: 154

  • Since: 2007/3/26


kevcar,

Yes if you put just the url of this movie in the url field, that would also be parsed and formatted correctly. Inserting the embed code that looks like this...

<embed type="video/divx" src="http://video.stage6.com/2110177/.divx" pluginspage="http://go.divx.com/plugin/download/" showpostplaybackad="false" custommode="Stage6" autoplay="false" height="480" width="640" />

Will allow the module to get the correct height and width of the movie so when it's resized the size ratio is maintained. But the url works too and you can set the original size manually when you go to approve the video.

Optikool



56
optikool
Re: x_movie module installation help
  • 2008/2/4 16:44

  • optikool

  • Not too shy to talk

  • Posts: 154

  • Since: 2007/3/26


fernan2,

The 2.5 version is another version of this module that I don't maintain. If you would like to use my version you can get it from my website here....http://www.optikool.com/modules/mydownloads/singlefile.php?cid=2&lid=4

The current version is 2.65 however I don't believe there is a Spanish language pack. If you want to create one from the English version, I can add it to the module.

Thanks
Optikool



57
optikool
Re: x_movie module installation help
  • 2008/2/1 16:40

  • optikool

  • Not too shy to talk

  • Posts: 154

  • Since: 2007/3/26


kevcar,

You only need this portion of the code you provided...

<embed type="video/divx" src="http://video.stage6.com/2110177/.divx" pluginspage="http://go.divx.com/plugin/download/" showpostplaybackad="false" custommode="Stage6" autoplay="false" height="480" width="640" />

Optikool



58
optikool
Re: x_movie module installation help
  • 2008/1/31 19:17

  • optikool

  • Not too shy to talk

  • Posts: 154

  • Since: 2007/3/26


Some websites format the image link in a way that it is impossible to figure out. If the module can't download the image, it will replace it with a dafault image. When you go to approve the video you can revisit the site, right click on the image and choose copy link location, then replace the image link the module is currently using. The module currently doesn't copy this image over but in the next update I will have it copy the image to the server. Also I will have it keep the original size and resize the image on the fly to meet the size allowed in preferences.

Optikool



59
optikool
Re: x_movie module installation help
  • 2008/1/31 19:12

  • optikool

  • Not too shy to talk

  • Posts: 154

  • Since: 2007/3/26


Runeher,

Make sure the "Thumbnails" option is set to yes. I updated this module today to fix how the size restriction is calculated and other minor bug fixes. In the next update I will redo how the images are sized and displayed.

Optikool



60
optikool
Re: xsgal problem
  • 2008/1/25 20:48

  • optikool

  • Not too shy to talk

  • Posts: 154

  • Since: 2007/3/26


You need to take a look at the path you specified for the location of your images. It is not correct. It looks like you specified /srv/www/htdocs/uploads/wozy instead of uploads/wozy for your gallery directory.




TopTop
« 1 ... 3 4 5 (6) 7 8 9 ... 14 »



Login

Who's Online

158 user(s) are online (108 user(s) are browsing Support Forums)


Members: 0


Guests: 158


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits