![]() |
How do you query the database?
|
Quote:
|
Find:
PHP Code:
PHP Code:
Its $post[height] instead of $post[hieght] Installed it, works like a charme.. finaly question, how can i show a preview of there avatar, once they have change it and they visit the usercp again? (like the old one) |
An addition to this. If for some reason the person deletes the default code without putting in a URL, and their avatar shows as a broken image, you can add this code to get around it:
In admin/functions.php - under: Code:
if ($post[homepage]!="" and $post[homepage]!="http://") { ADD: Code:
if ($post[field#]!="" and $post[field#]!="https://vborg.vbsupport.ru/greentek/clear.gif") { (where # is the field number) Create a new template called postbit_off_avatar using the following: Code:
<img src="$post[field#]" width="$post[width]" height="$post[height]" border="0"><br> And in your postbit template, where before you had the above code, put simply: Code:
$post[off_avatar] And you should now have no broken avatar images (unless someone's using Geocities!:)) |
This is also helps, if you have a blank image for people not using an avatar, and the postbit is stretched even when they make only a one word post (for example), then this will set it up the blank image doesn't show up.
|
Ahhhh Sweetness!! Great hack, and thanks a BUNCH MarkB for fixing that little problem with the space and broken images!
|
I just notcied that it stretches pictures to be whatever size you set in the db. Is there a way to make it only resize the picture if it is larger than the set size.
And i know this is asking a bit much, but how hard would it be to make an image limit. I think that might be really dificult seeing as its on a different server, and i think it would have to ask all the sites what size the picture is if i'm correct in thinking of how to do it. Anyways, if thats too hard forget it ;) But the resizing is somthing that can be done, i just dont know how. >.< :lick: |
Quote:
|
Just so you know, what i did, was use this hack... and just removed the lines that size the image. Then i used... https://vborg.vbsupport.ru/showthrea...threadid=45343 that to to make sure no one uses an avatar that is too large. I would love a size limiter, but i think it's too hard if it's on another server =(
|
Unfortunately this seems to create compatibility issues with my Private Messages.
https://vborg.vbsupport.ru/showthrea...threadid=47536 |
All times are GMT. The time now is 07:56 AM. |
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:
|