vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   how can I allow hot link avatars? (https://vborg.vbsupport.ru/showthread.php?t=28163)

Kamran 10-20-2001 10:08 AM

Anyone know what I'm doing wrong?

thx

Kam

B0204520 10-22-2001 08:44 AM

try this:
in postbit

change [fieldx] to

<img src="$post[fieldx]">

but the thing is that when user don't use avatar links...
it shows "x" image not found sign...

ibeblunt 11-01-2001 04:49 PM

In version 2.2.0 you will need to add the hack to the following to /admin/functions.php:

Line 182:

// hack
if ($post[field8]) {
$post[field8] = "<img width=50 height=50 src=$post[field8] border=0>";
}

Keep in mind, my field is referred to as field8, yours will be different.

Christine 03-08-2002 03:12 PM

Is it possible to retain the canned avatars while still allowing remote linked ones?

dslteam 04-27-2002 04:38 PM

i have 2.2.5. version.

i tried to edit the template "postbit" -> but in the thread it comes the whole code and the avatar. if i delete the code and let only: <img width=50 height=50 src=$post[field8] border=0>, there is a image not found symbol if there is no avatar.

i tried to edit the functions.php file, but it happens nothing after it.

please help !!!!

i simply want that the users can add the URL to their avatars and i simply link them.

ibeblunt 04-27-2002 08:42 PM

Here's what I did:

In function.php, Line 185 after '$userinfo=$post;'

// HACK
if ($post[fieldX]) {
$post[fieldX] = "<img width=\"50\" height=\"50\" src=\"$post[fieldX]\" border=\"0"\>";
}
// HACK

What this will do is CHECK to see if the user has an image set in fieldX. If so, it will display the avatar, otherwise it skips it.

Now that I look at it, I should make it check to ensure it's a gif or jpg and then that the image is there.

Teknoscape 06-04-2002 05:13 AM

is this still current for the latest version of vBulletin?


All times are GMT. The time now is 01:46 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.01088 seconds
  • Memory Usage 1,722KB
  • 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
  • (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
  • (7)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