vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Private Messages Enhancements - Sender Avatar In Private Message List (https://vborg.vbsupport.ru/showthread.php?t=127414)

nevetS 09-25-2006 04:40 PM

functions_user.php is already included in private.php

to resolve the missing image problem... maybe something like...

<if condition="$sk_avatar"></if>

or maybe even make the variable in the plugin the whole tag, so if it's null, nothing gets printed.

.Tim 09-25-2006 09:36 PM

Thanks guys. That code works both ways, with filesystem and database. So I've updated the code. Thanks again for your help. :D

Gripemaster 09-25-2006 09:44 PM

*INSTALLED* Very cool!

Shazz 09-25-2006 10:19 PM

Installed*

Shazz 09-25-2006 10:22 PM

Now i just got the Red X's and i didn't before :(

xman_79 09-25-2006 10:54 PM

My solution is :
Replace in pm_messagelistbit template :
PHP Code:

    <if condition="$show['pmicons']"><td class="alt2"><if condition="$show['pmicon']"><img src="$pm[iconpath]alt="$pm[icontitle]/><else />&nbsp;</if></td></if> 

with
PHP Code:

<if condition="$sk_avurl"><td class="alt2" width="80"><img src="$sk_avurl[0]width="80" /></td><else /><td class="alt2" width="80"><img src="images/no_avatar.jpg" width="80" border="0" /></if></td></if> 

Create a image :
Width 80 and height 80
name : no_avatar.jpg
location : vb/images

and result :
https://vborg.vbsupport.ru/external/2007/02/26.jpg

Shazz 09-25-2006 11:18 PM

Quote:

Originally Posted by xman_79
My solution is :
Replace in pm_messagelistbit template :
PHP Code:

    <if condition="$show['pmicons']"><td class="alt2"><if condition="$show['pmicon']"><img src="$pm[iconpath]alt="$pm[icontitle]/><else />&nbsp;</if></td></if> 

with
PHP Code:

<if condition="$sk_avurl"><td class="alt2" width="80"><img src="$sk_avurl[0]width="80" /></td><else /><td class="alt2" width="80"><img src="images/no_avatar.jpg" width="80" border="0" /></if></td></if> 

Create a image :
Width 80 and height 80
name : no_avatar.jpg
location : vb/images

and result :
https://vborg.vbsupport.ru/external/2007/02/26.jpg

Genious!

Trana 09-26-2006 02:04 AM

Nice one.

xman_79 09-26-2006 09:26 PM

Quote:

Originally Posted by Shazz
Genious!

Thank u and welcome .

Jeordie015 09-27-2006 12:48 AM

It messed up my layout. I'm running vB3.6.0. It looks like it took out a column or something. I'm not sure how to fix it though. See screenshot.


All times are GMT. The time now is 02:17 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.01163 seconds
  • Memory Usage 1,751KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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