vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Avatar in Showthread Template (https://vborg.vbsupport.ru/showthread.php?t=42678)

indiamike 08-24-2002 02:35 AM

Avatar in Showthread Template
 
I am using a seperate style for one forum and it's read only except for the person posting (like a blog) and I wanted to know what code could I use in the Showthread Template that would pull the avatar from the user who posted the thread to show in the top.

I have tried a few differant things but nothing seems to work.

Any suggestions.

Mike

assassingod 09-03-2002 09:57 PM

If I understand you correctly, the best I can think of is moving:

Code:

$post[avatar]
Above:
Code:

<table bgcolor="{pagebgcolor}" width="{tablewidth}" cellpadding="0" cellspacing="0" border="0"><tr><td width="10"><img width="10" height="1" src="{imagesfolder}/space.gif" alt=""></td><td width="100%"><!-- spacer -->
But I reckon thats not what you're looking for, sorry.

indiamike 09-03-2002 10:06 PM

Thanks for replying.

I tried the $post[avatar] originally but it didn't seem to work in that template.

I also tried an exact url similar to this http://mysite.com/forum/avatar.php?userid=$thread[postuserid]

That also didn't work.

Anybody else wanna have a go at it.

Here is a LINK to one of my blog pages. I am just trying to insert the avatar at the top next to the user name.

cheers
Mike

assassingod 09-03-2002 10:19 PM

That should work!! the $post[avatar] , its default with vB -_-

Anyway, I cant remember the code, but add $post[avatar] above the forum title-Would look nice. Sorry if I cant help more, I dont understand why that Avatar code doesnt work:S (Btw, doing this in postbit template, right?)

indiamike 09-04-2002 08:36 AM

:eek: Doh!!!! I am big dummy


Stupid me, I made the request in this post totally wrong in the beginning.

What I mean is I want to include the AVATAR in the SHOWTHREAD Template.

....doh....

assassingod 09-04-2002 03:53 PM

Oooooh! :p Thats why it doesnt work. Sorry, methinks you need some PHP editing:( But I think you should just stick with HTML and add the avatar to the top of that lovely postbit:)


All times are GMT. The time now is 11:19 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.00932 seconds
  • Memory Usage 1,719KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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