Quick Manialink

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

User avatar
Heku
Posts: 48
Joined: 26 Sep 2011, 20:04

Re: Quick Manialink

Post 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?
User avatar
jonthekiller
Translator
Translator
Posts: 4629
Joined: 15 Jun 2010, 11:07
Location: In Maniaplanet Alpha
Contact:

Re: Quick Manialink

Post by jonthekiller »

gif aren't supported in ManiaPlanet.
Image
User avatar
Heku
Posts: 48
Joined: 26 Sep 2011, 20:04

Re: Quick Manialink

Post by Heku »

jonthekiller wrote:gif aren't supported in ManiaPlanet.
dang.. then i lost some funny avatars :P
Akbalder
Posts: 1059
Joined: 15 Jun 2010, 11:00
Contact:

Re: Quick Manialink

Post by Akbalder »

If the gif aren't animated, you can convert them to png or dds.
User avatar
Heku
Posts: 48
Joined: 26 Sep 2011, 20:04

Re: Quick Manialink

Post 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....)
Akbalder
Posts: 1059
Joined: 15 Jun 2010, 11:00
Contact:

Re: Quick Manialink

Post by Akbalder »

You just have to put the avatars in the folder Content/Avatars/.
You have to create the maniacode yourmanialink:avatar only once.
User avatar
Heku
Posts: 48
Joined: 26 Sep 2011, 20:04

Re: Quick Manialink

Post by Heku »

okay thanks!
User avatar
rycardoo
Translator
Translator
Posts: 67
Joined: 05 Apr 2011, 20:37
Location: Portugal - Faro
Contact:

Re: Quick Manialink

Post 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
ImageImage
Akbalder
Posts: 1059
Joined: 15 Jun 2010, 11:00
Contact:

Re: Quick Manialink

Post 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. ;)
User avatar
rycardoo
Translator
Translator
Posts: 67
Joined: 05 Apr 2011, 20:37
Location: Portugal - Faro
Contact:

Re: Quick Manialink

Post 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
ImageImage
Post Reply

Return to “ManiaScript”

Who is online

Users browsing this forum: No registered users and 2 guests