vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Few questions (https://vborg.vbsupport.ru/showthread.php?t=271009)

silvermerc 09-27-2011 08:35 PM

Few questions
 
Hi,

How would i edit the avatar on the postbit?
Plus how would i make it so it would pull from a form?
E.g it pulls it from field1 etc?
Ross

Lynne 09-27-2011 09:56 PM

Edit the avatar in what way? If you want to pull something from a field (like a URL), then you can probably just use the field as the image source:
<img src="{vb:raw post.field1}" alt="" />

silvermerc 09-27-2011 09:59 PM

That's brilliant, Now what im wondering is, is it possible to have a a background JUST for postbit?
Different for different usergroups(?) Like my postbit is original (old style) and i want it in the left bit.
Thanks
Ross

Lynne 09-27-2011 10:21 PM

Yes, that is possible. I believe a postbit background solution has been posted a few times in these forums.

silvermerc 09-27-2011 10:25 PM

Can you get a link, i've done some searching but can't find it :(
Ross

Lynne 09-28-2011 03:56 PM

I don't have a link - I have the same access to search that you do. You can just add the style directly to the <div> tag in the postbit. That is probably the easiest way.
HTML Code:

<vb:if condition="is_member_of($post, x, y, z)">
<div style="background: xxxxx">
<vb:else />
<div style="background: yyyyy">
</vb:if>



All times are GMT. The time now is 09:03 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.00964 seconds
  • Memory Usage 1,716KB
  • 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_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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