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


All times are GMT. The time now is 11:08 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.01165 seconds
  • Memory Usage 1,752KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete