![]() |
very nice :) Thanks!
|
Quote:
|
Quote:
|
Lovely mod.
|
Looks good, one question though:
Does this mod respect the usercp option to disable viewing avatars? i.e. If the user has chosen to disable avatars for their account, does this mod still display the avatars or something else? |
Quote:
|
Quote:
Quote:
Quote:
I've since moved that styling to the CSS file (for real this time), so it will be there for the next version. |
Changed for 1.03...
|
Since I'm sure someone will ask how to make a custom setting that users can use to disable Thread Avatars just for themselves, you can go to AdminCP -> User Profile Fields -> Add New User Profile Field
Choose the "Single Selection Radio Buttons" option. These are the settings I use for digitalpoint.com: https://vborg.vbsupport.ru/external/2011/10/60.png An important thing to note is what the internal field ID is for your new setting. In my case it's 21... so in the plug-in, we are reading field21. Create a new plug-in like so (do NOT pick the Thread Avatars as the product since it would get overwritten on an update): https://vborg.vbsupport.ru/external/2011/10/61.png You now should have a setting that users can set in their UserCP settings that allows them to toggle Thread Avatars on/off. You can use a similar plug-in to set the $show['hide_thread_avatars'] variable to "true" for other things if you want (per style, per usergroup, etc.) |
An example of the sort of thing you could do with the new hook location...
On digitalpoint.com, premium members can see the "true country" of a poster... I extended it a bit so premium members show the flag of the country the thread starter is in. I made it so the flag only shows when you mouseover the thread (that way it's normally hidden so it's not too obnoxious). https://vborg.vbsupport.ru/external/2011/10/66.png |
Quote:
|
When this plugin is enabled it sometimes courses an error on search results. To make sure that its not just on my test site it happens, I testet this on digitalpoint.
http://forums.digitalpoint.com/searc...4927464&page=3 searched for "service" and got the following error on page 3: Warning: array_merge() [function.array-merge]: Argument #2 is not an array in [path]/packages/vbforum/search/result/thread.php(194) : eval()'d code on line 10 Another search for "rebel" page 14 (http://forums.digitalpoint.com/searc...927528&page=14) It dosent happen that often on your site, its more frequent on my internal testsite. |
Hmmm... yeah, that could happen if search results returns a thread that was created by a user that no longer exists. If you open the plug-in at the search_results_threadbit location, change this:
PHP Code:
PHP Code:
|
wow you are fast :) works perfectly, thanks!
|
Who I can change in the mini-avatar the title say "Thread description...." for the username of the mini-avatar??
excuse me my english :S |
Installed - working perfect - nominated for MOTM :)
|
This is beautiful and amazing -- thank you so much. Nom'd.
|
1 Attachment(s)
Hey Shawn,
Thanks for sharing this fantastic hack, is it possible you can add the rounded border effect avatar for "Postbit" template, I've attached the attachment, hopefully it'll give you an idea of what I'm talking about. Nhat :D |
That would really just be a CSS entry. Add this to your additional.css template and it should work...
Code:
.postbit .postuseravatarlink img { |
1 Attachment(s)
Thanks that was easy,
Also are you planning to integrate the exact functionality for the "Forumhome" page listing? (see attachment) Hmmm.. and for a more advanced developments, I was thinking you could use this same feature for the "Quote" functionality, so basically when I quoted you.. you'd see a little avatar of me at the top bottom right of your avatar.. it's pretty sweet knowing who you're/they're directly communicating to ;) Nhat |
Quote:
|
Quote:
Code:
if ($vbulletin->userinfo['field28'] == 'yes') $show['hide_thread_avatars'] = true; |
THat *should* be it assuming field28 is being set to 'Yes' for your account.
You can double check by going into phpmyadmin (if you have it installed), going into the userfield table, and checking the record for your userid. Make sure there are no leading/trailing spaces in there. |
Hi,
works fine in FF but in IE 8 there is no transparency :( |
The opacity will work in the latest version of IE, but for old versions, if you want it to work, you can go into your dpta.css template and change this:
Code:
.threadbit .icon { Code:
.threadbit .icon { That being said, if you (personally) want to support old versions of IE, that code will do it. :) |
1 Attachment(s)
Hi,
thanks. But what is the Definition of older IE Version ? I mean, IE 8 is not Old :D But i have one thing. If DPTA is activ there displayed me one Thread in Searchresults wit no entry ? Attachment 133650 Maybe a Idee for Future updates. If the Icon Legend under the Threadlist would be updatet with Threadavatars it shows Great :D Maybe as Example with the no Avatar icon :D |
Quote:
As far as search results go, it looks like you may have hit this issue (also fixed in 1.0.4 already in the source)... When a thread was created by a user that no longer exists in the user table (the fix is here). |
Updated the download to 1.0.4... the only changes are the CSS for old versions of Internet Explorer, and the issue when search returns a thread created by a non-existant user.
|
nice idea
and welcome back Shawn... |
great product ... thanks .
for rtl language forum you have to change from "left" to "right" : ( in red ) Code:
.threadbit img.self { Code:
.threadbit.lock .lockicon { Code:
.threadbit .threadstatus.avatars div.overlay { |
Hi,
thx for Fixing :D |
I love you man!!! :D
(though I am not a gay ;) ) |
nice xenforo look :)
I like it thanks for sharing |
Quote:
|
Quote:
|
Quote:
|
Great mod, thanks! Would it be possible to make the avatar size configurable? The cropped versions don't look so hot...
|
It keys on the threadbit_iconsize StyleVar (specifically the width) for it. It doesn't use the height because it just keeps it square.
And I'll be completely honest, I haven't tested altering it to make it larger or smaller, but it *should* work in theory. :) |
That works nicely, thanks! :)
|
Quote:
|
All times are GMT. The time now is 04:27 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:
|