vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Add-On Releases - best forum display avatar (https://vborg.vbsupport.ru/showthread.php?t=236870)

Qleb 02-24-2010 10:00 PM

best forum display avatar
 
1 Attachment(s)
this well show the user avatar in forumdsiplay

by image.php file

try it demo here -->> Click here

open the template ( threadbit )

and add this code where u like the avatar to appear

PHP Code:

<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=/></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

PHP Code:

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

you well find something like this
PHP Code:

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

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

<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

PHP Code:

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


save (FORUMDISPLAY) and open ( threadbit )

find in (threadbit)

PHP Code:

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

above of it add

PHP Code:

<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=/></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:
Code:

<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:

Code:

<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:

Code:

<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:

Code:

<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

Quote:

Originally Posted by dtv100 (Post 1993663)
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

Quote:

Originally Posted by dtv100 (Post 1994026)
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

Quote:

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

1 Attachment(s)
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.


All times are GMT. The time now is 06:30 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01187 seconds
  • Memory Usage 1,774KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (7)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (18)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete