View Full Version : Forum Display Enhancements - User Avatars In Thread Listing
shabbirbhimani
08-15-2011, 10:00 PM
Download vB 3.8.x Compatible Version Here (https://vborg.vbsupport.ru/showthread.php?t=268855)
What does this plugin do?
This plugin add user avatars to the thread listing in forum display page. See the sceenshot for sample.
https://vborg.vbsupport.ru/external/2011/08/51.png (http://imtips.co/xenforo-avatars-vbulletin.html)
How to Install the plugin?
This plugin requires you edit vBulletin templates.
Import the xml file from the product manager..
Edit the threadbit template.
Find
<vb:if condition="$show['threadicon']">
And add the following just above it.
<a href="{vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}"><img height="32px" width="32px" style="float:left;margin-right:4px" src="{vb:raw thread.avatarurl}" border="0" /></a>
Find
<dt>{vb:rawphrase last_post_by}</dt>
Please note: Some custom templates have the above code as <dt class="lastpostby hidden">{vb:rawphrase last_post_by}</dt>
And add the following just above it.
<a href="{vb:link member, {vb:raw thread}, null, 'lastposterid', 'lastposter'}"><img height="32px" width="32px" style="float:left;margin-right:4px" src="{vb:raw thread.lastposteravatarurl}" border="0" /></a>
Edit forumhome_forumbit_level1_post and forumhome_forumbit_level2_post templates as follows.
Find
{vb:raw forum.lastpostinfo}
And add the following code just above it.
<a href="{vb:link member, {vb:raw forum}, null, 'real_lastposterid', 'real_lastposter'}"><img height="48px" width="48px" style="float:left;margin-right:4px" src="{vb:raw forum.avatarurl}" border="0" /></a>
Edit search_threadbit
Find the first occurrence of
<div class="inner">
And add after that
<a href="{vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}"><img height="32px" width="32px" style="float:left;margin:7px 4px 0 0" src="{vb:raw thread.avatarurl}" border="0" /></a>
Then again find
<dl class="threadlastpost td">
And add after that
<a href="{vb:link member, {vb:raw thread}, null, 'lastposterid', 'lastposter'}"><img height="32px" width="32px" style="float:left;margin-right:4px" src="{vb:raw thread.lastposteravatarurl}" border="0" /></a>
Edit search_results_postbit
Find
<div class="contact">
And add after that
<a href="{vb:link member, {vb:raw post}, null, 'userid', 'username'}"><img height="32px" width="32px" style="float:left;margin-left:4px" src="{vb:raw post.avatarurl}" border="0" /></a>
Upgrading Instructions
If you are upgrading the plugin, just import the new plugin file and overwrite the existing plugins. Once done make the necessary edits to the search templates.
Credits
Last poster's avatar idea by James from VirtueScience (http://www.virtuescience.com/)
Support
This plugin is supported, so you can post your issues and queries either on my blog (http://imtips.co/xenforo-avatars-vbulletin.html) or in comments below.
If you would like to Optimize your vBulletin for Less Server Load & Better User Experience, read this post on Optimizing vBulletin (http://imtips.co/optimize-vbulletin.html)
History
Updated 21st August
Added support for avatars in search results.
Fixed bug for thread started by guests.
Updated 18th August
Avatar of sub forums last post bug fixed.
Updated 17th August
Added Support for avatars in forumhome
Avatars linked to member urls
Enjoy!!!
nCODE
08-16-2011, 10:32 AM
OOO... this looks awesome!!
is there by chance make the avatar the status icon? like totally opaque if there's an unread post and make it 50% transparent if there's no unread post and also a nice border will be awesome...
THANKS!!
anyways, here's something from me: :D
for a nice border, you have to do the following ;)
[NOTE: You can only use this if you have upgraded to the newer version: 1.01]
Go to: AdminCP --> Styles & Templates --> The "<<>>" button of your template
select Additional.css from CSS Templates and add this at the very bottom:
/**
* Avatar border by nCODE
*/
a.aw-avatar
{
*cursor: pointer; /* IE7 refuses to do this */
}
.aw-avatar img,
.aw-avatar .img,
.aw-avatarCropper
{
background-color: rgb(252, 252, 255);
padding: 2px;
border: 1px solid #a5cae4;
border-radius: 4px; -webkit-border-radius: 4px; -moz-border-radius: 4px; -khtml-border-radius: 4px;
}
.aw-avatar .img
{
display: block;
background-repeat: no-repeat;
background-position: 2px 2px;
text-indent: 1000px;
overflow: hidden;
white-space: nowrap;
word-wrap: normal;
}then you have to edit the threadbit template:
find:
<a href="{vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}"><img height="32px" width="32px" style="float:left;margin-right:4px" src="{vb:raw thread.avatarurl}" border="0" /></a>replace with:
<a class="aw-avatar" href="{vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}"><img height="32px" width="32px" style="float:left;margin-right:4px" src="{vb:raw thread.avatarurl}" border="0" /></a>find:
<a href="{vb:link member, {vb:raw thread}, null, 'lastposterid', 'lastposter'}"><img height="32px" width="32px" style="float:left;margin-right:4px" src="{vb:raw thread.lastposteravatarurl}" border="0" /></a>replace with:
<a class="aw-avatar" href="{vb:link member, {vb:raw thread}, null, 'lastposterid', 'lastposter'}"><img height="32px" width="32px" style="float:left;margin-right:4px" src="{vb:raw thread.lastposteravatarurl}" border="0" /></a>Edit forumhome_forumbit_level1_post and forumhome_forumbit_level2_post templates as follows.
Find:
<a href="{vb:link member, {vb:raw forum}, null, 'real_lastposterid', 'real_lastposter'}"><img height="48px" width="48px" style="float:left;margin-right:4px" src="{vb:raw forum.avatarurl}" border="0" /></a>Replace with:
<a class="aw-avatar" href="{vb:link member, {vb:raw forum}, null, 'real_lastposterid', 'real_lastposter'}"><img height="48px" width="48px" style="float:left;margin-right:4px" src="{vb:raw forum.avatarurl}" border="0" /></a></a>P.S. This same coding can also be found here (https://vborg.vbsupport.ru/showthread.php?p=2234407#post2234407)
Abhik
08-16-2011, 10:42 AM
Thanks Shabbir.. Looks awesome.
Taurus1
08-16-2011, 11:37 AM
Great stuff. Thank you. Now if I could just find something similar for the forumhome template, then I will be in heaven...lol!
shabbirbhimani
08-16-2011, 12:20 PM
OOO... this looks awesome!!
is there by chance make the avatar the status icon? like totally opaque if there's an unread post and make it 50% transparent if there's no unread post and also a nice border will be awesome...
THANKS!!That should not be very difficult to extend but as of now I have no plans doing it.
Great stuff. Thank you. Now if I could just find something similar for the forumhome template, then I will be in heaven...lol!What do you want on forumhome?
Taurus1
08-16-2011, 12:38 PM
Avatars next to last posts. As shown where with red arrow. And I will be prepared to pay for something like that. :)
132002
shabbirbhimani
08-16-2011, 12:43 PM
Avatars next to last posts. As shown where with red arrow. And I will be prepared to pay for something like that. :)
132002
Yes I can get that done. If there are few people looking for that I can extend the plugin or else I can get it done only for you. I am open to both.
Taurus1
08-16-2011, 12:52 PM
Yes I can get that done. If there are few people looking for that I can extend the plugin or else I can get it done only for you. I am open to both.
That sounds great! Thank you. Just shoot me a PM when you are done, and we can chat about the funds.
nCODE
08-16-2011, 02:11 PM
That should not be very difficult to extend but as of now I have no plans doing it.
It would be really helpful you know... ;) and also, the product works perfectly with vB 4.1.5 so you should make changes to the description...
Schoelle
08-16-2011, 02:19 PM
Avatars next to last posts. As shown where with red arrow.
That would be a nice feature! And if possible make it selectable if a click on the avatar would bring you to the user profile or to the first unread message or the last message :)
FReeSTER
08-16-2011, 02:41 PM
Wow, excellent mate.
I will like this on the ForumHome as well and on the NewPost feature.
That will be amazing if you do that on every template that shows threads. like forum display, Search New Posts, ForumHome ect...
voting for MOTM, Install and Rated 5
teach1st
08-17-2011, 02:23 AM
Thanks for a great mod! Installed on 4.1.5.
shabbirbhimani
08-17-2011, 02:51 AM
That sounds great! Thank you. Just shoot me a PM when you are done, and we can chat about the funds.I will definitely PM you when I am done. Expect in next 24-48 hours.
It would be really helpful you know... ;) and also, the product works perfectly with vB 4.1.5 so you should make changes to the description...I have no option in vb.org interface to select anything more than 4.1.4 and I know it works with 4.1.5
That would be a nice feature! And if possible make it selectable if a click on the avatar would bring you to the user profile or to the first unread message or the last message :)Will get that done as well in the next release.
Wow, excellent mate.
I will like this on the ForumHome as well and on the NewPost feature.
That will be amazing if you do that on every template that shows threads. like forum display, Search New Posts, ForumHome ect...
voting for MOTM, Install and Rated 5Coming soon in next 24-48 hours.
BlueCheri
08-17-2011, 03:20 AM
Great work, will it work for 4.1.2?
shabbirbhimani
08-17-2011, 03:51 AM
Great work, will it work for 4.1.2?
Yes. 4.1.0+ onwards.
Successfulsteps
08-17-2011, 04:15 AM
Very nice mod! Installed, rated & nominated!
shabbirbhimani
08-17-2011, 05:08 AM
Plugin Updated to support the following.
Support for avatars in forumhome
Avatars linked to member urls
shabbirbhimani
08-17-2011, 05:16 AM
Wow, excellent mate.
I will like this on the ForumHome as well and on the NewPost feature.
That will be amazing if you do that on every template that shows threads. like forum display, Search New Posts, ForumHome ect...
voting for MOTM, Install and Rated 5
Will soon update to have it on Search results page as well. Stay tuned and will update you when done.
nCODE
08-17-2011, 05:17 AM
Just a heads up... you should probably wanna change a part of your instruction:
<dt>{vb:rawphrase last_post_by}</dt>
to this:{vb:rawphrase last_post_by}</dt>
because in custom themes, there's some more coding after<dt like class and stuff ;)
JAFRI
08-17-2011, 05:21 AM
Thanks Good...
FReeSTER
08-17-2011, 05:29 AM
Will soon update to have it on Search results page as well. Stay tuned and will update you when done.
nice bro, wooohoooo :D
FReeSTER
08-17-2011, 05:38 AM
Just a heads up... you should probably wanna change a part of your instruction:
<dt>{vb:rawphrase last_post_by}</dt>
to this:{vb:rawphrase last_post_by}</dt>
because in custom themes, there's some more coding after<dt like class and stuff ;)
For custom themes it will go like this
On Threadbit
Above
<dt class="lastpostby hidden">{vb:rawphrase last_post_by}</dt>
add
<a href="{vb:link member, {vb:raw thread}, null, 'lastposterid', 'lastposter'}"><img height="32px" width="32px" style="float:left;margin-right:4px" src="{vb:raw thread.lastposteravatarurl}" border="0" /></a>
BaanFarsang
08-17-2011, 05:40 AM
There are show span code when point mouse to username.
https://vborg.vbsupport.ru/
nCODE
08-17-2011, 05:42 AM
There are show span code when point mouse to username.
http://img823.imageshack.us/img823/1337/17082554133647.png
where did you exactly placed the cursor?
BaanFarsang
08-17-2011, 05:45 AM
where did you exactly placed the cursor?
on username.
BaanFarsang
08-17-2011, 06:00 AM
I suggest that not show avatar on FORUMHOME when last thread of sub-forum was post.
nCODE
08-17-2011, 06:23 AM
Its not the problem with the code, its the problem with your template, and nice change will do the trick ;)
anyways, here's something from me: :D
for a nice border, you have to do the following ;)
[NOTE: You can only use this if you have upgraded to the newer version: 1.01]
Go to: AdminCP --> Styles & Templates --> The "<<>>" button of your template
select Additional.css from CSS Templates and add this at the very bottom:
/**
* Avatar border by nCODE
*/
a.aw-avatar
{
*cursor: pointer; /* IE7 refuses to do this */
}
.aw-avatar img,
.aw-avatar .img,
.aw-avatarCropper
{
background-color: rgb(252, 252, 255);
padding: 2px;
border: 1px solid #a5cae4;
border-radius: 4px; -webkit-border-radius: 4px; -moz-border-radius: 4px; -khtml-border-radius: 4px;
}
.aw-avatar .img
{
display: block;
background-repeat: no-repeat;
background-position: 2px 2px;
text-indent: 1000px;
overflow: hidden;
white-space: nowrap;
word-wrap: normal;
}then you have to edit the threadbit template:
find:
<a href="{vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}"><img height="32px" width="32px" style="float:left;margin-right:4px" src="{vb:raw thread.avatarurl}" border="0" /></a>replace with:
<a class="aw-avatar" href="{vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}"><img height="32px" width="32px" style="float:left;margin-right:4px" src="{vb:raw thread.avatarurl}" border="0" /></a>find:
<a href="{vb:link member, {vb:raw thread}, null, 'lastposterid', 'lastposter'}"><img height="32px" width="32px" style="float:left;margin-right:4px" src="{vb:raw thread.lastposteravatarurl}" border="0" /></a>replace with:
<a class="aw-avatar" href="{vb:link member, {vb:raw thread}, null, 'lastposterid', 'lastposter'}"><img height="32px" width="32px" style="float:left;margin-right:4px" src="{vb:raw thread.lastposteravatarurl}" border="0" /></a>Edit forumhome_forumbit_level1_post and forumhome_forumbit_level2_post templates as follows.
Find:
<a href="{vb:link member, {vb:raw forum}, null, 'real_lastposterid', 'real_lastposter'}"><img height="48px" width="48px" style="float:left;margin-right:4px" src="{vb:raw forum.avatarurl}" border="0" /></a>Replace with:
<a class="aw-avatar" href="{vb:link member, {vb:raw forum}, null, 'real_lastposterid', 'real_lastposter'}"><img height="48px" width="48px" style="float:left;margin-right:4px" src="{vb:raw forum.avatarurl}" border="0" /></a>
shabbirbhimani
08-17-2011, 07:05 AM
Just a heads up... you should probably wanna change a part of your instruction:
<dt>{vb:rawphrase last_post_by}</dt>
to this:{vb:rawphrase last_post_by}</dt>
because in custom themes, there's some more coding after<dt like class and stuff ;)
As we need to place the code before <dt changing instructions like that will not help or else people would add the image code inside dt.
nCODE
08-17-2011, 07:24 AM
As we need to place the code before <dt changing instructions like that will not help or else people would add the image code inside dt.
lol... yeah that true ;) you can mention "Above the line"...
shabbirbhimani
08-17-2011, 07:31 AM
lol... yeah that true ;) you can mention "Above the line"...
I am always mentioning above it in the instructions :D
Gemma
08-17-2011, 09:42 AM
Very nice. Thank you :)
Hi,
Some of my users have their avatar missing on forum home.....including my own avatar, which is missing too. Everyone elses are fine ;)
and those that are missing, link to someone elses profile....
*edit* will disable this for now. Keep up the good work!
Erica1977
08-17-2011, 02:17 PM
Thanks Installed it looks Great on My Site!
nCODE
08-17-2011, 04:33 PM
Hey shabbirbhimani (https://vborg.vbsupport.ru/member.php?u=68197), can you do one for vB 3.7 or 3.8? :)
BaanFarsang
08-17-2011, 05:38 PM
At FORUMHOME, invalid link when click on avatar of last thread from any sub-forum.
sadiq6210
08-17-2011, 05:44 PM
Excellent .. I was asking about last post avatar
Installed + nominated + 5 stars
Working perfect .. In my forum where I finished with this
((ATTACHED))
reddyink
08-17-2011, 06:04 PM
Good work! Would like to know how is this different from this MOD
https://vborg.vbsupport.ru/showthread.php?t=240021
sadiq6210
08-17-2011, 06:26 PM
Good work! Would like to know how is this different from this MOD
https://vborg.vbsupport.ru/showthread.php?t=240021
BlackThorn mod is only for thread author avatar
This mod includes the last post avatar in forumdisplay + forumhome
FReeSTER
08-17-2011, 06:27 PM
Good work! Would like to know how is this different from this MOD
https://vborg.vbsupport.ru/showthread.php?t=240021
This one put the Thread creator avatar and the last post avatar on the forumdisplay, This one shows the avatar on the forumhome as well near the last post creator and soon on the New Post function.
Overall is more complete. :D
FReeSTER
08-17-2011, 06:28 PM
BlackThorn mod is only for thread author avatar
This mod includes the last post avatar in forumdisplay + forumhome
damn you bit me to it. lol :p:D
FReeSTER
08-17-2011, 06:29 PM
This is by far one of those little mods that makes your forum looks better
Erica1977
08-17-2011, 06:30 PM
Its not the problem with the code, its the problem with your template, and nice change will do the trick ;)
anyways, here's something from me: :D
for a nice border, you have to do the following ;)
[NOTE: You can only use this if you have upgraded to the newer version: 1.01]
Go to: AdminCP --> Styles & Templates --> The "<<>>" button of your template
select Additional.css from CSS Templates and add this at the very bottom:
/**
* Avatar border by nCODE
*/
a.aw-avatar
{
*cursor: pointer; /* IE7 refuses to do this */
}
.aw-avatar img,
.aw-avatar .img,
.aw-avatarCropper
{
background-color: rgb(252, 252, 255);
padding: 2px;
border: 1px solid #a5cae4;
border-radius: 4px; -webkit-border-radius: 4px; -moz-border-radius: 4px; -khtml-border-radius: 4px;
}
.aw-avatar .img
{
display: block;
background-repeat: no-repeat;
background-position: 2px 2px;
text-indent: 1000px;
overflow: hidden;
white-space: nowrap;
word-wrap: normal;
}
.aw-avatar .img { width: 32px; height: 32px; }then you have to edit the threadbit template:
find:
<a href="{vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}"><img height="32px" width="32px" style="float:left;margin-right:4px" src="{vb:raw thread.avatarurl}" border="0" /></a>replace with:
<a class="aw-avatar" href="{vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}"><img height="32px" width="32px" style="float:left;margin-right:4px" src="{vb:raw thread.avatarurl}" border="0" /></a>find:
<a href="{vb:link member, {vb:raw thread}, null, 'lastposterid', 'lastposter'}"><img height="32px" width="32px" style="float:left;margin-right:4px" src="{vb:raw thread.lastposteravatarurl}" border="0" /></a>replace with:
<a class="aw-avatar" href="{vb:link member, {vb:raw thread}, null, 'lastposterid', 'lastposter'}"><img height="32px" width="32px" style="float:left;margin-right:4px" src="{vb:raw thread.lastposteravatarurl}" border="0" /></a>Edit forumhome_forumbit_level1_post and forumhome_forumbit_level2_post templates as follows.
Find:
<a href="{vb:link member, {vb:raw forum}, null, 'lastposterid', 'lastposter'}"><img height="48px" width="48px" style="float:left;margin-right:4px" src="{vb:raw forum.avatarurl}" border="0" /></a>Replace with:
<a class="aw-avatar" href="{vb:link member, {vb:raw forum}, null, 'lastposterid', 'lastposter'}"><img height="48px" width="48px" style="float:left;margin-right:4px" src="{vb:raw forum.avatarurl}" border="0" /></a>
Thanks to shabbirbhimani for making this Mod and would like to Thanks nCODE for his amazing code here as well as i am using it here's 2 pictures how it looks with your code nCODE Thanks! :up:
132048
132049
duketxboy
08-17-2011, 06:40 PM
Wow sweet wanted this for awhile took less than 5minutes to install thanks....
Erica1977
08-17-2011, 08:20 PM
At FORUMHOME, invalid link when click on avatar of last thread from any sub-forum.
Well i found a bug on main forum from any sub section, ok first the pictures i am showing you has the wrong avatar the ones with the arrows just the second arrow on bottom of first pic is correct reason why i pointed out the arrow on the second arrow thats pointing to a avatar that avatar is correct is cause the post above it should also have that same avatar as you can see it has the unknown avatar and when you click on any avatar from main forum sub will take you to this page on the second picture so please test it you will see what i am talking about hope this glitch gets fixed soon.
132052
132053
Erica1977
08-17-2011, 08:29 PM
Heres 2 more pictures this one when you click on a user that exist and has the right avatar which he has unknown one cause havent added one for himself takes you the hostgator page look at the second picture thats where it takes you.
132054
132055
nCODE
08-17-2011, 09:18 PM
I am glad that people like my first ever contribution to vBulletin :D
and YES, a nice round corner looks really cool :cool:
Erica1977
08-17-2011, 09:28 PM
I am glad that people like my first ever contribution to vBulletin :D
and YES, a nice round corner looks really cool :cool:
Got Any idea on how to fix those glitches i posted it.
shabbirbhimani
08-18-2011, 04:09 AM
Hi,
Some of my users have their avatar missing on forum home.....including my own avatar, which is missing too. Everyone elses are fine ;)
and those that are missing, link to someone elses profile....
*edit* will disable this for now. Keep up the good work!Can you share some more so I can look into it. Are you using the avatar for your own URL or is it the profile picture?
Hey shabbirbhimani (https://vborg.vbsupport.ru/member.php?u=68197), can you do one for vB 3.7 or 3.8? :)Yes I am in process of doing the same.
Good work! Would like to know how is this different from this MOD
https://vborg.vbsupport.ru/showthread.php?t=240021Many have already said things about it but I would say it is more of an extension to that plugin but I did not find that plugin when searching for getting things done so had to actually re-invent the wheel.
Got Any idea on how to fix those glitches i posted it.I am working on it and so expect a solution soon.
shabbirbhimani
08-18-2011, 04:46 AM
The issue with sub forums is now solved. Update Instructions is as follows.
Install the new version and make the following changes to the template.
Edit forumhome_forumbit_level1_post and forumhome_forumbit_level2_post templates as follows.
You had the following
<a href="{vb:link member, {vb:raw forum}, null, 'lastposterid', 'lastposter'}"><img height="48px" width="48px" style="float:left;margin-right:4px" src="{vb:raw forum.avatarurl}" border="0" /></a>
Now change to following
<a href="{vb:link member, {vb:raw forum}, null, 'real_lastposterid', 'real_lastposter'}"><img height="48px" width="48px" style="float:left;margin-right:4px" src="{vb:raw forum.avatarurl}" border="0" /></a>
You had the link to lastposter/lastposterid and now it should be changed to real_lastposter and real_lastposterid.
Erica1977
08-18-2011, 05:22 AM
The issue with sub forums is now solved. Update Instructions is as follows.
Install the new version and make the following changes to the template.
Edit forumhome_forumbit_level1_post and forumhome_forumbit_level2_post templates as follows.
You had the following
<a href="{vb:link member, {vb:raw forum}, null, 'lastposterid', 'lastposter'}"><img height="48px" width="48px" style="float:left;margin-right:4px" src="{vb:raw forum.avatarurl}" border="0" /></a>
Now change to following
<a href="{vb:link member, {vb:raw forum}, null, 'real_lastposterid', 'real_lastposter'}"><img height="48px" width="48px" style="float:left;margin-right:4px" src="{vb:raw forum.avatarurl}" border="0" /></a>
You had the link to lastposter/lastposterid and now it should be changed to real_lastposter and real_lastposterid.
read your pm please still not working now any avatar last post and all avatars on main forum will take you the the picture where this user has not register in sub and the ones in main forum thats not sub as well.
nCODE
08-18-2011, 05:27 AM
Got Any idea on how to fix those glitches i posted it.
sorry man... I am only expert in CSS and HTML and know a bit about Joomla!, but vBulletin: NULL :(
BaanFarsang
08-18-2011, 05:29 AM
Thanks, issue was solved.
shabbirbhimani
08-18-2011, 05:30 AM
read your pm please still not working now any avatar last post and all avatars on main forum will take you the the picture where this user has not register in sub and the ones in main forum thats not sub as well.
I see that you have upgraded the template edit but is still using the old plugin code and upgrade the plugin as well and that should do it for you.
Erica1977
08-18-2011, 05:31 AM
sorry man... I am only expert in CSS and HTML and know a bit about Joomla!, but vBulletin: NULL :(
Thats ok guess you need to update your mod.
Erica1977
08-18-2011, 05:38 AM
I see that you have upgraded the template edit but is still using the old plugin code and upgrade the plugin as well and that should do it for you.
i did i edit the purple uo purple test it there its on that one havent done the other styles only the purple uo skin has it atm.
nCODE
08-18-2011, 05:48 AM
how about removing the product completely and installing again?
Erica1977
08-18-2011, 05:48 AM
how about removing the product completely and installing again?
did that still dont work.
Erica1977
08-18-2011, 06:10 AM
Nevermind got it fixed missed a line on one of the edit codes sorry all working now thanks for the help.
shabbirbhimani
08-18-2011, 06:23 AM
Nevermind got it fixed missed a line on one of the edit codes sorry all working now thanks for the help.
Great to see that and do let me know if you see more issues.
BlueCheri
08-18-2011, 06:42 AM
Avatar for thread starter is problem, not showing.
May be because of following code?, I have this code in template.
<dt class="lastpostby hidden">{vb:rawphrase last_post_by}</dt>
I have added This coed <a href="{vb:link member, {vb:raw thread}, null, 'lastposterid', 'lastposter'}"><img height="32px" width="32px" style="float:left;margin-right:4px" src="{vb:raw thread.lastposteravatarurl}" border="0" /></a> above it.
Also is it possible to reduce the size of avatars?
Thanx in advance.
shabbirbhimani
08-18-2011, 06:51 AM
Avatar for thread starter is problem, not showing.
May be because of following code?, I have this code in tempate.
<dt class="lastpostby hidden">{vb:rawphrase last_post_by}</dt>
I have added This coed <a href="{vb:link member, {vb:raw thread}, null, 'lastposterid', 'lastposter'}"><img height="32px" width="32px" style="float:left;margin-right:4px" src="{vb:raw thread.lastposteravatarurl}" border="0" /></a> above it.
Also is it possible to reduce the size of avatars?
Thanx in advance.Can you share your url so I can look if there is any issues with the installation because the code looks perfect as of now.
For reducing the size of the avatar change the width and height parameter for images. As of now we have
height="32px" width="32px"
but you can edit it as per your need.
BlueCheri
08-18-2011, 06:58 AM
Thanx for reply.
I have tried to reduce the size of Avatar, but can not able to do it.
Sending you the url.
Thanx again.
Can you share your url so I can look if there is any issues with the installation because the code looks perfect as of now.
For reducing the size of the avatar change the width and height parameter for images. As of now we have
height="32px" width="32px"
but you can edit it as per your need.
shabbirbhimani
08-18-2011, 07:02 AM
I already see it as reduced on the threadlists and if you want to reduce the size on the home page as well you can do that by changing the size from 48px to anything you like
Change height="48px" width="48px" to the size you prefer.
8thos
08-18-2011, 07:30 AM
Looks great.
nacaruncr
08-18-2011, 08:08 AM
with this mod, will look like this image?
I say about the sub-avatar ... looks as you have participed in the post.. something like this
https://vborg.vbsupport.ru/external/2011/08/22.jpg
as look in this post https://vborg.vbsupport.ru/showpost.php?p=2234644&postcount=36
nCODE
08-18-2011, 09:10 AM
umm yes,
@shabbirbhimani (https://vborg.vbsupport.ru/member.php?u=68197): well its kina confusing, so can you specify the version number in the name, like product-xfstyleavatars-v1.02.xml
Thanks man ;)
XANDERER
08-18-2011, 09:19 AM
Thank you very much for this nice add-on.
But I have a problem, member's name appears to the homepage but avatar picture does not appear in all, do you think is the problem? and how we can fix it.
https://vborg.vbsupport.ru/
You can see in the picture above, Waiting for your advice.
best regards.
My English is not enough, I'm sorry.
shabbirbhimani
08-18-2011, 09:22 AM
umm yes,
@shabbirbhimani (https://vborg.vbsupport.ru/member.php?u=68197): well its kina confusing, so can you specify the version number in the name, like product-xfstyleavatars-v1.02.xml
Thanks man ;)Will do that from the next version onwards.
Thank you very much for this nice add-on.
But I have a problem, member's name appears to the homepage but avatar picture does not appear in all, do you think is the problem? and how we can fix it.
http://img811.imageshack.us/img811/7679/avatareu.png
You can see in the picture above, Waiting for your advice.
best regards.
My English is not enough, I'm sorry.If user does not have an avatar it shows the unknown default avatar url of vBulletin
shabbirbhimani
08-18-2011, 09:23 AM
with this mod, will look like this image?
I say about the sub-avatar ... looks as you have participed in the post.. something like this
https://vborg.vbsupport.ru/attachment.php?attachmentid=132040&d=1313606652
as look in this post https://vborg.vbsupport.ru/showpost.php?p=2234644&postcount=36
Not sure if I understand your issue.
XANDERER
08-18-2011, 09:54 AM
but two user has the same, See the user names in the picture
Topic name : [ İnceleme ] Red Faction Armageddon
Nick : XANDERER
Avatar picture : seems avatar
Topic name : [ Ön İnceleme ] Euro Truck Simulator 2 ( ETS 2 )
Nick : XANDERER
Avatar picture : avatar does not appear
the same user name XANDERER (that is my nickname)
Edit : problem is solved
I installed the xml file again
nacaruncr
08-18-2011, 10:29 AM
I talking about this.. -the red part- (excuse me my english :S)
shabbirbhimani
08-18-2011, 10:50 AM
but two user has the same, See the user names in the picture
Topic name : [ İnceleme ] Red Faction Armageddon
Nick : XANDERER
Avatar picture : seems avatar
Topic name : [ ?n İnceleme ] Euro Truck Simulator 2 ( ETS 2 )
Nick : XANDERER
Avatar picture : avatar does not appear
the same user name XANDERER (that is my nickname)
Edit : problem is solved
I installed the xml file again
That was because of the sub forums issue which I am glad is solved for you.
shabbirbhimani
08-18-2011, 10:52 AM
I talking about this.. -the red part- (excuse me my english :S)
No this is not the feature of this mod and probably some other mod.
DjEddie
08-18-2011, 01:17 PM
what bug was on the subforums? .. mine look ok without doing this update .. unless I missed something?
BlueCheri
08-18-2011, 02:16 PM
Thanx for reply and your time.
I already see it as reduced on the threadlists and if you want to reduce the size on the home page as well you can do that by changing the size from 48px to anything you like
Change height="48px" width="48px" to the size you prefer.
shabbirbhimani
08-18-2011, 02:48 PM
what bug was on the subforums? .. mine look ok without doing this update .. unless I missed something?
The bug was that the avatar was being fetched of the forums last post and not of the sub forums but the vBulletin last post had the data about the sub forums last post.
So for example forum 1 contains last post which is 3 days old and forum 2 which is sub forum of forum 1 contains last post of 2 days old then vBulletin would show data from forum 2 where as my plugin was showing the avatar of forum 1's last poster. This has been now fixed.
nCODE
08-18-2011, 02:55 PM
hey man, found a problem ;)
you know, all the avatars are not "square"... so sometimes, the avatars get stretched... and the best way to get rid of it is to remove width="48px" as if only the height is set, the width will automatically be scaled ;)
duketxboy
08-18-2011, 03:47 PM
if we installed and just needed updated... do we just reupload the file?
FReeSTER
08-18-2011, 04:40 PM
hey man, found a problem ;)
you know, all the avatars are not "square"... so sometimes, the avatars get stretched... and the best way to get rid of it is to remove width="48px" as if only the height is set, the width will automatically be scaled ;)
Good to know
thanks
shabbirbhimani
08-19-2011, 01:51 AM
hey man, found a problem ;)
you know, all the avatars are not "square"... so sometimes, the avatars get stretched... and the best way to get rid of it is to remove width="48px" as if only the height is set, the width will automatically be scaled ;)Great tip.
if we installed and just needed updated... do we just reupload the file?Yes re-upload the file as well as edit templates once again to have the new code in the templates.
nacaruncr
08-19-2011, 02:48 AM
No this is not the feature of this mod and probably some other mod.
ok.. I'll wait for it.. :D thanks :D
nCODE
08-19-2011, 06:20 AM
ok.. I'll wait for it.. :D thanks :D
no.. no... shabbir meant that its another mod the forum owner is using... ;)
nacaruncr
08-19-2011, 08:44 AM
And may I know the code?, I say, since we already are several who have sought this and not give in yet. Could you give me a hand?
nCODE
08-19-2011, 10:24 AM
sorry, I dunno, try PMing the owner of the picture ;)
and shabbirbhimani,
did some modifications, if you dont mind.
added the functionality to show the avatar in search results.
Instructions
1) Import the product and allow overwrite...
2) Now you have to edit one template:Search Templates --> search_threadbit
Find
<!-- title / author block -->And add the following just above it
<a href="{vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}"><img height="32px" width="32px" style="float:left;margin-right:4px; padding-top:6px" src="{vb:raw thread.avatarurl}" border="0" /></a>Find
<dt>{vb:rawphrase last_post_by}</dt>And add the following just above it
<a href="{vb:link member, {vb:raw thread}, null, 'lastposterid', 'lastposter'}"><img height="32px" width="32px" style="float:left;margin-right:4px" src="{vb:raw thread.lastposteravatarurl}" border="0" /></a>Note: Some custom templates have the above code as
<dt class="lastpostby hidden">{vb:rawphrase last_post_by}</dt>
FReeSTER
08-19-2011, 07:13 PM
sorry, I dunno, try PMing the owner of the picture ;)
and shabbirbhimani,
did some modifications, if you dont mind.
added the functionality to show the avatar in search results.
Instructions
1) Import the product and allow overwrite...
2) Now you have to edit one template:Search Templates --> search_threadbit
Find
<vb:if condition="$show['threadicon']">And add the following just above it
<a href="{vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}"><img height="32px" width="32px" style="float:left;margin-right:4px" src="{vb:raw thread.avatarurl}" border="0" /></a>Find
<dt>{vb:rawphrase last_post_by}</dt>And add the following just above it
<a href="{vb:link member, {vb:raw thread}, null, 'lastposterid', 'lastposter'}"><img height="32px" width="32px" style="float:left;margin-right:4px" src="{vb:raw thread.lastposteravatarurl}" border="0" /></a>Note: Some custom templates have the above code as
<dt class="lastpostby hidden">{vb:rawphrase last_post_by}</dt>
Thank you for this, but did you asked the creator before posting?
anyway, the code
<vb:if condition="$show['threadicon']">
is NOT on my search_threadbit
FReeSTER
08-19-2011, 08:48 PM
Ok, I have put the first code on the search_threadbit template everywhere is possible to be for the first avatar to shown.
The problem I have is or neither the avatar only show half of the avatar or if I put the code somewhere else it will not center the avatar in the threadbit..
My code for the first avatar looks like below, the code in green is the one posted here above... I have put on the code places I have tried putting the code but is not working out for me.. Check the tag <------------- I tried here --------> (blah blah blah blah)
<li class="imodselector threadbit {vb:if !$thread['del_username'], $thread['statusstring']}" id="thread_{vb:raw thread.realthreadid}" title="{vb:raw thread.preview}">
<------------- I tried here --------> (shows the avatar before the threadicon)
<div class="icon{vb:raw thread.threadiconid} rating{vb:raw thread.rating}<vb:if condition="$thread['sticky']"> sticky<vb:else /> nonsticky</vb:if>{vb:if $thread['del_username'], ' deleted'}">
<div class="threadinfo thread">
<!-- status icon block -->
<a class="threadstatus" rel="vB::AJAX" <vb:if condition="$show['threadcount']">title="{vb:rawphrase have_x_posts_in_thread_last_y, {vb:raw thread.dot_count}, {vb:raw thread.dot_lastpost}}"</vb:if>></a>
<------------- I tried here --------> (Only shows half of the avatar)
<!-- title / author block -->
<div class="inner">
<h3 class="searchtitle">
<------------- I tried here --------> (Only shows half of the avatar)
<vb:if condition="$show['gotonewpost']"><a href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_newpost}, 'threadid', 'threadtitle'}" id="thread_gotonew_{vb:raw thread.realthreadid}"><img class="gotonewpost" src="{vb:stylevar imgdir_button}/firstnew.png" alt="{vb:rawphrase go_to_first_new_post}" /></a>
</vb:if>
<a href="{vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}"><img height="32px" width="32px" style="float:left;margin-right:4px" src="{vb:raw thread.avatarurl}" border="0" /></a>
<vb:if condition="$thread['sticky']">
<img src="{vb:stylevar imgdir_misc}/sticky.gif" alt="{vb:rawphrase sticky_thread}" />
</vb:if>
<vb:if condition="$thread['movedprefix'] OR $thread['typeprefix'] OR $thread['moderatedprefix'] OR $thread['prefix_rich']">
<span class="prefix understate">
{vb:raw thread.movedprefix}
{vb:raw thread.typeprefix}
{vb:raw thread.moderatedprefix}
{vb:raw thread.prefix_rich}
</span>
</vb:if>
<a class="title<vb:if condition="$show['gotonewpost']"> threadtitle_unread</vb:if>" href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo}, 'threadid', 'threadtitle'}" id="thread_title_{vb:raw thread.realthreadid}" title="{vb:raw thread.preview}">{vb:raw thread.threadtitle}</a>
</h3>
<------------- I tried here --------> (It shows the avatar but is not centered)
<div class="threadmeta">
<div class="author">
{vb:rawphrase started_by_x_y_z_a, {vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}, {vb:raw thread.postusername}, {vb:raw thread.startdate}, {vb:raw thread.starttime}, {vb:stylevar dirmark}}
below is an image explaining what I mean
https://vborg.vbsupport.ru/external/2011/08/19.jpg
shabbirbhimani
08-20-2011, 03:35 AM
and shabbirbhimani,
did some modifications, if you dont mind.
added the functionality to show the avatar in search results.No I am fine with it.
Thank you for this, but did you asked the creator before posting?
Nope but I am fine with it but for those code support will be provided by him.
I will also update the plugin to support search as well but it is some distance because as of now I am working on 3.7 support.
@nCode Each bits (forumbits/threadbit) and now search bit is lot different. In search bits you have the options of showing only the posts and not as threads and so when doing we have to take that into account as well.
FReeSTER
08-20-2011, 04:10 AM
No I am fine with it.
Nope but I am fine with it but for those code support will be provided by him.
I will also update the plugin to support search as well but it is some distance because as of now I am working on 3.7 support.
@nCode Each bits (forumbits/threadbit) and now search bit is lot different. In search bits you have the options of showing only the posts and not as threads and so when doing we have to take that into account as well.
Thank you bro, I have made it to work fine but the avatars from the thread creator on the new post searchbits are not centered. other then that is good
nCODE
08-20-2011, 05:55 AM
Ok, I have put the first code on the search_threadbit template everywhere is possible to be for the first avatar to shown.
The problem I have is or neither the avatar only show half of the avatar or if I put the code somewhere else it will not center the avatar in the threadbit..
My code for the first avatar looks like below, the code in green is the one posted here above... I have put on the code places I have tried putting the code but is not working out for me.. Check the tag <------------- I tried here --------> (blah blah blah blah)
<li class="imodselector threadbit {vb:if !$thread['del_username'], $thread['statusstring']}" id="thread_{vb:raw thread.realthreadid}" title="{vb:raw thread.preview}">
<------------- I tried here --------> (shows the avatar before the threadicon)
<div class="icon{vb:raw thread.threadiconid} rating{vb:raw thread.rating}<vb:if condition="$thread['sticky']"> sticky<vb:else /> nonsticky</vb:if>{vb:if $thread['del_username'], ' deleted'}">
<div class="threadinfo thread">
<!-- status icon block -->
<a class="threadstatus" rel="vB::AJAX" <vb:if condition="$show['threadcount']">title="{vb:rawphrase have_x_posts_in_thread_last_y, {vb:raw thread.dot_count}, {vb:raw thread.dot_lastpost}}"</vb:if>></a>
<------------- I tried here --------> (Only shows half of the avatar)
<!-- title / author block -->
<div class="inner">
<h3 class="searchtitle">
<------------- I tried here --------> (Only shows half of the avatar)
<vb:if condition="$show['gotonewpost']"><a href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_newpost}, 'threadid', 'threadtitle'}" id="thread_gotonew_{vb:raw thread.realthreadid}"><img class="gotonewpost" src="{vb:stylevar imgdir_button}/firstnew.png" alt="{vb:rawphrase go_to_first_new_post}" /></a>
</vb:if>
<a href="{vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}"><img height="32px" width="32px" style="float:left;margin-right:4px" src="{vb:raw thread.avatarurl}" border="0" /></a>
<vb:if condition="$thread['sticky']">
<img src="{vb:stylevar imgdir_misc}/sticky.gif" alt="{vb:rawphrase sticky_thread}" />
</vb:if>
<vb:if condition="$thread['movedprefix'] OR $thread['typeprefix'] OR $thread['moderatedprefix'] OR $thread['prefix_rich']">
<span class="prefix understate">
{vb:raw thread.movedprefix}
{vb:raw thread.typeprefix}
{vb:raw thread.moderatedprefix}
{vb:raw thread.prefix_rich}
</span>
</vb:if>
<a class="title<vb:if condition="$show['gotonewpost']"> threadtitle_unread</vb:if>" href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo}, 'threadid', 'threadtitle'}" id="thread_title_{vb:raw thread.realthreadid}" title="{vb:raw thread.preview}">{vb:raw thread.threadtitle}</a>
</h3>
<------------- I tried here --------> (It shows the avatar but is not centered)
<div class="threadmeta">
<div class="author">
{vb:rawphrase started_by_x_y_z_a, {vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}, {vb:raw thread.postusername}, {vb:raw thread.startdate}, {vb:raw thread.starttime}, {vb:stylevar dirmark}}below is an image explaining what I mean
Sorry man, for the inconvenience...
Look for:<!-- title / author block -->and add this above the line:
<a href="{vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}"><img height="32px" width="32px" style="float:left;margin-right:4px; padding-top:6px" src="{vb:raw thread.avatarurl}" border="0" /></a>It SHOULD work cuz its working for me...
I will also update the plugin to support search as well but it is some distance because as of now I am working on 3.7 support.
@nCode Each bits (forumbits/threadbit) and now search bit is lot different. In search bits you have the options of showing only the posts and not as threads and so when doing we have to take that into account as well.
Yes, and thats why the avatar will only be shown if the search results are in "thread" like...
Thank you bro, I have made it to work fine but the avatars from the thread creator on the new post searchbits are not centered. other then that is good
It has been taken care of...
[P.S. I didn't take the authors permission in the first place because its a re-usable code, so I had the impression that one can update it to further... but I haven't named it "mine" ;)]
shabbirbhimani
08-20-2011, 03:07 PM
[P.S. I didn't take the authors permission in the first place because its a re-usable code, so I had the impression that one can update it to further... but I haven't named it "mine" ;)]Perfectly fine with me and I am ready with the vB3 version of it and will be releasing it tomorrow. You can see it action here (http://www.operaoflife.com/) as of now for testing.
shabbirbhimani
08-21-2011, 04:28 AM
The plugin is updated to support avatars in search results thread bits as well as post bits.
Enjoy
FReeSTER
08-21-2011, 04:31 AM
The plugin is updated to support avatars in search results thread bits as well as post bits.
Enjoy
Nice thank you so much mate, I been waiting for it. lol
will test right away :D
shabbirbhimani
08-21-2011, 04:36 AM
Nice thank you so much mate, I been waiting for it. lol
will test right away :D
Great and do let me know if you see any issues.
FReeSTER
08-21-2011, 04:37 AM
First to report that is working like a charm. It fixed the problem i had with centering the avatars.
great bro. Excellent job... Will add you to my favorites.. :):up:
shabbirbhimani
08-21-2011, 04:39 AM
First to report that is working like a charm. It fixed the problem i had with centering the avatars.
great bro. Excellent job... Will add you to my favorites.. :):up:
Always my pleasure.
nCODE
08-21-2011, 05:19 AM
Perfectly fine with me and I am ready with the vB3 version of it and will be releasing it tomorrow. You can see it action here (http://www.operaoflife.com/) as of now for testing.
awesome man!! :D
so... is it from vB 3.8 or vB 3.7 or both? :rolleyes:
shabbirbhimani
08-21-2011, 07:18 AM
awesome man!! :D
so... is it from vB 3.8 or vB 3.7 or both? :rolleyes:
Yes both. Debugging for bugs and releasing ASAP.
shabbirbhimani
08-21-2011, 09:09 AM
<a href="https://vborg.vbsupport.ru/showthread.php?t=268855" target="_blank">Download vB 3.8.x Compatible Version Here</a>
Thank you for Update.
Very nice Addon!
Keep it up
Mark.B
08-21-2011, 01:05 PM
Fantastic add-on.
One thing people may want to be aware of is that each avatar adds a query to the page.
Now it's worth noting that if you are on vb4, there's a "bug" in the search files whereby, for a "getnew/getdaily" search (New Posts or Today's Posts), the avatar of the thread starter is ALREADY called, (but not used), meaning if you have 20 results per page you are adding 20 queries. This hack then duplicates that, adding another 20.
Andreas has posted instructions for fixing that problem with the search files in THIS (http://tracker.vbulletin.com/browse/VBIV-9878) Jira bug. If you're not used to DIFF files it can be a bit tricky, but it's do-able.
shabbirbhimani
08-21-2011, 03:55 PM
Fantastic add-on.
One thing people may want to be aware of is that each avatar adds a query to the page.
Now it's worth noting that if you are on vb4, there's a "bug" in the search files whereby, for a "getnew/getdaily" search (New Posts or Today's Posts), the avatar of the thread starter is ALREADY called, (but not used), meaning if you have 20 results per page you are adding 20 queries. This hack then duplicates that, adding another 20.
Andreas has posted instructions for fixing that problem with the search files in THIS (http://tracker.vbulletin.com/browse/VBIV-9878) Jira bug. If you're not used to DIFF files it can be a bit tricky, but it's do-able.
Yes I would totally agree on this and I will try and see if I can reduce the query by re-using the avatars.
For vB3.8 Mod I have made sure the queries are kept to minimum because we don't have the userid of the last poster and so instead of fetching the userid from username I have created a function to fetch avatar URL from username. You can refer to my blog post here (http://imtips.co/xenforo-avatars-vbulletin-3.html) for the same.
Mark.B
08-21-2011, 05:11 PM
Yes I would totally agree on this and I will try and see if I can reduce the query by re-using the avatars.
You could do, (which is how I did it on my site), however if they do fix this bug then it will leave the mod broken for subsequent versions. It's a tricky one.
Badshah93
08-21-2011, 05:37 PM
Threadbit avatar (file system one also) can be displayed without even adding a single sql query..
You will need to join tables of avatar in $thread array by using forumdisplay_query AND threabit_process plugin.
i remember i did same kind of paid mod for one guy long ago and this mod really gives a cool look to forum.
Mark.B
08-21-2011, 05:50 PM
Threadbit avatar (file system one also) can be displayed without even adding a single sql query..
You will need to join tables of avatar in $thread array by using threabit_process plugin.
i remember i did same kind of paid mod for one guy long ago and this mod really gives a cool look to forum.
That's be a handy one to grasp. Beyond my skills at this stage though....
eTiKeT?
08-21-2011, 07:59 PM
Thanks İnstalled ....
Erica1977
08-21-2011, 08:24 PM
The plugin is updated to support avatars in search results thread bits as well as post bits.
Enjoy
Thanks for the update great job! :up:
shabbirbhimani
08-22-2011, 02:26 AM
You could do, (which is how I did it on my site), however if they do fix this bug then it will leave the mod broken for subsequent versions. It's a tricky one.Yes a tricky one and so is not hurrying into doing that as of now.
Threadbit avatar (file system one also) can be displayed without even adding a single sql query..
You will need to join tables of avatar in $thread array by using forumdisplay_query AND threabit_process plugin. Yes I thought about that when I was writing the plugin but then decided against it because creating a join with threads and posts can be lot more resource heavy than executing the single query. Unless bottle neck we cannot say if one more query is faster or the join but I would assume a query. Share your views as well.
Badshah93
08-22-2011, 04:55 AM
Yes a tricky one and so is not hurrying into doing that as of now.
Yes I thought about that when I was writing the plugin but then decided against it because creating a join with threads and posts can be lot more resource heavy than executing the single query. Unless bottle neck we cannot say if one more query is faster or the join but I would assume a query. Share your views as well.
Yes,
I have seen page having 80 queries executed in .5 sec and 12 queries in 1sec (in same site).
whether u join or make new query it will take around same time (.1 sec diiference).. but people like having 20 queries executed in page rather than 40 queries.
8thos
08-22-2011, 05:00 AM
That search thingie ain't working so far. I'll investigate later.
mavigul
08-22-2011, 06:08 AM
wow that's look great
shabbirbhimani
08-22-2011, 06:52 AM
whether u join or make new query it will take around same time (.1 sec diiference).. but people like having 20 queries executed in page rather than 40 queries.Yes I will see how can I get that done from my end without depending on what vB team does
That search thingie ain't working so far. I'll investigate later.Can you share what is not working?
Maccrob
08-23-2011, 08:43 AM
Agree with Sherif, using fetch_avatar_url to get avatars is a really bad idea. If you have small board, e.g. with 10 simultaneously users online, 40-50 sql queries will be ok, but for larger board it will cause high impact on bd server
shabbirbhimani
08-25-2011, 10:15 AM
One thing people may want to be aware of is that each avatar adds a query to the page.
Now it's worth noting that if you are on vb4, there's a "bug" in the search files whereby, for a "getnew/getdaily" search (New Posts or Today's Posts), the avatar of the thread starter is ALREADY called, (but not used), meaning if you have 20 results per page you are adding 20 queries. This hack then duplicates that, adding another 20.I was working on improving the performance of the plugin and when debugging I could not find the ALREADY fetched avatars and can you tell me which variable has that so I can work on using that one instead of fetching it once again.
Mark.B
08-28-2011, 09:44 PM
I was working on improving the performance of the plugin and when debugging I could not find the ALREADY fetched avatars and can you tell me which variable has that so I can work on using that one instead of fetching it once again.
Looking at Andreas's diff file:
$thread['lastpost_avatar'] = fetch_avatar_url($thread['lastposterid']);
$thread['post_avatar'] = fetch_avatar_url($thread['postuserid']);
That's from
packages/vbforum/search/result/thread.php
shabbirbhimani
08-29-2011, 12:43 PM
Looking at Andreas's diff file:
$thread['lastpost_avatar'] = fetch_avatar_url($thread['lastposterid']);
$thread['post_avatar'] = fetch_avatar_url($thread['postuserid']);
That's from
packages/vbforum/search/result/thread.php
vBulletin 4.1.2 does not have that variable populated for thread lastpost_avatar and post_avatar when I did the vardump. Am I missing something?
Mark.B
08-29-2011, 01:57 PM
vBulletin 4.1.2 does not have that variable populated for thread lastpost_avatar and post_avatar when I did the vardump. Am I missing something?
I don't know...but if you look at my site, www.bowlandcentral.com/forum/search.php?do=getdaily, that's a getdaily search and those avatars down the left hand side are populated from the code in the search files that already exists.
Here's the code I use in search_threadbit:
<img style="vertical-align:top;padding: 3px;background: #ffffff; border: {vb:stylevar light_border}; margin-bottom: 20px;" class="inlineimg rounded2" width="30" height="30" alt="Started by {vb:raw thread.postusername}" src="{vb:raw vboptions.bburl}/<vb:if condition="$thread['post_avatar']">{vb:raw thread.post_avatar.0}" {vb:raw thread.post_avatar.1}<vb:else />images/misc/unknown.gif"</vb:if> /></a>
giorgino
08-29-2011, 05:59 PM
Hi Mark.B how you have done tooltips and only avatars like xenforo?
shabbirbhimani
08-30-2011, 03:40 AM
I don't know...but if you look at my site, www.bowlandcentral.com/forum/search.php?do=getdaily, that's a getdaily search and those avatars down the left hand side are populated from the code in the search files that already exists.
Here's the code I use in search_threadbit:
<img style="vertical-align:top;padding: 3px;background: #ffffff; border: {vb:stylevar light_border}; margin-bottom: 20px;" class="inlineimg rounded2" width="30" height="30" alt="Started by {vb:raw thread.postusername}" src="{vb:raw vboptions.bburl}/<vb:if condition="$thread['post_avatar']">{vb:raw thread.post_avatar.0}" {vb:raw thread.post_avatar.1}<vb:else />images/misc/unknown.gif"</vb:if> /></a>
I see that it is vB4.1.3 and I am developing it on vB4.1.2 and so that could be the factor. Will update my dev server and see if it is starting from vB4.1.3.
Mark.B
08-30-2011, 07:23 PM
I see that it is vB4.1.3 and I am developing it on vB4.1.2 and so that could be the factor. Will update my dev server and see if it is starting from vB4.1.3.
I'm pretty sure we had those avatars running like that on 4.0.8 before we jumped to 4.1.3....
shabbirbhimani
08-31-2011, 09:37 AM
I'm pretty sure we had those avatars running like that on 4.0.8 before we jumped to 4.1.3....
When I print_r the thread variable on getdaily on my localhost I get the following
Array
(
[threadid] => 7
[title] => abcd1234
[prefixid] =>
[firstpostid] => 13
[lastpostid] => 24
[lastpost] => 1314786829
[forumid] => 2
[pollid] => 0
[open] => 1
[replycount] => 1
[hiddencount] => 0
[deletedcount] => 0
[postusername] => shabbir
[postuserid] => 1
[lastposter] => shabbir
[lastposterid] => 1
[dateline] => 1314684549
[views] => 2
[iconid] => 0
[notes] =>
[visible] => 1
[sticky] => 0
[votenum] => 0
[votetotal] => 0
[attach] => 0
[similar] =>
[taglist] =>
[keywords] => abcd1234abcd1234, abcd1234
[preview] => abcd1234abcd1234
[postid] => 7
[threadtitle] => abcd1234
[threadiconid] => 0
[postdateline] => 1314786829
[issubscribed] => 1
[threadread] =>
[highlight] => Array
(
)
[checkbox_value] => 0
[title_editable] => 1
[openclose_editable] => 1
[forumtitle] => Main Forum
[forumtitleclean] => Main Forum
[prefix_plain_html] =>
[prefix_rich] =>
[lastpostdate] => Today
[lastposttime] => 10:33 AM
[postdate] => Today
[posttime] => 10:33 AM
[startdate] => Yesterday
[starttime] => 06:09 AM
[rating] => 0
[moderatedprefix] =>
[typeprefix] =>
[totalposts] => 2
[pagenav] =>
[threadiconpath] =>
[threadicontitle] =>
[status] => Array
(
[dot] => dot
)
[dot_count] => 2
[dot_lastpost] => Today
[realthreadid] => 7
[statusstring] => dot
)
I am using vB412 and vbCMS and vBBlog are active.
nacaruncr
09-01-2011, 01:47 AM
I don't know...but if you look at my site, www.bowlandcentral.com/forum/search.php?do=getdaily, that's a getdaily search and those avatars down the left hand side are populated from the code in the search files that already exists.
Here's the code I use in search_threadbit:
<img style="vertical-align:top;padding: 3px;background: #ffffff; border: {vb:stylevar light_border}; margin-bottom: 20px;" class="inlineimg rounded2" width="30" height="30" alt="Started by {vb:raw thread.postusername}" src="{vb:raw vboptions.bburl}/<vb:if condition="$thread['post_avatar']">{vb:raw thread.post_avatar.0}" {vb:raw thread.post_avatar.1}<vb:else />images/misc/unknown.gif"</vb:if> /></a>
how did you do to the thread's description looks as you have.... is a mod or hack???
excuse me my english :S :(
shabbirbhimani
09-01-2011, 01:53 AM
how did you do to the thread's description looks as you have.... is a mod or hack???
excuse me my english :S :(
No I have done that myself and the thread preview content used in vBulletin tooltip is just being displayed in the template. No mod and nothing fancy.
FReeSTER
09-01-2011, 02:26 PM
Wow the thread preview content is HOT... lol Can someone do a mod or add it to this one as is part of the show avatar in thread listing? lol
:D :up:
shabbirbhimani
09-02-2011, 04:02 AM
Wow the thread preview content is HOT... lol Can someone do a mod or add it to this one as is part of the show avatar in thread listing? lol
:D :up:
I never knew that and though it is a feature of vBulletin the text is hidden for some reason in vB4. See the CSS class .threaddesc and if you edit the CSS of .threaddesc to display the content it should work.
For vB3 you can add <div class="smallfont">$thread[preview]</div> after the </if> for <if condition="$show['unsubscribe']">
I hope the instructions are clear enough.
haidm
09-02-2011, 04:16 AM
How can I have avatar border like in image?
shabbirbhimani
09-02-2011, 04:21 AM
How can I have avatar border like in image?
Check out the following post by nCode - https://vborg.vbsupport.ru/showpost.php?p=2234114&postcount=2
FReeSTER
09-03-2011, 03:36 PM
ok, Im talking about this here...
https://vborg.vbsupport.ru/external/2011/09/82.jpg
Can that be done like that when you hover with the mouse each thread?
the avatar shows up there and the box is nice and neat.
Thanks mate for the responce
shabbirbhimani
09-03-2011, 04:55 PM
ok, Im talking about this here...
https://vborg.vbsupport.ru/external/2011/09/82.jpg
Can that be done like that when you hover with the mouse each thread?
the avatar shows up there and the box is nice and neat.
Thanks mate for the responce
No plans for such functionalities as of now.
Mark.B
09-03-2011, 08:44 PM
That's my site - it's done with some jQuery, same piece that does the forum description hover tooltip addon someone posted recently. You could use this hack to generate the avatar.
Though I should add, it shouldn't be pink. I have no idea why it has appeared pink for you.... :o
FReeSTER
09-03-2011, 09:10 PM
That's my site - it's done with some jQuery, same piece that does the forum description hover tooltip addon someone posted recently. You could use this hack to generate the avatar.
Though I should add, it shouldn't be pink. I have no idea why it has appeared pink for you.... :o
no no mate I made it like that on Photoshop to shown what Im talking about. lol Your site is good... :)
But damn bro, can you share that Mod? I think it looks sexy as F^*&. lol :o:erm:
to the author of this thread please accept my respect and apologies. I dont want you to think Im hijacking the thread subject. Is just I believe this Mod from Mark I really think is part of this same subject..
COL NIL SATIS
09-05-2011, 04:35 PM
this looks brilliant
Jarred_CK
09-22-2011, 05:44 AM
Excellent Mod...Just Wanted 2 Show Some Love 4 Your Excellent Work...Will be voting 4 best Mod...
shabbirbhimani
09-22-2011, 06:37 AM
Excellent Mod...Just Wanted 2 Show Some Love 4 Your Excellent Work...Will be voting 4 best Mod...
Thanks for the appreciation and vote.
steve71
09-29-2011, 03:35 AM
<div class="contact">
I can only find the above snippet of code in the postbit template but not in the search_results_postbit template as instructed. I have just omitted this (last) step and everything is working fine. Is this ok?
shabbirbhimani
09-29-2011, 03:42 AM
<div class="contact">
I can only find the above snippet of code in the postbit template but not in the search_results_postbit template as instructed. I have just omitted this (last) step and everything is working fine. Is this ok?
Check the default version of the template and see if it has been edited before.
steve71
09-29-2011, 08:26 AM
This is the default version of the search_results_postbit (vbulletin 4.0.3)
There is no <div class="contact">
<li class="imodselector threadbit" id="post_{vb:raw post.postid}">
<div class="nonsticky">
<div class="threadinfo post">
<!-- status icon block -->
<a class="threadstatus"></a>
<!-- title / author block -->
<div class="inner">
<h3 class="searchtitle">
{vb:raw post.typeprefix} {vb:raw post.prefix_rich} <a href="{vb:link thread, {vb:raw threadinfo}, {vb:raw pageinfo_post}}#post{vb:raw post.postid}" title="{vb:var post.pagetext}"><strong>{vb:raw post.threadtitle}</strong></a>
</h3>
<div class="threadmeta">
<div class="author">
<vb:if condition="$post['userid']">
{vb:rawphrase posted_by_x_y_z_a, {vb:link member, {vb:raw post}, null, 'userid', 'username'}, {vb:raw post.username}, {vb:raw post.postdate}, {vb:raw post.posttime}}
<vb:else />
{vb:rawphrase posted_by_x_y_z_guest, {vb:raw post.username}, {vb:raw post.postdate}, {vb:raw post.posttime}}
</vb:if>
<vb:if condition="$show['moderated']"><span class="moderated shade">{vb:rawphrase this_message_is_moderated}</span></vb:if>
<vb:if condition="$show['deleted']">
<span class="moderated shade">
{vb:rawphrase {vb:raw post.del_phrase}, {vb:link member, {vb:raw post}, null, 'del_userid', 'del_username'}, {vb:raw post.del_username}}
<vb:if condition="$post['del_reason']">
{vb:rawphrase reason_for_deletion}: <em>{vb:raw post.del_reason}</em>
</vb:if>
</span>
</vb:if>
</div>
</div>
</div>
</div>
<!-- threadstats -->
<ul class="threadstats td alt">
<li class="stats">{vb:rawphrase replies}: {vb:raw post.replycount}</li>
<li class="stats">{vb:rawphrase views}: {vb:raw post.views}</li>
</ul>
<!-- lastpost -->
<dl class="threadlastpost td">
<dt class="lastpostby hidden">{vb:rawphrase last_post_by}:</dt>
<dd>{vb:rawphrase last_post}: <em class="time">{vb:raw lastpostdate} {vb:raw lastpostdatetime}</em></dd>
<dd>
<vb:if condition="$threadinfo['lastposterid']">
{vb:rawphrase by_x, {vb:link member, {vb:raw threadinfo}, null, 'lastposterid', 'lastposter'}, {vb:raw threadinfo.lastposter}}
<vb:else />
{vb:rawphrase by_x_guest , {vb:raw threadinfo.lastposter}}
</vb:if>
<a href="{vb:link thread, {vb:raw threadinfo}, {vb:raw pageinfo_lastpost}, 'threadid', 'threadtitle'}#post{vb:raw threadinfo.lastpostid}"><img src="{vb:stylevar imgdir_button}/lastpost-{vb:stylevar right}.png" alt="{vb:rawphrase go_to_last_post}" /></a>
</dd>
</dl>
<div class="threadpostedin td alt">
<p>
{vb:rawphrase forum}:<br /><a href="{vb:link forum, {vb:raw post}, null, 'forumid', 'forumtitle'}" title="{vb:raw post.forumtitleclean}">{vb:raw post.forumtitle}</a>
</p>
</div>
<vb:if condition="$show['inlinemod']">
<!-- fourth block -->
<label class="threadimod">
<input type="checkbox" id="post_imod_checkbox_{vb:raw post.postid}" name="imodcheck[{vb:raw post.postid}]" />
</label>
</vb:if>
</div>
</li>
shabbirbhimani
09-29-2011, 09:44 AM
Probably <div class="contact"> is added in 4.1.3 and if you want to show the avatars in search results bit you need to add the code at some location at least.
steve71
09-29-2011, 09:50 AM
Probably <div class="contact"> is added in 4.1.3 and if you want to show the avatars in search results bit you need to add the code at some location at least.
Ya but the avatars are showing in the search results...both for the quick/advanced search and on the new posts/today's posts page. I'm not sure what affect omitting that edit has in this case if any...
?
Pvtiste
09-29-2011, 10:34 AM
Excellent work! thans for sharing :)
Can you do the same thing for the PM?
apn3a
09-29-2011, 10:38 AM
Can you share the code with us or you prefer it to have it unique? :)
That's my site - it's done with some jQuery, same piece that does the forum description hover tooltip addon someone posted recently. You could use this hack to generate the avatar.
Though I should add, it shouldn't be pink. I have no idea why it has appeared pink for you.... :o
smirkley
09-29-2011, 10:54 PM
In forumlist pages, where the icon shows up next to last posted member,.. icon shows up.
No problem.
But, if the forum is a private forum, the icon still shows up for all usergroups and shows the avatar of the last poster. Can you make this so the avatar icon will not show up for private forums in forumlists? Or maybe a generic avatar icon in place of it?
Thanks, and I love how this makes my threadlists look.
steve71
10-09-2011, 01:57 AM
Anybody know how to assign a default avatar (or have no avatar) for when guests post? Or can I omit the unregistered usergroup in a condition if easier. We have one forum that permits guest posting, and they show as broken image links where their avatar would be. thx
shabbirbhimani
10-09-2011, 02:04 AM
Anybody know how to assign a default avatar (or have no avatar) for when guests post? Or can I omit the unregistered usergroup in a condition if easier. We have one forum that permits guest posting, and they show as broken image links where their avatar would be. thxCan you share your forum URL and I will be more than happy to have a look.
steve71
10-09-2011, 02:12 AM
Can you share your forum URL and I will be more than happy to have a look.
I think a simple condition statement should do the trick in the code you provided. Any suggestions?
shabbirbhimani
10-09-2011, 02:30 AM
I think a simple condition statement should do the trick in the code you provided. Any suggestions?
The condition is already taken care and works fine on my test setup. Yes the member links are invalid.
steve71
10-09-2011, 02:54 AM
The condition is already taken care and works fine on my test setup. Yes the member links are invalid.
Which condition are you using?
shabbirbhimani
10-09-2011, 03:03 AM
Which condition are you using?
if($thread[postuserid])
K4GAP
10-09-2011, 03:34 AM
I've been following along with the posts and your replies and just wanted to thank you for being so helpful to those using your mod. It's developers like you that make this site so darn good.
Thank you my friend :)
steve71
10-09-2011, 08:22 AM
I've been following along with the posts and your replies and just wanted to thank you for being so helpful to those using your mod. It's developers like you that make this site so darn good.
Thank you my friend :)
I agree. :)
steve71
10-09-2011, 02:31 PM
if($thread[postuserid])
I just tested it and your plugin works as intended. The problem is when a thread is submitted by a guest using easy forms.
I am not sure if you are familiar with the easy forms (https://vborg.vbsupport.ru/showthread.php?t=234385&highlight=easy+forms) product, but there is a box for hooks where you can instruct it to apply a plugin before posting the form.
These are the options below in case you or anyone else are familiar with which hook is needed.
Form Hook: Form Start:
Form Hook: Before Submit:
Anyway thanks for taking the time to clear that up.
:cool:
smirkley
10-11-2011, 12:21 PM
In forumlist pages, where the icon shows up next to last posted member,.. icon shows up.
No problem.
But, if the forum is a private forum, the icon still shows up for all usergroups and shows the avatar of the last poster. Can you make this so the avatar icon will not show up for private forums in forumlists? Or maybe a generic avatar icon in place of it?
Thanks, and I love how this makes my threadlists look.
Just askining if a filter is going to be added for visible but private forums, where a person who does not have access to said forum, will not see an avatar of the last poster in that forum. It should just show a generic avatar in forumview instead.
spencer13
10-28-2011, 12:31 PM
hi there, great mod and i hope im adding this question in the right bit but iv got a small problem that iv probably screwed up with when installing the file, i have 2 avatars instead of the one in last posts! everything else is great! can you help me with where iv gone wrong and how to change it? my website/forum is www.rlunited.com if you would like to see for yourself.
your help is much appreciated as this is my first mod
thanks
spencer
Nacho Vidal
10-28-2011, 09:44 PM
Fantastic mod, have installed and have installed the border mod too! Thank you!
Problem I have is that Avatars on CMS comments, latest thread widgets and in the blog widgets have stopped displaying? Any ideas?
I am using 4.1.7 Suite.
Cheers
Nach
Nacho Vidal
10-28-2011, 11:00 PM
Fantastic mod, have installed and have installed the border mod too! Thank you!
Problem I have is that Avatars on CMS comments, latest thread widgets and in the blog widgets have stopped displaying? Any ideas?
I am using 4.1.7 Suite.
Cheers
Nach
Please ignore the above, moving my avatars and stuff from the DB to the filesystem has sorted the issue.......and sped up the forum too LOL
Thanks
Przemoo
10-29-2011, 12:04 AM
Hi. is it possible to add avatar instead of status icon ?
shabbirbhimani
10-30-2011, 02:22 PM
hi there, great mod and i hope im adding this question in the right bit but iv got a small problem that iv probably screwed up with when installing the file, i have 2 avatars instead of the one in last posts! everything else is great! can you help me with where iv gone wrong and how to change it? my website/forum is www.rlunited.com if you would like to see for yourself.
your help is much appreciated as this is my first mod
thanks
spencerI see only one in the forumhome and where do you see 2 avatars instead of one.
Fantastic mod, have installed and have installed the border mod too! Thank you!
Problem I have is that Avatars on CMS comments, latest thread widgets and in the blog widgets have stopped displaying? Any ideas?
I am using 4.1.7 Suite.
Cheers
NachAre you using any mod or plugin because as I am not using vB4 myself have not tested this on 4.1.7
Hi. is it possible to add avatar instead of status icon ?This mod actually adds avatars and not a status icon?
spencer13
11-01-2011, 07:05 PM
hi there, thanks for the reply! if you go to this link you can see the 2 avatars http://www.rlunited.com/forumdisplay.php?4-General-Superleague-News
Thanks for your time on this
Spencer
Uasuforos
11-01-2011, 08:43 PM
Hello, this product has stopped working with the latest update 4.1.7 VBulletin patch 1, any recommendation, thanks.
Nacho Vidal
11-01-2011, 10:57 PM
Are you using any mod or plugin because as I am not using vB4 myself have not tested this on 4.1.7
Yep, loads of mods! Moving the avatars to the file system did the trick!
Haven't updated to the latest patch though!
Nacho Vidal
11-01-2011, 10:58 PM
Hello, this product has stopped working with the latest update 4.1.7 VBulletin patch 1, any recommendation, thanks.
Have you tried reinstalling the mod? The patch may have merged, overwritten or reverted some of the templates.
shabbirbhimani
11-02-2011, 03:40 AM
hi there, thanks for the reply! if you go to this link you can see the 2 avatars http://www.rlunited.com/forumdisplay.php?4-General-Superleague-News
Thanks for your time on this
SpencerYou have added the same code in template more than once.
Hello, this product has stopped working with the latest update 4.1.7 VBulletin patch 1, any recommendation, thanks.I am in process of testing this on vb4.1.7 but can you confirm if you have the template edits. Do you see the image or the broken image?
shabbirbhimani
11-03-2011, 02:23 AM
The plugin works for me in vB 4.1.7 as well. Do let me know if you have any specific issues on your forum with the plugin and I will be more than happy to have a look.
spencer13
11-03-2011, 04:06 PM
[QUOTE=shabbirbhimani;2263673]You have added the same code in template more than once.
Hi thanks for that but what code should i delete and from where? any help is appreciated as im a newbie, thanks
shabbirbhimani
11-03-2011, 04:25 PM
[QUOTE=shabbirbhimani;2263673]You have added the same code in template more than once.
Hi thanks for that but what code should i delete and from where? any help is appreciated as im a newbie, thanks
In the forumdisplay templates edit check if you have the code more than once.
In the mod see the instruction for forumhome_forumbit_level1_post and forumhome_forumbit_level2_post.
FReeSTER
12-17-2011, 07:14 PM
thank you I finely got it working how I want it :D
Booyakan
12-22-2011, 06:30 AM
Did you find a solution to fix the query for each avatar yet?
https://vborg.vbsupport.ru/showpost.php?p=2237844&postcount=113
umusic2000
12-25-2011, 06:27 AM
I have the same issue as another poster, double avatars. Also some extra code ">.
I tried reinstalling and re-editing the templates. Same results. http://bit.ly/tIIYb0
DaninMS
12-29-2011, 08:52 PM
Nice !
DaninMS
12-29-2011, 09:25 PM
Just noticed but did I goof some code up ? I noticed on my sections that the LAST POST BY section on the last thread of a page is bleeding beyond the border.
I'll attach a screenshot.
DaninMS
12-30-2011, 12:02 AM
Figured it out. I had to adjust the last post code px size.
Just noticed but did I goof some code up ? I noticed on my sections that the LAST POST BY section on the last thread of a page is bleeding beyond the border.
I'll attach a screenshot.
iBaker
01-10-2012, 11:54 PM
I would very much like to add this great work to my site but I too need to know about the extra load (queries etc) that are placed on my server...
I.G.O.T.A.
02-01-2012, 08:49 PM
Installed on two of my forums which are running 4.1.10. Working good, thanks.
Narshelia
03-16-2012, 08:18 PM
This works on my forum, but in Opera and Firefox the avatars look extremely low quality and distorted. :/
In Chrome they look smooth and nice.
Any fix for this?
wildheart
03-27-2012, 12:59 PM
Thank you, I missed it after the upgrade but all works perfect now.
marccap
04-15-2012, 01:41 PM
Excellent bit of kit. Thanks
marccap
04-18-2012, 08:39 AM
Ive just notice I am getting a broken image for the right avatars under the new posts thread section but works fine elsewhere. Any ideas and Im using 4.1.12
Thanks
scorpss
04-22-2012, 09:24 AM
Hi bros ,
I want to displaying avatars only on forum's posts and not on Forum index (first page) .
Can i know what to do ? Because avatars is now only on the first page :(...
marccap
04-25-2012, 03:54 PM
Ive just notice I am getting a broken image for the right avatars under the new posts thread section but works fine elsewhere. Any ideas and Im using 4.1.12
Thanks
bump
shabbirbhimani
04-26-2012, 02:30 AM
Ive just notice I am getting a broken image for the right avatars under the new posts thread section but works fine elsewhere. Any ideas and Im using 4.1.12
Thanks
Broken image on new posts thread section?? Not sure I understand. Can you post url of the page or screenshot where you are seeing broken image.
marccap
04-26-2012, 08:12 AM
<a href="http://www.xbox360fan.co.uk/search.php?searchid=395" target="_blank">http://www.xbox360fan.co.uk/search.php?searchid=395</a>
Thanks
shabbirbhimani
04-26-2012, 08:26 AM
You don't have search enabled for guest
marccap
04-26-2012, 09:03 AM
amended
shabbirbhimani
04-26-2012, 09:16 AM
You have messed up the template changes because I see the output as
src="="http://www.xbox360fan.co.uk/customavatars/avatar1_15.gif"
Where as it should be src="http://www.xbox360fan.co.uk/customavatars/avatar1_15.gif"
marccap
04-26-2012, 09:35 AM
ah ok - which part needs amending in the coding
shabbirbhimani
04-26-2012, 09:55 AM
ah ok - which part needs amending in the coding
In search_threadbit part of the instruction in the original article.
marccap
04-26-2012, 10:16 AM
Excellent amended and fixed - Thanks for your time
shabbirbhimani
04-26-2012, 12:37 PM
Excellent amended and fixed - Thanks for your time
The pleasure is all mine. :D
Derwin
05-19-2012, 08:15 PM
I have this installed on our forum, and it looked absolutely FANTASTIC! Thank you so much for taking the time to make this mod.
One thing I would like to do is to have the avatars show up in the "Recent Threads" listing on my vbAdvanced portal page. Do you know how I can go about doing this?
Worgen
07-17-2012, 03:07 PM
:D I love the way this makes our forum look.
Thank you so much. :up:
Bob_R
07-21-2012, 01:48 AM
Is there a way to make the avatar the status icon w/o the regular status icon appearing on the forum display? In other words the avatar becomes the status icon. No need to show both.
Thanks.
shabbirbhimani
07-21-2012, 04:16 AM
:D I love the way this makes our forum look.
Thank you so much. :up:The pleasure is all mine.
Is there a way to make the avatar the status icon w/o the regular status icon appearing on the forum display? In other words the avatar becomes the status icon. No need to show both.
Thanks.Thats not feature of plugin and you may have to edit the templates to remove the status icon or make it invisible through CSS.
Bob_R
07-21-2012, 05:16 PM
Will this mod make the avatars appear anywhere on the forum home? I'd like it just for the forum display. I have custom status icons on the forum home.
shabbirbhimani
07-22-2012, 03:46 AM
Will this mod make the avatars appear anywhere on the forum home? I'd like it just for the forum display. I have custom status icons on the forum home.
What do you mean by anywhere.
Bob_R
07-27-2012, 06:09 PM
Will this mod make the avatars appear anywhere on the forum home? I'd like it just for the forum display. I have custom status icons on the forum home.
What do you mean by anywhere.
I meant to say "where" on the forumhome will they appear?
And/Or is there an option to have them only on forumdisplay?
Thanks!
sadiq6210
07-27-2012, 07:20 PM
And/Or is there an option to have them only on forumdisplay?
Thanks!
Don't edit nether "forumhome_forumbit_level1_post" nor "forumhome_forumbit_level2_post"
Bob_R
07-27-2012, 07:30 PM
Don't edit nether "forumhome_forumbit_level1_post" nor "forumhome_forumbit_level2_post"
Thank you.
Where would the avatars appear in forumhome?
Replacing status icons and/or to the right under Threads / Posts Last Post
sadiq6210
07-27-2012, 08:43 PM
Thank you.
Where would the avatars appear in forumhome?
Replacing status icons and/or to the right under Threads / Posts Last Post
In last post column
shabbirbhimani
07-28-2012, 06:05 AM
In last post column
Thanks for answering those Questions Sadiq
Gn_Snake
09-30-2012, 01:28 PM
Hi, tank you for this plugin, i have apply all the modify above,but don't display avatar in forum display.
Only in the Forum Home i see the avatar in right side.
Any idea?
//EDIT
I stand corrected.
In the forum display the alteration has occurred but can not see images. I enclose a picture
//Re-EDIT again :)
With chrome i missing image icon appears, i clicked with the right mouse button and i looked at the url of the image
http://www.hardwaregame.it/forum/
But in that position there are avatars :confused:
shabbirbhimani
10-01-2012, 04:57 AM
Hi, tank you for this plugin, i have apply all the modify above,but don't display avatar in forum display.
Only in the Forum Home i see the avatar in right side.
Any idea?
//EDIT
I stand corrected.
In the forum display the alteration has occurred but can not see images. I enclose a picture
//Re-EDIT again :)
With chrome i missing image icon appears, i clicked with the right mouse button and i looked at the url of the image
http://www.hardwaregame.it/forum/
But in that position there are avatars :confused:
Avatar URL is your forum url and so I think you have missed an instruction step.
Gn_Snake
10-02-2012, 07:03 PM
Thanks for the reply.
I repeated all the steps above, but the result is always this:
http://www.hardwaregame.it/forum/multi-piattaforma/
You do not see the avatars
shabbirbhimani
10-04-2012, 03:42 AM
Thanks for the reply.
I repeated all the steps above, but the result is always this:
http://www.hardwaregame.it/forum/multi-piattaforma/
You do not see the avatars
Rechecked and things works fine. Will do a fresh vB install and check things to see if there is any issues and update here.
GhostHunter2010
10-04-2012, 09:25 AM
so much modification for wat for showin avatar on thread lol im sure people wont bother doin so much modification for this lol thx for sharin anyways
shabbirbhimani
10-04-2012, 09:44 AM
so much modification for wat for showin avatar on thread lol im sure people wont bother doin so much modification for this lol thx for sharin anyways
That is the sad part of how vB works these days.
shabbirbhimani
10-07-2012, 10:02 AM
Rechecked and things works fine. Will do a fresh vB install and check things to see if there is any issues and update here.
No I don't see any issue on latest vB as well and can you elaborate more on the issue and I will be more than happy to look into it.
Mr Anarch
10-08-2012, 12:34 AM
That is the sad part of how vB works these days.
I've installed it on newest stable version of Vbulletin (4.2) and it's working well. Template edits weren't complicated at all (I'm sure when I had a Vbulletin license first time round those type of edits were just standard fare).
faisaly.com
11-05-2012, 07:00 PM
yes works great on vb4.2 also i want to note, i did not want the last poster avatar on forumhome and that was simple, do not add the forumhome_forumbit_level1_post and forumhome_forumbit_level1_post edits.
...
hello i have a question, would be possible to center the image between threads / posts and last post?
this is an example:
http://puu.sh/1O5Ym
sorry, I solved by increasing the margin right from 4px to 22px!
shabbirbhimani
01-16-2013, 03:17 AM
sorry, I solved by increasing the margin right from 4px to 22px!
Glad its solved now
Glad its solved now
not exactly, changing the size, alignment of the last post is incorrect.
any solution?
https://vborg.vbsupport.ru/ https://vborg.vbsupport.ru/
the problem is that I can manage the space on the right, but not the left!
otherwise, how could I edit the html code in order to keep the data aligned with the title of the last post?
PS: sorry for my english, is horrible, I hope you understand!
shabbirbhimani
01-17-2013, 02:33 AM
not exactly, changing the size, alignment of the last post is incorrect.
any solution?
http://puu.sh/1OztE http://puu.sh/1Ozyz
the problem is that I can manage the space on the right, but not the left!
otherwise, how could I edit the html code in order to keep the data aligned with the title of the last post?
PS: sorry for my english, is horrible, I hope you understand!
No I couldn't understand.
No I couldn't understand.
ok this is my solution for everyone.
if someone want to increase the margin right from 4px to xxpx u need follow this edit for fix the lastpost date alignment:
template: forumhome_lastpostby
find: <div class="lastpostby">
<vb:if condition="$lastpostinfo['lastposterid']">
{vb:rawphrase by_x_memberaction, {vb:raw memberaction_dropdown}}
<vb:else />
{vb:rawphrase by_x_guest, {vb:raw lastpostinfo.lastposter}}
</vb:if>
</div>
<p class="lastpostdate">{vb:raw lastpostinfo.lastpostdate}<vb:if condition="!$show['detailedtime']">, <span class="time">{vb:raw lastpostinfo.lastposttime}</span></vb:if></p>
<vb:else />
<span class="lastpostdate">{vb:raw lastpostinfo.lastpostdate} <vb:if condition="!$show['detailedtime']"><span class="time">{vb:raw lastpostinfo.lastposttime}</span></vb:if></span>
<a href="{vb:link thread, {vb:raw threadinfo}, {vb:raw pageinfo_lastpost}}#post{vb:raw lastpostinfo.lastpostid}"><img src="{vb:stylevar imgdir_button}/lastpost-{vb:stylevar right}.png" alt="{vb:rawphrase go_to_last_post}" /></a>
</vb:if>
add above: <div style="float: left">
add under: </div>
result: http://puu.sh/1OPKT
marccap
02-04-2013, 09:37 AM
Works nicely in 4.2
Amaury
02-04-2013, 04:13 PM
The avatars go right up against the threadbit_alt_background on the left (Replies / Views) on search results. How can I nudge them and "Last Post" to the right?
Screenshot Taken: 1/30/2013
https://vborg.vbsupport.ru/external/2013/02/23.jpg
Amaury
02-08-2013, 04:13 AM
Bump? :)
shabbirbhimani
02-08-2013, 04:39 AM
The avatars go right up against the threadbit_alt_background on the left (Replies / Views) on search results. How can I nudge them and "Last Post" to the right?
Screenshot Taken: 1/30/2013
https://vborg.vbsupport.ru/external/2013/02/23.jpg
I don't see it going into the Replies / Views on your KH MediaFlare Forum
Amaury
02-08-2013, 04:47 AM
I don't see it going into the Replies / Views on your KH MediaFlare Forum
Hope this is better.
See how it goes right up the against the background where Replies / Views is? Where the avatar is, the background is #141414; where Replies / Views is, the background is #0F0F0F.
https://vborg.vbsupport.ru/external/2013/02/22.jpg
If you still can't see it, next time there are new posts, I'll take a screenshot on the lite version of that style.
shabbirbhimani
02-08-2013, 04:56 AM
Yes please take a screenshot on lighter skin as I am not able to get anything from it.
Try adding a margin to the image and see if it works.
dizzynation
02-08-2013, 05:40 AM
Installed, edited templates. Works Great, Thanks!
Amaury
02-09-2013, 12:52 AM
Yes please take a screenshot on lighter skin as I am not able to get anything from it.
Try adding a margin to the image and see if it works.
This should be better (made a test style):
https://vborg.vbsupport.ru/external/2013/02/21.jpg
Can you see how the avatars go right up against threadbit_alt_background on the left (where Replies / Views is)? I don't like that.
I want to nudge the avatars and Last Post to the right a bit.
shabbirbhimani
02-09-2013, 02:37 AM
This should be better (made a test style):
https://vborg.vbsupport.ru/external/2013/02/21.jpg
Can you see how the avatars go right up against threadbit_alt_background on the left (where Replies / Views is)? I don't like that.
I want to nudge the avatars and Last Post to the right a bit.
Just add the margin-left:4px and that should do the job for you.
Amaury
02-09-2013, 02:41 AM
Just add the margin-left:4px and that should do the job for you.
With what code?
shabbirbhimani
02-09-2013, 02:54 AM
In the search_threadbit template you have added the following code.
<a href="{vb:link member, {vb:raw thread}, null, 'lastposterid', 'lastposter'}"><img height="32px" width="32px" style="float:left;margin-right:4px" src="{vb:raw thread.lastposteravatarurl}" border="0" /></a>
Replace that with the following
<a href="{vb:link member, {vb:raw thread}, null, 'lastposterid', 'lastposter'}"><img height="32px" width="32px" style="float:left;margin-right:4px;margin-left:4px" src="{vb:raw thread.lastposteravatarurl}" border="0" /></a>
Let me know if it works.
Amaury
02-09-2013, 04:00 AM
In the search_threadbit template you have added the following code.
<a href="{vb:link member, {vb:raw thread}, null, 'lastposterid', 'lastposter'}"><img height="32px" width="32px" style="float:left;margin-right:4px" src="{vb:raw thread.lastposteravatarurl}" border="0" /></a>Replace that with the following
<a href="{vb:link member, {vb:raw thread}, null, 'lastposterid', 'lastposter'}"><img height="32px" width="32px" style="float:left;margin-right:4px;margin-left:4px" src="{vb:raw thread.lastposteravatarurl}" border="0" /></a>Let me know if it works.
That worked.
Thank you. :)
Lee Roberts
02-17-2013, 10:24 PM
Confirmed working in vb 4.2 PL3.
Cheers Shab !
.Me
datoneer
03-12-2013, 05:37 PM
Its working fine on 4.2.
But how can i make it to look like this: http://prntscr.com/w1i28
instead of this: http://prntscr.com/w1i76
shabbirbhimani
03-13-2013, 04:52 AM
Its working fine on 4.2.
But how can i make it to look like this: http://prntscr.com/w1i28
instead of this: http://prntscr.com/w1i76
You have to add the html inside the lastpostby Div instead of its parent div. Let me know if I made any sense to you.
Sarab
03-19-2013, 01:13 PM
Hello,
Thank you for the great mod =D
I install it for a year now but the subforum bug didn't solve with me =.=
I did all the installing perfectly but the avatar for subforum won't show only the main forum avatar appear ="(
How can I fix it ="(?
Regards,
Sarab
shabbirbhimani
03-19-2013, 01:48 PM
Hello,
Thank you for the great mod =D
I install it for a year now but the subforum bug didn't solve with me =.=
I did all the installing perfectly but the avatar for subforum won't show only the main forum avatar appear ="(
How can I fix it ="(?
Regards,
Sarab
Can you share with me your forum url so I can look into it.
Sarab
03-20-2013, 07:56 PM
Can you share with me your forum url so I can look into it.
Here now: http://www.phantom-theater.com/vb/forum.php =D
shabbirbhimani
03-25-2013, 03:19 PM
Here now: http://www.phantom-theater.com/vb/forum.php =D
Not sure why but it works fine on my forum.
Sarab
03-25-2013, 04:01 PM
Not sure why but it works fine on my forum.
Ain't there anything I can do ="(?
shabbirbhimani
03-26-2013, 04:48 AM
Ain't there anything I can do ="(?
PM me with your admin details and I can look into why the issue.
dany_danay
04-08-2013, 12:06 AM
You have to add the html inside the lastpostby Div instead of its parent div. Let me know if I made any sense to you.
Perfect mod, but can you explain this?
shabbirbhimani
04-08-2013, 08:40 AM
Perfect mod, but can you explain this?
Needed only if you want to display the avatars differently. Let me know if you want to change the way avatars are being displayed and then will explain more on this.
racale
05-08-2013, 10:13 PM
hello
how to put in the frame Avatar,as seen above in the first post
thanks
shabbirbhimani
05-09-2013, 02:12 AM
hello
how to put in the frame Avatar,as seen above in the first post
thanks
If you are referring to the mod description post then that image has the frame but you can always style those image using CSS to add that frame using border.
racale
05-10-2013, 09:31 PM
If you are referring to the mod description post then that image has the frame but you can always style those image using CSS to add that frame using border.
hello
I wanted to put the frames where you see the arrow as picture
thanks
http://img43.imageshack.us/img43/2953/screenhunter52may101626.png
shabbirbhimani
05-11-2013, 02:46 AM
hello
I wanted to put the frames where you see the arrow as picture
thanks
I already see the frame in your picture and what other frame you want in there. PM me and I will share with you my email or skype so we can discuss as I am not able to understand what you mean by frame.
racale
05-11-2013, 08:42 PM
I already see the frame in your picture and what other frame you want in there. PM me and I will share with you my email or skype so we can discuss as I am not able to understand what you mean by frame.
hello
I'm sorry the problem that I can not speak nor write English, to write I have to do the translation,I already made that change that picture and my stylle forum, the problem do not remember how to get it done
thanks
justicechick
07-10-2013, 10:13 AM
Excellent! Works in 4.2.1
Amaury
07-17-2013, 03:29 AM
Look at the Title / Author and Last Post By columns. See how there's more space between the avatar in the threadbit and the header (the blue background) in the Last Post By column than in the Title / Author column? How can I move the avatars in the Last Post By column up a bit to match the avatars under the Title / Author column?
https://vborg.vbsupport.ru/external/2013/07/3.png?1
Also, how do I remove the "no posts" avatar. I only want the text "Never" there if there's a forum with no posts, not a "no posts" avatar.
https://vborg.vbsupport.ru/external/2013/07/34.png
Let me know if the first screenshot isn't clear enough.
I also have some suggestions: why not add avatars in other areas, too, such as on the PMs page?
shabbirbhimani
07-17-2013, 03:37 AM
Look at the Title / Author and Last Post By columns. See how there's more space between the avatar in the threadbit and the header (the blue background) in the Last Post By column than in the Title / Author column? How can I move the avatars in the Last Post By column up a bit to match the avatars under the Title / Author column?you have to adjust the .threadbit .threadlastpost padding. As of now for you it is 8.74px
Also, how do I remove the "no posts" avatar. I only want the text "Never" there if there's a forum with no posts, not a "no posts" avatar.That is not an option as of now but can be done for you if you want for a price.
I also have some suggestions: why not add avatars in other areas, too, such as on the PMs page?Yes nice idea and I think I can add that when I have time to upgrade the plugin.
Amaury
07-17-2013, 03:54 AM
you have to adjust the .threadbit .threadlastpost padding. As of now for you it is 8.74px
Thanks!
That is not an option as of now but can be done for you if you want for a price.
No, that's fine. I can wait until an option is available (if it does become available in the future). It's just a mild annoyance.
Yes nice idea and I think I can add that when I have time to upgrade the plugin.
Cool! :)
DemOnstar
07-17-2013, 05:10 AM
Works great, looks good. 4.2.1
Avatars a little on the small side but good enough...
Amaury
07-17-2013, 05:25 AM
Works great, looks good. 4.2.1
Avatars a little on the small side but good enough...
The dimensions can be adjusted.
DemOnstar
07-17-2013, 06:14 AM
The dimensions can be adjusted.
I am sure they can, I have messed around with it using Firefox but couldn't figure out where they were....
I will get to it eventually... Thanks...
Amaury
07-17-2013, 06:23 AM
I am sure they can, I have messed around with it using Firefox but couldn't figure out where they were....
I will get to it eventually... Thanks...
They're in the codes you added.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.