vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Avatar on forumdisplay (https://vborg.vbsupport.ru/showthread.php?t=135891)

Allan 01-07-2007 10:00 PM

Avatar on forumdisplay
 
Avatar on forumdisplay
(Compatible All vB3.6)




Description: Add avatar to user who have create the thread

Installation: Import the plugin
Upload image (aucun_avatar.gif) to your style in misc file
  • Add this class in your style, At the end, in "Additional CSS Definitions", second bloc (custom css))
Code:

.avatar_forumdisplay {
padding:0px 5px 0px 0px;
}

  • Details:
In AdminCP => Styles & Templates => Style Manager => in your style (Main CSS) :

https://vborg.vbsupport.ru/



  • In threadbit template, find:
Code:

<if condition="$show['gotonewpost']"><a href="showthread.php?$session[sessionurl]goto=newpost&t=$thread[threadid]" id="thread_gotonew_$thread[realthreadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /></a></if>
  • Before, add this code:
Code:

$avatar
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Version 1.1: Add avatar by default (Big thank to Fred for plugin ;))

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

PS: If you use thie mod, click on Install please :)

geveze 01-09-2007 02:17 AM

oo thanks :D

installed

PennylessZ28 01-09-2007 02:53 AM

Interesting idea.

I'm going to use this with an if statement for an New Members Introduction Forum ;)

That actually doesn't work, why would the source of the image be image.php?

PennylessZ28 01-09-2007 03:02 AM

WOn't work if avatars in saved in the file system I should say. Paths are different. :)

delaen1 01-09-2007 12:34 PM

Any way to get it to display a default avatar if the user doesn't have one?

SkyCatcher 01-09-2007 11:00 PM

I think this hack just got a lot more complicated for Allan *lol*

I really like the idea, but you'll have to use the fetchavatarurl function and pass that into a variable that the template can use then then conditional it incase the user doesn't have an avatar or it'll come up with a red x.

Allan 01-10-2007 08:03 AM

Version 1.1: Add avatar by default (Big thank to Fred for plugin )

delaen1 01-12-2007 02:10 PM

Sweet. Thanks Allan.

GruntHalo 01-12-2007 04:48 PM

Not bad dude, Installed.

hoopsta 01-13-2007 02:50 AM

sorry, I'm sort of new at this. What does this mean and where do I do it?

"Add this class in your style"

Code:
.avatar_forumdisplay {
padding:0px 5px 0px 0px;
}


All times are GMT. The time now is 08:02 AM.

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.01100 seconds
  • Memory Usage 1,729KB
  • 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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