PDA

View Full Version : Add-On Releases - best forum display avatar


Qleb
02-24-2010, 10:00 PM
this well show the user avatar in forumdsiplay

by image.php file

try it demo here -->> Click here (http://www.qleb.net/forumdisplay.php?f=129)

open the template ( threadbit )

and add this code where u like the avatar to appear


<div style="background: url(images/misc/unknown.gif) no-repeat center; width: 40px; height: 39px; border: 0px;" >
<a href="member.php?$session[sessionurl]u=$thread[postuserid]"><img src="image.php?u=$thread[postuserid]&type=thumb" width="39" height="39" border=0 /></a>
</div>




or for advanced , if you like to add this avatar inside single (td)

open template (FORUMDISPLAY)

at line : 73 in orginal template you need to add new (td)
its mean we has added a new td in forumdisplay table .


below this code

<if condition="$show['search_engine']">

you well find something like this
<td class="thead">&nbsp;</td>

copy and past the (td) line again to be like

<td class="thead">&nbsp;</td>
<td class="thead">&nbsp;</td>


few lines below find (<else />)

add the same td line copy and past the (td) line below <else /> to be like

<td class="thead">&nbsp;</td>
<td class="thead">&nbsp;</td>


save (FORUMDISPLAY) and open ( threadbit )

find in (threadbit)

<td class="alt1" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">


above of it add

<td class="alt2">
<div style="background: url(images/misc/unknown.gif) no-repeat center; width: 40px; height: 39px; border: 0px;" >
<a href="member.php?$session[sessionurl]u=$thread[postuserid]"><img src="image.php?u=$thread[postuserid]&type=thumb" width="39" height="39" border=0 /></a>
</div>
</td>


thats all

enjoy

Floris
02-25-2010, 03:45 PM
Sorry, I don't understand your English.

What mode, only popular forums? Who's avatar?

This is not even an addon.

Abdullah SZ
02-25-2010, 07:17 PM
Wrong forum, it's not a product.

Nice edit though.

cheech47
02-26-2010, 08:06 AM
Demo link doesnt work

grey_goose
02-26-2010, 01:15 PM
Yeah, Template mod.

Find:
<a href="showthread.php?$session[sessionurl]p=$thread[lastpostid]$thread[highlight]#post$thread[lastpostid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a>
</div>
</td>

After, that, add:

<td>
<div style="background: url(images/misc/unknown.gif) no-repeat center; width: 40px; border: 0px;" >
<a href="member.php?$session[sessionurl]u=$thread[postuserid]"><img src="image.php?u=$thread[postuserid]&type=thumb" width="39" height="39" border=0 /></a>
</div>
</td>

Then it'll display an avatar thumbnail after the last poster's info.

edit: Hmmmmm but then the (thead) header is off... needs a bit of cleaning up.

grey_goose
02-26-2010, 01:24 PM
To fix that, in forumdisplay:

Find:

<td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&amp;order=desc&amp;sort=lastpost" rel="nofollow">$vbphrase[last_post]</a> $sortarrow[lastpost]</span></td>

Modify:

<td class="thead" align="center" nowrap="nowrap" colspan="2"><span style="white-space:nowrap"><a href="$sorturl&amp;order=desc&amp;sort=lastpost" rel="nofollow">$vbphrase[last_post]</a> $sortarrow[lastpost]</span></td>

Abdullah SZ
02-26-2010, 05:34 PM
Thanks grey goose

Qleb
02-27-2010, 04:00 PM
thank grey_goose good job :P

dtv100
02-28-2010, 12:50 PM
is this compatible with vbseo?

Silencer Groans
02-28-2010, 01:09 PM
thank

Qleb
02-28-2010, 09:10 PM
is this compatible with vbseo?

yes it is

dtv100
02-28-2010, 09:17 PM
avatar don't show for me no matter what i try .

Qleb
04-16-2010, 05:11 PM
avatar don't show for me no matter what i try .

try to disable seo links for memebers avatar in vbseo options

bacemail
07-28-2010, 03:30 AM
Does this work with avatars stored in the file system?

And... this is the avatar of the thread starter, right?

Qleb
07-28-2010, 11:18 AM
first

Does this work with avatars stored in the file system?


yes it is

and yes also its for thread starter

bacemail
07-28-2010, 08:18 PM
My avatars are stored in a directory called customavatars. I think this is throwing it off.

bacemail
07-28-2010, 09:16 PM
Eh... here's what I get - see attached pic.


My avatars are in the file system, but as per vBulletin directions, they are in a directory called "customavatars", not "avatars".

I noticed that the script produces this url for the avatar...

blablabla.com/forums/avatars/xxxxxxer.gif?type=thumb


The url id for the avatar is not correct. The ?type=thumb seems to be throwing it off, no? Also, it's not calling up the right directory for the avatars. When I made the switch from database storage to file system storage, the directions stated to make a directory called "customavatars", not "avatars".


1. If I can just get the call to pull from my "customavatars" directory, not the "avatars" directory.
2. get rid of the ?type=thumb at the end of the url.
3. fix the columns so that the thread title column is not blank. Looks like all the columns are moved over one <td> cell.

Thanks for anyone's input in advance. I used the first version of this mod when my avatars were stored in the database. Since I moved them to the file system, I had to unistall.

This feature was great. My users loved it.

vBarsiv
07-29-2010, 02:23 PM
A nice add-on, but the main page when opening forum is for muscle.