![]() |
Fixed the javascript problem...
In the modifyprofile template... Call the form "dynamicselector" Call the avatar selection box "dynamicselector2" and it will be compatible with the avatar.js thats in the hack. |
Ok, both would work. I was checking my fix while you must have been adding the updated instructions.
Cannot display the avatar with my posts .. looking at it as we speak. |
OK, once the hack is in, you need to set avatarshow in options to yes, and make sure you have $avatar in your postbit template.
|
Ok, fixed the problem where the database was not getting updated.
That was due to my mod on the javascript. Now looking into why userinfo[avimage] is a null value in showthread :) |
I think you missed one step in the mod for showthread.php
Change Code:
$userinfo=$DB_site->query_first("SELECT userid,email,username,usertitle,signature,showemail,homepage,icq,aim,yahoo,joindate,posts FROM user WHERE userid=$userid"); Code:
$userinfo=$DB_site->query_first("SELECT userid,email,username,usertitle,signature,showemail,homepage,icq,aim,yahoo,joindate,posts,avimage FROM user WHERE userid=$userid"); Code:
/* Avatar Hack by Moonwolf */ |
One of the things I'm looking at for 1.0 is a toggleable user upload of private images. That will have a byte size restriction on it. As for display dimensions, those can be controlled by $aheight and $awidth through the control panel.
Kath Quote:
|
Yep, I did, thanks for finding it.
I've changed the templates a little bit, and the avatardb.php file that inserts the first image also. Now the selector will default to ----- None ----- if there's no image set. Makes it a little cleaner. In each of the three templates that have the selector, delete the <option>'s that are in the template, and let the PHP do all the work filling them out. Kath Quote:
|
Nice - John can you get this added to a release when it is all smoothed out?
|
Hi,
great hack - but the download-link on moonwolfs instructions doesn't work - could anyone attach this on an email to me? Thanx - this is the hack for vB! |
I'm not sure, but there seems to be something wrong with the dHTML in the selector. In Netscape, it refuses to display any form elements after the selector, and refuses to display the images.
-Why- this is happening I have no idea, but I'm working on it. It doesn't affect MSIE at all. TB2: Try the link now. Kath |
All times are GMT. The time now is 11:04 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|