• [Mod] Avatar v2.01 5 0 5 1
Currently:  

Author Topic: [Mod] Avatar v2.01  (Read 571135 times)

0 Members and 1 Guest are viewing this topic.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] Avatar v2.01
« Reply #45 on: February 24, 2003, 02:31:45 PM »
ok, your member.php file seems to be ok.
but here is another thing:
make sure u did step 4
Code: [Select]
$additional_user_fields['user_avatar'] = array($lang['avatar'], "avatar", 0);where did u put this code?

can u enable/disable avatar feature from admin control panel -> settings? does it save settings changes from there?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Der_Nick

  • Newbie
  • *
  • Posts: 46
    • View Profile
    • http://www.fetteseite.com
Re: [Mod] Avatar v2.01
« Reply #46 on: February 24, 2003, 02:57:35 PM »
ok! i can enable/disable the avatar feature!!
here is my code from the db_field_definitions.php:

Quote
/* ------------------------------------------------------------------------
If you want to add additional fields in order to store more info on
each image or user, set up these fields by inserting a column to the "4images_images"
or "4images_users" table in your database.

If you add an additional image field and allow upload from the gallery,
add the columns to "4images_images_temp" as well.

Add one line for each new column in the following format:

  $additional_image_fields['%column_name%'] = array("%field_description%", "%admin_field_type%", %is_required%);
or
  $additional_user_fields['%column_name%'] = array("%field_description%", "%admin_field_type%", %is_required%);
  $additional_user_fields['user_avatar'] = array($lang['avatar'], "avatar", 0);

At the bottom of this file, you will find examples for adding a new field.

----------
%column_name% string

  Replace %column_name% with name of the table column.
  You can use the tag {%column_name%} in the templates to display the value of the
  database field.
  If you want to add a textfield to the templates, do this such like:

    <input type="text" name="%column_name%" value="{%column_name%}" />

----------
%field_description% string

  Replace %field_description% with a custom name. This name will be displayed in the Control Panel.
  The value can be displayed in the templates with the tag {lang_%column_name%}.
  It is also recommended to add this tag to the language files (main.php) and to replace "%field_description%"
  with $lang['%column_name%'].

----------

and the code from step 4 does exist!

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] Avatar v2.01
« Reply #47 on: February 24, 2003, 05:11:18 PM »
aha!
now I see where is the problem!
in the db_field_definitions.php u add the line in the comments!
u must add it at the END of file, just before ?>
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Der_Nick

  • Newbie
  • *
  • Posts: 46
    • View Profile
    • http://www.fetteseite.com
Re: [Mod] Avatar v2.01
« Reply #48 on: February 24, 2003, 05:23:40 PM »
oh no!! :oops:
ok,thats it!! thank a lot!!
now it works!! :D

very great mod!!

Offline Stryker

  • Newbie
  • *
  • Posts: 44
    • View Profile
    • http://www.3dm-mc.com
Re: [Mod] Avatar v2.01
« Reply #49 on: March 07, 2003, 11:59:13 PM »
PLEASE, moke intergaton for vBulletin Version 2.2.X?

please please please!!!

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] Avatar v2.01
« Reply #50 on: March 08, 2003, 01:43:15 PM »
Quote from: Stryker
PLEASE, moke intergaton for vBulletin Version 2.2.X?

please please please!!!

what does it have with avatar mod? 8O
another thing, I dont even have vBulletin.
one more thing, I dont even want have vBulletin.
last thing, vBulleting uses database to store templates, right? o-my-god! it s@x, no wonder most of the vBulletin forums I've seen looks the same. I hardly can imaging how it possible edit templates through browser, where u cant even select one letter from a word by using just mouse, because it will select whole word instead... 8O and u have to  pay for it??? :evil:
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline rustynet

  • Addicted member
  • ******
  • Posts: 1.031
  • {if msg}{msg}{endif msg}
    • View Profile
    • rustynet.de
Re: [Mod] Avatar v2.01
« Reply #51 on: March 14, 2003, 06:32:01 PM »
Quote from: Jasondavis
I can see the avatars opn your site when im logged in or logged out....on my site I can only see them when Im logged in under my admin name still...weird


I do have the same problem.  :oops:

Offline Clow Read

  • Newbie
  • *
  • Posts: 21
    • View Profile
    • http://vectorcandy.com
Re: [Mod] Avatar v2.01
« Reply #52 on: March 16, 2003, 12:31:11 AM »
beautiful mod V@no ^^

i have a question...
i have 4images integrated to phpBB and i want to integrate this mod with phpBB...

in other words...i want 4images to use phpBB's avatar database as well as the upload avatar database

could you help me code???

thanx ^_~

Offline mantra

  • Sr. Member
  • ****
  • Posts: 358
    • View Profile
    • DREAM WITH MANTRA
Re: [Mod] Avatar v2.01
« Reply #53 on: March 16, 2003, 08:07:06 AM »
:wink: sorry I push the button submit two times by mistake

Offline mantra

  • Sr. Member
  • ****
  • Posts: 358
    • View Profile
    • DREAM WITH MANTRA
Re: [Mod] Avatar v2.01
« Reply #54 on: March 16, 2003, 08:07:27 AM »
V@no after I install your new mood v2 . it's work fine on main page. but if I log in admin page I got this error
----------------------------------------------------------------------------------------------------------
Warning: Cannot add header information - headers already sent by (output started at c:\myserver\scripts\gallery\admin\admin_functions.php:671) in c:\myserver\scripts\gallery\admin\admin_functions.php on line 167

Warning: Cannot add header information - headers already sent by (output started at c:\myserver\scripts\gallery\admin\admin_functions.php:671) in c:\myserver\scripts\gallery\admin\admin_functions.php on line 168

Warning: Cannot add header information - headers already sent by (output started at c:\myserver\scripts\gallery\admin\admin_functions.php:671) in c:\myserver\scripts\gallery\admin\admin_functions.php on line 169

Warning: Cannot add header information - headers already sent by (output started at c:\myserver\scripts\gallery\admin\admin_functions.php:671) in c:\myserver\scripts\gallery\admin\admin_functions.php on line 170

Warning: Cannot add header information - headers already sent by (output started at c:\myserver\scripts\gallery\admin\admin_functions.php:671) in c:\myserver\scripts\gallery\admin\admin_functions.php on line 171

----------------------------------------------------------------------------------
Where did I make wrong [ I change all instruction very carefully ]
and I don't have blank line after ?> in all php page like in FAQ of this forum
 
I search the error line in admin_functions.php
I try remove this code

  header ("Cache-Control: no-store, no-cache, must-revalidate");
  header ("Cache-Control: pre-check=0, post-check=0, max-age=0", false);
  header ("Pragma: no-cache");
  header ("Expires: " . gmdate("D, d M Y H:i:s", time()) . " GMT");
  header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");


and the error missing, did I lost some of feature in 4images.

Can help??

Offline Luang

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: [Mod] Avatar v2.01
« Reply #55 on: April 19, 2003, 05:09:25 PM »
This one can't be too hard to integrate in phpBB I think. Here's a guess by using some code of V@no.

open details.php

repeat this step

Find code:

Code: [Select]
$comment_user_id = $comment_row[$i]['user_id'];

add after

Code: [Select]
$user_row_comment = get_user_info($comment_user_id);


then find

Code: [Select]
$comment_user_info .= (isset($comment_row[$i][$user_table_fields['user_comments']])) ? "<br />".$lang['comments']." ".$comment_row[$i][$user_table_fields['user_comments']] : "";

add after

Code: [Select]
$comment_user_avatar = $user_row_comment['user_avatar'];

then find

Code: [Select]
"comment_user_id" => $comment_user_id,

add after

Code: [Select]
"comment_user_avatar" => $comment_user_avatar,

open the comment_bit.html of your template, then add this wherever you like in your user field. For example find

Code: [Select]
{comment_user_info}<br />

add after

Code: [Select]
<img src="{comment_user_avatar}">


Save and close all files. I'm not sure if this works with vbb, but if you know a bit of mysql look up the avatar field in your user table copy the table name and replace the user_avatar string with your avatar field you found in your usertable.

Code: [Select]
$comment_user_avatar = $user_row_comment['user_avatar'];

You could use this trick to add various information from the user table if you understand what I've just written

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
Re: [Mod] Avatar v2.01
« Reply #56 on: April 28, 2003, 06:51:34 PM »
I have one problem. I think i did mistake when i was changing code. Here its the pic:
http://slo-foto.portal.si/slike/avatars.JPG

See? It shouldnt be there, but under my nickname.

Yeah, its a girl... but i am just testing it  8)

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] Avatar v2.01
« Reply #57 on: April 29, 2003, 08:54:17 AM »
Quote from: Lucifix1
I have one problem. I think i did mistake when i was changing code. Here its the pic:
http://slo-foto.portal.si/slike/avatars.JPG

See? It shouldnt be there, but under my nickname.

Yeah, its a girl... but i am just testing it  8)

My advice - change my template to fit your lyout, in that case u wont loose anything "important".
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
Re: [Mod] Avatar v2.01
« Reply #58 on: April 29, 2003, 09:27:13 PM »
Quote
My advice - change my template to fit your lyout, in that case u wont loose anything "important".


Hm... where can i change your template?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] Avatar v2.01
« Reply #59 on: April 30, 2003, 12:40:20 AM »
ops, never mind...I posted only edit profile template...:oops:
hope u dont use notepad to change your templates, otherwise HTML editor would show u where is the problem.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)