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)

eva2000 10-03-2001 08:24 PM

Quote:

Originally posted by freddie
eva yes it will happen.

Some enterprising souls like to post attachments and then refer to them in their signatures. If you have users on your forums doing this, you should stop the practice. It can have a noticeable performance hit on your server in bandwidth and in cpu usage.

man i'm getting slow at catching replies :o

i have img tag off in sigs only smilies are allowed.. but then again i have sigs off hehe

Karas 10-05-2001 05:10 AM

In light of that avatar hack...I just want to get a "feel" if this would be possible....would there be a way that a user could personally disable their avatar for a single post, without having to disable them totally?

My site uses avatars that are 130x280...so to turn them off would not be viable...I know they are long and it'd be easier to just say "redo the art.." heh...but say a poster wants to make a short post and not make all that blank space...what would the possibility be of making some check box to disable the avatar for a post / thread?

Alot of my ppl (as you know since you were the one to move our threads..:) Thanks!) are ex Ez Board refugees..so they got used to some creature comforts like that, and the ability to mark individual forums as read (wish that could be done too..sigh).

Thanks for any help!

Kamran 10-17-2001 09:27 PM

Hi,

I started on this, and then when I started to edit functions.php, my comp froze, so I had to restart.

When I looked at it again, it was all blank, and my forums now say:

Fatal error: Call to undefined function: getuserinfo() in /home/talkwres/public_html/forum/admin/sessions.php on line 327

Can I just upload functions.php again - or would I have to edit it?

(I never installed it in the first place, so not sure what to do)

thx

Kam

Kamran 10-17-2001 10:20 PM

I uploaded the old one, and it now said:

Parse error: parse error in /home/talkwres/public_html/forum/admin/functions.php on line 1874

Warning: Cannot add header information - headers already sent by (output started at /home/talkwres/public_html/forum/admin/functions.php:1874) in /home/talkwres/public_html/forum/admin/functions.php on line 1459

Fatal error: Call to undefined function: makelogincode() in /home/talkwres/public_html/forum/global.php on line 311

Inzagi 10-17-2001 11:19 PM

I really think that these hack was made for vB 1...
and not for the 2 version..

So it's clear why it is not working ..

By the way: Why do want to have this hack ?
I think it's already in vB 2 , as you can chose to URL to a certain avatar.

Kamran 10-17-2001 11:24 PM

Users can link to an image - but it puts that image on your server.

Kamran 10-18-2001 09:27 PM

Quote:

Originally posted by freddie
You would have to hack a bit. Disable avatars and rename a custom profile field to "Avatar". The user than types in the url to the avatar and you put $userinfo[field7] (or whatever is may be) in the postbit template. Than in the getpostbit function in functions.php you would have to add something like:

if ($userinfo[field7]) {
$userinfo[field7] = "<img src='$userinfo[field7]' border='0'>";
}

Hi,

How do you work out what field number it is?

thx

Kam

Admin 10-19-2001 06:45 AM

Hover it in the Custom Profile Fields screen, and see the ID in the status bar.

Kamran 10-19-2001 03:10 PM

Thx Firefly,

So does this look right:


// ###################### Start buildpostbit #######################
function getpostbit($post) {
// sorts through all the stuff to return the postbit template

// user
global $bbuserinfo,$ignore;
// showthread
global $counter,$firstnew,$sigcache,$highlight,$postid,$f orum;
// global options
global $showdeficon,$showonline,$displayemails,$enablepms ,$allowsignatures,$wordwrap,$dateformat,$timeforma t,$logip,$replacewords,$postsperday,$avatarenabled ,$registereddateformat,$viewattachedimages;

if ($userinfo[field5]) {
$userinfo[field5] = "<img src='$userinfo[field5]' border='0'>";
}
if ($counter%2==0) {
$post[backcolor]="#F1F1F1";
$post[bgclass] = "alt1";
} else {
$post[backcolor]="#DFDFDF";
$post[bgclass] = "alt2";
}

Kamran 10-19-2001 06:22 PM

Hi,

I tried it, but when someone puts a url in the avatar field, it just shows the url under the username, not the image.

You can see an example here (Dreamer's post):

http://www.talkwrestlingonline.com/f...id=956#post956


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.01089 seconds
  • Memory Usage 1,739KB
  • 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_quote_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