vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   ProfilePic ForumHome Conditional (https://vborg.vbsupport.ru/showthread.php?t=124173)

paul41598 08-17-2006 12:16 AM

ProfilePic ForumHome Conditional
 
I need this code, somehow put in a plugin, global start Im presuming, But I dont think its 100% accurate, cuz I already tried it,and got erros

PHP Code:

        $profilepic $DB_site->query_first("
            SELECT userid, dateline
            FROM " 
TABLE_PREFIX "customprofilepic
            WHERE userid = 
$vbulletin->userinfo[userid]
        "
);

        
$show['profilepic'] = iif($profilepictruefalse); 


I can't use this conditional in forumhome, cuz it doesnt work
<if condition="$show['profilepic']">

I know using a plugin will help make it so I can use that conditional in any template. Can anyone help?

My goal here is to say on the forumhome. If user doesnt have a custom profile pic, mention to them that they outta upload one. ;)

Ntfu2 08-17-2006 12:20 AM

Code:

<if condition="$show['profilepic']">
<img src="image.php?u=$vbulletin->userinfo[userid]&amp;type=profile&amp;dateline=$vbulletin->userinfo[profilepicdateline]">
<else />
<img src="$vboptions[bburl]/$stylevar[imgdir_misc]/profiledef.gif">
</if>

Try that code, its from another hack here, search for Show Profile Pic anywhere.

And if you are only trying to put this on the forumhome, why not try a forum home hook location?

paul41598 08-17-2006 08:33 AM

The <if condition="$show['profilepic']"> condition doesnt work on forumhome.
So maybe cuz its not usuable in that template. Im guessing I would need a hook. Can anyone help out with a hook, or what goes in it


All times are GMT. The time now is 08:01 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.01554 seconds
  • Memory Usage 1,713KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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