Fight the automated spam - protect your miniBB-forums,
getting the Captcha addon! Click here to read more.
Captcha Addon for miniBB
miniBB ®
 
miniBB Community Forum
 | Forums | File Bank | Sign Up | Reply | Search | Statistics | Manual |
Official Addons and Solutions miniBB Community Forum / Official Addons and Solutions /

Avatars add-on discussions

 Page:  ««  1  2  3  4  5  6  7  »» 
Ivan
Advanced Member
#16 | Posted: 7 Jul 2005 09:05
Reply 
A week or two ago I, too, saw this line in a post, but later lost it:

$userInfoInPosts=array($dbUserSheme['user_custom1'][1]);

I searched in the plugin readme, and didn't find it. In my readme there is written:

$userInfoInPosts=array('user_custom1');

I have this exact line in my setup_options.php and it works perfectly.

So, would you explain me why do you use the first one, where, and what difference you receive this way?
Team
8-)
#17 | Posted: 7 Jul 2005 15:11
Reply 
If you are using default miniBB table structure, there is no difference between two variants. However, users who integrate miniBB with outside users table, must use defined $dbUserSheme array.
Ivan
Advanced Member
#18 | Posted: 7 Jul 2005 15:33
Reply 
Thank you!
gruffnuts
Forums Member
#19 | Posted: 23 Jul 2005 06:19
Reply 
OK. after a bit of tweaking I have been able to upload avatars (needed to delete and create "avatars" dir in order to ch perms so it could be accessed) with the avatar plug in.

I can't get the avatars to display for a posting in the forums, instead I get "$l_usrInfo[12]='User Avatar'; " in place of where the pic should be.

Any help on how to fix this so avatars are displayed in forums would be great.
gruffnuts
Forums Member
#20 | Posted: 23 Jul 2005 06:37 | Edited by: gruffnuts
Reply 
Update: that line $l_usrInfo[12]='User Avatar' was incorrectly placed in the main_posts_cell.html file. Now it is removed, but I still can't see avatar.

I gather it must be something to do with the line

{$userInfo_user_custom1[$poster_id]} in main_posts_cell.html??

which I have placed in the right place as far as I can see.
Team
8-)
#21 | Posted: 23 Jul 2005 12:15
Reply 
Don't forget that you must specify avatar's field in $userInfoInPosts array in setup_options.php. And yes - you must paste {$userInfo_user_custom1[$poster_id]} in main_posts_cell.html at the place where avatar should be.
gruffnuts
Forums Member
#22 | Posted: 23 Jul 2005 15:08
Reply 
Thanks Team.

I have this line in setup_options.php:

//$userInfoInPosts=array('user_custom1');

and of course I have the line

{$userInfo_user_custom1[$poster_id]}

in main_posts_cell.html after <br> tag

Is there any other script that determines that avatars are displayed? Should I remove the // from the line above (when I did I got errors)? I seem to be doing everything exactly as suggested in the readme. I have changed the avatars folder name from shared_files but updated this in the relevant files.

The avatars display perfectly in the preferences profile page.

I can post the files concerned? Please help. As soon as I have this done my forum is complete! :|
Team
8-)
#23 | Posted: 23 Jul 2005 20:34
Reply 
Remove // before //$userInfoInPosts
gruffnuts
Forums Member
#24 | Posted: 24 Jul 2005 03:37
Reply 
Remove // before //$userInfoInPosts

I get this error if I do that:

Parse error: parse error, unexpected T_VARIABLE...in setup_options.php

(at the line where the userinfoinposts array is).

Any ideas?

Thanks
gruffnuts
Forums Member
#25 | Posted: 24 Jul 2005 06:36 | Edited by: gruffnuts
Reply 
Fixed it!
Looking around the forum here and googling the error, it became clear that this error is associated with php syntax errors. Anyway the lines in setup_options.php:

//$registerInactiveUsers=TRUE;
//$mod_rewrite=TRUE;
$enableViews=TRUE
$userInfoInPosts=array('user_custom1');
//$userDeleteMsgs=1;

caused problems, due to the semi colon after userInfoInPosts line, instead, it should have no semi colon after it! ie, the two active lines need to be

$enableViews=TRUE;
$userInfoInPosts=array('user_custom1')


Obvious for some maybe...

This php is very fussy! :-)

(If you leave me long enough I can work this stuff out, like the monkeys with the typewriters producing Shakespeare.)

Thanks for your help Team.;-)

GN
Team
8-)
#26 | Posted: 25 Jul 2005 09:31
Reply 
PHP is the greatest language implemented I ever seen. It's not fussy. Don't you think you can do a programming with errors, and PHP will ignore this errors, successfully executing the script? :)))) Then try programming in Java - it is less fussy.
gruffnuts
Forums Member
#27 | Posted: 25 Jul 2005 14:18
Reply 
Sorry to diss the beloved PHP. When I was a kid I used to program using cards in Fortran, you had to wait hours to get feedback on errors, and a bent card or a loose "chad" meant everything went pear shaped. So the issues with PHP are nothing, really.

Ahh, the seventies.

Thanks again.
Moony
Forums Member
#28 | Posted: 27 Aug 2005 18:58 | Edited by: Moony
Reply 
The strange thing in the avatar plugin is that users cannot add their avatars when registering - only after. How to fix this?
Team
8-)
#29 | Posted: 29 Aug 2005 16:31 | Edited by: Team
Reply 
Yes, that's impossible. User must register first. This is not a bug, and there is nothing to fix. It's done because registration script handles many of errors - for example, errors on existing nicknames, emails, not matching passwords etc. Author of the plugin doesn't think it's a good idea to upload something to server if this upload could be unsuccessful in some cases.
Moony
Forums Member
#30 | Posted: 29 Aug 2005 17:03
Reply 
It would be more logical to integrate this plugin to the registration form, isn't it?
 Page:  ««  1  2  3  4  5  6  7  »» 
Your Reply

» Username  » Password 
You are welcome to post anonymously by entering a nickname with no password (if that nickname has not been taken by another member) or by leaving both fields empty. If you have a forums membership account, you can also sign in from this page without posting a message, or sign in and post at once.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.

 
Online now: Guests - 2
Members - 0
Most users ever online: 214 [11 Jan 2009 10:23]
Guests - 214 / Members - 0

Forums are powered by miniBB®