Welcome, Guest. Please Login or Register.
May 04, 2025, 09:38:35 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Avatars « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Avatars  (Read 550 times)
Yngwiedis
Full Member
***
Posts: 111


Yngwie Rules !!!

WWW
Avatars
« on: May 14, 2002, 04:25:22 AM »
Reply with quote

I have upgrade from YaBB Gold SP 1.1 to YaBB SE.
There i have one little mod to have avatars in different folders inside my Avatars main folder.
Is there anyway to make this in YaBB SE ?
Thanx :)
Logged
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:Avatars
« Reply #1 on: May 16, 2002, 06:28:32 AM »
Reply with quote

There is the "External Avatar" mod floating around somewhere. Use the search feature and you should find it.
Logged

Yngwiedis
Full Member
***
Posts: 111


Yngwie Rules !!!

WWW
Re:Avatars
« Reply #2 on: May 16, 2002, 06:41:49 AM »
Reply with quote

i dont want to have the avatars in other server.
I want only to have the avatars in the same server with my forum, but in different folders and when you want to change your profile all the avatars is reading from the different folders.
If someone know some perl i can gine you the code to change it to php.
Is litlle mod from michael from the Boardmod site for the YaBB Gold SP1
« Last Edit: May 16, 2002, 06:42:51 AM by Yngwiedis » Logged
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:Avatars
« Reply #3 on: May 16, 2002, 06:59:43 AM »
Reply with quote

You could use this mod but have it all on the same server.  Just instead of putting in different servers put in the same server with your different directories.  Feel free to post a link to the perl code for us to take a look at if you wish.  I know a bit of perl but am sure others know more.
Logged

Yngwiedis
Full Member
***
Posts: 111


Yngwie Rules !!!

WWW
Re:Avatars
« Reply #4 on: May 17, 2002, 04:33:34 AM »
Reply with quote

Ok the code are :
I wrote this for a Gold Release board, actually, but it will work just as well in SP1. Yay for compatibility!  
 
After these two lines in profile.pl:
Code:                       $images .= qq~<option value="$line"$checked>$name\n~;
                  }  
 

 
Add this:
Code:### Organized Avatars ###
            elsif ( -d "$facesdir/$line" && $line ne ".." && $line ne ".") {
                  push (@subdirs, $line);
                }
      }
 
      foreach $dir (@subdirs) {
          opendir (DIR, "$facesdir/$dir") || fatal_error("$txt{'230'} ($facesdir/$dir)!<BR>$txt{'681'}");
          @contents = readdir (DIR);
          closedir (DIR);
          foreach $line (sort @contents){
            ($name, $extension) = split (/\./, $line);
            if ($line eq $memsettings[13]) { $checked = ' selected'; }
            if ($memsettings[13] =~ m~\Ahttp://~ && $line eq 'blank.gif') { $checked = ' selected'; }
            if ($extension =~ /gif/i || $extension =~ /jpg/i || $extension =~ /jpeg/i || $extension =~ /png/i ) {
                if ($line eq 'blank.gif') { $name = $txt{'422'}; }
                $name =~ s/\_/\&nbsp;/g;
                $images .= qq~<option value="$dir/$line"$checked>$dir/$name\n~;
            }
          }
###/Organized Avatars ###  
 

 
 
It's very important that the code be added BETWEEN "$images .= qq~<option value="$line"$checked>$name\n~;
                  }" and the next "}", or else you'll cook everything.

I like to tell again that this little mod is from michael from the original BoardMod Site.

If anyone can make a mode for YaBB SE from this i will apreciate. Thanx :)
Logged
Yngwiedis
Full Member
***
Posts: 111


Yngwie Rules !!!

WWW
Re:Avatars
« Reply #5 on: May 24, 2002, 01:54:52 AM »
Reply with quote

Anyone can make this conversion ?
I have 400+ avatars and i can't wright all this descriptions to make it work fine with External avatars mod  :'(
Pleaaaaaaase.
This mod is sooooo usefull
Logged
Yngwiedis
Full Member
***
Posts: 111


Yngwie Rules !!!

WWW
Re:Avatars
« Reply #6 on: June 07, 2002, 05:59:35 AM »
Reply with quote

The conversion is so difficult ?
Logged
Vin99NL BOFH
Sr. Member
****
Posts: 254


P: Dutch

post@vin99.net WWW
Re:Avatars
« Reply #7 on: June 07, 2002, 10:32:51 AM »
Reply with quote

Why is this on  Graphics and Templates  ???

Can someone move it to mod's or some board like that?
so that maybe someone will change something if Yngwiedis gets lucky ;)
Logged

Vin99NL proud Admin of The Vin99.NETwork
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Avatars « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.113 seconds with 21 queries.