![]() |
Show Icon if User has a Profile Picture
Show Icon is User has a Profile Picture
Description This Hack shows an Icon if the User has a Profile Picture. Currently supported Templates:
Details 1 Product XML (4 Plugins, 1 Phrase) 1 Bitfield XML 1 Icon Image History 1.0.0 Initial Version 1.0.1 (Hopefully) fixed Problem with Icon also showing up when user uploaded an avatar |
whats the icon ? *note nevermind i see it now* and no file yet so u must be updating this the little camera thingy is the icon :)
|
File is there now.
I noticed that there was a Problem with the Uninstall Code, so I temporarily removed it. |
works perfect - note pic needs to go in misc folder :) just something simple
|
Right. ZIP updated, thank you.
|
Ya know Kirby, it's like someone asked me about all the things I'd like added to my forum - and then they went and made you code them all lol.
Thanks once more! :) |
Quote:
This is something great, but I want to implement it slightly differently. I am not quote sure how yet...but I will brainstorm and share any templating I do in case someone else likes it. |
I have upload the files, import the XML and edit the template "postbit"
PHP Code:
PHP Code:
|
@mikexxx
Do the Users have Profile Pictures? @Bad Bunny In 3.0 I implemented it differently, but that required cahanging a lot of queires and invloved lot of JOINs. The way it is implemented now does not cause any overhead (except when a User cahnges teh Pic). |
Quote:
|
Quote:
|
Well ... it was the first Icon that was at least somehow usable :D
@mikexxx You are using RC3? |
Quote:
PHP Code:
|
Strange then.
You are using mySQL < 4.0.4 by any chance? |
Quote:
|
That's the Problem then, at least mySQL 4.0.4 is required.
|
I have upgraded my server to PHP 5.0.4 and MySql 4.1.14. This plugin is still not working.
|
Then I don't know why.
Feel free to send me a PM with an ACP Login (access to running mySQL Queries is necessary) and i'll take a look. |
KirbyDE, Thanks for youy help. Problem solved.
|
EDIT: I have an old version of MYSQL. My bad.
|
It should work with any mySQL Version > 3.23, jsut the installation Script won't set the "Has Profile Picture" Flag for existing members then.
(Otherwise PHP Code would have been required to do so ... with mySQL 4.04 it's just a Multi-Table Update ;)) |
Ah I see. Well the icon just wasn't appearing at all... Probably because the flag wasn't set, right? ;) Any chance you could bung the code my way if you got a chance?
|
Nope. Too much work, sorry.
But you just have to upload a new Pic and the Flag will be set. |
OK cheers for the heads up.
|
Hi Kirby
I have a small problem... the icon is showing even if someone uploads an avatar :-/ Any ideas why thats happening? Im running 3.5 gold. Thanks in advance. |
Whoops :)
Gonna take a look at that. |
Quote:
Ps. forgot to add.. that it ONLY effects avatars added after the plug-in is installed... |
Should be working now. Can you check if it does?
|
sure... will do it now ;)
|
.... Yep Perfect!
Thanks your a Star Kirby!! :) |
I'm still trying to get a feel for the new plug in system, and my general knowledge of code is miniscule at best, so I was wondering....
I've tried to install this hack, but I am having a problem. I've already imported the product (product-profpic.xml) and uploaded the image to the images/misc folder, via FTP, but I'm not sure what to do with this bitfield .xml file. Is that a plug in? I tried uploading it as one and it tells me "invalid file specified." Is this supposed to be uploaded via FTP, and if so, where? Thanks for your patience. |
Quote:
|
Common sense finally prevailed. I thank you!
Edit: Almost forgot... /me clicks install! |
How much would it take to display the icon to only members who actually have permission to see profile pictures?
|
easy, just enclose the bit that displays the graphic inside another IF command that is for the specified usergroup only ;)
|
This Hack requires mySQL > 4.0.4.
Which mySQL Version do you have? |
Quote:
|
It works just fine, except that it won't show Icons for pictures that are already present - only for new ones.
Honestly, mySQL 3 is damn old and you really should upgrade (Query Cache, Fulltext Search, etc.) |
Quote:
But if you mean if it does add overhead: No. It only executes 1 query when a User updates his profile picture. |
It works just fine with mySQL 3- except for the install code.
And mySQL 4.0 is stable ... the current stable release is 5.0! |
All times are GMT. The time now is 04:43 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:
|