Autor Zpráva
LuKyss
Profil
Dobrý den,
stáhl jsem si diskuzi z www.minibb.net a chtěl bych si do ní přidat zásuvný modul (třeba konkrétně na té www stránce "Who's Online" nebo "Avatars") vůbec nevím jak na to, prosím mohl by jste mi někdo podrobně popsat jak to zařadit do diskuze aby mě to fungovalo? Jako diskuzi využívám MINIBB, odkaz na diskuzi zde: http://www.lukyss.wz.cz/diskuze/index.php . Je třeba to někde nastavit v mysql na webuzdarma? Děkuji za podrobnou odpověď.
koudi
Profil
Když se podíváś do readme, najdeš vcelku podrobný návod:

==README for addon_avatar.php==
Release date: March 30, 2005.
Latest update: November 30, 2005.
miniBB version: 2.0 RC3 +
Author: Paul Puzyrev (minibb.net)

This is the first addon released on the base of universal miniBB algorithm which allows to display any info from user's table in his posts. Addon is NOT destructive and allows you to do further miniBB upgrades without additional editing of files. Addon allows to upload or to choose ready avatar from list, or both. Look at the images located in /!how_it_looks/ - this is what you should have after successfull installation. Avatar upload/choose operations will be available in user's Preferences.

INSTALLATION INSTRUCTIONS:

***************************************

If you are going to allow users upload their own avatars:
- Create a folder called 'shared_files' in your forum's root (e.g. /forums/shared_files).
- Set the folder's permission to 0777. (Windows servers - set permissions so the Web may access and write to this folder.)
- Create a subfolder named 'avatars' within the 'shared_files' folder (e.g. /forums/shared_files/avatars)
- Set 'avatars' folder permission to 0777.
- Note: on-the-fly image resizing is not supported. Images uploaded by users must meet the settings defined in step 2.

***************************************

If you are providing a fixed set of images for users to use:
- Create a subfolder called 'forum_avatars' within your forum's 'img' folder (e.g. /forums/img/forum_avatars).
- Put all your avatar images in 'forum_avatars'.
- The folder permission for 'forum_avatars' should be set to read-only.

***************************************

Open addon_avatar.php in a text editor (e.g. Notepad).
Follow the instructions in the file to edit the settings.
Save your changes, upload the file to your forum's root (e.g. /forum).

***************************************

Upload avatars_eng.php to your forum's lang folder (e.g. /forums/lang).
Optional: edit avatars_eng if you are not happy with the default translations.
Note: multiple language packs are supported.

***************************************

Upload the following files to your forum's template folder (e.g /forums/templates):

addon_avatar_choose.html
addon_avatar_upload.html
addon_avatar_userform.html

Optional: modify the templates to suit your taste.

***************************************

Open your forum's user_dataform.html (located in /forums/templates) and add this:

{$avatarForm}

Explanation: {$avatarForm} is the cell defined in addon_avatar_userform.html.

***************************************

Edit setup_options.php (located in /forums)

Locate $userInfoInPosts and set the avatar field.

Example: if your avatar field is 'user_custom1', you set $userInfoInPosts to

$userInfoInPosts=array('user_custom1');

Note: if there are other fields defined in $userInfoInPosts, do not delete them!

***************************************

Open bb_plugins.code file in a text editor.

Copy the code and paste it into your forum's bb_plugins.php (found in /forums).

Note: if the database field you use for avatar is not 'user_custom1', edit this line in the code block: function parseUserInfo_user_custom1($av)

Example: function parseUserInfo_youravatarfield($av)

***************************************

Edit /templates/main_posts_cell.html.

Anywhere insert this:
{$userInfo_user_custom1[$poster_id]}

Example: .....{$viewReg}</span><br>{$userInfo_user_custom1[$poster_id]}.....

If applicable, make $userInfo_user_custom1 match the name of your avatar field.

***************************************

Optionally, add to your language file the code below:

$l_usrInfo[12]='User Avatar';

This will enable avatar displaying in user's profile.

***************************************

THAT's ALL!

To uninstall the plugin, just undo changes made from the steps above.

Hope, you'll enjoy. Please, post bugs and suggestions on our forums:
http://www.minibb.net/forums/
LuKyss
Profil
No to vím, ale v tom se vůbec neorientuji.
LuKyss
Profil
Nikdo mě to česky nevysvětlý jak na to???
Toto téma je uzamčeno. Odpověď nelze zaslat.