vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   postbit_legacy help (https://vborg.vbsupport.ru/showthread.php?t=253107)

2fast4ya 11-03-2010 05:35 PM

postbit_legacy help
 
1 Attachment(s)
I've made social icons a part of my postbit_legacy so that users can list their favorite social networks or websites and have the icons appear in their posts.

I'm having some issues though. If a user is using an avatar, the icons show up in one location, and if the user is not using an avatar, it shows up in another. I CANT FIGURE IT OUT (ahem, excuse the outburst...)

Here is where I've placed the code:

In postbit_legacy - I found the code:

HTML Code:

{vb:raw template_hook.postbit_userinfo_right}
                                <div class="imlinks">
                                        {vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
                                </div>

And directly after that, I've placed:

HTML Code:

<vb:if condition="is_member_of($bbuserinfo, 2,5,6,7)">
<vb:if condition="$post['field6']">
<a href="{vb:raw post.field6}">
<img src="images/misc/facebook_icon.png" alt="My Facebook" style="border-style: none" target="_blank"/></a>
</vb:if>
</vb:if>

<vb:if condition="is_member_of($bbuserinfo, 2,5,6,7)">
<vb:if condition="$post['field7']">
<a href="{vb:raw post.field7}">
<img src="images/misc/twitter_icon.png" alt="My Twitter" style="border-style: none" target="_blank"/></a>
</vb:if>
</vb:if>

<vb:if condition="is_member_of($bbuserinfo, 2,5,6,7)">
<vb:if condition="$post['field8']">
<a href="{vb:raw post.field8}">
<img src="images/misc/myspace_icon.png" alt="My Myspace" style="border-style: none" target="_blank"/></a>
</vb:if>
</vb:if>

I've also included a screen shot of the error. Notice how the location of the icons change depending on if the user has an avatar or not.

Retal 11-04-2010 04:14 PM

Move the icons inside the div.imlinks, not after.

2fast4ya 11-04-2010 04:29 PM

You're a hero, thank you

Retal 11-04-2010 05:20 PM

I wish. ;)


All times are GMT. The time now is 12:04 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.01131 seconds
  • Memory Usage 1,720KB
  • 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
  • (2)bbcode_html_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