Welcome Guest. Please Login or Register  


You are here: Index > Advanced Electron Forums > Mods > Topic : [Mod] Default avatar on registration

A2 Hosting

News:

Group Message
Hello Guest,

Welcome to the AEF Board. AEF is getting better and better and is also becoming more popular.
Take a few seconds to Register, its free, and it inspires us to work harder and improve on whatever we can improve on.
Give us some feedback, and tell your buddies about AEF!

Thanks,
The AEF Team



Threaded Mode | Print  

 [Mod] Default avatar on registration (11 Replies, Read 33278 times)
krates
Group: Themer
Post Group: Working Member
Posts: 219
Status:

AEF Themer but on a study leave
It will display an avatar which you will specify for the member whu has not yet selected an avatar

open profile_theme.php

Find line

Quote
   

if(!empty($member['avatarurl'])){
   
        echo '<img src="'.$member['avatarurl'][0].'" height="'.$member['avatarurl'][2].'" width="'.$member['avatarurl'][1].'" />';
   
    }



Replace it with
Quote
   

if(!empty($member['avatarurl'])){
   
        echo '<img src="'.$member['avatarurl'][0].'" height="'.$member['avatarurl'][2].'" width="'.$member['avatarurl'][1].'" />';
   
    }
    else
        {
        echo '<img src="http://img98.imageshack.us/img98/8986/unknownkd0.png" />';
    }





Then open posts_theme.php

Find Line

Quote


if(!empty($post[$p]['avatarurl'])){
   
        echo '<div style="text-align:center;"><img src="'.$post[$p]['avatarurl'][0].'" /></div>';
       
    }



Replace it with

Quote


if(!empty($post[$p]['avatarurl'])){
   
        echo '<div style="text-align:center;"><img src="'.$post[$p]['avatarurl'][0].'" /></div>';
       
    }
   
    else
        {
        echo '<center><img src="http://img98.imageshack.us/img98/8986/unknownkd0.png" /></center>';
        }



Now replace this url

http://img98.imageshack.us/img98/8986/unknownkd0.png

with the image url you want

And u are done it will be the default and when the user will change from user cp it will get changed




-----------------------
Back from hell  :xd:
IP: --   

[Mod] Default avatar on registration
Positron
Group: Member
Post Group: Working Member
Posts: 106
Status:

An Electron with +ve charge
Thanks for this information


-----------------------
Board Image
IP: --   

[Mod] Default avatar on registration
pinky
Group: Member
Post Group: Newbie
Posts: 24
Status:
it doesn't work with me :(
the avatar won't show
IP: --   

[Mod] Default avatar on registration
kab012345
Group: Member
Post Group: Super Member
Posts: 966
Status:

Super Dooper Moderator :) guess who?
It may be because this MOD was made for 1.0.4 I think. There is probably a small snippet you have to fix for it to work properly. :squi:

-----------------------
Retired Support Staff  :nerd:
IP: --   

[Mod] Default avatar on registration
bangsat
Group: Member
Post Group: Newbie
Posts: 1
Status:
Thanks Usefull For Me... :xd:
IP: --   

[Mod] Default avatar on registration
Miracl
Group: Member
Post Group: Working Newbie
Posts: 76
Status:
for 1.0.8

open: themes\default\posts_theme.php

find:
Code
echo '<tr>
    <td class="posterinfo" valign="top">';
   
    if(!empty($post[$p]['avatarurl'])){
   
        echo '<div style="text-align:center;"><a href="'.userlink($pv['id'], $pv['username']).'"><img src="'.$post[$p]['avatarurl'][0].'" width="'.$post[$p]['avatarurl'][1].'" height="'.$post[$p]['avatarurl'][2].'" alt="" /></a></div>';
       
    }



replace:
Quote
echo '<tr>
    <td class="posterinfo" valign="top"><div style="text-align:center;"><a href="'.userlink($pv['id'], $pv['username']).'">';
   
    if(!empty($post[$p]['avatarurl'])){
   
        echo '<img src="'.$post[$p]['avatarurl'][0].'" width="'.$post[$p]['avatarurl'][1].'" height="'.$post[$p]['avatarurl'][2].'">';
       
    }
    else echo'<img src="'.$theme['images'].'noavatar.gif">& #039;;



Quote
'.$theme['images'].'noavatar.gif
< /div>
or upload default avatar : "\themes\default\images"
or change address in img scr

Edited by Miracl : December 30, 2008, 10:26 am

-----------------------
Board Image
sorry for my bad english..
IP: --   

[Mod] Default avatar on registration
elwizard
Group: Member
Post Group: Super Member
Posts: 630
Status:

Very busy - Developing...
Thank you for your useful post, Miracl.

-----------------------
RETIRED DEVELOPER

IP: --   

[Mod] Default avatar on registration
christianfermin
Group: Member
Post Group: Newbie
Posts: 35
Status:
It's not working for me I  have aef 1.0.8 . it dosn't change anything.

Please can anybody tell me step by step , what I have to do to get a default avatar on registration. PLEASE
                                                                                I have aef 1.0.8

I need this mod;



Edited by christianfermin : July 3, 2009, 9:26 pm
IP: --   

[Mod] Default avatar on registration
christianfermin
Group: Member
Post Group: Newbie
Posts: 35
Status:
I fixed it.  I would like to thanks the person that helped me solve it .  you guys should know . ????


Myself . thanks to me.  :D

Edited by christianfermin : July 7, 2009, 12:41 am
IP: --   

[Mod] Default avatar on registration
AlbEagle
Group: Member
Post Group: Newbie
Posts: 2
Status:
Hello,
Who can help me,
How do I do that in profile to a posting, to overstate the Avatar not seem small enough has its own forum. is at least become 350x280?

Thanks
IP: --   

[Mod] Default avatar on registration
might_b
Group: Member
Post Group: Newbie
Posts: 3
Status:
Excellent mod thanks :)
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Members who read this topic
, jlhaslip, elwizard, chandy, kab012345, Enver02, ngaycuoithang2, Maro, haccer, le1t00, Arash, WebTurk, elyasaf, hinneni, vicdiablito, nfsalon, nuwanda, ralphigo, Partymonger, mSv, mosc63, teto_nesta, Moshe0027, sagrma, raciloni, riccy7422, cufcash, ssl9, acidtech, keith_h, bangsat, Miracl, Malaria, Thomas_G, Firestar, entergeozax, Pico4U, PaNTrk, Ghadamyari, zenn, dreaken, malihove, WeAreZilla, azef, Faks, mohammadN, llElNeneMxll, Buster, christianfermin, djmax, dpanov, VasiliyRS, REDSEW, RoqueE, Pioneer, devrim, andiack, cybertof, lbpd719, ghazi119, ChristianMx, Design, InfernaL, aLbdigital, Chakkal, azadbash, prateekactive, tiny, boxoutside, Techokami, tautvys92, sapirdvash, mmsdown, zing, velias, No'|'oneS, MustafaCan, sankat, behotmit, AlbEagle, ~NanoThrash~, might_b, joewldcat, EmreCanT, jewelanh, GamingChitChat, Bomberman, Sammael, spacenight, BurnRose1, jpbravo, bosco


Users viewing this topic
1 guests, 0 users.

A2 Hosting

All times are GMT. The time now is October 15, 2019, 11:36 am.

  Powered By AEF 1.1.0 Preview © 2007-2011 AEF Group. All rights reservedQueries: 13  |  Page Created In:0.092