Page 4 of 7

Re: Quick Manialink

Posted: 26 Oct 2011, 12:53
by Heku
again just a little question...

Code: Select all

  //extensions accepted for the avatars /!\ MODIFY ONLY IF YOU KNOW WHAT YOU'RE DOING
  $avatars_extensions = array('png', 'jpg', 'jpeg', 'dds');
  //extensions accepted for the avatars thumbnails /!\ MODIFY ONLY IF YOU KNOW WHAT YOU'RE DOING
  $avatars_thumbnails_extensions = array('png', 'jpg', 'jpeg');
doesn't .GIF avatars work? bcuz i only see .png, .jpg, .jpeg, .dds
or should i edit in there gif too
Config wrote:/!\ MODIFY ONLY IF YOU KNOW WHAT YOU'RE DOING
or should i change .gif to .dds or smthng?

Re: Quick Manialink

Posted: 26 Oct 2011, 12:56
by jonthekiller
gif aren't supported in ManiaPlanet.

Re: Quick Manialink

Posted: 26 Oct 2011, 12:57
by Heku
jonthekiller wrote:gif aren't supported in ManiaPlanet.
dang.. then i lost some funny avatars :P

Re: Quick Manialink

Posted: 26 Oct 2011, 13:01
by Akbalder
If the gif aren't animated, you can convert them to png or dds.

Re: Quick Manialink

Posted: 26 Oct 2011, 13:13
by Heku
okay, still one little thing...
i have to register every avatar to player page? or do i just put them in /content/avatars? and then they are in my manialink? (im new with this ManiaLink stuff....)

Re: Quick Manialink

Posted: 26 Oct 2011, 13:18
by Akbalder
You just have to put the avatars in the folder Content/Avatars/.
You have to create the maniacode yourmanialink:avatar only once.

Re: Quick Manialink

Posted: 26 Oct 2011, 13:30
by Heku
okay thanks!

Re: Quick Manialink

Posted: 26 Oct 2011, 14:34
by rycardoo
Can I change this line to be accepted Brush?

Code: Select all

$stickers = array();
    foreach($stickers_directories as $stickers_directory_url=>$stickers_directory) {
      if(is_dir($stickers_directory)){
        if($sd = opendir($stickers_directory)){
          while(($file = readdir($sd))!==false){
            if(is_dir($stickers_directory . $file) && is_file($stickers_directory . $file. '/Sticker.tga') && is_file($stickers_directory . $file. '/Icon.dds')){
$file. '/Brush.tga') && is_file($stickers_directory . $file. '/Icon.dds')){

Because he wanted to use not the sticker but also for Stencils.

Thx help

Re: Quick Manialink

Posted: 26 Oct 2011, 14:48
by Akbalder
You can try to create a page for brushes :
- Copy the file /Pages/Stickers/stickers.php to /Pages/Brushes/brushes.php
- In this file replace every word sticker by brush
- Copy the file maniacodesticker.php to maniacodebrushes.php
- In this file replace every word sticker by brush
- Add 'Brushes' in the $pages variable of the config.php file

It should work. ;)

Re: Quick Manialink

Posted: 26 Oct 2011, 18:10
by rycardoo
Sorry, akbalder
But I broke the head with it and still gives me error :cry:
Here is what I can look to see what error
http://www.mediafire.com/?bl32dukebh84p8e
Thanks again