vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Custom user background/conditional to see if user customized his profile (https://vborg.vbsupport.ru/showthread.php?t=212400)

Nordinho 04-29-2009 12:43 AM

Custom user background/conditional to see if user customized his profile
 
Hello,

I got 2 questions.

1) I want to give certain users the ability to use a custum forum background on their profile page. The furthest I got was this:

Code:

<if condition="$bbuserinfo['fieldx'] && $prepared['userid'] == $bbuserinfo['userid']">
<body style="background: $bbuserinfo[fieldx];">
<else />
<body style="background: #color;">
</if>

Which (obviously) shows the user x his background when viewing his profile, but doesn't show it to other users viewing x's profile.

Has anyone been able to do this?

2) Is there a conditional that shows if a member has customized his/her profile?
Something like <if condition="$bbuserinfo['customizedprofile'] ></if>

Nordinho 04-30-2009 07:49 AM

Bump

Lynne 04-30-2009 01:49 PM

$bbuserinfo refers to the person viewing the page, not the person who's profile page you are on. You should try $userinfo instead.

Do a search on "customize" in the MEMBERINFO template and you'll see the code they use to display the Hide User Customizations code (it only shows if the user customized their profile).

Nordinho 05-03-2009 12:56 PM

Thanx for that! It worked!


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