vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Image in Posbit Legacy Based On User Profile Field (https://vborg.vbsupport.ru/showthread.php?t=202227)

Thamelas 01-18-2009 12:17 PM

Image in Posbit Legacy Based On User Profile Field
 
Maybe you guys can help me. I have vBulletin 3.7.4 Patch 1.

I am trying to make an image display in Postbit Legacy based on the users answer to a question in their profile, but I can't seem to get it to work. Can you guys tell me how to get this working?

Below is the code I have tried adding to the Postbit Legacy Template:


Code:

<if condition="$post['field11']"><div class="smallfont">$post<img src="/images/misc/[field11].gif" /></div></if>

Spank 01-18-2009 01:17 PM

Quote:

Originally Posted by Thamelas (Post 1716766)
Maybe you guys can help me. I have vBulletin 3.7.4 Patch 1.

I am trying to make an image display in Postbit Legacy based on the users answer to a question in their profile, but I can't seem to get it to work. Can you guys tell me how to get this working?

Below is the code I have tried adding to the Postbit Legacy Template:


Code:

<if condition="$post['field11']"><div class="smallfont">$post<img src="/images/misc/[field11].gif" /></div></if>

I think it should be

Code:

<if condition="$post['field11']"><div class="smallfont"><img src="/images/misc/$post[field11].gif" /></div></if>

Thamelas 01-19-2009 01:57 PM

Quote:

Originally Posted by Spank (Post 1716800)
I think it should be

Code:

<if condition="$post['field11']"><div class="smallfont"><img src="/images/misc/$post[field11].gif" /></div></if>


That doesn't work either.

Spank 01-19-2009 02:04 PM

What's happening with it?

Thamelas 01-19-2009 02:07 PM

Nothing. It doesn't post anything. It should be appearing right below the administrator title but it doesn't.

Here's a link:

http://www.wowguideonline.com/forum/...?p=959#post959

Spank 01-19-2009 02:24 PM

Looks like the code is fine, just the image is no there.

http://www.wowguideonline.com/images/misc/Alliance.gif

make sure the image is in that location

Thamelas 01-19-2009 02:26 PM

Yes it is. See:

http://www.wowguideonline.com/forum/...c/Alliance.gif

and the other option:

http://www.wowguideonline.com/forum/...misc/Horde.gif

--------------- Added [DATE]1232382669[/DATE] at [TIME]1232382669[/TIME] ---------------

I got it to work, but i had to put the full URL of the graphic in. Any way to shorten it?


Code:

<if condition="$post['field11']"><div><img src="http://www.wowguideonline.com/forum/images/misc/$post[field11].gif" /></div></if>

Spank 01-19-2009 02:33 PM

You might be able to just have /forum/images/misc/$post[field11].gif

not too sure on that, but if it's working, that's the main thing.

Thamelas 01-19-2009 02:45 PM

I think I'll leave it as it is. Like you said its working and that's all that matters. Thanks for your help.


All times are GMT. The time now is 03:48 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.01049 seconds
  • Memory Usage 1,731KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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