vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Members Choice voting hack - V2 with usergroup permissions (https://vborg.vbsupport.ru/showthread.php?t=74183)

rex_b 01-15-2005 07:55 PM

Any idea on the default avatar, or something to stick in there if they don't have one?

mcyates 01-15-2005 07:57 PM

thank you very much

trafix 01-15-2005 08:02 PM

open mc_polling booth

find
PHP Code:

$avatar1 fetch_avatar_url($nomineeinfo['userid']);
    if (
$avatar1 == "")
    {
        
$leftavatar ="";
    }
    else
    {
        
$leftavatar ="<img src=\"$avatar1\" border=\"0\" style=\"float: left; margin-right: 5px;\" />";
    }
 
    
$avatar2 fetch_avatar_url($nomineeinfo['nominatorid']);
    if (
$avatar2 == "")
    {
        
$rightavatar ="";
    }
    else
    {
        
$rightavatar "<img src=\"$avatar2\" border=\"0\" style=\"float: left; margin-right: 5px;\" />";
    } 

change
PHP Code:

$leftavatar =""

and
PHP Code:

$rightavatar =""

to
PHP Code:

$xxxxxavatar ="path to defult avatar"

I THINK that should work :)

rex_b 01-15-2005 08:07 PM

Nope no worky :(

trafix 01-15-2005 08:11 PM

hmmm, should have .... did you use the img tag
PHP Code:

$xxxxxavatar ="<img src=\"path to avatar\" border=\"0\" style=\"float: left; margin-right: 5px;\" />"

i should have put that in the lase post ....

rex_b 01-15-2005 08:25 PM

Quote:

Originally Posted by trafix
hmmm, should have .... did you use the img tag
PHP Code:

$xxxxxavatar ="<img src=\"path to avatar\" border=\"0\" style=\"float: left; margin-right: 5px;\" />"

i should have put that in the lase post ....


Am I doing something wrong. I get error when I do this:

Code:

$xxxxxavatar ="<img src=\"images/professional/misc/noavatar.gif" border=\"0\" style=\"float: left; margin-right: 5px;\" />";

trafix 01-15-2005 08:32 PM

i put the "images/professional/misc/noavatar.gif" after your url (the one in your profile)

and there was no inage there

trafix 01-15-2005 08:34 PM

Quote:

Originally Posted by trafix
i put the "images/professional/misc/noavatar.gif" after your url (the one in your profile)

and there was no inage there

also you need to change the xxxx in the string to "left" "right" in each case

rex_b 01-15-2005 08:34 PM

OK i got it to work with no errors but it still doesn't show up.

rex_b 01-15-2005 08:36 PM

Quote:

Originally Posted by trafix
also you need to change the xxxx in the string to "left" "right" in each case


Ahh success! Always something simple.. hehe


All times are GMT. The time now is 03:55 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.01318 seconds
  • Memory Usage 1,748KB
  • 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)bbcode_code_printable
  • (6)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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