The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
Hi all
OK, at long last, I think this is ready for everyone else to poke at To make things easier, I've put the instructions up on my site, using a program someone gave me a long time ago that's designed specifically for posting hacks with. At one point I thought about doing a PHP version of it, I guess I have motivation now This release is still not completely clean. There are a few things not yet coded that I want to get in before it makes it to 1.0. the to-do list is:
As always, use at your own risk. It's recommended you back up your vB PHP files before implementing this hack. The database modifications won't affect anything if you back the hack out. Anyway, you can find the instructions for applying the hack at http://www.moonwolf.net/cgi-bin/vb_m...structions.cgi To see it in operation, I have a version of it running at http://www.underlight.com/VBB Enjoy! Kath [Edited by Moonwolf on 06-06-2000 at 12:04 PM] Show Your Support
|
Comments |
#12
|
|||
|
|||
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. |
#13
|
|||
|
|||
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. |
#14
|
|||
|
|||
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.
|
#15
|
|||
|
|||
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 |
#16
|
|||
|
|||
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 */ if ($userinfo[avimage] and $showavatars==1 and is_file($userinfo[avimage])) { clearstatcache(); |
#17
|
|||
|
|||
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:
|
#18
|
|||
|
|||
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:
|
#19
|
|||
|
|||
Nice - John can you get this added to a release when it is all smoothed out?
|
#20
|
|||
|
|||
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! |
#21
|
|||
|
|||
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 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|