Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Sign in to follow this  

Domyślny avatar

Recommended Posts

Tym którzy się zarejstrują na forum automatycznie dodaje domyślny avatar (czyli ten co chcemy aby mieli ludzie).

includes :>> usercp_register.php


$avatar_sql = ( $mode == 'editprofile' ) ? " : "", ".USER_AVATAR_NONE;
Zamieniamy na:
$avatar_sql = ( $mode == 'editprofile' ) ? '' : "'http://linkdoavatara.pl', 2";
Jeśli chcemy ustawić domyślny avatar wszystkim osobom, które nie mają w ogóle avatara musimy wykonać takie zapytanie SQL:
UPDATE `phpbb_users` SET `user_avatar` = 'http://linkdoavatara.pl', 

`user_avatar_type` = '2' WHERE `user_avatar` = '';

Ten link http://linkdoavatara.pl zmieniamy na swój link do avatara.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...